2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for bfd 2.30.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='bfd'
559 PACKAGE_VERSION='2.30.51'
560 PACKAGE_STRING='bfd 2.30.51'
564 ac_unique_file="libbfd.c"
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
613 bfd_default_target_size
630 BFD_HOST_64_BIT_DEFINED
631 BFD_HOST_64BIT_LONG_LONG
658 MAINTAINER_MODE_FALSE
662 WARN_CFLAGS_FOR_BUILD
707 INSTALL_STRIP_PROGRAM
768 program_transform_name
781 enable_option_checking
782 enable_dependency_tracking
793 enable_64_bit_archive
797 enable_leading_mingw64_underscores
798 with_separate_debug_dir
802 enable_build_warnings
803 enable_maintainer_mode
804 enable_install_libbfd
808 ac_precious_vars='build_alias
819 # Initialize some variables set by options.
821 ac_init_version=false
822 ac_unrecognized_opts=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
935 eval enable_$ac_useropt=no ;;
937 -docdir | --docdir | --docdi | --doc | --do)
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
961 eval enable_$ac_useropt=\$ac_optarg ;;
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
976 -help | --help | --hel | --he | -h)
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 htmldir=$ac_optarg ;;
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1006 -libdir | --libdir | --libdi | --libd)
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1097 -psdir | --psdir | --psdi | --psd | --ps)
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 sbindir=$ac_optarg ;;
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 sharedstatedir=$ac_optarg ;;
1123 -site | --site | --sit)
1125 -site=* | --site=* | --sit=*)
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval with_$ac_useropt=\$ac_optarg ;;
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1181 eval with_$ac_useropt=no ;;
1184 # Obsolete; use --with-x.
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information."
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error "missing argument to $ac_option"
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1252 # Be sure to have absolute directory names.
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1324 ac_srcdir_defaulted=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures bfd 2.30.51 to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of bfd 2.30.51:";;
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --disable-dependency-tracking speeds up one-time build
1438 --enable-dependency-tracking do not reject slow dependency extractors
1439 --enable-shared[=PKGS] build shared libraries [default=no]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-plugins Enable support for plugins
1445 --disable-largefile omit support for large files
1446 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1447 --enable-targets alternative target configurations
1448 --enable-64-bit-archive force 64-bit archives
1449 --enable-secureplt Default to creating read-only plt entries
1450 --enable-separate-code enable -z separate-code in ELF linker by default
1451 --enable-leading-mingw64-underscores
1452 Enable leading underscores on 64 bit mingw targets
1453 --enable-werror treat compile warnings as errors
1454 --enable-build-warnings enable build-time compiler warnings
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
1457 --enable-install-libbfd controls installation of libbfd and related headers
1458 --disable-nls do not use Native Language Support
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-pic try to use only PIC/non-PIC objects [default=use
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-mmap try using mmap for BFD input files if available
1467 --with-separate-debug-dir=DIR
1468 Look for global separate debug info in DIR
1469 [default=LIBDIR/debug]
1470 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1472 --with-bugurl=URL Direct users to URL to report a bug
1473 --with-system-zlib use installed libz
1475 Some influential environment variables:
1476 CC C compiler command
1477 CFLAGS C compiler flags
1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1479 nonstandard directory <lib dir>
1480 LIBS libraries to pass to the linker, e.g. -l<library>
1481 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482 you have headers in a nonstandard directory <include dir>
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1488 Report bugs to the package provider.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1518 .) # We are building in place.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1551 bfd configure 2.30.51
1552 generated by GNU Autoconf 2.64
1554 Copyright (C) 2009 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1561 ## ------------------------ ##
1562 ## Autoconf initialization. ##
1563 ## ------------------------ ##
1565 # ac_fn_c_try_compile LINENO
1566 # --------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1601 } # ac_fn_c_try_compile
1603 # ac_fn_c_try_link LINENO
1604 # -----------------------
1605 # Try to link conftest.$ac_ext, and return whether this succeeded.
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext conftest$ac_exeext
1610 if { { ac_try="$ac_link"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_link") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest$ac_exeext && {
1629 test "$cross_compiling" = yes ||
1630 $as_test_x conftest$ac_exeext
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641 # interfere with the next link command; also delete a directory that is
1642 # left behind by Apple's compiler. We do this before executing the actions.
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_c_try_link
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } >/dev/null && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1681 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689 # the include files in INCLUDES and setting the cache variable VAR
1691 ac_fn_c_check_header_mongrel ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698 $as_echo_n "(cached) " >&6
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1704 # Is the header compilable?
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706 $as_echo_n "checking $2 usability... " >&6; }
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 ac_header_compiler=yes
1715 ac_header_compiler=no
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719 $as_echo "$ac_header_compiler" >&6; }
1721 # Is the header present?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723 $as_echo_n "checking $2 presence... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1728 if ac_fn_c_try_cpp "$LINENO"; then :
1729 ac_header_preproc=yes
1731 ac_header_preproc=no
1733 rm -f conftest.err conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735 $as_echo "$ac_header_preproc" >&6; }
1737 # So? What about this header?
1738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1749 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1753 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1763 eval "$3=\$ac_header_compiler"
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 } # ac_fn_c_check_header_mongrel
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists and can be compiled using the include files in
1818 # INCLUDES, setting the cache variable VAR accordingly.
1819 ac_fn_c_check_header_compile ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1832 if ac_fn_c_try_compile "$LINENO"; then :
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 } # ac_fn_c_check_header_compile
1846 # ac_fn_c_check_func LINENO FUNC VAR
1847 # ----------------------------------
1848 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1849 ac_fn_c_check_func ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 $as_echo_n "(cached) " >&6
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861 #define $2 innocuous_$2
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (); below.
1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866 <limits.h> exists even on freestanding compilers. */
1869 # include <limits.h>
1871 # include <assert.h>
1876 /* Override any GCC internal prototype to avoid an error.
1877 Use char because int might match the return type of a GCC
1878 builtin and then its argument prototype would still apply. */
1883 /* The GNU C library defines this for functions which it implements
1884 to always fail with ENOSYS. Some functions are actually named
1885 something starting with __ and the normal name is an alias. */
1886 #if defined __stub_$2 || defined __stub___$2
1898 if ac_fn_c_try_link "$LINENO"; then :
1903 rm -f core conftest.err conftest.$ac_objext \
1904 conftest$ac_exeext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 } # ac_fn_c_check_func
1913 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1914 # -------------------------------------------
1915 # Tests whether TYPE exists after having included INCLUDES, setting cache
1916 # variable VAR accordingly.
1917 ac_fn_c_check_type ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923 $as_echo_n "(cached) " >&6
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 } # ac_fn_c_check_type
1967 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1968 # --------------------------------------------
1969 # Tries to find the compile-time value of EXPR in a program that includes
1970 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1972 ac_fn_c_compute_int ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if test "$cross_compiling" = yes; then
1976 # Depending upon the size, compute the lo and hi bounds.
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1983 static int test_array [1 - 2 * !(($2) >= 0)];
1990 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_hi=$ac_mid; break
2009 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2010 if test $ac_lo -le $ac_mid; then
2014 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2025 static int test_array [1 - 2 * !(($2) < 0)];
2032 if ac_fn_c_try_compile "$LINENO"; then :
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2041 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_lo=$ac_mid; break
2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052 if test $ac_mid -le $ac_hi; then
2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 # Binary search between lo and hi bounds.
2067 while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 if ac_fn_c_try_compile "$LINENO"; then :
2085 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2097 static long int longval () { return $2; }
2098 static unsigned long int ulongval () { return $2; }
2105 FILE *f = fopen ("conftest.val", "w");
2110 long int i = longval ();
2113 fprintf (f, "%ld", i);
2117 unsigned long int i = ulongval ();
2120 fprintf (f, "%lu", i);
2122 /* Do not output a trailing newline, as this causes \r\n confusion
2123 on some platforms. */
2124 return ferror (f) || fclose (f) != 0;
2130 if ac_fn_c_try_run "$LINENO"; then :
2131 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2136 conftest.$ac_objext conftest.beam conftest.$ac_ext
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2143 } # ac_fn_c_compute_int
2145 # ac_fn_c_check_decl LINENO SYMBOL VAR
2146 # ------------------------------------
2147 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2148 ac_fn_c_check_decl ()
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 as_decl_name=`echo $2|sed 's/ *(.*//'`
2152 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2154 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2155 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156 $as_echo_n "(cached) " >&6
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 #ifndef $as_decl_name
2166 (void) $as_decl_use;
2168 (void) $as_decl_name;
2176 if ac_fn_c_try_compile "$LINENO"; then :
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188 } # ac_fn_c_check_decl
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by bfd $as_me 2.30.51, which was
2194 generated by GNU Autoconf 2.64. Invocation command line was
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2254 ac_must_keep_next=false
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283 -* ) ac_must_keep_next=true ;;
2286 as_fn_append ac_configure_args " '$ac_arg'"
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2305 ## ---------------- ##
2306 ## Cache variables. ##
2307 ## ---------------- ##
2310 # The following way of writing the cache mishandles newlines in values,
2312 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313 eval ac_val=\$$ac_var
2317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2321 _ | IFS | as_nl) ;; #(
2322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323 *) { eval $ac_var=; unset $ac_var;} ;;
2328 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329 *${as_nl}ac_space=\ *)
2331 "s/'\''/'\''\\\\'\'''\''/g;
2332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2343 ## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##
2348 for ac_var in $ac_subst_vars
2350 eval ac_val=\$$ac_var
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 $as_echo "$ac_var='\''$ac_val'\''"
2358 if test -n "$ac_subst_files"; then
2360 ## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##
2365 for ac_var in $ac_subst_files
2367 eval ac_val=\$$ac_var
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 $as_echo "$ac_var='\''$ac_val'\''"
2376 if test -s confdefs.h; then
2386 test "$ac_signal" != 0 &&
2387 $as_echo "$as_me: caught signal $ac_signal"
2388 $as_echo "$as_me: exit $exit_status"
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394 for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2402 $as_echo "/* confdefs.h */" > confdefs.h
2404 # Predefined preprocessor variables.
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_NAME "$PACKAGE_NAME"
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_STRING "$PACKAGE_STRING"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_URL "$PACKAGE_URL"
2431 # Let the site file select an alternate cache file if it wants to.
2432 # Prefer an explicitly selected file to automatically selected ones.
2435 if test -n "$CONFIG_SITE"; then
2436 ac_site_file1=$CONFIG_SITE
2437 elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2446 test "x$ac_site_file" = xNONE && continue
2447 if test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special
2457 # files actually), so we avoid doing that.
2458 if test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2472 # Check that the precious variables saved in the cache have kept the same
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2547 for ac_t in install-sh install.sh shtool; do
2548 if test -f "$ac_dir/$ac_t"; then
2550 ac_install_sh="$ac_aux_dir/$ac_t -c"
2555 if test -z "$ac_aux_dir"; then
2556 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2559 # These three variables are undocumented and unsupported,
2560 # and are intended to be withdrawn in a future Autoconf release.
2561 # They can cause serious problems if a builder's source tree is in a directory
2562 # whose full name contains unusual characters.
2563 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2564 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2565 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2568 # Make sure we can run config.sub.
2569 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2570 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2573 $as_echo_n "checking build system type... " >&6; }
2574 if test "${ac_cv_build+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2577 ac_build_alias=$build_alias
2578 test "x$ac_build_alias" = x &&
2579 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2580 test "x$ac_build_alias" = x &&
2581 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2582 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2583 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2587 $as_echo "$ac_cv_build" >&6; }
2588 case $ac_cv_build in
2590 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2593 ac_save_IFS=$IFS; IFS='-'
2599 # Remember, the first character of IFS is used to create $*,
2600 # except with old shells:
2603 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2607 $as_echo_n "checking host system type... " >&6; }
2608 if test "${ac_cv_host+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2611 if test "x$host_alias" = x; then
2612 ac_cv_host=$ac_cv_build
2614 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2615 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2620 $as_echo "$ac_cv_host" >&6; }
2623 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2626 ac_save_IFS=$IFS; IFS='-'
2632 # Remember, the first character of IFS is used to create $*,
2633 # except with old shells:
2636 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2640 $as_echo_n "checking target system type... " >&6; }
2641 if test "${ac_cv_target+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2644 if test "x$target_alias" = x; then
2645 ac_cv_target=$ac_cv_host
2647 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2653 $as_echo "$ac_cv_target" >&6; }
2654 case $ac_cv_target in
2656 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2658 target=$ac_cv_target
2659 ac_save_IFS=$IFS; IFS='-'
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2669 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2672 # The aliases save the names the user supplied, while $host etc.
2673 # will get canonicalized.
2674 test -n "$target_alias" &&
2675 test "$program_prefix$program_suffix$program_transform_name" = \
2677 program_prefix=${target_alias}-
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683 if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 if test -n "$CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714 $as_echo "$CC" >&6; }
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2722 if test -z "$ac_cv_prog_CC"; then
2724 # Extract the first word of "gcc", so it can be a program name with args.
2725 set dummy gcc; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 if test -n "$ac_ct_CC"; then
2732 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_ac_ct_CC="gcc"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752 if test -n "$ac_ct_CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754 $as_echo "$ac_ct_CC" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2760 if test "x$ac_ct_CC" = x; then
2763 case $cross_compiling:$ac_tool_warned in
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CC="${ac_tool_prefix}cc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 if test -n "$CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807 $as_echo "$CC" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2816 if test -z "$CC"; then
2817 # Extract the first word of "cc", so it can be a program name with args.
2818 set dummy cc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2836 ac_prog_rejected=yes
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 if test $ac_prog_rejected = yes; then
2848 # We found a bogon in the path, so make sure we never use it.
2849 set dummy $ac_cv_prog_CC
2851 if test $# != 0; then
2852 # We chose a different compiler from the bogus one.
2853 # However, it has the same basename, so the bogon will be chosen
2854 # first if we set CC to just the basename; use the full file name.
2856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2862 if test -n "$CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in cl.exe
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 if test -n "$CC"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2913 test -n "$CC" && break
2916 if test -z "$CC"; then
2918 for ac_prog in cl.exe
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2957 test -n "$ac_ct_CC" && break
2960 if test "x$ac_ct_CC" = x; then
2963 case $cross_compiling:$ac_tool_warned in
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978 as_fn_error "no acceptable C compiler found in \$PATH
2979 See \`config.log' for more details." "$LINENO" 5; }
2981 # Provide some information about the compiler.
2982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2985 for ac_option in --version -v -V -qversion; do
2986 { { ac_try="$ac_compiler $ac_option >&5"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992 $as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2995 if test -s conftest.err; then
2997 ... rest of stderr output deleted ...
2998 10q' conftest.err >conftest.er1
2999 cat conftest.er1 >&5
3000 rm -f conftest.er1 conftest.err
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3017 ac_clean_files_save=$ac_clean_files
3018 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3019 # Try to create an executable without -o first, disregard a.out.
3020 # It will help us diagnose broken compilers, and finding out an intuition
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3023 $as_echo_n "checking for C compiler default output file name... " >&6; }
3024 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3026 # The possible output files:
3027 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3030 for ac_file in $ac_files
3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3039 if { { ac_try="$ac_link_default"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_link_default") 2>&5
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; then :
3050 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3051 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3052 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3053 # so that the user can short-circuit this test for compilers unknown to
3055 for ac_file in $ac_files ''
3057 test -f "$ac_file" || continue
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3062 # We found the default executable, but exeext='' is most
3066 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3068 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3070 # We set ac_cv_exeext here because the later test for it is not
3071 # safe: cross compilers may not add the suffix if given an `-o'
3072 # argument, so we may need to know it at that point already.
3073 # Even if this section looks crufty: it has the advantage of
3080 test "$ac_cv_exeext" = no && ac_cv_exeext=
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3086 $as_echo "$ac_file" >&6; }
3087 if test -z "$ac_file"; then :
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 { as_fn_set_status 77
3094 as_fn_error "C compiler cannot create executables
3095 See \`config.log' for more details." "$LINENO" 5; }; }
3097 ac_exeext=$ac_cv_exeext
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102 $as_echo_n "checking whether the C compiler works... " >&6; }
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105 if { ac_try='./$ac_file'
3106 { { case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_try") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; }; then
3118 if test "$cross_compiling" = maybe; then
3121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error "cannot run C compiled programs.
3124 If you meant to cross compile, use \`--host'.
3125 See \`config.log' for more details." "$LINENO" 5; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130 $as_echo "yes" >&6; }
3132 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3133 ac_clean_files=$ac_clean_files_save
3134 # Check that the compiler produces executables we can run. If not, either
3135 # the compiler is broken, or we cross compile.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3137 $as_echo_n "checking whether we are cross compiling... " >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139 $as_echo "$cross_compiling" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142 $as_echo_n "checking for suffix of executables... " >&6; }
3143 if { { ac_try="$ac_link"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3158 for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error "cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details." "$LINENO" 5; }
3173 rm -f conftest$ac_cv_exeext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175 $as_echo "$ac_cv_exeext" >&6; }
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3181 $as_echo_n "checking for suffix of object files... " >&6; }
3182 if test "${ac_cv_objext+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 rm -f conftest.o conftest.obj
3197 if { { ac_try="$ac_compile"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_compile") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 for ac_file in conftest.o conftest.obj conftest.*; do
3209 test -f "$ac_file" || continue;
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217 $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error "cannot compute suffix of object files: cannot compile
3223 See \`config.log' for more details." "$LINENO" 5; }
3225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3228 $as_echo "$ac_cv_objext" >&6; }
3229 OBJEXT=$ac_cv_objext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3232 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3233 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3250 if ac_fn_c_try_compile "$LINENO"; then :
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3260 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3261 if test $ac_compiler_gnu = yes; then
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3269 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3270 if test "${ac_cv_prog_cc_g+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3273 ac_save_c_werror_flag=$ac_c_werror_flag
3274 ac_c_werror_flag=yes
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3288 if ac_fn_c_try_compile "$LINENO"; then :
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3303 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3319 if ac_fn_c_try_compile "$LINENO"; then :
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3330 $as_echo "$ac_cv_prog_cc_g" >&6; }
3331 if test "$ac_test_CFLAGS" = set; then
3332 CFLAGS=$ac_save_CFLAGS
3333 elif test $ac_cv_prog_cc_g = yes; then
3334 if test "$GCC" = yes; then
3340 if test "$GCC" = yes; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3347 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3351 ac_cv_prog_cc_c89=no
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3357 #include <sys/types.h>
3358 #include <sys/stat.h>
3359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3360 struct buf { int x; };
3361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3362 static char *e (p, i)
3368 static char *f (char * (*g) (char **, int), char **p, ...)
3373 s = g (p, va_arg (v,int));
3378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3379 function prototypes and stuff, but not '\xHH' hex character constants.
3380 These don't provoke an error unfortunately, instead are silently treated
3381 as 'x'. The following induces an error, until -std is added to get
3382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3383 array size at least. It's necessary to write '\x00'==0 to get something
3384 that's true only with -std. */
3385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3388 inside strings and character constants. */
3390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3392 int test (int i, double x);
3393 struct s1 {int (*f) (int a);};
3394 struct s2 {int (*f) (double a);};
3395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3401 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3409 CC="$ac_save_CC $ac_arg"
3410 if ac_fn_c_try_compile "$LINENO"; then :
3411 ac_cv_prog_cc_c89=$ac_arg
3413 rm -f core conftest.err conftest.$ac_objext
3414 test "x$ac_cv_prog_cc_c89" != "xno" && break
3416 rm -f conftest.$ac_ext
3421 case "x$ac_cv_prog_cc_c89" in
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3424 $as_echo "none needed" >&6; } ;;
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3427 $as_echo "unsupported" >&6; } ;;
3429 CC="$CC $ac_cv_prog_cc_c89"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3431 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3433 if test "x$ac_cv_prog_cc_c89" != xno; then :
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3445 $as_echo_n "checking for library containing strerror... " >&6; }
3446 if test "${ac_cv_search_strerror+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3449 ac_func_search_save_LIBS=$LIBS
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3453 /* Override any GCC internal prototype to avoid an error.
3454 Use char because int might match the return type of a GCC
3455 builtin and then its argument prototype would still apply. */
3468 for ac_lib in '' cposix; do
3469 if test -z "$ac_lib"; then
3470 ac_res="none required"
3473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3475 if ac_fn_c_try_link "$LINENO"; then :
3476 ac_cv_search_strerror=$ac_res
3478 rm -f core conftest.err conftest.$ac_objext \
3480 if test "${ac_cv_search_strerror+set}" = set; then :
3484 if test "${ac_cv_search_strerror+set}" = set; then :
3487 ac_cv_search_strerror=no
3490 LIBS=$ac_func_search_save_LIBS
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3493 $as_echo "$ac_cv_search_strerror" >&6; }
3494 ac_res=$ac_cv_search_strerror
3495 if test "$ac_res" != no; then :
3496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3501 am__api_version='1.11'
3503 # Find a good install program. We prefer a C program (faster),
3504 # so one script is as good as another. But avoid the broken or
3505 # incompatible versions:
3506 # SysV /etc/install, /usr/sbin/install
3507 # SunOS /usr/etc/install
3508 # IRIX /sbin/install
3510 # AmigaOS /C/install, which installs bootblocks on floppy discs
3511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3514 # OS/2's system install, which has a completely different semantic
3515 # ./install, which can be erroneously created by make from ./install.sh.
3516 # Reject install programs that cannot install multiple files.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3518 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3519 if test -z "$INSTALL"; then
3520 if test "${ac_cv_path_install+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 # Account for people who put trailing slashes in PATH elements.
3529 case $as_dir/ in #((
3530 ./ | .// | /[cC]/* | \
3531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3532 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3535 # OSF1 and SCO ODT 3.0 have their own names for install.
3536 # Don't use installbsd from OSF since it installs stuff as root
3538 for ac_prog in ginstall scoinst install; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3541 if test $ac_prog = install &&
3542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543 # AIX install. It has an incompatible calling convention.
3545 elif test $ac_prog = install &&
3546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547 # program-specific install script used by HP pwplus--don't use.
3550 rm -rf conftest.one conftest.two conftest.dir
3551 echo one > conftest.one
3552 echo two > conftest.two
3554 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3555 test -s conftest.one && test -s conftest.two &&
3556 test -s conftest.dir/conftest.one &&
3557 test -s conftest.dir/conftest.two
3559 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3572 rm -rf conftest.one conftest.two conftest.dir
3575 if test "${ac_cv_path_install+set}" = set; then
3576 INSTALL=$ac_cv_path_install
3578 # As a last resort, use the slow shell script. Don't cache a
3579 # value for INSTALL within a source directory, because that will
3580 # break other packages using the cache if that directory is
3581 # removed, or if the value is a relative name.
3582 INSTALL=$ac_install_sh
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3586 $as_echo "$INSTALL" >&6; }
3588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589 # It thinks the first close brace ends the variable substitution.
3590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3597 $as_echo_n "checking whether build environment is sane... " >&6; }
3600 echo timestamp > conftest.file
3601 # Reject unsafe characters in $srcdir or the absolute working directory
3602 # name. Accept space and tab only in the latter.
3606 *[\\\"\#\$\&\'\`$am_lf]*)
3607 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3610 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3611 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3614 # Do `set' in a subshell so we don't clobber the current shell's
3615 # arguments. Must try -L first in case configure is actually a
3616 # symlink; some systems play weird games with the mod time of symlinks
3617 # (eg FreeBSD returns the mod time of the symlink's containing
3620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3621 if test "$*" = "X"; then
3623 set X `ls -t "$srcdir/configure" conftest.file`
3626 if test "$*" != "X $srcdir/configure conftest.file" \
3627 && test "$*" != "X conftest.file $srcdir/configure"; then
3629 # If neither matched, then we have a broken ls. This can happen
3630 # if, for instance, CONFIG_SHELL is bash and it inherits a
3631 # broken ls alias from the environment. This has actually
3632 # happened. Such a system could not be considered "sane".
3633 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3634 alias in your environment" "$LINENO" 5
3637 test "$2" = conftest.file
3643 as_fn_error "newly created file is older than distributed files!
3644 Check your system clock" "$LINENO" 5
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3648 test "$program_prefix" != NONE &&
3649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3650 # Use a double $ so make ignores it.
3651 test "$program_suffix" != NONE &&
3652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3653 # Double any \ or $.
3654 # By default was `s,x,x', remove it if useless.
3655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3658 # expand $ac_aux_dir to an absolute path
3659 am_aux_dir=`cd $ac_aux_dir && pwd`
3661 if test x"${MISSING+set}" != xset; then
3664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3669 # Use eval to expand $SHELL
3670 if eval "$MISSING --run true"; then
3671 am_missing_run="$MISSING --run "
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3675 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3678 if test x"${install_sh}" != xset; then
3681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3683 install_sh="\${SHELL} $am_aux_dir/install-sh"
3687 # Installed binaries are usually stripped using `strip' when the user
3688 # run `make install-strip'. However `strip' might not be the right
3689 # tool to use in cross-compilation environments, therefore Automake
3690 # will honor the `STRIP' environment variable to overrule this program.
3691 if test "$cross_compiling" != no; then
3692 if test -n "$ac_tool_prefix"; then
3693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}strip; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_STRIP+set}" = set; then :
3698 $as_echo_n "(cached) " >&6
3700 if test -n "$STRIP"; then
3701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 STRIP=$ac_cv_prog_STRIP
3721 if test -n "$STRIP"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3723 $as_echo "$STRIP" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3731 if test -z "$ac_cv_prog_STRIP"; then
3733 # Extract the first word of "strip", so it can be a program name with args.
3734 set dummy strip; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3738 $as_echo_n "(cached) " >&6
3740 if test -n "$ac_ct_STRIP"; then
3741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750 ac_cv_prog_ac_ct_STRIP="strip"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761 if test -n "$ac_ct_STRIP"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3763 $as_echo "$ac_ct_STRIP" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3769 if test "x$ac_ct_STRIP" = x; then
3772 case $cross_compiling:$ac_tool_warned in
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3781 STRIP="$ac_cv_prog_STRIP"
3785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3789 if test -z "$MKDIR_P"; then
3790 if test "${ac_cv_path_mkdir+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in mkdir gmkdir; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3802 'mkdir (GNU coreutils) '* | \
3803 'mkdir (coreutils) '* | \
3804 'mkdir (fileutils) '4.1*)
3805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3815 if test "${ac_cv_path_mkdir+set}" = set; then
3816 MKDIR_P="$ac_cv_path_mkdir -p"
3818 # As a last resort, use the slow shell script. Don't cache a
3819 # value for MKDIR_P within a source directory, because that will
3820 # break other packages using the cache if that directory is
3821 # removed, or if the value is a relative name.
3822 test -d ./--version && rmdir ./--version
3823 MKDIR_P="$ac_install_sh -d"
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3827 $as_echo "$MKDIR_P" >&6; }
3831 [\\/$]* | ?:[\\/]*) ;;
3832 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3835 for ac_prog in gawk mawk nawk awk
3837 # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_AWK+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3844 if test -n "$AWK"; then
3845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_AWK="$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 if test -n "$AWK"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3867 $as_echo "$AWK" >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3874 test -n "$AWK" && break
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3881 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3882 $as_echo_n "(cached) " >&6
3884 cat >conftest.make <<\_ACEOF
3887 @echo '@@@%%%=$(MAKE)=@@@%%%'
3889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3892 eval ac_cv_prog_make_${ac_make}_set=yes;;
3894 eval ac_cv_prog_make_${ac_make}_set=no;;
3898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905 SET_MAKE="MAKE=${MAKE-make}"
3908 rm -rf .tst 2>/dev/null
3909 mkdir .tst 2>/dev/null
3910 if test -d .tst; then
3915 rmdir .tst 2>/dev/null
3917 DEPDIR="${am__leading_dot}deps"
3919 ac_config_commands="$ac_config_commands depfiles"
3922 am_make=${MAKE-make}
3923 cat > confinc << 'END'
3925 @echo this is the am__doit target
3928 # If we don't find an include directive, just comment out the code.
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3930 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3934 # First try GNU make style include.
3935 echo "include confinc" > confmf
3936 # Ignore all kinds of additional output from `make'.
3937 case `$am_make -s -f confmf 2> /dev/null` in #(
3938 *the\ am__doit\ target*)
3944 # Now try BSD make style include.
3945 if test "$am__include" = "#"; then
3946 echo '.include "confinc"' > confmf
3947 case `$am_make -s -f confmf 2> /dev/null` in #(
3948 *the\ am__doit\ target*)
3949 am__include=.include
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3958 $as_echo "$_am_result" >&6; }
3959 rm -f confinc confmf
3961 # Check whether --enable-dependency-tracking was given.
3962 if test "${enable_dependency_tracking+set}" = set; then :
3963 enableval=$enable_dependency_tracking;
3966 if test "x$enable_dependency_tracking" != xno; then
3967 am_depcomp="$ac_aux_dir/depcomp"
3971 if test "x$enable_dependency_tracking" != xno; then
3980 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3982 # is not polluted with repeated "-I."
3983 am__isrc=' -I$(srcdir)'
3984 # test to see if srcdir already configured
3985 if test -f $srcdir/config.status; then
3986 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3990 # test whether we have cygpath
3991 if test -z "$CYGPATH_W"; then
3992 if (cygpath --version) >/dev/null 2>/dev/null; then
3993 CYGPATH_W='cygpath -w'
4000 # Define the identity of the package.
4005 cat >>confdefs.h <<_ACEOF
4006 #define PACKAGE "$PACKAGE"
4010 cat >>confdefs.h <<_ACEOF
4011 #define VERSION "$VERSION"
4014 # Some tools Automake needs.
4016 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4019 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4022 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4025 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4028 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4030 # We need awk for the "check" target. The system "awk" is bad on
4032 # Always define AMTAR for backward compatibility. Yes, it's still used
4033 # in the wild :-( We should find a proper way to deprecate it ...
4036 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4041 depcc="$CC" am_compiler_list=
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044 $as_echo_n "checking dependency style of $depcc... " >&6; }
4045 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4150 am_cv_CC_dependencies_compiler_type=none
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4162 am__fastdepCC_FALSE='#'
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4171 if test -n "$ac_tool_prefix"; then
4172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4173 set dummy ${ac_tool_prefix}ar; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_AR+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4179 if test -n "$AR"; then
4180 ac_cv_prog_AR="$AR" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189 ac_cv_prog_AR="${ac_tool_prefix}ar"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 if test -n "$AR"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4202 $as_echo "$AR" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4210 if test -z "$ac_cv_prog_AR"; then
4212 # Extract the first word of "ar", so it can be a program name with args.
4213 set dummy ar; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4219 if test -n "$ac_ct_AR"; then
4220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_ac_ct_AR="ar"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4240 if test -n "$ac_ct_AR"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4242 $as_echo "$ac_ct_AR" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4248 if test "x$ac_ct_AR" = x; then
4251 case $cross_compiling:$ac_tool_warned in
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 if test -n "$RANLIB"; then
4272 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 RANLIB=$ac_cv_prog_RANLIB
4292 if test -n "$RANLIB"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4294 $as_echo "$RANLIB" >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4302 if test -z "$ac_cv_prog_RANLIB"; then
4303 ac_ct_RANLIB=$RANLIB
4304 # Extract the first word of "ranlib", so it can be a program name with args.
4305 set dummy ranlib; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4311 if test -n "$ac_ct_RANLIB"; then
4312 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_RANLIB="ranlib"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4332 if test -n "$ac_ct_RANLIB"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4334 $as_echo "$ac_ct_RANLIB" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4340 if test "x$ac_ct_RANLIB" = x; then
4343 case $cross_compiling:$ac_tool_warned in
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347 ac_tool_warned=yes ;;
4349 RANLIB=$ac_ct_RANLIB
4352 RANLIB="$ac_cv_prog_RANLIB"
4356 # Check whether --enable-shared was given.
4357 if test "${enable_shared+set}" = set; then :
4358 enableval=$enable_shared; p=${PACKAGE-default}
4360 yes) enable_shared=yes ;;
4361 no) enable_shared=no ;;
4364 # Look at the argument we got. We use all the common list separators.
4365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4366 for pkg in $enableval; do
4368 if test "X$pkg" = "X$p"; then
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CC+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4432 if test -z "$ac_cv_prog_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435 set dummy gcc; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4441 if test -n "$ac_ct_CC"; then
4442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451 ac_cv_prog_ac_ct_CC="gcc"
4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4464 $as_echo "$ac_ct_CC" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4470 if test "x$ac_ct_CC" = x; then
4473 case $cross_compiling:$ac_tool_warned in
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4485 if test -z "$CC"; then
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4488 set dummy ${ac_tool_prefix}cc; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if test "${ac_cv_prog_CC+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4494 if test -n "$CC"; then
4495 ac_cv_prog_CC="$CC" # Let the user override the test.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_CC="${ac_tool_prefix}cc"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 if test -n "$CC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517 $as_echo "$CC" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4526 if test -z "$CC"; then
4527 # Extract the first word of "cc", so it can be a program name with args.
4528 set dummy cc; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4546 ac_prog_rejected=yes
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 if test $ac_prog_rejected = yes; then
4558 # We found a bogon in the path, so make sure we never use it.
4559 set dummy $ac_cv_prog_CC
4561 if test $# != 0; then
4562 # We chose a different compiler from the bogus one.
4563 # However, it has the same basename, so the bogon will be chosen
4564 # first if we set CC to just the basename; use the full file name.
4566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4582 if test -z "$CC"; then
4583 if test -n "$ac_tool_prefix"; then
4584 for ac_prog in cl.exe
4586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if test "${ac_cv_prog_CC+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4593 if test -n "$CC"; then
4594 ac_cv_prog_CC="$CC" # Let the user override the test.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test -n "$CC"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4616 $as_echo "$CC" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4623 test -n "$CC" && break
4626 if test -z "$CC"; then
4628 for ac_prog in cl.exe
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$ac_ct_CC"; then
4638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_ac_ct_CC="$ac_prog"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4658 if test -n "$ac_ct_CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660 $as_echo "$ac_ct_CC" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4667 test -n "$ac_ct_CC" && break
4670 if test "x$ac_ct_CC" = x; then
4673 case $cross_compiling:$ac_tool_warned in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4686 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error "no acceptable C compiler found in \$PATH
4689 See \`config.log' for more details." "$LINENO" 5; }
4691 # Provide some information about the compiler.
4692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4695 for ac_option in --version -v -V -qversion; do
4696 { { ac_try="$ac_compiler $ac_option >&5"
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705 if test -s conftest.err; then
4707 ... rest of stderr output deleted ...
4708 10q' conftest.err >conftest.er1
4709 cat conftest.er1 >&5
4710 rm -f conftest.er1 conftest.err
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4718 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4735 if ac_fn_c_try_compile "$LINENO"; then :
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4746 if test $ac_compiler_gnu = yes; then
4751 ac_test_CFLAGS=${CFLAGS+set}
4752 ac_save_CFLAGS=$CFLAGS
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4755 if test "${ac_cv_prog_cc_g+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 ac_save_c_werror_flag=$ac_c_werror_flag
4759 ac_c_werror_flag=yes
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4773 if ac_fn_c_try_compile "$LINENO"; then :
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4788 if ac_fn_c_try_compile "$LINENO"; then :
4791 ac_c_werror_flag=$ac_save_c_werror_flag
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4804 if ac_fn_c_try_compile "$LINENO"; then :
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 ac_c_werror_flag=$ac_save_c_werror_flag
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4815 $as_echo "$ac_cv_prog_cc_g" >&6; }
4816 if test "$ac_test_CFLAGS" = set; then
4817 CFLAGS=$ac_save_CFLAGS
4818 elif test $ac_cv_prog_cc_g = yes; then
4819 if test "$GCC" = yes; then
4825 if test "$GCC" = yes; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4833 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4836 ac_cv_prog_cc_c89=no
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4842 #include <sys/types.h>
4843 #include <sys/stat.h>
4844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4845 struct buf { int x; };
4846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847 static char *e (p, i)
4853 static char *f (char * (*g) (char **, int), char **p, ...)
4858 s = g (p, va_arg (v,int));
4863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4864 function prototypes and stuff, but not '\xHH' hex character constants.
4865 These don't provoke an error unfortunately, instead are silently treated
4866 as 'x'. The following induces an error, until -std is added to get
4867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4868 array size at least. It's necessary to write '\x00'==0 to get something
4869 that's true only with -std. */
4870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873 inside strings and character constants. */
4875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4877 int test (int i, double x);
4878 struct s1 {int (*f) (int a);};
4879 struct s2 {int (*f) (double a);};
4880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4894 CC="$ac_save_CC $ac_arg"
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_prog_cc_c89=$ac_arg
4898 rm -f core conftest.err conftest.$ac_objext
4899 test "x$ac_cv_prog_cc_c89" != "xno" && break
4901 rm -f conftest.$ac_ext
4906 case "x$ac_cv_prog_cc_c89" in
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909 $as_echo "none needed" >&6; } ;;
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912 $as_echo "unsupported" >&6; } ;;
4914 CC="$CC $ac_cv_prog_cc_c89"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4918 if test "x$ac_cv_prog_cc_c89" != xno; then :
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4934 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4935 # On Suns, sometimes $CPP names a directory.
4936 if test -n "$CPP" && test -d "$CPP"; then
4939 if test -z "$CPP"; then
4940 if test "${ac_cv_prog_CPP+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4943 # Double quotes because CPP needs to be expanded
4944 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4947 for ac_c_preproc_warn_flag in '' yes
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4958 # include <limits.h>
4960 # include <assert.h>
4964 if ac_fn_c_try_cpp "$LINENO"; then :
4967 # Broken: fails on valid input.
4970 rm -f conftest.err conftest.$ac_ext
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4979 # Broken: success on invalid input.
4982 # Passes both tests.
4986 rm -f conftest.err conftest.$ac_ext
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then :
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5004 $as_echo "$CPP" >&6; }
5006 for ac_c_preproc_warn_flag in '' yes
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5017 # include <limits.h>
5019 # include <assert.h>
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5026 # Broken: fails on valid input.
5029 rm -f conftest.err conftest.$ac_ext
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <ac_nonexistent.h>
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5038 # Broken: success on invalid input.
5041 # Passes both tests.
5045 rm -f conftest.err conftest.$ac_ext
5048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049 rm -f conftest.err conftest.$ac_ext
5050 if $ac_preproc_ok; then :
5053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5056 See \`config.log' for more details." "$LINENO" 5; }
5060 ac_cpp='$CPP $CPPFLAGS'
5061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5067 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5068 if test "${ac_cv_path_GREP+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5071 if test -z "$GREP"; then
5072 ac_path_GREP_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in grep ggrep; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5083 # Check for GNU ac_path_GREP and select it if it is found.
5084 # Check for GNU $ac_path_GREP
5085 case `"$ac_path_GREP" --version 2>&1` in
5087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5090 $as_echo_n 0123456789 >"conftest.in"
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'GREP' >> "conftest.nl"
5097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_GREP="$ac_path_GREP"
5103 ac_path_GREP_max=$ac_count
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 $ac_path_GREP_found && break 3
5116 if test -z "$ac_cv_path_GREP"; then
5117 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5120 ac_cv_path_GREP=$GREP
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5125 $as_echo "$ac_cv_path_GREP" >&6; }
5126 GREP="$ac_cv_path_GREP"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5130 $as_echo_n "checking for egrep... " >&6; }
5131 if test "${ac_cv_path_EGREP+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5134 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5135 then ac_cv_path_EGREP="$GREP -E"
5137 if test -z "$EGREP"; then
5138 ac_path_EGREP_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144 test -z "$as_dir" && as_dir=.
5145 for ac_prog in egrep; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5148 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5149 # Check for GNU ac_path_EGREP and select it if it is found.
5150 # Check for GNU $ac_path_EGREP
5151 case `"$ac_path_EGREP" --version 2>&1` in
5153 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5156 $as_echo_n 0123456789 >"conftest.in"
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 $as_echo 'EGREP' >> "conftest.nl"
5163 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_EGREP="$ac_path_EGREP"
5169 ac_path_EGREP_max=$ac_count
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 $ac_path_EGREP_found && break 3
5182 if test -z "$ac_cv_path_EGREP"; then
5183 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 ac_cv_path_EGREP=$EGREP
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5192 $as_echo "$ac_cv_path_EGREP" >&6; }
5193 EGREP="$ac_cv_path_EGREP"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5197 $as_echo_n "checking for ANSI C header files... " >&6; }
5198 if test "${ac_cv_header_stdc+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5216 if ac_fn_c_try_compile "$LINENO"; then :
5217 ac_cv_header_stdc=yes
5219 ac_cv_header_stdc=no
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 if test $ac_cv_header_stdc = yes; then
5224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5231 $EGREP "memchr" >/dev/null 2>&1; then :
5234 ac_cv_header_stdc=no
5240 if test $ac_cv_header_stdc = yes; then
5241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248 $EGREP "free" >/dev/null 2>&1; then :
5251 ac_cv_header_stdc=no
5257 if test $ac_cv_header_stdc = yes; then
5258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5259 if test "$cross_compiling" = yes; then :
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 #if ((' ' & 0x0FF) == 0x020)
5267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5270 # define ISLOWER(c) \
5271 (('a' <= (c) && (c) <= 'i') \
5272 || ('j' <= (c) && (c) <= 'r') \
5273 || ('s' <= (c) && (c) <= 'z'))
5274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5282 for (i = 0; i < 256; i++)
5283 if (XOR (islower (i), ISLOWER (i))
5284 || toupper (i) != TOUPPER (i))
5289 if ac_fn_c_try_run "$LINENO"; then :
5292 ac_cv_header_stdc=no
5294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5295 conftest.$ac_objext conftest.beam conftest.$ac_ext
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5301 $as_echo "$ac_cv_header_stdc" >&6; }
5302 if test $ac_cv_header_stdc = yes; then
5304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5310 inttypes.h stdint.h unistd.h
5312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5315 eval as_val=\$$as_ac_Header
5316 if test "x$as_val" = x""yes; then :
5317 cat >>confdefs.h <<_ACEOF
5318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5327 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5328 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5335 if test "$MINIX" = yes; then
5337 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5340 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5343 $as_echo "#define _MINIX 1" >>confdefs.h
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5350 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5356 # define __EXTENSIONS__ 1
5357 $ac_includes_default
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_safe_to_define___extensions__=yes
5369 ac_cv_safe_to_define___extensions__=no
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5375 test $ac_cv_safe_to_define___extensions__ = yes &&
5376 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5378 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5382 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5384 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5398 macro_version='2.2.7a'
5399 macro_revision='1.3134'
5413 ltmain="$ac_aux_dir/ltmain.sh"
5415 # Backslashify metacharacters that are still active within
5416 # double-quoted strings.
5417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5419 # Same as above, but do not quote variable references.
5420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5422 # Sed substitution to delay expansion of an escaped shell variable in a
5423 # double_quote_subst'ed string.
5424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5426 # Sed substitution to delay expansion of an escaped single quote.
5427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5429 # Sed substitution to avoid accidental globbing in evaled expressions
5430 no_glob_subst='s/\*/\\\*/g'
5432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5437 $as_echo_n "checking how to print strings... " >&6; }
5438 # Test print first, because it will be a builtin if present.
5439 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5445 # Use this function as a fallback that always works.
5446 func_fallback_echo ()
5448 eval 'cat <<_LTECHO_EOF
5452 ECHO='func_fallback_echo'
5455 # func_echo_all arg...
5456 # Invoke $ECHO with all args, space-separated.
5463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5464 $as_echo "printf" >&6; } ;;
5465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5466 $as_echo "print -r" >&6; } ;;
5467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5468 $as_echo "cat" >&6; } ;;
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5485 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5486 if test "${ac_cv_path_SED+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490 for ac_i in 1 2 3 4 5 6 7; do
5491 ac_script="$ac_script$as_nl$ac_script"
5493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5494 { ac_script=; unset ac_script;}
5495 if test -z "$SED"; then
5496 ac_path_SED_found=false
5497 # Loop through the user's path and test for each of PROGNAME-LIST
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir=.
5503 for ac_prog in sed gsed; do
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5506 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5507 # Check for GNU ac_path_SED and select it if it is found.
5508 # Check for GNU $ac_path_SED
5509 case `"$ac_path_SED" --version 2>&1` in
5511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5514 $as_echo_n 0123456789 >"conftest.in"
5517 cat "conftest.in" "conftest.in" >"conftest.tmp"
5518 mv "conftest.tmp" "conftest.in"
5519 cp "conftest.in" "conftest.nl"
5520 $as_echo '' >> "conftest.nl"
5521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523 as_fn_arith $ac_count + 1 && ac_count=$as_val
5524 if test $ac_count -gt ${ac_path_SED_max-0}; then
5525 # Best one so far, save it but keep looking for a better one
5526 ac_cv_path_SED="$ac_path_SED"
5527 ac_path_SED_max=$ac_count
5529 # 10*(2^10) chars as input seems more than enough
5530 test $ac_count -gt 10 && break
5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535 $ac_path_SED_found && break 3
5540 if test -z "$ac_cv_path_SED"; then
5541 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5549 $as_echo "$ac_cv_path_SED" >&6; }
5550 SED="$ac_cv_path_SED"
5553 test -z "$SED" && SED=sed
5554 Xsed="$SED -e 1s/^X//"
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5567 $as_echo_n "checking for fgrep... " >&6; }
5568 if test "${ac_cv_path_FGREP+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5572 then ac_cv_path_FGREP="$GREP -F"
5574 if test -z "$FGREP"; then
5575 ac_path_FGREP_found=false
5576 # Loop through the user's path and test for each of PROGNAME-LIST
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5581 test -z "$as_dir" && as_dir=.
5582 for ac_prog in fgrep; do
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5585 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5586 # Check for GNU ac_path_FGREP and select it if it is found.
5587 # Check for GNU $ac_path_FGREP
5588 case `"$ac_path_FGREP" --version 2>&1` in
5590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5593 $as_echo_n 0123456789 >"conftest.in"
5596 cat "conftest.in" "conftest.in" >"conftest.tmp"
5597 mv "conftest.tmp" "conftest.in"
5598 cp "conftest.in" "conftest.nl"
5599 $as_echo 'FGREP' >> "conftest.nl"
5600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602 as_fn_arith $ac_count + 1 && ac_count=$as_val
5603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5604 # Best one so far, save it but keep looking for a better one
5605 ac_cv_path_FGREP="$ac_path_FGREP"
5606 ac_path_FGREP_max=$ac_count
5608 # 10*(2^10) chars as input seems more than enough
5609 test $ac_count -gt 10 && break
5611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5614 $ac_path_FGREP_found && break 3
5619 if test -z "$ac_cv_path_FGREP"; then
5620 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5623 ac_cv_path_FGREP=$FGREP
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5629 $as_echo "$ac_cv_path_FGREP" >&6; }
5630 FGREP="$ac_cv_path_FGREP"
5633 test -z "$GREP" && GREP=grep
5653 # Check whether --with-gnu-ld was given.
5654 if test "${with_gnu_ld+set}" = set; then :
5655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5661 if test "$GCC" = yes; then
5662 # Check if gcc -print-prog-name=ld gives a path.
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5664 $as_echo_n "checking for ld used by $CC... " >&6; }
5667 # gcc leaves a trailing carriage return which upsets mingw
5668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5673 # Accept absolute paths.
5675 re_direlt='/[^/][^/]*/\.\./'
5676 # Canonicalize the pathname of ld
5677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5681 test -z "$LD" && LD="$ac_prog"
5684 # If it fails, then pretend we aren't using GCC.
5688 # If it is relative, then search for the first ld in PATH.
5692 elif test "$with_gnu_ld" = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5694 $as_echo_n "checking for GNU ld... " >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5697 $as_echo_n "checking for non-GNU ld... " >&6; }
5699 if test "${lt_cv_path_LD+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -z "$LD"; then
5703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5704 for ac_dir in $PATH; do
5706 test -z "$ac_dir" && ac_dir=.
5707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5708 lt_cv_path_LD="$ac_dir/$ac_prog"
5709 # Check to see if the program is GNU ld. I'd rather use --version,
5710 # but apparently some variants of GNU ld only accept -v.
5711 # Break only if it was the GNU/non-GNU ld that we prefer.
5712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5713 *GNU* | *'with BFD'*)
5714 test "$with_gnu_ld" != no && break
5717 test "$with_gnu_ld" != yes && break
5724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5729 if test -n "$LD"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5731 $as_echo "$LD" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5736 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5739 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5743 case `$LD -v 2>&1 </dev/null` in
5744 *GNU* | *'with BFD'*)
5745 lt_cv_prog_gnu_ld=yes
5748 lt_cv_prog_gnu_ld=no
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5754 with_gnu_ld=$lt_cv_prog_gnu_ld
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5765 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5766 if test "${lt_cv_path_NM+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5769 if test -n "$NM"; then
5770 # Let the user override the test.
5773 lt_nm_to_check="${ac_tool_prefix}nm"
5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775 lt_nm_to_check="$lt_nm_to_check nm"
5777 for lt_tmp_nm in $lt_nm_to_check; do
5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5781 test -z "$ac_dir" && ac_dir=.
5782 tmp_nm="$ac_dir/$lt_tmp_nm"
5783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784 # Check to see if the nm accepts a BSD-compat flag.
5785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786 # nm: unknown option "B" ignored
5787 # Tru64's nm complains that /dev/null is an invalid object file
5788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789 */dev/null* | *'Invalid file or object type'*)
5790 lt_cv_path_NM="$tmp_nm -B"
5794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5796 lt_cv_path_NM="$tmp_nm -p"
5800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801 continue # so that we can try to find one that supports BSD flags
5810 : ${lt_cv_path_NM=no}
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5814 $as_echo "$lt_cv_path_NM" >&6; }
5815 if test "$lt_cv_path_NM" != "no"; then
5818 # Didn't find any BSD compatible name lister, look for dumpbin.
5819 if test -n "$DUMPBIN"; then :
5820 # Let the user override the test.
5822 if test -n "$ac_tool_prefix"; then
5823 for ac_prog in dumpbin "link -dump"
5825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 if test -n "$DUMPBIN"; then
5833 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 DUMPBIN=$ac_cv_prog_DUMPBIN
5853 if test -n "$DUMPBIN"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5855 $as_echo "$DUMPBIN" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5862 test -n "$DUMPBIN" && break
5865 if test -z "$DUMPBIN"; then
5866 ac_ct_DUMPBIN=$DUMPBIN
5867 for ac_prog in dumpbin "link -dump"
5869 # Extract the first word of "$ac_prog", so it can be a program name with args.
5870 set dummy $ac_prog; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5876 if test -n "$ac_ct_DUMPBIN"; then
5877 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5897 if test -n "$ac_ct_DUMPBIN"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5899 $as_echo "$ac_ct_DUMPBIN" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5906 test -n "$ac_ct_DUMPBIN" && break
5909 if test "x$ac_ct_DUMPBIN" = x; then
5912 case $cross_compiling:$ac_tool_warned in
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5918 DUMPBIN=$ac_ct_DUMPBIN
5922 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5924 DUMPBIN="$DUMPBIN -symbols"
5932 if test "$DUMPBIN" != ":"; then
5936 test -z "$NM" && NM=nm
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5944 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5945 if test "${lt_cv_nm_interface+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 lt_cv_nm_interface="BSD nm"
5949 echo "int some_variable = 0;" > conftest.$ac_ext
5950 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5951 (eval "$ac_compile" 2>conftest.err)
5952 cat conftest.err >&5
5953 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5954 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5955 cat conftest.err >&5
5956 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5957 cat conftest.out >&5
5958 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5959 lt_cv_nm_interface="MS dumpbin"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5964 $as_echo "$lt_cv_nm_interface" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5967 $as_echo_n "checking whether ln -s works... " >&6; }
5969 if test "$LN_S" = "ln -s"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5971 $as_echo "yes" >&6; }
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5974 $as_echo "no, using $LN_S" >&6; }
5977 # find the maximum length of command line arguments
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5988 # On DJGPP, this test can blow up pretty badly due to problems in libc
5989 # (any single argument exceeding 2000 bytes causes a buffer overrun
5990 # during glob expansion). Even if it were fixed, the result of this
5991 # check would be larger than it should be.
5992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5996 # Under GNU Hurd, this test is not required because there is
5997 # no limit to the length of command line arguments.
5998 # Libtool will interpret -1 as no limit whatsoever
5999 lt_cv_sys_max_cmd_len=-1;
6002 cygwin* | mingw* | cegcc*)
6003 # On Win9x/ME, this test blows up -- it succeeds, but takes
6004 # about 5 minutes as the teststring grows exponentially.
6005 # Worse, since 9x/ME are not pre-emptively multitasking,
6006 # you end up with a "frozen" computer, even though with patience
6007 # the test eventually succeeds (with a max line length of 256k).
6008 # Instead, let's just punt: use the minimum linelength reported by
6009 # all of the supported platforms: 8192 (on NT/2K/XP).
6010 lt_cv_sys_max_cmd_len=8192;
6014 # On MiNT this can take a long time and run out of memory.
6015 lt_cv_sys_max_cmd_len=8192;
6019 # On AmigaOS with pdksh, this test takes hours, literally.
6020 # So we just punt and use a minimum line length of 8192.
6021 lt_cv_sys_max_cmd_len=8192;
6024 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6025 # This has been around since 386BSD, at least. Likely further.
6026 if test -x /sbin/sysctl; then
6027 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6028 elif test -x /usr/sbin/sysctl; then
6029 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6031 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6033 # And add a safety zone
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6039 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6040 lt_cv_sys_max_cmd_len=196608
6044 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6045 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6046 # nice to cause kernel panics so lets avoid the loop below.
6047 # First set a reasonable default.
6048 lt_cv_sys_max_cmd_len=16384
6050 if test -x /sbin/sysconfig; then
6051 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6052 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6057 lt_cv_sys_max_cmd_len=102400
6059 sysv5* | sco5v6* | sysv4.2uw2*)
6060 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6061 if test -n "$kargmax"; then
6062 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6064 lt_cv_sys_max_cmd_len=32768
6068 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6069 if test -n "$lt_cv_sys_max_cmd_len"; then
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073 # Make teststring a little bigger before we do anything with it.
6074 # a 1K string should be a reasonable start.
6075 for i in 1 2 3 4 5 6 7 8 ; do
6076 teststring=$teststring$teststring
6078 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6079 # If test is not a shell built-in, we'll probably end up computing a
6080 # maximum length that is only half of the actual maximum length, but
6082 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6083 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6084 test $i != 17 # 1/2 MB should be enough
6087 teststring=$teststring$teststring
6089 # Only check the string length outside the loop.
6090 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6092 # Add a significant safety factor because C++ compilers can tack on
6093 # massive amounts of additional arguments before passing them to the
6094 # linker. It appears as though 1/2 is a usable value.
6095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6102 if test -n $lt_cv_sys_max_cmd_len ; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6104 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6107 $as_echo "none" >&6; }
6109 max_cmd_len=$lt_cv_sys_max_cmd_len
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6121 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6122 # Try some XSI features
6125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6127 && eval 'test $(( 1 + 1 )) -eq 2 \
6128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6131 $as_echo "$xsi_shell" >&6; }
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6135 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6137 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6139 && lt_shell_append=yes
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6141 $as_echo "$lt_shell_append" >&6; }
6144 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6154 # test EBCDIC or ASCII
6155 case `echo X|tr X '\101'` in
6156 A) # ASCII based system
6157 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6158 lt_SP2NL='tr \040 \012'
6159 lt_NL2SP='tr \015\012 \040\040'
6161 *) # EBCDIC based system
6162 lt_SP2NL='tr \100 \n'
6163 lt_NL2SP='tr \r\n \100\100'
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6177 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 lt_cv_ld_reload_flag='-r'
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6184 reload_flag=$lt_cv_ld_reload_flag
6185 case $reload_flag in
6187 *) reload_flag=" $reload_flag" ;;
6189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6192 if test "$GCC" = yes; then
6193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$OBJDUMP"; then
6217 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 OBJDUMP=$ac_cv_prog_OBJDUMP
6237 if test -n "$OBJDUMP"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6239 $as_echo "$OBJDUMP" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6247 if test -z "$ac_cv_prog_OBJDUMP"; then
6248 ac_ct_OBJDUMP=$OBJDUMP
6249 # Extract the first word of "objdump", so it can be a program name with args.
6250 set dummy objdump; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6256 if test -n "$ac_ct_OBJDUMP"; then
6257 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6277 if test -n "$ac_ct_OBJDUMP"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6279 $as_echo "$ac_ct_OBJDUMP" >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6285 if test "x$ac_ct_OBJDUMP" = x; then
6288 case $cross_compiling:$ac_tool_warned in
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6294 OBJDUMP=$ac_ct_OBJDUMP
6297 OBJDUMP="$ac_cv_prog_OBJDUMP"
6300 test -z "$OBJDUMP" && OBJDUMP=objdump
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6311 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6312 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6315 lt_cv_file_magic_cmd='$MAGIC_CMD'
6316 lt_cv_file_magic_test_file=
6317 lt_cv_deplibs_check_method='unknown'
6318 # Need to set the preceding variable on all platforms that support
6319 # interlibrary dependencies.
6320 # 'none' -- dependencies not supported.
6321 # `unknown' -- same as none, but documents that we really don't know.
6322 # 'pass_all' -- all dependencies passed with no checks.
6323 # 'test_compile' -- check by making test program.
6324 # 'file_magic [[regex]]' -- check by looking for files in library path
6325 # which responds to the $file_magic_cmd with a given extended regex.
6326 # If you have `file' or equivalent on your system and you're not sure
6327 # whether `pass_all' will *always* work, you probably want this one.
6331 lt_cv_deplibs_check_method=pass_all
6335 lt_cv_deplibs_check_method=pass_all
6339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6340 lt_cv_file_magic_cmd='/usr/bin/file -L'
6341 lt_cv_file_magic_test_file=/shlib/libc.so
6345 # func_win32_libid is a shell function defined in ltmain.sh
6346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6347 lt_cv_file_magic_cmd='func_win32_libid'
6351 # Base MSYS/MinGW do not provide the 'file' command needed by
6352 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6353 # unless we find 'file', for example because we are cross-compiling.
6354 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6355 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6356 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357 lt_cv_file_magic_cmd='func_win32_libid'
6359 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6360 lt_cv_file_magic_cmd='$OBJDUMP -f'
6365 # use the weaker test based on 'objdump'. See mingw*.
6366 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6367 lt_cv_file_magic_cmd='$OBJDUMP -f'
6370 darwin* | rhapsody*)
6371 lt_cv_deplibs_check_method=pass_all
6374 freebsd* | dragonfly*)
6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6378 # Not sure whether the presence of OpenBSD here was a mistake.
6379 # Let's accept both of them until this is cleared up.
6380 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6381 lt_cv_file_magic_cmd=/usr/bin/file
6382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6386 lt_cv_deplibs_check_method=pass_all
6391 lt_cv_deplibs_check_method=pass_all
6395 lt_cv_deplibs_check_method=pass_all
6398 hpux10.20* | hpux11*)
6399 lt_cv_file_magic_cmd=/usr/bin/file
6402 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6403 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6406 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]'
6407 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6411 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6417 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6421 irix5* | irix6* | nonstopux*)
6423 *-32|*"-32 ") libmagic=32-bit;;
6424 *-n32|*"-n32 ") libmagic=N32;;
6425 *-64|*"-64 ") libmagic=64-bit;;
6426 *) libmagic=never-match;;
6428 lt_cv_deplibs_check_method=pass_all
6431 # This must be Linux ELF.
6432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6433 lt_cv_deplibs_check_method=pass_all
6437 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6446 lt_cv_file_magic_cmd=/usr/bin/file
6447 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6451 lt_cv_deplibs_check_method=pass_all
6455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6462 osf3* | osf4* | osf5*)
6463 lt_cv_deplibs_check_method=pass_all
6467 lt_cv_deplibs_check_method=pass_all
6471 lt_cv_deplibs_check_method=pass_all
6474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6475 lt_cv_deplibs_check_method=pass_all
6479 case $host_vendor in
6481 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]'
6482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6485 lt_cv_deplibs_check_method=pass_all
6488 lt_cv_file_magic_cmd='/bin/file'
6489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6492 lt_cv_file_magic_cmd='/bin/file'
6493 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6494 lt_cv_file_magic_test_file=/lib/libc.so
6497 lt_cv_deplibs_check_method=pass_all
6500 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_deplibs_check_method=pass_all
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6513 file_magic_cmd=$lt_cv_file_magic_cmd
6514 deplibs_check_method=$lt_cv_deplibs_check_method
6515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}ar; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if test "${ac_cv_prog_AR+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6536 if test -n "$AR"; then
6537 ac_cv_prog_AR="$AR" # Let the user override the test.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_prog_AR="${ac_tool_prefix}ar"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 if test -n "$AR"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6559 $as_echo "$AR" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6567 if test -z "$ac_cv_prog_AR"; then
6569 # Extract the first word of "ar", so it can be a program name with args.
6570 set dummy ar; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$ac_ct_AR"; then
6577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_ac_ct_AR="ar"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597 if test -n "$ac_ct_AR"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6599 $as_echo "$ac_ct_AR" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6605 if test "x$ac_ct_AR" = x; then
6608 case $cross_compiling:$ac_tool_warned in
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612 ac_tool_warned=yes ;;
6620 test -z "$AR" && AR=ar
6621 test -z "$AR_FLAGS" && AR_FLAGS=cru
6633 if test -n "$ac_tool_prefix"; then
6634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}strip; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_STRIP+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6641 if test -n "$STRIP"; then
6642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 STRIP=$ac_cv_prog_STRIP
6662 if test -n "$STRIP"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664 $as_echo "$STRIP" >&6; }
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6672 if test -z "$ac_cv_prog_STRIP"; then
6674 # Extract the first word of "strip", so it can be a program name with args.
6675 set dummy strip; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6679 $as_echo_n "(cached) " >&6
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691 ac_cv_prog_ac_ct_STRIP="strip"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702 if test -n "$ac_ct_STRIP"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704 $as_echo "$ac_ct_STRIP" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6710 if test "x$ac_ct_STRIP" = x; then
6713 case $cross_compiling:$ac_tool_warned in
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6722 STRIP="$ac_cv_prog_STRIP"
6725 test -z "$STRIP" && STRIP=:
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$RANLIB"; then
6741 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 RANLIB=$ac_cv_prog_RANLIB
6761 if test -n "$RANLIB"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763 $as_echo "$RANLIB" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6771 if test -z "$ac_cv_prog_RANLIB"; then
6772 ac_ct_RANLIB=$RANLIB
6773 # Extract the first word of "ranlib", so it can be a program name with args.
6774 set dummy ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
6780 if test -n "$ac_ct_RANLIB"; then
6781 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_ac_ct_RANLIB="ranlib"
6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801 if test -n "$ac_ct_RANLIB"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803 $as_echo "$ac_ct_RANLIB" >&6; }
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$ac_ct_RANLIB" = x; then
6812 case $cross_compiling:$ac_tool_warned in
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6818 RANLIB=$ac_ct_RANLIB
6821 RANLIB="$ac_cv_prog_RANLIB"
6824 test -z "$RANLIB" && RANLIB=:
6831 # Determine commands to create old-style static archives.
6832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6833 old_postinstall_cmds='chmod 644 $oldlib'
6834 old_postuninstall_cmds=
6836 if test -n "$RANLIB"; then
6839 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6845 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6850 lock_old_archive_extraction=yes ;;
6852 lock_old_archive_extraction=no ;;
6893 # If no C compiler was specified, use CC.
6896 # If no C compiler flags were specified, use CFLAGS.
6897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6899 # Allow CC to be a program name with arguments.
6903 # Check for command to grab the raw symbol name followed by C symbol from nm.
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6905 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6910 # These are sane defaults that work on at least a few old systems.
6911 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6913 # Character class describing NM global symbol codes.
6914 symcode='[BCDEGRST]'
6916 # Regexp to match symbols that can be accessed directly from C.
6917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6919 # Define system-specific variables.
6924 cygwin* | mingw* | pw32* | cegcc*)
6925 symcode='[ABCDGISTW]'
6928 if test "$host_cpu" = ia64; then
6929 symcode='[ABCDEGRST]'
6933 symcode='[BCDEGRST]'
6936 symcode='[BCDEGQRST]'
6947 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6955 # If we're using GNU nm, then use its standard symbol codes.
6956 case `$NM -V 2>&1` in
6957 *GNU* | *'with BFD'*)
6958 symcode='[ABCDGIRSTW]' ;;
6961 # Transform an extracted symbol line into a proper C declaration.
6962 # Some systems (esp. on ia64) link data and code symbols differently,
6963 # so use this general approach.
6964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6966 # Transform an extracted symbol line into symbol name and symbol address
6967 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6968 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'"
6970 # Handle CRLF in mingw tool chain
6974 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6978 # Try without a prefix underscore, then with it.
6979 for ac_symprfx in "" "_"; do
6981 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982 symxfrm="\\1 $ac_symprfx\\2 \\2"
6984 # Write the raw and C identifiers.
6985 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986 # Fake it for dumpbin and say T for any non-static function
6987 # and D for any global variable.
6988 # Also find C++ and __fastcall symbols from MSVC++,
6989 # which start with @ or ?.
6990 lt_cv_sys_global_symbol_pipe="$AWK '"\
6991 " {last_section=section; section=\$ 3};"\
6992 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993 " \$ 0!~/External *\|/{next};"\
6994 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995 " {if(hide[section]) next};"\
6996 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000 " ' prfx=^$ac_symprfx"
7002 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7005 # Check to see that the pipe works correctly.
7009 cat > conftest.$ac_ext <<_LT_EOF
7014 void nm_test_func(void);
7015 void nm_test_func(void){}
7019 int main(){nm_test_var='a';nm_test_func();return(0);}
7022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7023 (eval $ac_compile) 2>&5
7025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026 test $ac_status = 0; }; then
7027 # Now try to grab the symbols.
7029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7030 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; } && test -s "$nlist"; then
7034 # Try sorting and uniquifying the output.
7035 if sort "$nlist" | uniq > "$nlist"T; then
7036 mv -f "$nlist"T "$nlist"
7041 # Make sure that we snagged all the symbols we need.
7042 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044 cat <<_LT_EOF > conftest.$ac_ext
7050 # Now generate the symbol file.
7051 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7053 cat <<_LT_EOF >> conftest.$ac_ext
7055 /* The mapping between symbol names and symbols. */
7060 lt__PROGRAM__LTX_preloaded_symbols[] =
7062 { "@PROGRAM@", (void *) 0 },
7064 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065 cat <<\_LT_EOF >> conftest.$ac_ext
7069 /* This works around a problem in FreeBSD linker */
7070 #ifdef FREEBSD_WORKAROUND
7071 static const void *lt_preloaded_setup() {
7072 return lt__PROGRAM__LTX_preloaded_symbols;
7080 # Now try linking the two files.
7081 mv conftest.$ac_objext conftstm.$ac_objext
7082 lt_save_LIBS="$LIBS"
7083 lt_save_CFLAGS="$CFLAGS"
7084 LIBS="conftstm.$ac_objext"
7085 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7087 (eval $ac_link) 2>&5
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7093 LIBS="$lt_save_LIBS"
7094 CFLAGS="$lt_save_CFLAGS"
7096 echo "cannot find nm_test_func in $nlist" >&5
7099 echo "cannot find nm_test_var in $nlist" >&5
7102 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7105 echo "$progname: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 rm -rf conftest* conftst*
7110 # Do not use the global_symbol_pipe unless it works.
7111 if test "$pipe_works" = yes; then
7114 lt_cv_sys_global_symbol_pipe=
7120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121 lt_cv_sys_global_symbol_to_cdecl=
7123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7125 $as_echo "failed" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7128 $as_echo "ok" >&6; }
7152 # Check whether --enable-libtool-lock was given.
7153 if test "${enable_libtool_lock+set}" = set; then :
7154 enableval=$enable_libtool_lock;
7157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7159 # Some flags need to be propagated to the compiler or linker for good
7163 # Find out which ABI we are using.
7164 echo 'int i;' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 case `/usr/bin/file conftest.$ac_objext` in
7182 # Find out which ABI we are using.
7183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185 (eval $ac_compile) 2>&5
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
7189 if test "$lt_cv_prog_gnu_ld" = yes; then
7190 case `/usr/bin/file conftest.$ac_objext` in
7192 LD="${LD-ld} -melf32bsmip"
7195 LD="${LD-ld} -melf32bmipn32"
7198 LD="${LD-ld} -melf64bmip"
7202 case `/usr/bin/file conftest.$ac_objext` in
7218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220 # Find out which ABI we are using.
7221 echo 'int i;' > conftest.$ac_ext
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223 (eval $ac_compile) 2>&5
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
7227 case `/usr/bin/file conftest.o` in
7230 x86_64-*kfreebsd*-gnu)
7231 LD="${LD-ld} -m elf_i386_fbsd"
7234 case `/usr/bin/file conftest.o` in
7236 LD="${LD-ld} -m elf32_x86_64"
7239 LD="${LD-ld} -m elf_i386"
7243 powerpc64le-*linux*)
7244 LD="${LD-ld} -m elf32lppclinux"
7247 LD="${LD-ld} -m elf32ppclinux"
7250 LD="${LD-ld} -m elf_s390"
7253 LD="${LD-ld} -m elf32_sparc"
7259 x86_64-*kfreebsd*-gnu)
7260 LD="${LD-ld} -m elf_x86_64_fbsd"
7263 LD="${LD-ld} -m elf_x86_64"
7266 LD="${LD-ld} -m elf64lppc"
7269 LD="${LD-ld} -m elf64ppc"
7271 s390*-*linux*|s390*-*tpf*)
7272 LD="${LD-ld} -m elf64_s390"
7275 LD="${LD-ld} -m elf64_sparc"
7285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7286 SAVE_CFLAGS="$CFLAGS"
7287 CFLAGS="$CFLAGS -belf"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7290 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7294 ac_cpp='$CPP $CPPFLAGS'
7295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7310 if ac_fn_c_try_link "$LINENO"; then :
7311 lt_cv_cc_needs_belf=yes
7313 lt_cv_cc_needs_belf=no
7315 rm -f core conftest.err conftest.$ac_objext \
7316 conftest$ac_exeext conftest.$ac_ext
7318 ac_cpp='$CPP $CPPFLAGS'
7319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7328 CFLAGS="$SAVE_CFLAGS"
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 case `/usr/bin/file conftest.o` in
7341 case $lt_cv_prog_gnu_ld in
7342 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7344 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7356 need_locks="$enable_libtool_lock"
7360 rhapsody* | darwin*)
7361 if test -n "$ac_tool_prefix"; then
7362 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7369 if test -n "$DSYMUTIL"; then
7370 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390 if test -n "$DSYMUTIL"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7392 $as_echo "$DSYMUTIL" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7400 if test -z "$ac_cv_prog_DSYMUTIL"; then
7401 ac_ct_DSYMUTIL=$DSYMUTIL
7402 # Extract the first word of "dsymutil", so it can be a program name with args.
7403 set dummy dsymutil; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7409 if test -n "$ac_ct_DSYMUTIL"; then
7410 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7432 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7438 if test "x$ac_ct_DSYMUTIL" = x; then
7441 case $cross_compiling:$ac_tool_warned in
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445 ac_tool_warned=yes ;;
7447 DSYMUTIL=$ac_ct_DSYMUTIL
7450 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7453 if test -n "$ac_tool_prefix"; then
7454 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7455 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
7461 if test -n "$NMEDIT"; then
7462 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 NMEDIT=$ac_cv_prog_NMEDIT
7482 if test -n "$NMEDIT"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7484 $as_echo "$NMEDIT" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7492 if test -z "$ac_cv_prog_NMEDIT"; then
7493 ac_ct_NMEDIT=$NMEDIT
7494 # Extract the first word of "nmedit", so it can be a program name with args.
7495 set dummy nmedit; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$ac_ct_NMEDIT"; then
7502 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7522 if test -n "$ac_ct_NMEDIT"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7524 $as_echo "$ac_ct_NMEDIT" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7530 if test "x$ac_ct_NMEDIT" = x; then
7533 case $cross_compiling:$ac_tool_warned in
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7539 NMEDIT=$ac_ct_NMEDIT
7542 NMEDIT="$ac_cv_prog_NMEDIT"
7545 if test -n "$ac_tool_prefix"; then
7546 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_LIPO+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7553 if test -n "$LIPO"; then
7554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 LIPO=$ac_cv_prog_LIPO
7574 if test -n "$LIPO"; then
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7576 $as_echo "$LIPO" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7584 if test -z "$ac_cv_prog_LIPO"; then
7586 # Extract the first word of "lipo", so it can be a program name with args.
7587 set dummy lipo; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7593 if test -n "$ac_ct_LIPO"; then
7594 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_ac_ct_LIPO="lipo"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614 if test -n "$ac_ct_LIPO"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7616 $as_echo "$ac_ct_LIPO" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7622 if test "x$ac_ct_LIPO" = x; then
7625 case $cross_compiling:$ac_tool_warned in
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7634 LIPO="$ac_cv_prog_LIPO"
7637 if test -n "$ac_tool_prefix"; then
7638 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7639 set dummy ${ac_tool_prefix}otool; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7645 if test -n "$OTOOL"; then
7646 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 OTOOL=$ac_cv_prog_OTOOL
7666 if test -n "$OTOOL"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7668 $as_echo "$OTOOL" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7676 if test -z "$ac_cv_prog_OTOOL"; then
7678 # Extract the first word of "otool", so it can be a program name with args.
7679 set dummy otool; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7685 if test -n "$ac_ct_OTOOL"; then
7686 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_ac_ct_OTOOL="otool"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7706 if test -n "$ac_ct_OTOOL"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7708 $as_echo "$ac_ct_OTOOL" >&6; }
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7714 if test "x$ac_ct_OTOOL" = x; then
7717 case $cross_compiling:$ac_tool_warned in
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7726 OTOOL="$ac_cv_prog_OTOOL"
7729 if test -n "$ac_tool_prefix"; then
7730 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
7737 if test -n "$OTOOL64"; then
7738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 OTOOL64=$ac_cv_prog_OTOOL64
7758 if test -n "$OTOOL64"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7760 $as_echo "$OTOOL64" >&6; }
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7768 if test -z "$ac_cv_prog_OTOOL64"; then
7769 ac_ct_OTOOL64=$OTOOL64
7770 # Extract the first word of "otool64", so it can be a program name with args.
7771 set dummy otool64; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7777 if test -n "$ac_ct_OTOOL64"; then
7778 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_ac_ct_OTOOL64="otool64"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7798 if test -n "$ac_ct_OTOOL64"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7800 $as_echo "$ac_ct_OTOOL64" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7806 if test "x$ac_ct_OTOOL64" = x; then
7809 case $cross_compiling:$ac_tool_warned in
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7815 OTOOL64=$ac_ct_OTOOL64
7818 OTOOL64="$ac_cv_prog_OTOOL64"
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7848 $as_echo_n "checking for -single_module linker flag... " >&6; }
7849 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 lt_cv_apple_cc_single_mod=no
7853 if test -z "${LT_MULTI_MODULE}"; then
7854 # By default we will add the -single_module flag. You can override
7855 # by either setting the environment variable LT_MULTI_MODULE
7856 # non-empty at configure time, or by adding -multi_module to the
7858 rm -rf libconftest.dylib*
7859 echo "int foo(void){return 1;}" > conftest.c
7860 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7861 -dynamiclib -Wl,-single_module conftest.c" >&5
7862 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7865 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7866 lt_cv_apple_cc_single_mod=yes
7868 cat conftest.err >&5
7870 rm -rf libconftest.dylib*
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7875 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7877 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7878 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7881 lt_cv_ld_exported_symbols_list=no
7882 save_LDFLAGS=$LDFLAGS
7883 echo "_main" > conftest.sym
7884 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7896 if ac_fn_c_try_link "$LINENO"; then :
7897 lt_cv_ld_exported_symbols_list=yes
7899 lt_cv_ld_exported_symbols_list=no
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 LDFLAGS="$save_LDFLAGS"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7909 $as_echo_n "checking for -force_load linker flag... " >&6; }
7910 if test "${lt_cv_ld_force_load+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7913 lt_cv_ld_force_load=no
7914 cat > conftest.c << _LT_EOF
7915 int forced_loaded() { return 2;}
7917 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7918 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7919 echo "$AR cru libconftest.a conftest.o" >&5
7920 $AR cru libconftest.a conftest.o 2>&5
7921 cat > conftest.c << _LT_EOF
7922 int main() { return 0;}
7924 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7925 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7927 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7928 lt_cv_ld_force_load=yes
7930 cat conftest.err >&5
7932 rm -f conftest.err libconftest.a conftest conftest.c
7933 rm -rf conftest.dSYM
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7937 $as_echo "$lt_cv_ld_force_load" >&6; }
7939 rhapsody* | darwin1.[012])
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943 darwin*) # darwin 5.x on
7944 # if running on 10.5 or later, the deployment target defaults
7945 # to the OS version, if on x86, and 10.4, the deployment
7946 # target defaults to 10.4. Don't you love it?
7947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958 _lt_dar_single_mod='$single_module'
7960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7965 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7966 _lt_dsymutil='~$DSYMUTIL $lib || :'
7973 for ac_header in dlfcn.h
7975 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7977 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7978 cat >>confdefs.h <<_ACEOF
7979 #define HAVE_DLFCN_H 1
8000 # Check whether --enable-static was given.
8001 if test "${enable_static+set}" = set; then :
8002 enableval=$enable_static; p=${PACKAGE-default}
8004 yes) enable_static=yes ;;
8005 no) enable_static=no ;;
8008 # Look at the argument we got. We use all the common list separators.
8009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010 for pkg in $enableval; do
8012 if test "X$pkg" = "X$p"; then
8032 # Check whether --with-pic was given.
8033 if test "${with_pic+set}" = set; then :
8034 withval=$with_pic; pic_mode="$withval"
8040 test -z "$pic_mode" && pic_mode=default
8048 # Check whether --enable-fast-install was given.
8049 if test "${enable_fast_install+set}" = set; then :
8050 enableval=$enable_fast_install; p=${PACKAGE-default}
8052 yes) enable_fast_install=yes ;;
8053 no) enable_fast_install=no ;;
8055 enable_fast_install=no
8056 # Look at the argument we got. We use all the common list separators.
8057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8058 for pkg in $enableval; do
8060 if test "X$pkg" = "X$p"; then
8061 enable_fast_install=yes
8068 enable_fast_install=yes
8081 # This can be used to rebuild libtool when needed
8082 LIBTOOL_DEPS="$ltmain"
8084 # Always use our own libtool.
8085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8112 test -z "$LN_S" && LN_S="ln -s"
8127 if test -n "${ZSH_VERSION+set}" ; then
8128 setopt NO_GLOB_SUBST
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8132 $as_echo_n "checking for objdir... " >&6; }
8133 if test "${lt_cv_objdir+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8136 rm -f .libs 2>/dev/null
8137 mkdir .libs 2>/dev/null
8138 if test -d .libs; then
8141 # MS-DOS does not allow filenames that begin with a dot.
8144 rmdir .libs 2>/dev/null
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8147 $as_echo "$lt_cv_objdir" >&6; }
8148 objdir=$lt_cv_objdir
8154 cat >>confdefs.h <<_ACEOF
8155 #define LT_OBJDIR "$lt_cv_objdir/"
8163 # AIX sometimes has problems with the GCC collect2 program. For some
8164 # reason, if we set the COLLECT_NAMES environment variable, the problems
8165 # vanish in a puff of smoke.
8166 if test "X${COLLECT_NAMES+set}" != Xset; then
8168 export COLLECT_NAMES
8175 can_build_shared=yes
8177 # All known linkers require a `.a' archive for static linking (except MSVC,
8178 # which needs '.lib').
8181 with_gnu_ld="$lt_cv_prog_gnu_ld"
8184 old_CFLAGS="$CFLAGS"
8186 # Set sane defaults for various variables
8187 test -z "$CC" && CC=cc
8188 test -z "$LTCC" && LTCC=$CC
8189 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8190 test -z "$LD" && LD=ld
8191 test -z "$ac_objext" && ac_objext=o
8193 for cc_temp in $compiler""; do
8195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8201 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8204 # Only perform the check for file, if the check method requires it
8205 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8206 case $deplibs_check_method in
8208 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8210 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/${ac_tool_prefix}file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8273 if test -z "$lt_cv_path_MAGIC_CMD"; then
8274 if test -n "$ac_tool_prefix"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8276 $as_echo_n "checking for file... " >&6; }
8277 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8282 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8285 lt_save_MAGIC_CMD="$MAGIC_CMD"
8286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8288 for ac_dir in $ac_dummy; do
8290 test -z "$ac_dir" && ac_dir=.
8291 if test -f $ac_dir/file; then
8292 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8293 if test -n "$file_magic_test_file"; then
8294 case $deplibs_check_method in
8296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8299 $EGREP "$file_magic_regex" > /dev/null; then
8304 *** Warning: the command libtool uses to detect shared libraries,
8305 *** $file_magic_cmd, produces output that libtool cannot recognize.
8306 *** The result is that libtool may fail to recognize shared libraries
8307 *** as such. This will affect the creation of libtool libraries that
8308 *** depend on shared libraries, but programs linked with such libtool
8309 *** libraries will work regardless of this problem. Nevertheless, you
8310 *** may want to report the problem to your system manager and/or to
8311 *** bug-libtool@gnu.org
8321 MAGIC_CMD="$lt_save_MAGIC_CMD"
8326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8327 if test -n "$MAGIC_CMD"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8329 $as_echo "$MAGIC_CMD" >&6; }
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8345 # Use C for the default configuration in the libtool script
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8355 # Source file extension for C test sources.
8358 # Object file extension for compiled C test sources.
8362 # Code to be used in simple compile tests
8363 lt_simple_compile_test_code="int some_variable = 0;"
8365 # Code to be used in simple link tests
8366 lt_simple_link_test_code='int main(){return(0);}'
8374 # If no C compiler was specified, use CC.
8377 # If no C compiler flags were specified, use CFLAGS.
8378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8380 # Allow CC to be a program name with arguments.
8383 # Save the default compiler, since it gets overwritten when the other
8384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8385 compiler_DEFAULT=$CC
8387 # save warnings/boilerplate of simple test code
8388 ac_outfile=conftest.$ac_objext
8389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8391 _lt_compiler_boilerplate=`cat conftest.err`
8394 ac_outfile=conftest.$ac_objext
8395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397 _lt_linker_boilerplate=`cat conftest.err`
8402 ## There is no encapsulation within the following macros, do not change
8403 ## the running order or otherwise move them around unless you know exactly
8404 ## what you are doing...
8405 if test -n "$compiler"; then
8407 lt_prog_compiler_no_builtin_flag=
8409 if test "$GCC" = yes; then
8410 case $cc_basename in
8412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8418 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
8422 lt_cv_prog_compiler_rtti_exceptions=no
8423 ac_outfile=conftest.$ac_objext
8424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8425 lt_compiler_flag="-fno-rtti -fno-exceptions"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 # The option is referenced via a variable to avoid confusing sed.
8431 lt_compile=`echo "$ac_compile" | $SED \
8432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8434 -e 's:$: $lt_compiler_flag:'`
8435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8436 (eval "$lt_compile" 2>conftest.err)
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 if (exit $ac_status) && test -s "$ac_outfile"; then
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings other than the usual output.
8443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_rtti_exceptions=yes
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8453 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8468 lt_prog_compiler_wl=
8469 lt_prog_compiler_pic=
8470 lt_prog_compiler_static=
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8473 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8475 if test "$GCC" = yes; then
8476 lt_prog_compiler_wl='-Wl,'
8477 lt_prog_compiler_static='-static'
8481 # All AIX code is PIC.
8482 if test "$host_cpu" = ia64; then
8483 # AIX 5 now supports IA64 processor
8484 lt_prog_compiler_static='-Bstatic'
8486 lt_prog_compiler_pic='-fPIC'
8492 # see comment about AmigaOS4 .so support
8493 lt_prog_compiler_pic='-fPIC'
8496 # FIXME: we need at least 68020 code to build shared libraries, but
8497 # adding the `-m68020' flag to GCC prevents building anything better,
8499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8505 # PIC is the default for these OSes.
8508 mingw* | cygwin* | pw32* | os2* | cegcc*)
8509 # This hack is so that the source file can tell whether it is being
8510 # built for inclusion in a dll (and should export symbols for example).
8511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8512 # (--disable-auto-import) libraries
8513 lt_prog_compiler_pic='-DDLL_EXPORT'
8516 darwin* | rhapsody*)
8517 # PIC is the default on this platform
8518 # Common symbols not allowed in MH_DYLIB files
8519 lt_prog_compiler_pic='-fno-common'
8523 # PIC is the default for Haiku.
8524 # The "-static" flag exists, but is broken.
8525 lt_prog_compiler_static=
8529 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8530 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8531 # sets the default TLS model and affects inlining.
8537 lt_prog_compiler_pic='-fPIC'
8543 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8544 # Instead, we relocate shared libraries at runtime.
8548 # Just because we use GCC doesn't mean we suddenly get shared libraries
8549 # on systems that don't support them.
8550 lt_prog_compiler_can_build_shared=no
8555 # QNX uses GNU C++, but need to define -shared option too, otherwise
8557 lt_prog_compiler_pic='-fPIC -shared'
8561 if test -d /usr/nec; then
8562 lt_prog_compiler_pic=-Kconform_pic
8567 lt_prog_compiler_pic='-fPIC'
8571 case $cc_basename in
8572 nvcc*) # Cuda Compiler Driver 2.2
8573 lt_prog_compiler_wl='-Xlinker '
8574 lt_prog_compiler_pic='-Xcompiler -fPIC'
8578 # PORTME Check for flag to pass linker flags through the system compiler.
8581 lt_prog_compiler_wl='-Wl,'
8582 if test "$host_cpu" = ia64; then
8583 # AIX 5 now supports IA64 processor
8584 lt_prog_compiler_static='-Bstatic'
8586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8590 mingw* | cygwin* | pw32* | os2* | cegcc*)
8591 # This hack is so that the source file can tell whether it is being
8592 # built for inclusion in a dll (and should export symbols for example).
8593 lt_prog_compiler_pic='-DDLL_EXPORT'
8596 hpux9* | hpux10* | hpux11*)
8597 lt_prog_compiler_wl='-Wl,'
8598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8605 lt_prog_compiler_pic='+Z'
8608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8609 lt_prog_compiler_static='${wl}-a ${wl}archive'
8612 irix5* | irix6* | nonstopux*)
8613 lt_prog_compiler_wl='-Wl,'
8614 # PIC (with -KPIC) is the default.
8615 lt_prog_compiler_static='-non_shared'
8618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8619 case $cc_basename in
8620 # old Intel for x86_64 which still supported -KPIC.
8622 lt_prog_compiler_wl='-Wl,'
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-static'
8626 # icc used to be incompatible with GCC.
8627 # ICC 10 doesn't accept -KPIC any more.
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-fPIC'
8631 lt_prog_compiler_static='-static'
8633 # Lahey Fortran 8.1.
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_pic='--shared'
8637 lt_prog_compiler_static='--static'
8639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8640 # Portland Group compilers (*not* the Pentium gcc compiler,
8641 # which looks to be a dead project)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-fpic'
8644 lt_prog_compiler_static='-Bstatic'
8647 lt_prog_compiler_wl='-Wl,'
8648 # All Alpha code is PIC.
8649 lt_prog_compiler_static='-non_shared'
8651 xl* | bgxl* | bgf* | mpixl*)
8652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-qpic'
8655 lt_prog_compiler_static='-qstaticlink'
8658 case `$CC -V 2>&1 | sed 5q` in
8659 *Sun\ F* | *Sun*Fortran*)
8660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8663 lt_prog_compiler_wl=''
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 lt_prog_compiler_wl='-Wl,'
8677 lt_prog_compiler_pic='-KPIC'
8678 lt_prog_compiler_static='-Bstatic'
8682 # QNX uses GNU C++, but need to define -shared option too, otherwise
8684 lt_prog_compiler_pic='-fPIC -shared'
8687 osf3* | osf4* | osf5*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # All OSF/1 code is PIC.
8690 lt_prog_compiler_static='-non_shared'
8694 lt_prog_compiler_static='-non_shared'
8698 lt_prog_compiler_pic='-KPIC'
8699 lt_prog_compiler_static='-Bstatic'
8700 case $cc_basename in
8702 lt_prog_compiler_wl='-Qoption ld ';;
8704 lt_prog_compiler_wl='-Wl,';;
8709 lt_prog_compiler_wl='-Qoption ld '
8710 lt_prog_compiler_pic='-PIC'
8711 lt_prog_compiler_static='-Bstatic'
8714 sysv4 | sysv4.2uw2* | sysv4.3*)
8715 lt_prog_compiler_wl='-Wl,'
8716 lt_prog_compiler_pic='-KPIC'
8717 lt_prog_compiler_static='-Bstatic'
8721 if test -d /usr/nec ;then
8722 lt_prog_compiler_pic='-Kconform_pic'
8723 lt_prog_compiler_static='-Bstatic'
8727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_can_build_shared=no
8739 lt_prog_compiler_pic='-pic'
8740 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_can_build_shared=no
8750 # For platforms which do not support PIC, -DPIC is meaningless:
8752 lt_prog_compiler_pic=
8755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8759 $as_echo "$lt_prog_compiler_pic" >&6; }
8767 # Check to make sure the PIC flag actually works.
8769 if test -n "$lt_prog_compiler_pic"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8775 lt_cv_prog_compiler_pic_works=no
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 # The option is referenced via a variable to avoid confusing sed.
8784 lt_compile=`echo "$ac_compile" | $SED \
8785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787 -e 's:$: $lt_compiler_flag:'`
8788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8789 (eval "$lt_compile" 2>conftest.err)
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 if (exit $ac_status) && test -s "$ac_outfile"; then
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings other than the usual output.
8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8799 lt_cv_prog_compiler_pic_works=yes
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8809 case $lt_prog_compiler_pic in
8811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8814 lt_prog_compiler_pic=
8815 lt_prog_compiler_can_build_shared=no
8826 # Check to make sure the static flag actually works.
8828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8834 lt_cv_prog_compiler_static_works=no
8835 save_LDFLAGS="$LDFLAGS"
8836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8839 # The linker can only warn and ignore the option if not recognized
8840 # So say no if there are warnings
8841 if test -s conftest.err; then
8842 # Append any errors to the config.log.
8843 cat conftest.err 1>&5
8844 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846 if diff conftest.exp conftest.er2 >/dev/null; then
8847 lt_cv_prog_compiler_static_works=yes
8850 lt_cv_prog_compiler_static_works=yes
8854 LDFLAGS="$save_LDFLAGS"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8863 lt_prog_compiler_static=
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
8877 lt_cv_prog_compiler_c_o=no
8878 $RM -r conftest 2>/dev/null
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884 lt_compiler_flag="-o out/conftest2.$ac_objext"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 lt_compile=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894 (eval "$lt_compile" 2>out/conftest.err)
8896 cat out/conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings
8902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905 lt_cv_prog_compiler_c_o=yes
8910 # SGI C++ compiler will create directory out/ii_files/ for
8911 # template instantiation
8912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913 $RM out/* && rmdir out
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
8932 lt_cv_prog_compiler_c_o=no
8933 $RM -r conftest 2>/dev/null
8937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939 lt_compiler_flag="-o out/conftest2.$ac_objext"
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 lt_compile=`echo "$ac_compile" | $SED \
8945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947 -e 's:$: $lt_compiler_flag:'`
8948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949 (eval "$lt_compile" 2>out/conftest.err)
8951 cat out/conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings
8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_c_o=yes
8965 # SGI C++ compiler will create directory out/ii_files/ for
8966 # template instantiation
8967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968 $RM out/* && rmdir out
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8980 hard_links="nottested"
8981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8982 # do not overwrite the value of need_locks provided by the user
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8984 $as_echo_n "checking if we can lock with hard links... " >&6; }
8987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8989 ln conftest.a conftest.b 2>&5 || hard_links=no
8990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8992 $as_echo "$hard_links" >&6; }
8993 if test "$hard_links" = no; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9011 allow_undefined_flag=
9012 always_export_symbols=no
9014 archive_expsym_cmds=
9015 compiler_needs_object=no
9016 enable_shared_with_static_runtimes=no
9017 export_dynamic_flag_spec=
9018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9019 hardcode_automatic=no
9021 hardcode_direct_absolute=no
9022 hardcode_libdir_flag_spec=
9023 hardcode_libdir_flag_spec_ld=
9024 hardcode_libdir_separator=
9026 hardcode_shlibpath_var=unsupported
9028 link_all_deplibs=unknown
9031 old_archive_from_new_cmds=
9032 old_archive_from_expsyms_cmds=
9033 thread_safe_flag_spec=
9034 whole_archive_flag_spec=
9035 # include_expsyms should be a list of space-separated symbols to be *always*
9036 # included in the symbol list
9038 # exclude_expsyms can be an extended regexp of symbols to exclude
9039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9041 # as well as any symbol that contains `d'.
9042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9044 # platforms (ab)use it in PIC code, but their linkers get confused if
9045 # the symbol is explicitly referenced. Since portable code cannot
9046 # rely on this symbol name, it's probably fine to never include it in
9047 # preloaded symbol tables.
9048 # Exclude shared library initialization/finalization symbols.
9049 extract_expsyms_cmds=
9052 cygwin* | mingw* | pw32* | cegcc*)
9053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
9056 if test "$GCC" != yes; then
9061 # we just hope/assume this is gcc and not c89 (= MSVC++)
9071 # On some targets, GNU ld is compatible enough with the native linker
9072 # that we're better off using the native interface for both.
9073 lt_use_gnu_ld_interface=no
9074 if test "$with_gnu_ld" = yes; then
9077 # The AIX port of GNU ld has always aspired to compatibility
9078 # with the native linker. However, as the warning in the GNU ld
9079 # block says, versions before 2.19.5* couldn't really create working
9080 # shared libraries, regardless of the interface used.
9081 case `$LD -v 2>&1` in
9082 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9083 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9084 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9086 lt_use_gnu_ld_interface=yes
9091 lt_use_gnu_ld_interface=yes
9096 if test "$lt_use_gnu_ld_interface" = yes; then
9097 # If archive_cmds runs LD, not CC, wlarc should be empty
9100 # Set some defaults for GNU ld with shared library support. These
9101 # are reset later if shared libraries are not supported. Putting them
9102 # here allows them to be overridden if necessary.
9103 runpath_var=LD_RUN_PATH
9104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9105 export_dynamic_flag_spec='${wl}--export-dynamic'
9106 # ancient GNU ld didn't support --whole-archive et. al.
9107 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9110 whole_archive_flag_spec=
9112 supports_anon_versioning=no
9113 case `$LD -v 2>&1` in
9114 *GNU\ gold*) supports_anon_versioning=yes ;;
9115 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9116 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9117 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9118 *\ 2.11.*) ;; # other 2.11 versions
9119 *) supports_anon_versioning=yes ;;
9122 # See if GNU ld supports shared libraries.
9125 # On AIX/PPC, the GNU linker is very broken
9126 if test "$host_cpu" != ia64; then
9130 *** Warning: the GNU linker, at least up to release 2.19, is reported
9131 *** to be unable to reliably create shared libraries on AIX.
9132 *** Therefore, libtool is disabling shared libraries support. If you
9133 *** really care for shared libraries, you may want to install binutils
9134 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9135 *** You will then need to restart the configuration process.
9144 # see comment about AmigaOS4 .so support
9145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds=''
9149 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)'
9150 hardcode_libdir_flag_spec='-L$libdir'
9151 hardcode_minus_L=yes
9157 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158 allow_undefined_flag=unsupported
9159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9160 # support --undefined. This deserves some investigation. FIXME
9161 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167 cygwin* | mingw* | pw32* | cegcc*)
9168 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9169 # as there is no search path for DLLs.
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 export_dynamic_flag_spec='${wl}--export-all-symbols'
9172 allow_undefined_flag=unsupported
9173 always_export_symbols=no
9174 enable_shared_with_static_runtimes=yes
9175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179 # If the export-symbols file already is a .def file (1st line
9180 # is EXPORTS), use it as is; otherwise, prepend...
9181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9182 cp $export_symbols $output_objdir/$soname.def;
9184 echo EXPORTS > $output_objdir/$soname.def;
9185 cat $export_symbols >> $output_objdir/$soname.def;
9187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 link_all_deplibs=yes
9200 hardcode_shlibpath_var=no
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 export_dynamic_flag_spec='${wl}-E'
9203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9204 # Instead, shared libraries are loaded at an image base (0x10000000 by
9205 # default) and relocated if they conflict, which is a slow very memory
9206 # consuming and fragmenting process. To avoid this, we pick a random,
9207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9210 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'
9213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9215 if test "$host_os" = linux-dietlibc; then
9216 case $cc_basename in
9217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9221 && test "$tmp_diet" = no
9223 tmp_addflag=' $pic_flag'
9224 tmp_sharedflag='-shared'
9225 case $cc_basename,$host_cpu in
9226 pgcc*) # Portland Group C compiler
9227 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'
9228 tmp_addflag=' $pic_flag'
9230 pgf77* | pgf90* | pgf95* | pgfortran*)
9231 # Portland Group f77 and f90 compilers
9232 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'
9233 tmp_addflag=' $pic_flag -Mnomain' ;;
9234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9235 tmp_addflag=' -i_dynamic' ;;
9236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9237 tmp_addflag=' -i_dynamic -nofor_main' ;;
9238 ifc* | ifort*) # Intel Fortran compiler
9239 tmp_addflag=' -nofor_main' ;;
9240 lf95*) # Lahey Fortran 8.1
9241 whole_archive_flag_spec=
9242 tmp_sharedflag='--shared' ;;
9243 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9244 tmp_sharedflag='-qmkshrobj'
9246 nvcc*) # Cuda Compiler Driver 2.2
9247 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'
9248 compiler_needs_object=yes
9251 case `$CC -V 2>&1 | sed 5q` in
9252 *Sun\ C*) # Sun C 5.9
9253 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'
9254 compiler_needs_object=yes
9255 tmp_sharedflag='-G' ;;
9256 *Sun\ F*) # Sun Fortran 8.3
9257 tmp_sharedflag='-G' ;;
9259 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 if test "x$supports_anon_versioning" = xyes; then
9262 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264 echo "local: *; };" >> $output_objdir/$libname.ver~
9265 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9268 case $cc_basename in
9269 xlf* | bgf* | bgxlf* | mpixlf*)
9270 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9271 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9272 hardcode_libdir_flag_spec=
9273 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9274 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9275 if test "x$supports_anon_versioning" = xyes; then
9276 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9277 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9278 echo "local: *; };" >> $output_objdir/$libname.ver~
9279 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9299 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9304 *** create shared libraries on Solaris systems. Therefore, libtool
9305 *** is disabling shared libraries support. We urge you to upgrade GNU
9306 *** binutils to release 2.9.1 or newer. Another option is to modify
9307 *** your PATH or compiler configuration so that the native linker is
9308 *** used, and then restart.
9311 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9320 case `$LD -v 2>&1` in
9321 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9326 *** reliably create shared libraries on SCO systems. Therefore, libtool
9327 *** is disabling shared libraries support. We urge you to upgrade GNU
9328 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9329 *** your PATH or compiler configuration so that the native linker is
9330 *** used, and then restart.
9335 # For security reasons, it is highly recommended that you always
9336 # use absolute paths for naming shared libraries, and exclude the
9337 # DT_RUNPATH tag from executables and libraries. But doing so
9338 # requires that you compile everything twice, which is a pain.
9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_shlibpath_var=no
9358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9367 if test "$ld_shlibs" = no; then
9369 hardcode_libdir_flag_spec=
9370 export_dynamic_flag_spec=
9371 whole_archive_flag_spec=
9374 # PORTME fill in a description of your system's linker (not GNU ld)
9377 allow_undefined_flag=unsupported
9378 always_export_symbols=yes
9379 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'
9380 # Note: this linker hardcodes the directories in LIBPATH if there
9381 # are no directories specified by -L.
9382 hardcode_minus_L=yes
9383 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9384 # Neither direct hardcoding nor static linking is supported with a
9386 hardcode_direct=unsupported
9391 if test "$host_cpu" = ia64; then
9392 # On IA64, the linker does run time linking by default, so we don't
9393 # have to do anything special.
9394 aix_use_runtimelinking=no
9395 exp_sym_flag='-Bexport'
9398 # If we're using GNU nm, then we don't want the "-C" option.
9399 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9400 # Also, AIX nm treats weak defined symbols like other global
9401 # defined symbols, whereas GNU nm marks them as "W".
9402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9403 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'
9405 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'
9407 aix_use_runtimelinking=no
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # need to do runtime linking.
9412 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9413 for ld_flag in $LDFLAGS; do
9414 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9415 aix_use_runtimelinking=yes
9422 exp_sym_flag='-bexport'
9423 no_entry_flag='-bnoentry'
9426 # When large executables or shared objects are built, AIX ld can
9427 # have problems creating the table of contents. If linking a library
9428 # or program results in "error TOC overflow" add -mminimal-toc to
9429 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9430 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9434 hardcode_direct_absolute=yes
9435 hardcode_libdir_separator=':'
9436 link_all_deplibs=yes
9437 file_list_spec='${wl}-f,'
9439 if test "$GCC" = yes; then
9440 case $host_os in aix4.[012]|aix4.[012].*)
9441 # We only want to do this on AIX 4.2 and lower, the check
9442 # below for broken collect2 doesn't work under 4.3+
9443 collect2name=`${CC} -print-prog-name=collect2`
9444 if test -f "$collect2name" &&
9445 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9447 # We have reworked collect2
9450 # We have old collect2
9451 hardcode_direct=unsupported
9452 # It fails to find uninstalled libraries when the uninstalled
9453 # path is not listed in the libpath. Setting hardcode_minus_L
9454 # to unsupported forces relinking
9455 hardcode_minus_L=yes
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_libdir_separator=
9461 shared_flag='-shared'
9462 if test "$aix_use_runtimelinking" = yes; then
9463 shared_flag="$shared_flag "'${wl}-G'
9467 if test "$host_cpu" = ia64; then
9468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9469 # chokes on -Wl,-G. The following line is correct:
9472 if test "$aix_use_runtimelinking" = yes; then
9473 shared_flag='${wl}-G'
9475 shared_flag='${wl}-bM:SRE'
9480 export_dynamic_flag_spec='${wl}-bexpall'
9481 # It seems that -bexpall does not export symbols beginning with
9482 # underscore (_), so it is better to generate a list of symbols to export.
9483 always_export_symbols=yes
9484 if test "$aix_use_runtimelinking" = yes; then
9485 # Warning - without using the other runtime loading flags (-brtl),
9486 # -berok will link without error, but may produce a broken library.
9487 allow_undefined_flag='-berok'
9488 # Determine the default libpath from the value encoded in an
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9501 if ac_fn_c_try_link "$LINENO"; then :
9503 lt_aix_libpath_sed='
9504 /Import File Strings/,/^$/ {
9510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511 # Check for a 64-bit object if we didn't find anything.
9512 if test -z "$aix_libpath"; then
9513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9521 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"
9523 if test "$host_cpu" = ia64; then
9524 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9525 allow_undefined_flag="-z nodefs"
9526 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"
9528 # Determine the default libpath from the value encoded in an
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9541 if ac_fn_c_try_link "$LINENO"; then :
9543 lt_aix_libpath_sed='
9544 /Import File Strings/,/^$/ {
9550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 # Check for a 64-bit object if we didn't find anything.
9552 if test -z "$aix_libpath"; then
9553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561 # Warning - without using the other run time loading flags,
9562 # -berok will link without error, but may produce a broken library.
9563 no_undefined_flag=' ${wl}-bernotok'
9564 allow_undefined_flag=' ${wl}-berok'
9565 if test "$with_gnu_ld" = yes; then
9566 # We only use this code for GNU lds that support --whole-archive.
9567 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9569 # Exported symbols can be pulled into shared objects from archives
9570 whole_archive_flag_spec='$convenience'
9572 archive_cmds_need_lc=yes
9573 # This is similar to how AIX traditionally builds its shared libraries.
9574 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'
9582 # see comment about AmigaOS4 .so support
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds=''
9587 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)'
9588 hardcode_libdir_flag_spec='-L$libdir'
9589 hardcode_minus_L=yes
9595 export_dynamic_flag_spec=-rdynamic
9598 cygwin* | mingw* | pw32* | cegcc*)
9599 # When not using gcc, we currently assume that we are using
9600 # Microsoft Visual C++.
9601 # hardcode_libdir_flag_spec is actually meaningless, as there is
9602 # no search path for DLLs.
9603 hardcode_libdir_flag_spec=' '
9604 allow_undefined_flag=unsupported
9605 # Tell ltmain to make .lib files, not .a files.
9607 # Tell ltmain to make .dll files, not .so files.
9609 # FIXME: Setting linknames here is a bad hack.
9610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9611 # The linker will automatically build a .lib file if we build a DLL.
9612 old_archive_from_new_cmds='true'
9613 # FIXME: Should let the user specify the lib program.
9614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9615 fix_srcfile_path='`cygpath -w "$srcfile"`'
9616 enable_shared_with_static_runtimes=yes
9619 darwin* | rhapsody*)
9622 archive_cmds_need_lc=no
9624 hardcode_automatic=yes
9625 hardcode_shlibpath_var=unsupported
9626 if test "$lt_cv_ld_force_load" = "yes"; then
9627 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\"`'
9629 whole_archive_flag_spec=''
9631 link_all_deplibs=yes
9632 allow_undefined_flag="$_lt_dar_allow_undefined"
9633 case $cc_basename in
9634 ifort*) _lt_dar_can_shared=yes ;;
9635 *) _lt_dar_can_shared=$GCC ;;
9637 if test "$_lt_dar_can_shared" = "yes"; then
9638 output_verbose_link_cmd=func_echo_all
9639 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9640 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9641 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}"
9642 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}"
9651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_shlibpath_var=no
9656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9657 # support. Future versions do this automatically, but an explicit c++rt0.o
9658 # does not break anything, and helps significantly (at the cost of a little
9661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9662 hardcode_libdir_flag_spec='-R$libdir'
9664 hardcode_shlibpath_var=no
9667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_minus_L=yes
9672 hardcode_shlibpath_var=no
9675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9676 freebsd* | dragonfly*)
9677 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9678 hardcode_libdir_flag_spec='-R$libdir'
9680 hardcode_shlibpath_var=no
9684 if test "$GCC" = yes; then
9685 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'
9687 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'
9689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9690 hardcode_libdir_separator=:
9693 # hardcode_minus_L: Not really in the search PATH,
9694 # but as the default location of the library.
9695 hardcode_minus_L=yes
9696 export_dynamic_flag_spec='${wl}-E'
9700 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9705 if test "$with_gnu_ld" = no; then
9706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9707 hardcode_libdir_flag_spec_ld='+b $libdir'
9708 hardcode_libdir_separator=:
9710 hardcode_direct_absolute=yes
9711 export_dynamic_flag_spec='${wl}-E'
9712 # hardcode_minus_L: Not really in the search PATH,
9713 # but as the default location of the library.
9714 hardcode_minus_L=yes
9719 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9741 # Older versions of the 11.00 compiler do not understand -b yet
9742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9744 $as_echo_n "checking if $CC understands -b... " >&6; }
9745 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9748 lt_cv_prog_compiler__b=no
9749 save_LDFLAGS="$LDFLAGS"
9750 LDFLAGS="$LDFLAGS -b"
9751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9753 # The linker can only warn and ignore the option if not recognized
9754 # So say no if there are warnings
9755 if test -s conftest.err; then
9756 # Append any errors to the config.log.
9757 cat conftest.err 1>&5
9758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9760 if diff conftest.exp conftest.er2 >/dev/null; then
9761 lt_cv_prog_compiler__b=yes
9764 lt_cv_prog_compiler__b=yes
9768 LDFLAGS="$save_LDFLAGS"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9772 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9774 if test x"$lt_cv_prog_compiler__b" = xyes; then
9775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9783 if test "$with_gnu_ld" = no; then
9784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785 hardcode_libdir_separator=:
9790 hardcode_shlibpath_var=no
9794 hardcode_direct_absolute=yes
9795 export_dynamic_flag_spec='${wl}-E'
9797 # hardcode_minus_L: Not really in the search PATH,
9798 # but as the default location of the library.
9799 hardcode_minus_L=yes
9805 irix5* | irix6* | nonstopux*)
9806 if test "$GCC" = yes; then
9807 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'
9808 # Try to use the -exported_symbol ld option, if it does not
9809 # work, assume that -exports_file does not work either and
9810 # implicitly export all symbols.
9811 save_LDFLAGS="$LDFLAGS"
9812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9817 if ac_fn_c_try_link "$LINENO"; then :
9818 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'
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LDFLAGS="$save_LDFLAGS"
9825 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'
9826 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'
9828 archive_cmds_need_lc='no'
9829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830 hardcode_libdir_separator=:
9832 link_all_deplibs=yes
9836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9841 hardcode_libdir_flag_spec='-R$libdir'
9843 hardcode_shlibpath_var=no
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850 hardcode_libdir_separator=:
9851 hardcode_shlibpath_var=no
9858 if test -f /usr/libexec/ld.so; then
9860 hardcode_shlibpath_var=no
9861 hardcode_direct_absolute=yes
9862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9866 export_dynamic_flag_spec='${wl}-E'
9869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec='-R$libdir'
9874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_minus_L=yes
9887 allow_undefined_flag=unsupported
9888 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'
9889 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9893 if test "$GCC" = yes; then
9894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9895 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'
9897 allow_undefined_flag=' -expect_unresolved \*'
9898 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'
9900 archive_cmds_need_lc='no'
9901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902 hardcode_libdir_separator=:
9905 osf4* | osf5*) # as osf3* with the addition of -msym flag
9906 if test "$GCC" = yes; then
9907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9908 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'
9909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911 allow_undefined_flag=' -expect_unresolved \*'
9912 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'
9913 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~
9914 $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'
9916 # Both c and cxx compiler support -rpath directly
9917 hardcode_libdir_flag_spec='-rpath $libdir'
9919 archive_cmds_need_lc='no'
9920 hardcode_libdir_separator=:
9924 no_undefined_flag=' -z defs'
9925 if test "$GCC" = yes; then
9927 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9931 case `$CC -V 2>&1` in
9934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9940 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9946 hardcode_libdir_flag_spec='-R$libdir'
9947 hardcode_shlibpath_var=no
9949 solaris2.[0-5] | solaris2.[0-5].*) ;;
9951 # The compiler driver will combine and reorder linker options,
9952 # but understands `-z linker_flag'. GCC discards it without `$wl',
9953 # but is careful enough not to reorder.
9954 # Supported since Solaris 2.6 (maybe 2.5.1?)
9955 if test "$GCC" = yes; then
9956 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9958 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9962 link_all_deplibs=yes
9966 if test "x$host_vendor" = xsequent; then
9967 # Use $CC to link under sequent, because it throws in some extra .o
9968 # files that make .init and .fini sections work.
9969 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9971 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_minus_L=yes
9976 hardcode_shlibpath_var=no
9980 case $host_vendor in
9982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_direct=yes # is this really true???
9986 ## LD is ld it makes a PLAMLIB
9987 ## CC just makes a GrossModule.
9988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9989 reload_cmds='$CC -r -o $output$reload_objs'
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9997 runpath_var='LD_RUN_PATH'
9998 hardcode_shlibpath_var=no
10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003 hardcode_shlibpath_var=no
10004 export_dynamic_flag_spec='-Bexport'
10008 if test -d /usr/nec; then
10009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010 hardcode_shlibpath_var=no
10011 runpath_var=LD_RUN_PATH
10012 hardcode_runpath_var=yes
10017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10018 no_undefined_flag='${wl}-z,text'
10019 archive_cmds_need_lc=no
10020 hardcode_shlibpath_var=no
10021 runpath_var='LD_RUN_PATH'
10023 if test "$GCC" = yes; then
10024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 sysv5* | sco3.2v5* | sco5v6*)
10033 # Note: We can NOT use -z defs as we might desire, because we do not
10034 # link with -lc, and that would cause any symbols used from libc to
10035 # always be unresolved, which means just about no library would
10036 # ever link correctly. If we're not using GNU ld we use -z text
10037 # though, which does catch some bad symbols but isn't as heavy-handed
10039 no_undefined_flag='${wl}-z,text'
10040 allow_undefined_flag='${wl}-z,nodefs'
10041 archive_cmds_need_lc=no
10042 hardcode_shlibpath_var=no
10043 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10044 hardcode_libdir_separator=':'
10045 link_all_deplibs=yes
10046 export_dynamic_flag_spec='${wl}-Bexport'
10047 runpath_var='LD_RUN_PATH'
10049 if test "$GCC" = yes; then
10050 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_libdir_flag_spec='-L$libdir'
10061 hardcode_shlibpath_var=no
10069 if test x$host_vendor = xsni; then
10071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10072 export_dynamic_flag_spec='${wl}-Blargedynsym'
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10079 $as_echo "$ld_shlibs" >&6; }
10080 test "$ld_shlibs" = no && can_build_shared=no
10082 with_gnu_ld=$with_gnu_ld
10099 # Do we need to explicitly link libc?
10101 case "x$archive_cmds_need_lc" in
10103 # Assume -lc should be added
10104 archive_cmds_need_lc=yes
10106 if test "$enable_shared" = yes && test "$GCC" = yes; then
10107 case $archive_cmds in
10109 # FIXME: we may have to deal with multi-command sequences.
10112 # Test whether the compiler implicitly links with -lc since on some
10113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10114 # to ld, don't add -lc before -lgcc.
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10116 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10117 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10118 $as_echo_n "(cached) " >&6
10121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10124 (eval $ac_compile) 2>&5
10126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127 test $ac_status = 0; } 2>conftest.err; then
10130 libobjs=conftest.$ac_objext
10132 wl=$lt_prog_compiler_wl
10133 pic_flag=$lt_prog_compiler_pic
10139 lt_save_allow_undefined_flag=$allow_undefined_flag
10140 allow_undefined_flag=
10141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10142 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145 test $ac_status = 0; }
10147 lt_cv_archive_cmds_need_lc=no
10149 lt_cv_archive_cmds_need_lc=yes
10151 allow_undefined_flag=$lt_save_allow_undefined_flag
10153 cat conftest.err 1>&5
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10159 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10160 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10326 if test "$GCC" = yes; then
10328 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10329 *) lt_awk_arg="/^libraries:/" ;;
10332 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10333 *) lt_sed_strip_eq="s,=/,/,g" ;;
10335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10336 case $lt_search_path_spec in
10338 # if the path contains ";" then we assume it to be the separator
10339 # otherwise default to the standard path separator (i.e. ":") - it is
10340 # assumed that no part of a normal pathname contains ";" but that should
10341 # okay in the real world where ";" in dirpaths is itself problematic.
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10348 # Ok, now we have the path, separated by spaces, we can step through it
10349 # and add multilib dir if necessary.
10350 lt_tmp_lt_search_path_spec=
10351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352 for lt_sys_path in $lt_search_path_spec; do
10353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10356 test -d "$lt_sys_path" && \
10357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10360 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10361 BEGIN {RS=" "; FS="/|\n";} {
10364 for (lt_i = NF; lt_i > 0; lt_i--) {
10365 if ($lt_i != "" && $lt_i != ".") {
10366 if ($lt_i == "..") {
10369 if (lt_count == 0) {
10370 lt_foo="/" $lt_i lt_foo;
10377 if (lt_foo != "") { lt_freq[lt_foo]++; }
10378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10380 # AWK program above erroneously prepends '/' to C:/dos/paths
10383 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10384 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10386 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10390 library_names_spec=
10391 libname_spec='lib$name'
10395 postuninstall_cmds=
10399 shlibpath_overrides_runpath=unknown
10401 dynamic_linker="$host_os ld.so"
10402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10403 need_lib_prefix=unknown
10404 hardcode_into_libs=no
10406 # when you set need_version to no, make sure it does not cause -set_version
10407 # flags to be left without arguments
10408 need_version=unknown
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10414 shlibpath_var=LIBPATH
10416 # AIX 3 has no versioning support, so we append a major version to the name.
10417 soname_spec='${libname}${release}${shared_ext}$major'
10424 hardcode_into_libs=yes
10425 if test "$host_cpu" = ia64; then
10426 # AIX 5 supports IA64
10427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10428 shlibpath_var=LD_LIBRARY_PATH
10430 # With GCC up to 2.95.x, collect2 would create an import file
10431 # for dependence libraries. The import file would start with
10432 # the line `#! .'. This would cause the generated library to
10433 # depend on `.', always an invalid library. This was fixed in
10434 # development snapshots of GCC prior to 3.0.
10436 aix4 | aix4.[01] | aix4.[01].*)
10437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10442 can_build_shared=no
10446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10447 # soname into executable. Probably we can add versioning support to
10448 # collect2, so additional links can be useful in future.
10449 if test "$aix_use_runtimelinking" = yes; then
10450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10451 # instead of lib<name>.a to let people know that these are not
10452 # typical AIX shared libraries.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 # We preserve .a as extension for shared libraries through AIX4.2
10456 # and later when we are not doing run time linking.
10457 library_names_spec='${libname}${release}.a $libname.a'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LIBPATH
10467 # Since July 2007 AmigaOS4 officially supports .so libraries.
10468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 library_names_spec='$libname.ixlibrary $libname.a'
10473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10474 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'
10480 library_names_spec='${libname}${shared_ext}'
10481 dynamic_linker="$host_os ld.so"
10482 shlibpath_var=LIBRARY_PATH
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10494 # the default ld.so.conf also contains /usr/contrib/lib and
10495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10496 # libtool to hard-code these into programs
10499 cygwin* | mingw* | pw32* | cegcc*)
10500 version_type=windows
10505 case $GCC,$host_os in
10506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10507 library_names_spec='$libname.dll.a'
10508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509 postinstall_cmds='base_file=`basename \${file}`~
10510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511 dldir=$destdir/`dirname \$dlpath`~
10512 test -d \$dldir || mkdir -p \$dldir~
10513 $install_prog $dir/$dlname \$dldir/$dlname~
10514 chmod a+x \$dldir/$dlname~
10515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519 dlpath=$dir/\$dldll~
10521 shlibpath_overrides_runpath=yes
10525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10531 # MinGW DLLs use traditional 'lib' prefix
10532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535 # pw32 DLLs use 'pw' prefix rather than 'lib'
10536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10545 dynamic_linker='Win32 ld.exe'
10546 # FIXME: first we should search . and the directory the executable is in
10550 darwin* | rhapsody*)
10551 dynamic_linker="$host_os dyld"
10552 version_type=darwin
10555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10556 soname_spec='${libname}${release}${major}$shared_ext'
10557 shlibpath_overrides_runpath=yes
10558 shlibpath_var=DYLD_LIBRARY_PATH
10559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10574 freebsd* | dragonfly*)
10575 # DragonFly does not have aout. When/if they implement a new
10576 # versioning mechanism, adjust this.
10577 if test -x /usr/bin/objformat; then
10578 objformat=`/usr/bin/objformat`
10581 freebsd[23].*) objformat=aout ;;
10582 *) objformat=elf ;;
10585 version_type=freebsd-$objformat
10586 case $version_type in
10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10597 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes
10602 freebsd3.[01]* | freebsdelf3.[01]*)
10603 shlibpath_overrides_runpath=yes
10604 hardcode_into_libs=yes
10606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10608 shlibpath_overrides_runpath=no
10609 hardcode_into_libs=yes
10611 *) # from 4.6 on, and DragonFly
10612 shlibpath_overrides_runpath=yes
10613 hardcode_into_libs=yes
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 hardcode_into_libs=yes
10632 dynamic_linker="$host_os runtime_loader"
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10638 hardcode_into_libs=yes
10641 hpux9* | hpux10* | hpux11*)
10642 # Give a soname corresponding to the major version so that dld.sl refuses to
10643 # link against other versions.
10650 hardcode_into_libs=yes
10651 dynamic_linker="$host_os dld.so"
10652 shlibpath_var=LD_LIBRARY_PATH
10653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 if test "X$HPUX_IA64_MODE" = X32; then
10657 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10665 hardcode_into_libs=yes
10666 dynamic_linker="$host_os dld.sl"
10667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10676 dynamic_linker="$host_os dld.sl"
10677 shlibpath_var=SHLIB_PATH
10678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10684 postinstall_cmds='chmod 555 $lib'
10685 # or fails outright, so override atomically:
10686 install_override_mode=555
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10701 irix5* | irix6* | nonstopux*)
10703 nonstopux*) version_type=nonstopux ;;
10705 if test "$lt_cv_prog_gnu_ld" = yes; then
10713 soname_spec='${libname}${release}${shared_ext}$major'
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10716 irix5* | nonstopux*)
10717 libsuff= shlibsuff=
10720 case $LD in # libtool.m4 will add one of these switches to LD
10721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10722 libsuff= shlibsuff= libmagic=32-bit;;
10723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10724 libsuff=32 shlibsuff=N32 libmagic=N32;;
10725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10727 *) libsuff= shlibsuff= libmagic=never-match;;
10731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10732 shlibpath_overrides_runpath=no
10733 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10734 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10735 hardcode_into_libs=yes
10738 # No shared lib support for Linux oldld, aout, or coff.
10739 linux*oldld* | linux*aout* | linux*coff*)
10743 # This must be Linux ELF.
10744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
10754 # Some binutils ld are patched to set DT_RUNPATH
10755 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10756 $as_echo_n "(cached) " >&6
10758 lt_cv_shlibpath_overrides_runpath=no
10759 save_LDFLAGS=$LDFLAGS
10760 save_libdir=$libdir
10761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10776 lt_cv_shlibpath_overrides_runpath=yes
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LDFLAGS=$save_LDFLAGS
10782 libdir=$save_libdir
10786 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10788 # This implies no fast_install, which is unacceptable.
10789 # Some rework will be needed to allow for fast_install
10790 # before this can be enabled.
10791 hardcode_into_libs=yes
10793 # Append ld.so.conf contents to the search path
10794 if test -f /etc/ld.so.conf; then
10795 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' ' '`
10796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10799 # We used to test for /lib/ld.so.1 and disable shared libraries on
10800 # powerpc, because MkLinux only supported shared libraries with the
10801 # GNU dynamic linker. Since this was broken with cross compilers,
10802 # most powerpc-linux boxes support dynamic linking these days and
10803 # people can always --disable-shared, the test was removed, and we
10804 # assume the GNU/Linux dynamic linker is in use.
10805 dynamic_linker='GNU/Linux ld.so'
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815 dynamic_linker='NetBSD (a.out) ld.so'
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 dynamic_linker='NetBSD ld.elf_so'
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=no
10841 hardcode_into_libs=yes
10842 dynamic_linker='ldqnx.so'
10847 sys_lib_dlsearch_path_spec="/usr/lib"
10849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852 *) need_version=no ;;
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 openbsd2.[89] | openbsd2.[89].*)
10860 shlibpath_overrides_runpath=no
10863 shlibpath_overrides_runpath=yes
10867 shlibpath_overrides_runpath=yes
10872 libname_spec='$name'
10875 library_names_spec='$libname${shared_ext} $libname.a'
10876 dynamic_linker='OS/2 ld.exe'
10877 shlibpath_var=LIBPATH
10880 osf3* | osf4* | osf5*)
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 shlibpath_var=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10904 # ldd complains unless libraries are executable
10905 postinstall_cmds='chmod +x $lib'
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=yes
10914 if test "$with_gnu_ld" = yes; then
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 case $host_vendor in
10927 shlibpath_overrides_runpath=no
10929 runpath_var=LD_RUN_PATH
10937 shlibpath_overrides_runpath=no
10938 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10944 if test -d /usr/nec ;then
10946 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10947 soname_spec='$libname${shared_ext}.$major'
10948 shlibpath_var=LD_LIBRARY_PATH
10952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10953 version_type=freebsd-elf
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 shlibpath_overrides_runpath=yes
10960 hardcode_into_libs=yes
10961 if test "$with_gnu_ld" = yes; then
10962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10964 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10971 sys_lib_dlsearch_path_spec='/usr/lib'
10975 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=no
10982 hardcode_into_libs=yes
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10997 $as_echo "$dynamic_linker" >&6; }
10998 test "$dynamic_linker" = no && can_build_shared=no
11000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11001 if test "$GCC" = yes; then
11002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11006 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11104 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11106 if test -n "$hardcode_libdir_flag_spec" ||
11107 test -n "$runpath_var" ||
11108 test "X$hardcode_automatic" = "Xyes" ; then
11110 # We can hardcode non-existent directories.
11111 if test "$hardcode_direct" != no &&
11112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113 # have to relink, otherwise we might link with an installed library
11114 # when we should be linking with a yet-to-be-installed one
11115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11116 test "$hardcode_minus_L" != no; then
11117 # Linking always hardcodes the temporary library directory.
11118 hardcode_action=relink
11120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121 hardcode_action=immediate
11124 # We cannot hardcode anything, or else we can only hardcode existing
11126 hardcode_action=unsupported
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11129 $as_echo "$hardcode_action" >&6; }
11131 if test "$hardcode_action" = relink ||
11132 test "$inherit_rpath" = yes; then
11133 # Fast installation is not supported
11134 enable_fast_install=no
11135 elif test "$shlibpath_overrides_runpath" = yes ||
11136 test "$enable_shared" = no; then
11137 # Fast installation is not necessary
11138 enable_fast_install=needless
11146 if test "x$enable_dlopen" != xyes; then
11147 enable_dlopen=unknown
11148 enable_dlopen_self=unknown
11149 enable_dlopen_self_static=unknown
11156 lt_cv_dlopen="load_add_on"
11158 lt_cv_dlopen_self=yes
11161 mingw* | pw32* | cegcc*)
11162 lt_cv_dlopen="LoadLibrary"
11167 lt_cv_dlopen="dlopen"
11172 # if libdl is installed we need to link against it
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
11178 ac_check_lib_save_LIBS=$LIBS
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 ac_cv_lib_dl_dlopen=yes
11201 ac_cv_lib_dl_dlopen=no
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11208 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11209 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11213 lt_cv_dlopen="dyld"
11215 lt_cv_dlopen_self=yes
11222 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11223 if test "x$ac_cv_func_shl_load" = x""yes; then :
11224 lt_cv_dlopen="shl_load"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11227 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11231 ac_check_lib_save_LIBS=$LIBS
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11246 return shl_load ();
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_dld_shl_load=yes
11254 ac_cv_lib_dld_shl_load=no
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11261 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11262 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11263 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11265 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11266 if test "x$ac_cv_func_dlopen" = x""yes; then :
11267 lt_cv_dlopen="dlopen"
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11272 $as_echo_n "(cached) " >&6
11274 ac_check_lib_save_LIBS=$LIBS
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 ac_cv_lib_dl_dlopen=yes
11297 ac_cv_lib_dl_dlopen=no
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11305 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11306 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11309 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11310 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11313 ac_check_lib_save_LIBS=$LIBS
11314 LIBS="-lsvld $LIBS"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11318 /* Override any GCC internal prototype to avoid an error.
11319 Use char because int might match the return type of a GCC
11320 builtin and then its argument prototype would still apply. */
11333 if ac_fn_c_try_link "$LINENO"; then :
11334 ac_cv_lib_svld_dlopen=yes
11336 ac_cv_lib_svld_dlopen=no
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_lib_save_LIBS
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11344 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11352 ac_check_lib_save_LIBS=$LIBS
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11367 return dld_link ();
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_dld_dld_link=yes
11375 ac_cv_lib_dld_dld_link=no
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LIBS=$ac_check_lib_save_LIBS
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11382 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11383 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11384 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11405 if test "x$lt_cv_dlopen" != xno; then
11411 case $lt_cv_dlopen in
11413 save_CPPFLAGS="$CPPFLAGS"
11414 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11416 save_LDFLAGS="$LDFLAGS"
11417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11420 LIBS="$lt_cv_dlopen_libs $LIBS"
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11423 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11424 if test "${lt_cv_dlopen_self+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
11427 if test "$cross_compiling" = yes; then :
11428 lt_cv_dlopen_self=cross
11430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11431 lt_status=$lt_dlunknown
11432 cat > conftest.$ac_ext <<_LT_EOF
11433 #line 11433 "configure"
11434 #include "confdefs.h"
11443 # define LT_DLGLOBAL RTLD_GLOBAL
11446 # define LT_DLGLOBAL DL_GLOBAL
11448 # define LT_DLGLOBAL 0
11452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11453 find out it does not work in some platform. */
11454 #ifndef LT_DLLAZY_OR_NOW
11456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11459 # define LT_DLLAZY_OR_NOW DL_LAZY
11462 # define LT_DLLAZY_OR_NOW RTLD_NOW
11465 # define LT_DLLAZY_OR_NOW DL_NOW
11467 # define LT_DLLAZY_OR_NOW 0
11474 /* When -fvisbility=hidden is used, assume the code has been annotated
11475 correspondingly for the symbols needed. */
11476 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11477 void fnord () __attribute__((visibility("default")));
11480 void fnord () { int i=42; }
11483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11484 int status = $lt_dlunknown;
11488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11491 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11492 else puts (dlerror ());
11494 /* dlclose (self); */
11502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11503 (eval $ac_link) 2>&5
11505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11507 (./conftest; exit; ) >&5 2>/dev/null
11509 case x$lt_status in
11510 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11515 # compilation failed
11516 lt_cv_dlopen_self=no
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11524 $as_echo "$lt_cv_dlopen_self" >&6; }
11526 if test "x$lt_cv_dlopen_self" = xyes; then
11527 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11529 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11530 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self_static=cross
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
11539 #line 11539 "configure"
11540 #include "confdefs.h"
11549 # define LT_DLGLOBAL RTLD_GLOBAL
11552 # define LT_DLGLOBAL DL_GLOBAL
11554 # define LT_DLGLOBAL 0
11558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560 #ifndef LT_DLLAZY_OR_NOW
11562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11565 # define LT_DLLAZY_OR_NOW DL_LAZY
11568 # define LT_DLLAZY_OR_NOW RTLD_NOW
11571 # define LT_DLLAZY_OR_NOW DL_NOW
11573 # define LT_DLLAZY_OR_NOW 0
11580 /* When -fvisbility=hidden is used, assume the code has been annotated
11581 correspondingly for the symbols needed. */
11582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583 void fnord () __attribute__((visibility("default")));
11586 void fnord () { int i=42; }
11589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590 int status = $lt_dlunknown;
11594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 else puts (dlerror ());
11600 /* dlclose (self); */
11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11609 (eval $ac_link) 2>&5
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11613 (./conftest; exit; ) >&5 2>/dev/null
11615 case x$lt_status in
11616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11618 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11621 # compilation failed
11622 lt_cv_dlopen_self_static=no
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11630 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11633 CPPFLAGS="$save_CPPFLAGS"
11634 LDFLAGS="$save_LDFLAGS"
11639 case $lt_cv_dlopen_self in
11640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11641 *) enable_dlopen_self=unknown ;;
11644 case $lt_cv_dlopen_self_static in
11645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11646 *) enable_dlopen_self_static=unknown ;;
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11669 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11670 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11671 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11672 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11676 # FIXME - insert some real tests, host_os isn't really good enough
11679 if test -n "$STRIP" ; then
11680 striplib="$STRIP -x"
11681 old_striplib="$STRIP -S"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683 $as_echo "yes" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11707 # Report which library types will actually be built
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11709 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11711 $as_echo "$can_build_shared" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11714 $as_echo_n "checking whether to build shared libraries... " >&6; }
11715 test "$can_build_shared" = "no" && enable_shared=no
11717 # On AIX, shared libraries and static libraries use the same namespace, and
11718 # are all built from PIC.
11721 test "$enable_shared" = yes && enable_static=no
11722 if test -n "$RANLIB"; then
11723 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11724 postinstall_cmds='$RANLIB $lib'
11729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11730 test "$enable_shared" = yes && enable_static=no
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11735 $as_echo "$enable_shared" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11738 $as_echo_n "checking whether to build static libraries... " >&6; }
11739 # Make sure either enable_shared or enable_static is yes.
11740 test "$enable_shared" = yes || enable_static=yes
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11742 $as_echo "$enable_static" >&6; }
11749 ac_cpp='$CPP $CPPFLAGS'
11750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11768 ac_config_commands="$ac_config_commands libtool"
11773 # Only expand once:
11777 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11779 # The tests for host and target for $enable_largefile require
11784 # As the $enable_largefile decision depends on --enable-plugins we must set it
11785 # even in directories otherwise not depending on the $plugins option.
11789 for ac_header in dlfcn.h
11791 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11793 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_DLFCN_H 1
11802 for ac_header in windows.h
11804 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11806 if test "x$ac_cv_header_windows_h" = x""yes; then :
11807 cat >>confdefs.h <<_ACEOF
11808 #define HAVE_WINDOWS_H 1
11816 # Check whether --enable-plugins was given.
11817 if test "${enable_plugins+set}" = set; then :
11818 enableval=$enable_plugins; case "${enableval}" in
11821 if test "$maybe_plugins" != "yes" ; then
11822 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11826 plugins=$maybe_plugins
11830 if test "$plugins" = "yes"; then
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11832 $as_echo_n "checking for library containing dlsym... " >&6; }
11833 if test "${ac_cv_search_dlsym+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11836 ac_func_search_save_LIBS=$LIBS
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11855 for ac_lib in '' dl; do
11856 if test -z "$ac_lib"; then
11857 ac_res="none required"
11860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_search_dlsym=$ac_res
11865 rm -f core conftest.err conftest.$ac_objext \
11867 if test "${ac_cv_search_dlsym+set}" = set; then :
11871 if test "${ac_cv_search_dlsym+set}" = set; then :
11874 ac_cv_search_dlsym=no
11876 rm conftest.$ac_ext
11877 LIBS=$ac_func_search_save_LIBS
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11880 $as_echo "$ac_cv_search_dlsym" >&6; }
11881 ac_res=$ac_cv_search_dlsym
11882 if test "$ac_res" != no; then :
11883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11891 sparc-*-solaris*|i[3-7]86-*-solaris*)
11892 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11893 # are mutually exclusive; and without procfs support, the bfd/ elf module
11894 # cannot provide certain routines such as elfcore_write_prpsinfo
11895 # or elfcore_write_prstatus. So unless the user explicitly requested
11896 # large-file support through the --enable-largefile switch, disable
11897 # large-file support in favor of procfs support.
11898 test "${target}" = "${host}" -a "x$plugins" = xno \
11899 && : ${enable_largefile="no"}
11903 # Check whether --enable-largefile was given.
11904 if test "${enable_largefile+set}" = set; then :
11905 enableval=$enable_largefile;
11908 if test "$enable_largefile" != no; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11911 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11912 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_cv_sys_largefile_CC=no
11916 if test "$GCC" != yes; then
11919 # IRIX 6.2 and later do not support large files by default,
11920 # so use the C compiler's -n32 option if that helps.
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <sys/types.h>
11924 /* Check that off_t can represent 2**63 - 1 correctly.
11925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11926 since some C++ compilers masquerading as C compilers
11927 incorrectly reject 9223372036854775807. */
11928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11930 && LARGE_OFF_T % 2147483647 == 1)
11940 if ac_fn_c_try_compile "$LINENO"; then :
11943 rm -f core conftest.err conftest.$ac_objext
11945 if ac_fn_c_try_compile "$LINENO"; then :
11946 ac_cv_sys_largefile_CC=' -n32'; break
11948 rm -f core conftest.err conftest.$ac_objext
11952 rm -f conftest.$ac_ext
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11956 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11957 if test "$ac_cv_sys_largefile_CC" != no; then
11958 CC=$CC$ac_cv_sys_largefile_CC
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11962 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11963 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 #include <sys/types.h>
11970 /* Check that off_t can represent 2**63 - 1 correctly.
11971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972 since some C++ compilers masquerading as C compilers
11973 incorrectly reject 9223372036854775807. */
11974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976 && LARGE_OFF_T % 2147483647 == 1)
11986 if ac_fn_c_try_compile "$LINENO"; then :
11987 ac_cv_sys_file_offset_bits=no; break
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h. */
11992 #define _FILE_OFFSET_BITS 64
11993 #include <sys/types.h>
11994 /* Check that off_t can represent 2**63 - 1 correctly.
11995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11996 since some C++ compilers masquerading as C compilers
11997 incorrectly reject 9223372036854775807. */
11998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12000 && LARGE_OFF_T % 2147483647 == 1)
12010 if ac_fn_c_try_compile "$LINENO"; then :
12011 ac_cv_sys_file_offset_bits=64; break
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 ac_cv_sys_file_offset_bits=unknown
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12019 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12020 case $ac_cv_sys_file_offset_bits in #(
12023 cat >>confdefs.h <<_ACEOF
12024 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12029 if test $ac_cv_sys_file_offset_bits = unknown; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12031 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12032 if test "${ac_cv_sys_large_files+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038 #include <sys/types.h>
12039 /* Check that off_t can represent 2**63 - 1 correctly.
12040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12041 since some C++ compilers masquerading as C compilers
12042 incorrectly reject 9223372036854775807. */
12043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12045 && LARGE_OFF_T % 2147483647 == 1)
12055 if ac_fn_c_try_compile "$LINENO"; then :
12056 ac_cv_sys_large_files=no; break
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #define _LARGE_FILES 1
12062 #include <sys/types.h>
12063 /* Check that off_t can represent 2**63 - 1 correctly.
12064 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12065 since some C++ compilers masquerading as C compilers
12066 incorrectly reject 9223372036854775807. */
12067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12068 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12069 && LARGE_OFF_T % 2147483647 == 1)
12079 if ac_fn_c_try_compile "$LINENO"; then :
12080 ac_cv_sys_large_files=1; break
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 ac_cv_sys_large_files=unknown
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12088 $as_echo "$ac_cv_sys_large_files" >&6; }
12089 case $ac_cv_sys_large_files in #(
12092 cat >>confdefs.h <<_ACEOF
12093 #define _LARGE_FILES $ac_cv_sys_large_files
12103 if test "$plugins" = "yes"; then
12112 if test "$plugins" = "yes"; then
12113 enable_targets="$enable_targets plugin"
12116 # Check whether --enable-64-bit-bfd was given.
12117 if test "${enable_64_bit_bfd+set}" = set; then :
12118 enableval=$enable_64_bit_bfd; case "${enableval}" in
12119 yes) want64=true ;;
12120 no) want64=false ;;
12121 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12127 # Check whether --enable-targets was given.
12128 if test "${enable_targets+set}" = set; then :
12129 enableval=$enable_targets; case "${enableval}" in
12130 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12132 no) enable_targets= ;;
12133 *) enable_targets=$enableval ;;
12137 # Check whether --enable-64_bit_archive was given.
12138 if test "${enable_64_bit_archive+set}" = set; then :
12139 enableval=$enable_64_bit_archive; case "${enableval}" in
12140 yes) want_64_bit_archive=true ;;
12141 no) want_64_bit_archive=false ;;
12142 *) as_fn_error "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12145 want_64_bit_archive=unset
12149 # Check whether --with-mmap was given.
12150 if test "${with_mmap+set}" = set; then :
12151 withval=$with_mmap; case "${withval}" in
12152 yes) want_mmap=true ;;
12153 no) want_mmap=false ;;
12154 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12160 # Check whether --enable-secureplt was given.
12161 if test "${enable_secureplt+set}" = set; then :
12162 enableval=$enable_secureplt; case "${enableval}" in
12163 yes) use_secureplt=true ;;
12164 no) use_secureplt=false ;;
12165 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12170 if test $use_secureplt = true; then
12172 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12176 # Decide if -z separate-code should be enabled in ELF linker by default.
12177 ac_default_ld_z_separate_code=unset
12178 # Check whether --enable-separate-code was given.
12179 if test "${enable_separate_code+set}" = set; then :
12180 enableval=$enable_separate_code; case "${enableval}" in
12181 yes) ac_default_ld_z_separate_code=1 ;;
12182 no) ac_default_ld_z_separate_code=0 ;;
12186 # Enable -z separate-code by default for Linux/x86.
12187 case "${target}" in
12188 i3-786-*-linux-* | x86_64-*-linux-*)
12189 if test ${ac_default_ld_z_separate_code} = unset; then
12190 ac_default_ld_z_separate_code=1
12194 if test "${ac_default_ld_z_separate_code}" = unset; then
12195 ac_default_ld_z_separate_code=0
12198 cat >>confdefs.h <<_ACEOF
12199 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12203 # Check whether --enable-leading-mingw64-underscores was given.
12204 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12205 enableval=$enable_leading_mingw64_underscores;
12208 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12210 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12214 DEBUGDIR=${libdir}/debug
12216 # Check whether --with-separate-debug-dir was given.
12217 if test "${with_separate_debug_dir+set}" = set; then :
12218 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12225 # Check whether --with-pkgversion was given.
12226 if test "${with_pkgversion+set}" = set; then :
12227 withval=$with_pkgversion; case "$withval" in
12228 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12230 *) PKGVERSION="($withval) " ;;
12233 PKGVERSION="(GNU Binutils) "
12241 # Check whether --with-bugurl was given.
12242 if test "${with_bugurl+set}" = set; then :
12243 withval=$with_bugurl; case "$withval" in
12244 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12247 *) BUGURL="$withval"
12251 BUGURL="http://www.sourceware.org/bugzilla/"
12261 REPORT_BUGS_TO="<$BUGURL>"
12262 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12270 # Set the 'development' global.
12271 . $srcdir/../bfd/development.sh
12273 # Set acp_cpp_for_build variable
12274 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12276 # Default set of GCC warnings to enable.
12277 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12278 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12280 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12289 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12294 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12300 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12303 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12308 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12309 WARN_WRITE_STRINGS=""
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12318 WARN_WRITE_STRINGS="-Wwrite-strings"
12323 # Verify CC_FOR_BUILD to be compatible with warning flags
12325 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h. */
12330 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12331 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12334 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12339 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12344 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12345 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12348 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12353 # Check whether --enable-werror was given.
12354 if test "${enable_werror+set}" = set; then :
12355 enableval=$enable_werror; case "${enableval}" in
12356 yes | y) ERROR_ON_WARNING="yes" ;;
12357 no | n) ERROR_ON_WARNING="no" ;;
12358 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12363 # Disable -Wformat by default when using gcc on mingw
12366 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12367 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12368 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12374 # Enable -Werror by default when using gcc. Turn it off for releases.
12375 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12376 ERROR_ON_WARNING=yes
12380 if test "${ERROR_ON_WARNING}" = yes ; then
12381 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12382 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12383 NO_WERROR="-Wno-error"
12386 if test "${GCC}" = yes ; then
12387 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12388 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12391 # Check whether --enable-build-warnings was given.
12392 if test "${enable_build_warnings+set}" = set; then :
12393 enableval=$enable_build_warnings; case "${enableval}" in
12394 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12395 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12396 no) if test "${GCC}" = yes ; then
12398 WARN_CFLAGS_FOR_BUILD="-w"
12400 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12401 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12402 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12403 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12404 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12405 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12406 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12407 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12412 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12413 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12422 ac_config_headers="$ac_config_headers config.h:config.in"
12428 if test -z "$target" ; then
12429 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12434 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12435 # Check whether --enable-maintainer-mode was given.
12436 if test "${enable_maintainer_mode+set}" = set; then :
12437 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12439 USE_MAINTAINER_MODE=no
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12443 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12444 if test $USE_MAINTAINER_MODE = yes; then
12445 MAINTAINER_MODE_TRUE=
12446 MAINTAINER_MODE_FALSE='#'
12448 MAINTAINER_MODE_TRUE='#'
12449 MAINTAINER_MODE_FALSE=
12452 MAINT=$MAINTAINER_MODE_TRUE
12456 GENINSRC_NEVER_TRUE=
12457 GENINSRC_NEVER_FALSE='#'
12459 GENINSRC_NEVER_TRUE='#'
12460 GENINSRC_NEVER_FALSE=
12463 case ${build_alias} in
12464 "") build_noncanonical=${build} ;;
12465 *) build_noncanonical=${build_alias} ;;
12468 case ${host_alias} in
12469 "") host_noncanonical=${build_noncanonical} ;;
12470 *) host_noncanonical=${host_alias} ;;
12473 case ${target_alias} in
12474 "") target_noncanonical=${host_noncanonical} ;;
12475 *) target_noncanonical=${target_alias} ;;
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12479 $as_echo_n "checking whether to install libbfd... " >&6; }
12480 # Check whether --enable-install-libbfd was given.
12481 if test "${enable_install_libbfd+set}" = set; then :
12482 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12484 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12485 install_libbfd_p=yes
12487 install_libbfd_p=no
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12492 $as_echo "$install_libbfd_p" >&6; }
12493 if test $install_libbfd_p = yes; then
12494 INSTALL_LIBBFD_TRUE=
12495 INSTALL_LIBBFD_FALSE='#'
12497 INSTALL_LIBBFD_TRUE='#'
12498 INSTALL_LIBBFD_FALSE=
12501 # Need _noncanonical variables for this.
12506 # libbfd.a is a host library containing target dependent code
12507 bfdlibdir='$(libdir)'
12508 bfdincludedir='$(includedir)'
12509 if test "${host}" != "${target}"; then
12510 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12511 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12523 bfd_default_target_size=32
12527 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN"
12528 # If we haven't got the data from the intl directory,
12529 # assume NLS is disabled.
12538 if test -f ../intl/config.intl; then
12539 . ../intl/config.intl
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12542 $as_echo_n "checking whether NLS is requested... " >&6; }
12543 if test x"$USE_NLS" != xyes; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548 $as_echo "yes" >&6; }
12550 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12554 $as_echo_n "checking for catalogs to be installed... " >&6; }
12555 # Look for .po and .gmo files in the source directory.
12558 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12559 # If there aren't any .gmo files the shell will give us the
12560 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12562 case "$cat" in *\**)
12565 # The quadruple backslash is collapsed to a double backslash
12566 # by the backticks, then collapsed again by the double quotes,
12567 # leaving us with one backslash in the sed expression (right
12568 # before the dot that mustn't act as a wildcard).
12569 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12570 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12571 # The user is allowed to set LINGUAS to a list of languages to
12572 # install catalogs for. If it's empty that means "all of them."
12573 if test "x$LINGUAS" = x; then
12574 CATALOGS="$CATALOGS $cat"
12575 XLINGUAS="$XLINGUAS $lang"
12577 case "$LINGUAS" in *$lang*)
12578 CATALOGS="$CATALOGS $cat"
12579 XLINGUAS="$XLINGUAS $lang"
12584 LINGUAS="$XLINGUAS"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12586 $as_echo "$LINGUAS" >&6; }
12600 if test -n "$ac_aux_dir"; then
12601 case "$ac_aux_dir" in
12602 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12603 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12606 if test -z "$MKINSTALLDIRS"; then
12607 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12613 $as_echo_n "checking whether NLS is requested... " >&6; }
12614 # Check whether --enable-nls was given.
12615 if test "${enable_nls+set}" = set; then :
12616 enableval=$enable_nls; USE_NLS=$enableval
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12622 $as_echo "$USE_NLS" >&6; }
12629 # Prepare PATH_SEPARATOR.
12630 # The user is always right.
12631 if test "${PATH_SEPARATOR+set}" != set; then
12632 echo "#! /bin/sh" >conf$$.sh
12633 echo "exit 0" >>conf$$.sh
12635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12643 # Find out how to test for executable files. Don't use a zero-byte file,
12644 # as systems may use methods other than mode bits to determine executability.
12645 cat >conf$$.file <<_ASEOF
12649 chmod +x conf$$.file
12650 if test -x conf$$.file >/dev/null 2>&1; then
12651 ac_executable_p="test -x"
12653 ac_executable_p="test -f"
12657 # Extract the first word of "msgfmt", so it can be a program name with args.
12658 set dummy msgfmt; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12666 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12669 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12670 for ac_dir in $PATH; do
12672 test -z "$ac_dir" && ac_dir=.
12673 for ac_exec_ext in '' $ac_executable_extensions; do
12674 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12675 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12676 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12677 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12684 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12688 MSGFMT="$ac_cv_path_MSGFMT"
12689 if test "$MSGFMT" != ":"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12691 $as_echo "$MSGFMT" >&6; }
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12697 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12698 set dummy gmsgfmt; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12706 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12716 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12728 GMSGFMT=$ac_cv_path_GMSGFMT
12729 if test -n "$GMSGFMT"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12731 $as_echo "$GMSGFMT" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12740 # Prepare PATH_SEPARATOR.
12741 # The user is always right.
12742 if test "${PATH_SEPARATOR+set}" != set; then
12743 echo "#! /bin/sh" >conf$$.sh
12744 echo "exit 0" >>conf$$.sh
12746 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12754 # Find out how to test for executable files. Don't use a zero-byte file,
12755 # as systems may use methods other than mode bits to determine executability.
12756 cat >conf$$.file <<_ASEOF
12760 chmod +x conf$$.file
12761 if test -x conf$$.file >/dev/null 2>&1; then
12762 ac_executable_p="test -x"
12764 ac_executable_p="test -f"
12768 # Extract the first word of "xgettext", so it can be a program name with args.
12769 set dummy xgettext; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12775 case "$XGETTEXT" in
12777 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12780 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12781 for ac_dir in $PATH; do
12783 test -z "$ac_dir" && ac_dir=.
12784 for ac_exec_ext in '' $ac_executable_extensions; do
12785 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12786 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12787 (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
12788 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12795 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12799 XGETTEXT="$ac_cv_path_XGETTEXT"
12800 if test "$XGETTEXT" != ":"; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12802 $as_echo "$XGETTEXT" >&6; }
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12811 # Prepare PATH_SEPARATOR.
12812 # The user is always right.
12813 if test "${PATH_SEPARATOR+set}" != set; then
12814 echo "#! /bin/sh" >conf$$.sh
12815 echo "exit 0" >>conf$$.sh
12817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12825 # Find out how to test for executable files. Don't use a zero-byte file,
12826 # as systems may use methods other than mode bits to determine executability.
12827 cat >conf$$.file <<_ASEOF
12831 chmod +x conf$$.file
12832 if test -x conf$$.file >/dev/null 2>&1; then
12833 ac_executable_p="test -x"
12835 ac_executable_p="test -f"
12839 # Extract the first word of "msgmerge", so it can be a program name with args.
12840 set dummy msgmerge; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12846 case "$MSGMERGE" in
12848 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12851 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12852 for ac_dir in $PATH; do
12854 test -z "$ac_dir" && ac_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12857 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12858 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12865 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12869 MSGMERGE="$ac_cv_path_MSGMERGE"
12870 if test "$MSGMERGE" != ":"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12872 $as_echo "$MSGMERGE" >&6; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12879 if test "$GMSGFMT" != ":"; then
12880 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12881 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12884 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12886 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12891 if test "$XGETTEXT" != ":"; then
12892 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12893 (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
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12897 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12903 ac_config_commands="$ac_config_commands default-1"
12907 # Permit host specific settings.
12908 . ${srcdir}/configure.host
12913 BFD_HOST_64BIT_LONG=0
12914 BFD_HOST_64BIT_LONG_LONG=0
12915 BFD_HOST_64_BIT_DEFINED=0
12918 BFD_HOSTPTR_T="unsigned long"
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12922 $as_echo_n "checking for long double... " >&6; }
12923 if test "${ac_cv_type_long_double+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
12926 if test "$GCC" = yes; then
12927 ac_cv_type_long_double=yes
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 /* The Stardent Vistra knows sizeof (long double), but does
12933 long double foo = 0.0L;
12937 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12938 sizeof (double) <= sizeof (long double))];
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946 ac_cv_type_long_double=yes
12948 ac_cv_type_long_double=no
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12954 $as_echo "$ac_cv_type_long_double" >&6; }
12955 if test $ac_cv_type_long_double = yes; then
12957 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12961 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12962 if test "x$ac_cv_type_long_long" = x""yes; then :
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_LONG_LONG 1
12968 # The cast to long int works around a bug in the HP C Compiler
12969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971 # This bug is HP SR number 8606223364.
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12973 $as_echo_n "checking size of long long... " >&6; }
12974 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12977 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12980 if test "$ac_cv_type_long_long" = yes; then
12981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12983 { as_fn_set_status 77
12984 as_fn_error "cannot compute sizeof (long long)
12985 See \`config.log' for more details." "$LINENO" 5; }; }
12987 ac_cv_sizeof_long_long=0
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12993 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12997 cat >>confdefs.h <<_ACEOF
12998 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13004 # The cast to long int works around a bug in the HP C Compiler
13005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13007 # This bug is HP SR number 8606223364.
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13009 $as_echo_n "checking size of void *... " >&6; }
13010 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13011 $as_echo_n "(cached) " >&6
13013 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13016 if test "$ac_cv_type_void_p" = yes; then
13017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13019 { as_fn_set_status 77
13020 as_fn_error "cannot compute sizeof (void *)
13021 See \`config.log' for more details." "$LINENO" 5; }; }
13023 ac_cv_sizeof_void_p=0
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13029 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13038 # The cast to long int works around a bug in the HP C Compiler
13039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13041 # This bug is HP SR number 8606223364.
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13043 $as_echo_n "checking size of long... " >&6; }
13044 if test "${ac_cv_sizeof_long+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13047 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13050 if test "$ac_cv_type_long" = yes; then
13051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13053 { as_fn_set_status 77
13054 as_fn_error "cannot compute sizeof (long)
13055 See \`config.log' for more details." "$LINENO" 5; }; }
13057 ac_cv_sizeof_long=0
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13063 $as_echo "$ac_cv_sizeof_long" >&6; }
13067 cat >>confdefs.h <<_ACEOF
13068 #define SIZEOF_LONG $ac_cv_sizeof_long
13073 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13077 if test "x${ac_cv_sizeof_long}" = "x8"; then
13078 BFD_HOST_64BIT_LONG=1
13079 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13080 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13081 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13082 BFD_HOST_64BIT_LONG_LONG=1
13083 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13084 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13085 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13086 BFD_HOSTPTR_T="unsigned long long"
13090 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13091 BFD_HOST_64_BIT_DEFINED=1
13092 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13093 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13103 # Put a plausible default for CC_FOR_BUILD in Makefile.
13104 if test -z "$CC_FOR_BUILD"; then
13105 if test "x$cross_compiling" = "xno"; then
13106 CC_FOR_BUILD='$(CC)'
13112 # Also set EXEEXT_FOR_BUILD.
13113 if test "x$cross_compiling" = "xno"; then
13114 EXEEXT_FOR_BUILD='$(EXEEXT)'
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13117 $as_echo_n "checking for build system executable suffix... " >&6; }
13118 if test "${bfd_cv_build_exeext+set}" = set; then :
13119 $as_echo_n "(cached) " >&6
13122 echo 'int main () { return 0; }' > conftest.c
13123 bfd_cv_build_exeext=
13124 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13125 for file in conftest.*; do
13127 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13128 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13132 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13135 $as_echo "$bfd_cv_build_exeext" >&6; }
13136 EXEEXT_FOR_BUILD=""
13137 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13141 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
13143 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13144 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13145 eval as_val=\$$as_ac_Header
13146 if test "x$as_val" = x""yes; then :
13147 cat >>confdefs.h <<_ACEOF
13148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13155 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
13157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159 eval as_val=\$$as_ac_Header
13160 if test "x$as_val" = x""yes; then :
13161 cat >>confdefs.h <<_ACEOF
13162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13171 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13173 acx_cv_header_stdint=stddef.h
13174 acx_cv_header_stdint_kind="(already complete)"
13175 for i in stdint.h $inttype_headers; do
13176 unset ac_cv_type_uintptr_t
13177 unset ac_cv_type_uintmax_t
13178 unset ac_cv_type_int_least32_t
13179 unset ac_cv_type_int_fast32_t
13180 unset ac_cv_type_uint64_t
13181 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13182 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
13185 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
13186 acx_cv_header_stdint=$i
13191 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13194 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13197 acx_cv_header_stdint_kind="(mostly complete)"
13200 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13203 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
13206 acx_cv_header_stdint_kind="(mostly complete)"
13209 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13212 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
13215 acx_cv_header_stdint_kind="(mostly complete)"
13218 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13221 if test "x$ac_cv_type_uint64_t" = x""yes; then :
13224 acx_cv_header_stdint_kind="(lacks uint64_t)"
13229 if test "$acx_cv_header_stdint" = stddef.h; then
13230 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13231 for i in stdint.h $inttype_headers; do
13232 unset ac_cv_type_uintptr_t
13233 unset ac_cv_type_uint32_t
13234 unset ac_cv_type_uint64_t
13235 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13236 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13239 if test "x$ac_cv_type_uint32_t" = x""yes; then :
13240 acx_cv_header_stdint=$i
13245 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13248 if test "x$ac_cv_type_uint64_t" = x""yes; then :
13252 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13255 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13262 if test "$acx_cv_header_stdint" = stddef.h; then
13263 acx_cv_header_stdint_kind="(u_intXX_t style)"
13264 for i in sys/types.h $inttype_headers; do
13265 unset ac_cv_type_u_int32_t
13266 unset ac_cv_type_u_int64_t
13267 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13268 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13271 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13272 acx_cv_header_stdint=$i
13277 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13280 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
13287 if test "$acx_cv_header_stdint" = stddef.h; then
13288 acx_cv_header_stdint_kind="(using manual detection)"
13291 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13292 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13293 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13294 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13295 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13297 # ----------------- Summarize what we found so far
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13300 $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
13302 case `$as_basename -- bfd_stdint.h ||
13303 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13304 Xbfd_stdint.h : 'X\(//\)$' \| \
13305 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13306 $as_echo X/bfd_stdint.h |
13307 sed '/^.*\/\([^/][^/]*\)\/*$/{
13320 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13321 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13322 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13323 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13328 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13330 # ----------------- done included file, check C basic types --------
13332 # Lacking an uintptr_t? Test size of void *
13333 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13334 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13337 # This bug is HP SR number 8606223364.
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13339 $as_echo_n "checking size of void *... " >&6; }
13340 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13346 if test "$ac_cv_type_void_p" = yes; then
13347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13349 { as_fn_set_status 77
13350 as_fn_error "cannot compute sizeof (void *)
13351 See \`config.log' for more details." "$LINENO" 5; }; }
13353 ac_cv_sizeof_void_p=0
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13359 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13363 cat >>confdefs.h <<_ACEOF
13364 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13370 # Lacking an uint64_t? Test size of long
13371 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13372 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13375 # This bug is HP SR number 8606223364.
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13377 $as_echo_n "checking size of long... " >&6; }
13378 if test "${ac_cv_sizeof_long+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13384 if test "$ac_cv_type_long" = yes; then
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387 { as_fn_set_status 77
13388 as_fn_error "cannot compute sizeof (long)
13389 See \`config.log' for more details." "$LINENO" 5; }; }
13391 ac_cv_sizeof_long=0
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13397 $as_echo "$ac_cv_sizeof_long" >&6; }
13401 cat >>confdefs.h <<_ACEOF
13402 #define SIZEOF_LONG $ac_cv_sizeof_long
13408 if test $acx_cv_header_stdint = stddef.h; then
13409 # Lacking a good header? Test size of everything and deduce all types.
13410 # The cast to long int works around a bug in the HP C Compiler
13411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13413 # This bug is HP SR number 8606223364.
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13415 $as_echo_n "checking size of int... " >&6; }
13416 if test "${ac_cv_sizeof_int+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13419 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13422 if test "$ac_cv_type_int" = yes; then
13423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13425 { as_fn_set_status 77
13426 as_fn_error "cannot compute sizeof (int)
13427 See \`config.log' for more details." "$LINENO" 5; }; }
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13435 $as_echo "$ac_cv_sizeof_int" >&6; }
13439 cat >>confdefs.h <<_ACEOF
13440 #define SIZEOF_INT $ac_cv_sizeof_int
13444 # The cast to long int works around a bug in the HP C Compiler
13445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13447 # This bug is HP SR number 8606223364.
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13449 $as_echo_n "checking size of short... " >&6; }
13450 if test "${ac_cv_sizeof_short+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13456 if test "$ac_cv_type_short" = yes; then
13457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13459 { as_fn_set_status 77
13460 as_fn_error "cannot compute sizeof (short)
13461 See \`config.log' for more details." "$LINENO" 5; }; }
13463 ac_cv_sizeof_short=0
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13469 $as_echo "$ac_cv_sizeof_short" >&6; }
13473 cat >>confdefs.h <<_ACEOF
13474 #define SIZEOF_SHORT $ac_cv_sizeof_short
13478 # The cast to long int works around a bug in the HP C Compiler
13479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13481 # This bug is HP SR number 8606223364.
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13483 $as_echo_n "checking size of char... " >&6; }
13484 if test "${ac_cv_sizeof_char+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13490 if test "$ac_cv_type_char" = yes; then
13491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493 { as_fn_set_status 77
13494 as_fn_error "cannot compute sizeof (char)
13495 See \`config.log' for more details." "$LINENO" 5; }; }
13497 ac_cv_sizeof_char=0
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13503 $as_echo "$ac_cv_sizeof_char" >&6; }
13507 cat >>confdefs.h <<_ACEOF
13508 #define SIZEOF_CHAR $ac_cv_sizeof_char
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13514 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13515 case "$ac_cv_sizeof_char" in
13516 1) acx_cv_type_int8_t=char ;;
13517 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13520 $as_echo "$acx_cv_type_int8_t" >&6; }
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13523 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13524 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13525 2:*) acx_cv_type_int16_t=int ;;
13526 *:2) acx_cv_type_int16_t=short ;;
13527 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13530 $as_echo "$acx_cv_type_int16_t" >&6; }
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13533 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13534 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13535 4:*) acx_cv_type_int32_t=int ;;
13536 *:4) acx_cv_type_int32_t=long ;;
13537 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13540 $as_echo "$acx_cv_type_int32_t" >&6; }
13543 # These tests are here to make the output prettier
13545 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13546 case "$ac_cv_sizeof_long" in
13547 8) acx_cv_type_int64_t=long ;;
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13550 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13552 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13555 # Now we can use the above types
13557 if test "$ac_cv_type_uintptr_t" != yes; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13559 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13560 case $ac_cv_sizeof_void_p in
13561 2) acx_cv_type_intptr_t=int16_t ;;
13562 4) acx_cv_type_intptr_t=int32_t ;;
13563 8) acx_cv_type_intptr_t=int64_t ;;
13564 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13567 $as_echo "$acx_cv_type_intptr_t" >&6; }
13570 # ----------------- done all checks, emit header -------------
13571 ac_config_commands="$ac_config_commands bfd_stdint.h"
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13576 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13577 if test "${ac_cv_header_time+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h. */
13582 #include <sys/types.h>
13583 #include <sys/time.h>
13589 if ((struct tm *) 0)
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596 ac_cv_header_time=yes
13598 ac_cv_header_time=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13603 $as_echo "$ac_cv_header_time" >&6; }
13604 if test $ac_cv_header_time = yes; then
13606 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13610 ac_header_dirent=no
13611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13612 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13614 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13616 $as_echo_n "(cached) " >&6
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 #include <sys/types.h>
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633 eval "$as_ac_Header=yes"
13635 eval "$as_ac_Header=no"
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 eval ac_res=\$$as_ac_Header
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13641 $as_echo "$ac_res" >&6; }
13642 eval as_val=\$$as_ac_Header
13643 if test "x$as_val" = x""yes; then :
13644 cat >>confdefs.h <<_ACEOF
13645 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13648 ac_header_dirent=$ac_hdr; break
13652 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13653 if test $ac_header_dirent = dirent.h; then
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13655 $as_echo_n "checking for library containing opendir... " >&6; }
13656 if test "${ac_cv_search_opendir+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13659 ac_func_search_save_LIBS=$LIBS
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13678 for ac_lib in '' dir; do
13679 if test -z "$ac_lib"; then
13680 ac_res="none required"
13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13685 if ac_fn_c_try_link "$LINENO"; then :
13686 ac_cv_search_opendir=$ac_res
13688 rm -f core conftest.err conftest.$ac_objext \
13690 if test "${ac_cv_search_opendir+set}" = set; then :
13694 if test "${ac_cv_search_opendir+set}" = set; then :
13697 ac_cv_search_opendir=no
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13703 $as_echo "$ac_cv_search_opendir" >&6; }
13704 ac_res=$ac_cv_search_opendir
13705 if test "$ac_res" != no; then :
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13712 $as_echo_n "checking for library containing opendir... " >&6; }
13713 if test "${ac_cv_search_opendir+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13716 ac_func_search_save_LIBS=$LIBS
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13720 /* Override any GCC internal prototype to avoid an error.
13721 Use char because int might match the return type of a GCC
13722 builtin and then its argument prototype would still apply. */
13735 for ac_lib in '' x; do
13736 if test -z "$ac_lib"; then
13737 ac_res="none required"
13740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_search_opendir=$ac_res
13745 rm -f core conftest.err conftest.$ac_objext \
13747 if test "${ac_cv_search_opendir+set}" = set; then :
13751 if test "${ac_cv_search_opendir+set}" = set; then :
13754 ac_cv_search_opendir=no
13756 rm conftest.$ac_ext
13757 LIBS=$ac_func_search_save_LIBS
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13760 $as_echo "$ac_cv_search_opendir" >&6; }
13761 ac_res=$ac_cv_search_opendir
13762 if test "$ac_res" != no; then :
13763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13771 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13772 if test "${gcc_cv_header_string+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 #include <string.h>
13778 #include <strings.h>
13787 if ac_fn_c_try_compile "$LINENO"; then :
13788 gcc_cv_header_string=yes
13790 gcc_cv_header_string=no
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13795 $as_echo "$gcc_cv_header_string" >&6; }
13796 if test $gcc_cv_header_string = yes; then
13798 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13802 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13806 eval as_val=\$$as_ac_var
13807 if test "x$as_val" = x""yes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13815 for ac_func in strtoull getrlimit
13817 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13819 eval as_val=\$$as_ac_var
13820 if test "x$as_val" = x""yes; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13829 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13830 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_DECL_BASENAME $ac_have_decl
13840 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13841 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13847 cat >>confdefs.h <<_ACEOF
13848 #define HAVE_DECL_FTELLO $ac_have_decl
13851 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13852 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_DECL_FTELLO64 $ac_have_decl
13862 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13863 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_DECL_FSEEKO $ac_have_decl
13873 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13874 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13887 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13889 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13893 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13894 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_DECL_FFS $ac_have_decl
13904 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13905 if test "x$ac_cv_have_decl_free" = x""yes; then :
13911 cat >>confdefs.h <<_ACEOF
13912 #define HAVE_DECL_FREE $ac_have_decl
13915 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13916 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_DECL_GETENV $ac_have_decl
13926 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13927 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_DECL_MALLOC $ac_have_decl
13937 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13938 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13944 cat >>confdefs.h <<_ACEOF
13945 #define HAVE_DECL_REALLOC $ac_have_decl
13948 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13949 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_DECL_STPCPY $ac_have_decl
13959 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13960 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_DECL_STRSTR $ac_have_decl
13970 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13971 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
13977 cat >>confdefs.h <<_ACEOF
13978 #define HAVE_DECL_ASPRINTF $ac_have_decl
13981 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13982 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_DECL_VASPRINTF $ac_have_decl
13992 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13993 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13999 cat >>confdefs.h <<_ACEOF
14000 #define HAVE_DECL_SNPRINTF $ac_have_decl
14003 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14004 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14014 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14015 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_DECL_STRNLEN $ac_have_decl
14026 # Link in zlib if we can. This allows us to read compressed debug sections.
14027 # This is used only by compress.c.
14029 # Use the system's zlib library.
14030 zlibdir="-L\$(top_builddir)/../zlib"
14031 zlibinc="-I\$(top_srcdir)/../zlib"
14033 # Check whether --with-system-zlib was given.
14034 if test "${with_system_zlib+set}" = set; then :
14035 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14046 # Check if linker supports --as-needed and --no-as-needed options
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14048 $as_echo_n "checking linker --as-needed support... " >&6; }
14049 if test "${bfd_cv_ld_as_needed+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14052 bfd_cv_ld_as_needed=no
14053 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14054 bfd_cv_ld_as_needed=yes
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14059 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14063 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14064 # These system don't have libm, or don't need it
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14068 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14069 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14072 ac_check_lib_save_LIBS=$LIBS
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14077 /* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14083 char _mwvalidcheckl ();
14087 return _mwvalidcheckl ();
14092 if ac_fn_c_try_link "$LINENO"; then :
14093 ac_cv_lib_mw__mwvalidcheckl=yes
14095 ac_cv_lib_mw__mwvalidcheckl=no
14097 rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099 LIBS=$ac_check_lib_save_LIBS
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14102 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14103 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14108 $as_echo_n "checking for cos in -lm... " >&6; }
14109 if test "${ac_cv_lib_m_cos+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14112 ac_check_lib_save_LIBS=$LIBS
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14117 /* Override any GCC internal prototype to avoid an error.
14118 Use char because int might match the return type of a GCC
14119 builtin and then its argument prototype would still apply. */
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_m_cos=yes
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14142 $as_echo "$ac_cv_lib_m_cos" >&6; }
14143 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14150 $as_echo_n "checking for cos in -lm... " >&6; }
14151 if test "${ac_cv_lib_m_cos+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14154 ac_check_lib_save_LIBS=$LIBS
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14159 /* Override any GCC internal prototype to avoid an error.
14160 Use char because int might match the return type of a GCC
14161 builtin and then its argument prototype would still apply. */
14174 if ac_fn_c_try_link "$LINENO"; then :
14175 ac_cv_lib_m_cos=yes
14179 rm -f core conftest.err conftest.$ac_objext \
14180 conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14184 $as_echo "$ac_cv_lib_m_cos" >&6; }
14185 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14194 # When building a shared libbfd, link against the pic version of libiberty
14195 # so that apps that use libbfd won't need libiberty just to satisfy any
14196 # libbfd references.
14197 # We can't do that if a pic libiberty is unavailable since including non-pic
14198 # code would insert text relocations into libbfd.
14201 if test "$enable_shared" = "yes"; then
14202 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14203 if test -n "$x"; then
14204 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14207 # More hacks to build DLLs on Windows.
14210 SHARED_LDFLAGS="-no-undefined"
14211 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14214 # Hack to build or1k-src on OSX
14216 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14220 if test -n "$SHARED_LIBADD"; then
14221 if test -n "$LIBM"; then
14222 if test x"$bfd_cv_ld_as_needed" = xyes; then
14223 # Link against libm only when needed. Put -lc, -lm inside -Wl
14224 # to stop libtool reordering these options.
14225 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14227 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14237 # Canonicalize the secondary target names.
14238 if test -n "$enable_targets" ; then
14239 for targ in `echo $enable_targets | sed 's/,/ /g'`
14241 result=`$ac_config_sub $targ 2>/dev/null`
14242 if test -n "$result" ; then
14243 canon_targets="$canon_targets $result"
14245 # Allow targets that config.sub doesn't recognize, like "all".
14246 canon_targets="$canon_targets $targ"
14257 for targ in $target $canon_targets
14259 if test "x$targ" = "xall"; then
14261 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14263 . $srcdir/config.bfd
14264 if test "x$targ" = "x$target"; then
14265 defvec=$targ_defvec
14267 selvecs="$selvecs $targ_defvec $targ_selvecs"
14268 selarchs="$selarchs $targ_archs"
14269 TDEFINES="$TDEFINES $targ_cflags"
14274 # This processing still needs to be done if we're to decide properly whether
14275 # 64-bit support needs to be compiled in. Currently, it will be included if
14276 # the default or any other explicitly requested target requires it; it
14277 # will not be included on a 32-bit host if no 64-bit target is requested, and
14278 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14281 # uniq the default and selected vectors in all the configured targets.
14283 for i in $selvecs ; do
14292 # uniq the associated vectors in all the configured targets.
14294 for i in $assocvecs ; do
14303 # uniq the architectures in all the configured targets.
14305 for i in $selarchs ; do
14313 # Target backend .o files.
14316 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
14317 elf-eh-frame.lo dwarf1.lo dwarf2.lo"
14318 coffgen="coffgen.lo dwarf2.lo"
14319 coff="cofflink.lo $coffgen"
14320 ecoff="ecofflink.lo $coffgen"
14321 xcoff="xcofflink.lo $coffgen"
14323 for vec in $selvecs
14327 # This list is alphabetized to make it easy to compare
14328 # with the two vector lists in targets.c. For the same reason,
14329 # use one entry per line, even though this leads to long lines.
14330 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14331 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14332 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14333 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14334 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14335 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14336 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
14337 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
14338 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14339 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14340 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14341 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
14342 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14343 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
14344 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14345 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
14346 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14347 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14348 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14349 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14350 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14351 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
14352 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;;
14353 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;;
14354 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14355 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14356 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14357 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14358 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14359 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14360 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14361 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14362 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14363 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14364 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14365 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14366 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14367 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14368 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14369 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14370 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14371 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14372 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14373 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14374 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
14375 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14376 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14377 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14378 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14379 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14380 cris_aout_vec) tb="$tb aout-cris.lo" ;;
14381 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14382 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14383 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14384 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14385 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14386 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14387 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14388 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14389 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14390 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14391 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14392 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14393 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14394 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14395 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14396 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14397 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14398 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14399 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14400 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14401 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14402 hppa_som_vec) tb="$tb som.lo" ;;
14403 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
14404 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
14405 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
14406 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
14407 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
14408 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14409 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
14410 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
14411 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
14412 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
14413 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
14414 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
14415 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
14416 i386_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14417 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14418 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14419 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14420 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14421 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
14422 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
14423 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
14424 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
14425 iamcu_elf32_vec) tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14426 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14427 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14428 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14429 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14430 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14431 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
14432 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
14433 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14434 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14435 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14436 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14437 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14438 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14439 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14440 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14441 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14442 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14443 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14444 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14445 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14446 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14447 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14448 m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
14449 m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
14450 m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
14451 m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
14452 m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
14453 m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;;
14454 m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;;
14455 m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;;
14456 m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;;
14457 m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;;
14458 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14459 m68k_versados_vec) tb="$tb versados.lo" ;;
14460 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14461 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14462 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14463 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14464 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14465 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14466 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14467 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14468 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14469 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14470 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14471 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
14472 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14473 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14474 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14475 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14476 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14477 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14478 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14479 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14480 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14481 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14482 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14483 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14484 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14485 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14486 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14487 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14488 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14489 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14490 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14491 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14492 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14493 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14494 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14495 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14496 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14497 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;;
14498 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;;
14499 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14500 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
14501 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14502 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14503 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14504 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14505 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14506 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14507 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14508 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14509 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14510 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14511 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14512 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14513 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14514 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
14515 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
14516 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
14517 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
14518 pef_vec) tb="$tb pef.lo" ;;
14519 pef_xlib_vec) tb="$tb pef.lo" ;;
14520 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14521 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14522 plugin_vec) tb="$tb plugin.lo" ;;
14523 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
14524 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14525 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14526 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14527 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14528 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14529 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14530 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14531 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14532 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14533 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14534 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14535 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
14536 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
14537 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14538 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
14539 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
14540 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14541 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14542 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
14543 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14544 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14545 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14546 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14547 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
14548 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14549 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14550 sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14551 sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14552 sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14553 sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14554 sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
14555 sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
14556 sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14557 sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14558 sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14559 sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14560 sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14561 sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14562 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
14563 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
14564 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
14565 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
14566 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14567 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14568 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14569 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14570 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14571 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14572 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14573 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14574 sh_elf32_symbian_le_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14575 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14576 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14577 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14578 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
14579 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
14580 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
14581 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
14582 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
14583 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;;
14584 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;;
14585 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;;
14586 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14587 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14588 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14589 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14590 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14591 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14592 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
14593 sym_vec) tb="$tb xsym.lo" ;;
14594 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
14595 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
14596 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14597 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14598 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14599 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14600 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14601 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14602 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14603 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14604 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14605 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14606 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14607 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14608 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14609 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14610 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14611 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14612 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14613 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14614 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
14615 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14616 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14617 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14618 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14619 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14620 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14621 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14622 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
14623 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
14624 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
14625 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
14626 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
14627 wasm_vec) tb="$tb wasm-module.lo" ;;
14628 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
14629 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
14630 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14631 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14632 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14633 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14634 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14635 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14636 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14637 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
14638 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14639 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14640 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14641 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14642 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
14643 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14644 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14645 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14646 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
14647 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
14649 # These appear out of order in targets.c
14650 srec_vec) tb="$tb srec.lo" ;;
14651 symbolsrec_vec) tb="$tb srec.lo" ;;
14652 tekhex_vec) tb="$tb tekhex.lo" ;;
14653 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
14654 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
14657 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
14660 if test ${target_size} = 64; then
14663 if test x"${vec}" = x"${defvec}"; then
14664 bfd_default_target_size=${target_size}
14668 # Target architecture .o files.
14669 # A couple of CPUs use shorter file names to avoid problems on DOS
14671 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
14673 # Weed out duplicate .o files.
14695 if test x${all_targets} = xtrue ; then
14696 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14697 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14699 havevecs=-DHAVE_all_vecs
14701 test -n "$assocvecs" &&
14702 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14703 else # all_targets is true
14704 # Only set these if they will be nonempty, for the clever echo.
14707 test -n "$selvecs" &&
14708 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14709 test -n "$selvecs" &&
14710 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14711 test -n "$selarchs" &&
14712 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14713 fi # all_targets is true
14715 # 64-bit archives need a 64-bit bfd_vma.
14716 if test "x$want_64_bit_archive" = xtrue; then
14719 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
14723 case ${host64}-${target64}-${want64} in
14726 bfd64_libs='$(BFD64_LIBS)'
14727 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14728 if test $BFD_HOST_64_BIT_DEFINED = 0; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14730 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
14732 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14734 if test -n "$GCC" ; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
14737 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
14738 # Add more tests for gcc versions with non-working 64-bit support here.
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 :__GNUC__:__GNUC_MINOR__:__i386__:
14743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14744 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14747 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14750 $as_echo "no" >&6; }
14754 if test $bad_64bit_gcc = yes ; then
14755 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
14761 all_backends='$(BFD32_BACKENDS)'
14766 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14767 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14768 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14769 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14780 # If we are configured native, pick a core file support file.
14785 if test "${target}" = "${host}"; then
14787 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14791 COREFILE=trad-core.lo
14792 TRAD_HEADER='"hosts/alphalinux.h"'
14794 alpha*-*-netbsd* | alpha*-*-openbsd*)
14795 COREFILE=netbsd-core.lo
14798 COREFILE=osf-core.lo
14800 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14802 arm-*-netbsd* | arm-*-openbsd*)
14803 COREFILE=netbsd-core.lo
14805 arm-*-riscix) COREFILE=trad-core.lo ;;
14806 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
14807 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
14808 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
14809 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
14810 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14811 hppa*-*-netbsd* | hppa*-*-openbsd*)
14812 COREFILE=netbsd-core.lo
14815 i[3-7]86-sequent-bsd*)
14816 COREFILE=trad-core.lo
14817 TRAD_HEADER='"hosts/symmetry.h"'
14819 i[3-7]86-sequent-sysv4*) ;;
14820 i[3-7]86-sequent-sysv*)
14821 COREFILE=trad-core.lo
14822 TRAD_HEADER='"hosts/symmetry.h"'
14827 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
14828 COREFILE=trad-core.lo
14829 TRAD_HEADER='"hosts/i386bsd.h"'
14831 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14833 TRAD_HEADER='"hosts/i386bsd.h"'
14835 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14836 COREFILE=netbsd-core.lo
14838 i[3-7]86-esix-sysv3*)
14839 COREFILE=trad-core.lo
14840 TRAD_HEADER='"hosts/esix.h"'
14842 i[3-7]86-*-sco3.2v5*)
14843 COREFILE=sco5-core.lo
14845 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14846 COREFILE=trad-core.lo
14847 TRAD_HEADER='"hosts/i386sco.h"'
14850 COREFILE=trad-core.lo
14851 TRAD_HEADER='"hosts/i386mach3.h"'
14853 i[3-7]86-*-linux-*)
14854 COREFILE=trad-core.lo
14855 TRAD_HEADER='"hosts/i386linux.h"'
14856 case "$enable_targets"-"$want64" in
14857 *x86_64-*linux*|*-true)
14858 CORE_HEADER='"hosts/x86-64linux.h"'
14861 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
14862 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
14863 mips-*-netbsd* | mips*-*-openbsd*)
14864 COREFILE=netbsd-core.lo
14867 COREFILE=trad-core.lo
14868 TRAD_HEADER='"hosts/decstation.h"'
14870 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
14871 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
14872 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
14874 mips-*-sysv* | mips-*-riscos*)
14875 COREFILE=trad-core.lo
14876 TRAD_HEADER='"hosts/riscos.h"'
14879 COREFILE=trad-core.lo
14880 TRAD_HEADER='"hosts/dpx2.h"'
14882 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
14884 COREFILE=trad-core.lo
14885 TRAD_HEADER='"hosts/hp300bsd.h"'
14888 COREFILE=trad-core.lo
14889 TRAD_HEADER='"hosts/m68klinux.h"'
14891 m68*-motorola-sysv*)
14892 COREFILE=trad-core.lo
14893 TRAD_HEADER='"hosts/delta68.h"'
14895 m68*-*-netbsd* | m68*-*-openbsd*)
14896 COREFILE=netbsd-core.lo
14899 COREFILE=trad-core.lo
14900 TRAD_HEADER='"hosts/m68kaux.h"'
14903 COREFILE=trad-core.lo
14904 TRAD_HEADER='"hosts/pc532mach.h"'
14906 ns32k-*-netbsd* | ns32k-*-openbsd*)
14907 COREFILE=netbsd-core.lo
14910 COREFILE=lynx-core.lo
14912 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14913 COREFILE=rs6000-core.lo
14914 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14916 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14917 COREFILE=rs6000-core.lo
14918 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14919 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14920 # have c_impl as a member of struct core_dumpx
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14922 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14929 struct core_dumpx c; c.c_impl = 0;
14934 if ac_fn_c_try_compile "$LINENO"; then :
14936 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14939 $as_echo "yes" >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14947 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14948 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
14949 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14950 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14951 powerpc-*-beos*) ;;
14952 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14954 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14955 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14956 s390*-*-*) COREFILE=trad-core.lo ;;
14957 sh*-*-netbsd* | sh*-*-openbsd*)
14958 COREFILE=netbsd-core.lo
14960 sparc-*-netbsd* | sparc*-*-openbsd*)
14961 COREFILE=netbsd-core.lo
14963 vax-*-netbsd* | vax-*-openbsd*)
14964 COREFILE=netbsd-core.lo
14967 COREFILE=trad-core.lo
14968 TRAD_HEADER='"hosts/vaxult2.h"'
14971 COREFILE=trad-core.lo
14972 TRAD_HEADER='"hosts/vaxult2.h"'
14975 COREFILE=trad-core.lo
14976 TRAD_HEADER='"hosts/vaxlinux.h"'
14979 COREFILE=trad-core.lo
14980 TRAD_HEADER='"hosts/vaxbsd.h"'
14983 CORE_HEADER='"hosts/x86-64linux.h"'
14985 x86_64-*-netbsd* | x86_64-*-openbsd*)
14986 COREFILE=netbsd-core.lo
14990 case "$COREFILE" in
14991 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14992 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14993 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14994 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14995 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14996 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14997 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14998 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14999 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
15000 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
15001 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
15004 # ELF corefile support has several flavors, but all of
15005 # them use something called <sys/procfs.h>
15006 for ac_header in sys/procfs.h
15008 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15009 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_SYS_PROCFS_H 1
15018 if test "$ac_cv_header_sys_procfs_h" = yes; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
15020 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
15021 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
15022 $as_echo_n "(cached) " >&6
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15028 /* Needed for new procfs interface on sparc-solaris. */
15029 #define _STRUCTURED_PROC 1
15030 #include <sys/procfs.h>
15039 if ac_fn_c_try_compile "$LINENO"; then :
15040 bfd_cv_have_sys_procfs_type_prstatus_t=yes
15042 bfd_cv_have_sys_procfs_type_prstatus_t=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15048 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
15050 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
15054 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
15057 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
15058 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
15059 $as_echo_n "(cached) " >&6
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15065 /* Needed for new procfs interface on sparc-solaris. */
15066 #define _STRUCTURED_PROC 1
15067 #include <sys/procfs.h>
15076 if ac_fn_c_try_compile "$LINENO"; then :
15077 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15079 bfd_cv_have_sys_procfs_type_prstatus32_t=no
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15087 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15091 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15094 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15095 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
15096 $as_echo_n "(cached) " >&6
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15102 /* Needed for new procfs interface on sparc-solaris. */
15103 #define _STRUCTURED_PROC 1
15104 #include <sys/procfs.h>
15108 prstatus_t avar; void* aref = (void*) &avar.pr_who
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15116 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15124 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15128 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15131 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15132 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
15133 $as_echo_n "(cached) " >&6
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15139 /* Needed for new procfs interface on sparc-solaris. */
15140 #define _STRUCTURED_PROC 1
15141 #include <sys/procfs.h>
15145 prstatus32_t avar; void* aref = (void*) &avar.pr_who
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15153 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15161 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15165 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15168 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15169 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15176 /* Needed for new procfs interface on sparc-solaris. */
15177 #define _STRUCTURED_PROC 1
15178 #include <sys/procfs.h>
15187 if ac_fn_c_try_compile "$LINENO"; then :
15188 bfd_cv_have_sys_procfs_type_pstatus_t=yes
15190 bfd_cv_have_sys_procfs_type_pstatus_t=no
15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15198 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15202 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15205 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15206 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
15207 $as_echo_n "(cached) " >&6
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15213 /* Needed for new procfs interface on sparc-solaris. */
15214 #define _STRUCTURED_PROC 1
15215 #include <sys/procfs.h>
15224 if ac_fn_c_try_compile "$LINENO"; then :
15225 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15227 bfd_cv_have_sys_procfs_type_pxstatus_t=no
15230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15233 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15235 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15239 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15242 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15243 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
15244 $as_echo_n "(cached) " >&6
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15250 /* Needed for new procfs interface on sparc-solaris. */
15251 #define _STRUCTURED_PROC 1
15252 #include <sys/procfs.h>
15261 if ac_fn_c_try_compile "$LINENO"; then :
15262 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15264 bfd_cv_have_sys_procfs_type_pstatus32_t=no
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15270 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15272 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15276 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15279 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15280 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
15281 $as_echo_n "(cached) " >&6
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15287 /* Needed for new procfs interface on sparc-solaris. */
15288 #define _STRUCTURED_PROC 1
15289 #include <sys/procfs.h>
15298 if ac_fn_c_try_compile "$LINENO"; then :
15299 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15301 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15309 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15313 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15316 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15317 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
15318 $as_echo_n "(cached) " >&6
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15324 /* Needed for new procfs interface on sparc-solaris. */
15325 #define _STRUCTURED_PROC 1
15326 #include <sys/procfs.h>
15330 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15335 if ac_fn_c_try_compile "$LINENO"; then :
15336 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15338 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15344 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15346 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15350 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15353 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15354 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
15355 $as_echo_n "(cached) " >&6
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15361 /* Needed for new procfs interface on sparc-solaris. */
15362 #define _STRUCTURED_PROC 1
15363 #include <sys/procfs.h>
15372 if ac_fn_c_try_compile "$LINENO"; then :
15373 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15375 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15383 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15387 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15390 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15391 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
15392 $as_echo_n "(cached) " >&6
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15398 /* Needed for new procfs interface on sparc-solaris. */
15399 #define _STRUCTURED_PROC 1
15400 #include <sys/procfs.h>
15404 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15409 if ac_fn_c_try_compile "$LINENO"; then :
15410 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15412 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15420 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15424 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15427 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15428 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
15429 $as_echo_n "(cached) " >&6
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15435 /* Needed for new procfs interface on sparc-solaris. */
15436 #define _STRUCTURED_PROC 1
15437 #include <sys/procfs.h>
15446 if ac_fn_c_try_compile "$LINENO"; then :
15447 bfd_cv_have_sys_procfs_type_psinfo_t=yes
15449 bfd_cv_have_sys_procfs_type_psinfo_t=no
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15457 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15461 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15464 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15465 if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
15466 $as_echo_n "(cached) " >&6
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15472 /* Needed for new procfs interface on sparc-solaris. */
15473 #define _STRUCTURED_PROC 1
15474 #include <sys/procfs.h>
15478 psinfo_t avar; void* aref = (void*) &avar.pr_pid
15483 if ac_fn_c_try_compile "$LINENO"; then :
15484 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15486 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15494 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15498 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15501 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15502 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15509 /* Needed for new procfs interface on sparc-solaris. */
15510 #define _STRUCTURED_PROC 1
15511 #include <sys/procfs.h>
15520 if ac_fn_c_try_compile "$LINENO"; then :
15521 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15523 bfd_cv_have_sys_procfs_type_psinfo32_t=no
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15531 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15535 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15538 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15539 if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
15540 $as_echo_n "(cached) " >&6
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15546 /* Needed for new procfs interface on sparc-solaris. */
15547 #define _STRUCTURED_PROC 1
15548 #include <sys/procfs.h>
15552 psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15557 if ac_fn_c_try_compile "$LINENO"; then :
15558 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15560 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15568 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15572 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15575 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15576 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15583 /* Needed for new procfs interface on sparc-solaris. */
15584 #define _STRUCTURED_PROC 1
15585 #include <sys/procfs.h>
15594 if ac_fn_c_try_compile "$LINENO"; then :
15595 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15597 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15605 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15609 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15612 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15613 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
15614 $as_echo_n "(cached) " >&6
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15620 /* Needed for new procfs interface on sparc-solaris. */
15621 #define _STRUCTURED_PROC 1
15622 #include <sys/procfs.h>
15631 if ac_fn_c_try_compile "$LINENO"; then :
15632 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15634 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15642 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15646 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15649 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15650 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
15651 $as_echo_n "(cached) " >&6
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15657 /* Needed for new procfs interface on sparc-solaris. */
15658 #define _STRUCTURED_PROC 1
15659 #include <sys/procfs.h>
15663 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15668 if ac_fn_c_try_compile "$LINENO"; then :
15669 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15671 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
15679 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
15683 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
15686 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
15687 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
15688 $as_echo_n "(cached) " >&6
15690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15691 /* end confdefs.h. */
15694 /* Needed for new procfs interface on sparc-solaris. */
15695 #define _STRUCTURED_PROC 1
15696 #include <sys/procfs.h>
15700 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
15705 if ac_fn_c_try_compile "$LINENO"; then :
15706 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
15708 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
15716 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
15720 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
15723 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
15724 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
15725 $as_echo_n "(cached) " >&6
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15731 /* Needed for new procfs interface on sparc-solaris. */
15732 #define _STRUCTURED_PROC 1
15733 #include <sys/procfs.h>
15737 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
15742 if ac_fn_c_try_compile "$LINENO"; then :
15743 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
15745 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
15753 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
15757 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
15760 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
15761 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
15762 $as_echo_n "(cached) " >&6
15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765 /* end confdefs.h. */
15768 /* Needed for new procfs interface on sparc-solaris. */
15769 #define _STRUCTURED_PROC 1
15770 #include <sys/procfs.h>
15774 win32_pstatus_t avar
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
15782 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
15785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
15790 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
15794 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
15800 if test -n "$CORE_HEADER"; then
15802 cat >>confdefs.h <<_ACEOF
15803 #define CORE_HEADER $CORE_HEADER
15807 if test -n "$TRAD_HEADER"; then
15809 cat >>confdefs.h <<_ACEOF
15810 #define TRAD_HEADER $TRAD_HEADER
15815 if test "$plugins" = "yes"; then
15823 # Determine the host dependent file_ptr a.k.a. off_t type. In order
15824 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15825 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15826 # Hopefully a reasonable assumption since fseeko et.al. should be
15827 # upward compatible.
15828 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15832 eval as_val=\$$as_ac_var
15833 if test "x$as_val" = x""yes; then :
15834 cat >>confdefs.h <<_ACEOF
15835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15841 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15842 # The cast to long int works around a bug in the HP C Compiler
15843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15845 # This bug is HP SR number 8606223364.
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15847 $as_echo_n "checking size of off_t... " >&6; }
15848 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15849 $as_echo_n "(cached) " >&6
15851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15854 if test "$ac_cv_type_off_t" = yes; then
15855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15857 { as_fn_set_status 77
15858 as_fn_error "cannot compute sizeof (off_t)
15859 See \`config.log' for more details." "$LINENO" 5; }; }
15861 ac_cv_sizeof_off_t=0
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15867 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15871 cat >>confdefs.h <<_ACEOF
15872 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15878 $as_echo_n "checking file_ptr type... " >&6; }
15879 bfd_file_ptr="long"
15880 bfd_ufile_ptr="unsigned long"
15881 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15882 -o x"${ac_cv_sizeof_off_t}" = x8; then
15883 bfd_file_ptr=BFD_HOST_64_BIT
15884 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15887 $as_echo "$bfd_file_ptr" >&6; }
15891 for ac_header in stdlib.h unistd.h
15893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15894 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15895 eval as_val=\$$as_ac_Header
15896 if test "x$as_val" = x""yes; then :
15897 cat >>confdefs.h <<_ACEOF
15898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15905 for ac_func in getpagesize
15907 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15908 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15909 cat >>confdefs.h <<_ACEOF
15910 #define HAVE_GETPAGESIZE 1
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15917 $as_echo_n "checking for working mmap... " >&6; }
15918 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15919 $as_echo_n "(cached) " >&6
15921 if test "$cross_compiling" = yes; then :
15922 ac_cv_func_mmap_fixed_mapped=no
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 $ac_includes_default
15927 /* malloc might have been renamed as rpl_malloc. */
15930 /* Thanks to Mike Haertel and Jim Avera for this test.
15931 Here is a matrix of mmap possibilities:
15932 mmap private not fixed
15933 mmap private fixed at somewhere currently unmapped
15934 mmap private fixed at somewhere already mapped
15935 mmap shared not fixed
15936 mmap shared fixed at somewhere currently unmapped
15937 mmap shared fixed at somewhere already mapped
15938 For private mappings, we should verify that changes cannot be read()
15939 back from the file, nor mmap's back from the file at a different
15940 address. (There have been systems where private was not correctly
15941 implemented like the infamous i386 svr4.0, and systems where the
15942 VM page cache was not coherent with the file system buffer cache
15943 like early versions of FreeBSD and possibly contemporary NetBSD.)
15944 For shared mappings, we should conversely verify that changes get
15945 propagated back to all the places they're supposed to be.
15947 Grep wants private fixed already mapped.
15948 The main things grep needs to know about mmap are:
15949 * does it exist and is it safe to write into the mmap'd area
15950 * how to use it (BSD variants) */
15953 #include <sys/mman.h>
15955 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15959 /* This mess was copied from the GNU getpagesize.h. */
15960 #ifndef HAVE_GETPAGESIZE
15961 /* Assume that all systems that can run configure have sys/param.h. */
15962 # ifndef HAVE_SYS_PARAM_H
15963 # define HAVE_SYS_PARAM_H 1
15966 # ifdef _SC_PAGESIZE
15967 # define getpagesize() sysconf(_SC_PAGESIZE)
15968 # else /* no _SC_PAGESIZE */
15969 # ifdef HAVE_SYS_PARAM_H
15970 # include <sys/param.h>
15971 # ifdef EXEC_PAGESIZE
15972 # define getpagesize() EXEC_PAGESIZE
15973 # else /* no EXEC_PAGESIZE */
15975 # define getpagesize() NBPG * CLSIZE
15978 # endif /* no CLSIZE */
15979 # else /* no NBPG */
15981 # define getpagesize() NBPC
15982 # else /* no NBPC */
15984 # define getpagesize() PAGESIZE
15985 # endif /* PAGESIZE */
15986 # endif /* no NBPC */
15987 # endif /* no NBPG */
15988 # endif /* no EXEC_PAGESIZE */
15989 # else /* no HAVE_SYS_PARAM_H */
15990 # define getpagesize() 8192 /* punt totally */
15991 # endif /* no HAVE_SYS_PARAM_H */
15992 # endif /* no _SC_PAGESIZE */
15994 #endif /* no HAVE_GETPAGESIZE */
15999 char *data, *data2, *data3;
16003 pagesize = getpagesize ();
16005 /* First, make a file with some known garbage in it. */
16006 data = (char *) malloc (pagesize);
16009 for (i = 0; i < pagesize; ++i)
16010 *(data + i) = rand ();
16012 fd = creat ("conftest.mmap", 0600);
16015 if (write (fd, data, pagesize) != pagesize)
16019 /* Next, try to mmap the file at a fixed address which already has
16020 something else allocated at it. If we can, also make sure that
16021 we see the same garbage. */
16022 fd = open ("conftest.mmap", O_RDWR);
16025 data2 = (char *) malloc (2 * pagesize);
16028 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16029 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16030 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16032 for (i = 0; i < pagesize; ++i)
16033 if (*(data + i) != *(data2 + i))
16036 /* Finally, make sure that changes to the mapped area do not
16037 percolate back to the file as seen by read(). (This is a bug on
16038 some variants of i386 svr4.0.) */
16039 for (i = 0; i < pagesize; ++i)
16040 *(data2 + i) = *(data2 + i) + 1;
16041 data3 = (char *) malloc (pagesize);
16044 if (read (fd, data3, pagesize) != pagesize)
16046 for (i = 0; i < pagesize; ++i)
16047 if (*(data + i) != *(data3 + i))
16053 if ac_fn_c_try_run "$LINENO"; then :
16054 ac_cv_func_mmap_fixed_mapped=yes
16056 ac_cv_func_mmap_fixed_mapped=no
16058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16059 conftest.$ac_objext conftest.beam conftest.$ac_ext
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16064 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16065 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16067 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16070 rm -f conftest.mmap
16072 for ac_func in madvise mprotect
16074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16076 eval as_val=\$$as_ac_var
16077 if test "x$as_val" = x""yes; then :
16078 cat >>confdefs.h <<_ACEOF
16079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16085 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16087 $as_echo "#define USE_MMAP 1" >>confdefs.h
16091 rm -f doc/config.status
16092 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
16095 ac_config_commands="$ac_config_commands default"
16103 cat >confcache <<\_ACEOF
16104 # This file is a shell script that caches the results of configure
16105 # tests run on this system so they can be shared between configure
16106 # scripts and configure runs, see configure's option --config-cache.
16107 # It is not useful on other systems. If it contains results you don't
16108 # want to keep, you may remove or edit it.
16110 # config.status only pays attention to the cache file if you give it
16111 # the --recheck option to rerun configure.
16113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16115 # following values.
16119 # The following way of writing the cache mishandles newlines in values,
16120 # but we know of no workaround that is simple, portable, and efficient.
16121 # So, we kill variables containing newlines.
16122 # Ultrix sh set writes to stderr and can't be redirected directly,
16123 # and sets the high bit in the cache file unless we assign to the vars.
16125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16126 eval ac_val=\$$ac_var
16130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16134 _ | IFS | as_nl) ;; #(
16135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16136 *) { eval $ac_var=; unset $ac_var;} ;;
16142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16143 *${as_nl}ac_space=\ *)
16144 # `set' does not quote correctly, so add quotes: double-quote
16145 # substitution turns \\\\ into \\, and sed turns \\ into \.
16148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16151 # `set' quotes correctly as required by POSIX, so do not add quotes.
16152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16166 if test -w "$cache_file"; then
16167 test "x$cache_file" != "x/dev/null" &&
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16169 $as_echo "$as_me: updating cache $cache_file" >&6;}
16170 cat confcache >$cache_file
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16179 # Let make expand exec_prefix.
16180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16182 DEFS=-DHAVE_CONFIG_H
16186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16187 # 1. Remove the extension, and $U if already installed.
16188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16189 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16191 # will be set to the directory where LIBOBJS objects are built.
16192 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16193 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16195 LIBOBJS=$ac_libobjs
16197 LTLIBOBJS=$ac_ltlibobjs
16200 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16201 as_fn_error "conditional \"AMDEP\" was never defined.
16202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16204 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16205 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16208 if test -n "$EXEEXT"; then
16210 am__EXEEXT_FALSE='#'
16212 am__EXEEXT_TRUE='#'
16216 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16217 as_fn_error "conditional \"PLUGINS\" was never defined.
16218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16220 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16221 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16224 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16225 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16228 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
16229 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
16230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16233 : ${CONFIG_STATUS=./config.status}
16235 ac_clean_files_save=$ac_clean_files
16236 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16238 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16240 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16242 # Generated by $as_me.
16243 # Run this file to recreate the current configuration.
16244 # Compiler output produced by configure, useful for debugging
16245 # configure, is in config.log if it exists.
16248 ac_cs_recheck=false
16251 SHELL=\${CONFIG_SHELL-$SHELL}
16254 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16255 ## -------------------- ##
16256 ## M4sh Initialization. ##
16257 ## -------------------- ##
16259 # Be more Bourne compatible
16260 DUALCASE=1; export DUALCASE # for MKS sh
16261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16265 # is contrary to our usage. Disable this feature.
16266 alias -g '${1+"$@"}'='"$@"'
16267 setopt NO_GLOB_SUBST
16269 case `(set -o) 2>/dev/null` in #(
16281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16282 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16285 # Prefer a ksh shell builtin over an external printf program on Solaris,
16286 # but without wasting forks for bash or zsh.
16287 if test -z "$BASH_VERSION$ZSH_VERSION" \
16288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16289 as_echo='print -r --'
16290 as_echo_n='print -rn --'
16291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16292 as_echo='printf %s\n'
16293 as_echo_n='printf %s'
16295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16296 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16297 as_echo_n='/usr/ucb/echo -n'
16299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16300 as_echo_n_body='eval
16304 expr "X$arg" : "X\\(.*\\)$as_nl";
16305 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16307 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16309 export as_echo_n_body
16310 as_echo_n='sh -c $as_echo_n_body as_echo'
16312 export as_echo_body
16313 as_echo='sh -c $as_echo_body as_echo'
16316 # The user is always right.
16317 if test "${PATH_SEPARATOR+set}" != set; then
16319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16320 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16327 # We need space, tab and new line, in precisely that order. Quoting is
16328 # there to prevent editors from complaining about space-tab.
16329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16330 # splitting by setting IFS to empty value.)
16333 # Find who we are. Look in the path if we contain no directory separator.
16335 *[\\/]* ) as_myself=$0 ;;
16336 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16337 for as_dir in $PATH
16340 test -z "$as_dir" && as_dir=.
16341 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16347 # We did not find ourselves, most probably we were run as `sh COMMAND'
16348 # in which case we are not to be found in the path.
16349 if test "x$as_myself" = x; then
16352 if test ! -f "$as_myself"; then
16353 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16357 # Unset variables that we do not need and which cause bugs (e.g. in
16358 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16359 # suppresses any "Segmentation fault" message there. '((' could
16360 # trigger a bug in pdksh 5.2.14.
16361 for as_var in BASH_ENV ENV MAIL MAILPATH
16362 do eval test x\${$as_var+set} = xset \
16363 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16376 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16379 # as_fn_error ERROR [LINENO LOG_FD]
16380 # ---------------------------------
16381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16383 # script with status $?, using 1 if that was 0.
16386 as_status=$?; test $as_status -eq 0 && as_status=1
16388 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16391 $as_echo "$as_me: error: $1" >&2
16392 as_fn_exit $as_status
16396 # as_fn_set_status STATUS
16397 # -----------------------
16398 # Set $? to STATUS, without forking.
16399 as_fn_set_status ()
16402 } # as_fn_set_status
16404 # as_fn_exit STATUS
16405 # -----------------
16406 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16410 as_fn_set_status $1
16416 # Portably unset VAR.
16419 { eval $1=; unset $1;}
16421 as_unset=as_fn_unset
16422 # as_fn_append VAR VALUE
16423 # ----------------------
16424 # Append the text in VALUE to the end of the definition contained in VAR. Take
16425 # advantage of any shell optimizations that allow amortized linear growth over
16426 # repeated appends, instead of the typical quadratic growth present in naive
16428 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16429 eval 'as_fn_append ()
16440 # as_fn_arith ARG...
16441 # ------------------
16442 # Perform arithmetic evaluation on the ARGs, and store the result in the
16443 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16444 # must be portable across $(()) and expr.
16445 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16446 eval 'as_fn_arith ()
16453 as_val=`expr "$@" || test $? -eq 1`
16458 if expr a : '\(a\)' >/dev/null 2>&1 &&
16459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16466 as_basename=basename
16471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16477 as_me=`$as_basename -- "$0" ||
16478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16479 X"$0" : 'X\(//\)$' \| \
16480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16482 sed '/^.*\/\([^/][^/]*\)\/*$/{
16496 # Avoid depending upon Character Ranges.
16497 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16498 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16499 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16500 as_cr_digits='0123456789'
16501 as_cr_alnum=$as_cr_Letters$as_cr_digits
16503 ECHO_C= ECHO_N= ECHO_T=
16504 case `echo -n x` in #(((((
16506 case `echo 'xy\c'` in
16507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16516 rm -f conf$$ conf$$.exe conf$$.file
16517 if test -d conf$$.dir; then
16518 rm -f conf$$.dir/conf$$.file
16521 mkdir conf$$.dir 2>/dev/null
16523 if (echo >conf$$.file) 2>/dev/null; then
16524 if ln -s conf$$.file conf$$ 2>/dev/null; then
16526 # ... but there are two gotchas:
16527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16529 # In both cases, we have to default to `cp -p'.
16530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16532 elif ln conf$$.file conf$$ 2>/dev/null; then
16540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16541 rmdir conf$$.dir 2>/dev/null
16546 # Create "$as_dir" as a directory, including parents if necessary.
16551 -*) as_dir=./$as_dir;;
16553 test -d "$as_dir" || eval $as_mkdir_p || {
16557 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16558 *) as_qdir=$as_dir;;
16560 as_dirs="'$as_qdir' $as_dirs"
16561 as_dir=`$as_dirname -- "$as_dir" ||
16562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16563 X"$as_dir" : 'X\(//\)[^/]' \| \
16564 X"$as_dir" : 'X\(//\)$' \| \
16565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16566 $as_echo X"$as_dir" |
16567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16571 /^X\(\/\/\)[^/].*/{
16584 test -d "$as_dir" && break
16586 test -z "$as_dirs" || eval "mkdir $as_dirs"
16587 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16591 if mkdir -p . 2>/dev/null; then
16592 as_mkdir_p='mkdir -p "$as_dir"'
16594 test -d ./-p && rmdir ./-p
16598 if test -x / >/dev/null 2>&1; then
16599 as_test_x='test -x'
16601 if ls -dL / >/dev/null 2>&1; then
16608 if test -d "$1"; then
16614 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16615 ???[sx]*):;;*)false;;esac;fi
16619 as_executable_p=$as_test_x
16621 # Sed expression to map a string onto a valid CPP name.
16622 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16624 # Sed expression to map a string onto a valid variable name.
16625 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16629 ## ----------------------------------- ##
16630 ## Main body of $CONFIG_STATUS script. ##
16631 ## ----------------------------------- ##
16633 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16636 # Save the log message, to keep $0 and so on meaningful, and to
16637 # report actual input values of CONFIG_FILES etc. instead of their
16638 # values after options handling.
16640 This file was extended by bfd $as_me 2.30.51, which was
16641 generated by GNU Autoconf 2.64. Invocation command line was
16643 CONFIG_FILES = $CONFIG_FILES
16644 CONFIG_HEADERS = $CONFIG_HEADERS
16645 CONFIG_LINKS = $CONFIG_LINKS
16646 CONFIG_COMMANDS = $CONFIG_COMMANDS
16649 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16654 case $ac_config_files in *"
16655 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16658 case $ac_config_headers in *"
16659 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16664 # Files that config.status was made for.
16665 config_files="$ac_config_files"
16666 config_headers="$ac_config_headers"
16667 config_commands="$ac_config_commands"
16671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16673 \`$as_me' instantiates files and other configuration actions
16674 from templates according to the current configuration. Unless the files
16675 and actions are specified as TAGs, all are instantiated by default.
16677 Usage: $0 [OPTION]... [TAG]...
16679 -h, --help print this help, then exit
16680 -V, --version print version number and configuration settings, then exit
16681 -q, --quiet, --silent
16682 do not print progress messages
16683 -d, --debug don't remove temporary files
16684 --recheck update $as_me by reconfiguring in the same conditions
16685 --file=FILE[:TEMPLATE]
16686 instantiate the configuration file FILE
16687 --header=FILE[:TEMPLATE]
16688 instantiate the configuration header FILE
16690 Configuration files:
16693 Configuration headers:
16696 Configuration commands:
16699 Report bugs to the package provider."
16702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16704 bfd config.status 2.30.51
16705 configured by $0, generated by GNU Autoconf 2.64,
16706 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16708 Copyright (C) 2009 Free Software Foundation, Inc.
16709 This config.status script is free software; the Free Software Foundation
16710 gives unlimited permission to copy, distribute and modify it."
16717 test -n "\$AWK" || AWK=awk
16720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721 # The default lists apply if the user does not specify any file.
16727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16728 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16739 # Handling of the options.
16740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16743 $as_echo "$ac_cs_version"; exit ;;
16744 --debug | --debu | --deb | --de | --d | -d )
16746 --file | --fil | --fi | --f )
16749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16751 as_fn_append CONFIG_FILES " '$ac_optarg'"
16752 ac_need_defaults=false;;
16753 --header | --heade | --head | --hea )
16756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16758 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16759 ac_need_defaults=false;;
16761 # Conflict between --help and --header
16762 as_fn_error "ambiguous option: \`$1'
16763 Try \`$0 --help' for more information.";;
16764 --help | --hel | -h )
16765 $as_echo "$ac_cs_usage"; exit ;;
16766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16770 # This is an error.
16771 -*) as_fn_error "unrecognized option: \`$1'
16772 Try \`$0 --help' for more information." ;;
16774 *) as_fn_append ac_config_targets " $1"
16775 ac_need_defaults=false ;;
16781 ac_configure_extra_args=
16783 if $ac_cs_silent; then
16785 ac_configure_extra_args="$ac_configure_extra_args --silent"
16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790 if \$ac_cs_recheck; then
16791 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16794 CONFIG_SHELL='$SHELL'
16795 export CONFIG_SHELL
16800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16805 ## Running $as_me. ##
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16815 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16818 # The HP-UX ksh and POSIX shell print the target directory to stdout
16819 # if CDPATH is set.
16820 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16822 sed_quote_subst='$sed_quote_subst'
16823 double_quote_subst='$double_quote_subst'
16824 delay_variable_subst='$delay_variable_subst'
16825 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16826 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16827 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16828 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16829 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16830 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16831 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16832 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16833 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16834 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16835 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16836 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16837 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16838 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16839 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16840 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16841 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16842 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16843 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16844 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16845 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16846 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16847 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16848 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16849 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16850 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16851 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16852 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16853 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16854 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16855 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16856 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16857 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16858 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16859 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16860 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16861 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16862 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16863 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16864 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16865 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16866 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16867 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16868 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16869 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16870 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16871 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16872 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16873 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"`'
16874 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16875 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16876 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16877 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16878 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16879 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16880 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16881 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16882 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16883 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16884 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16885 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16886 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16887 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16888 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16889 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16890 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16891 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16892 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16893 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16894 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16895 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16896 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16897 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16898 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16899 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16900 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16901 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16902 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16903 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16904 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16905 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16906 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16907 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16908 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16909 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16910 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16911 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16912 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16913 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16914 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16915 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16916 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16917 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16918 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16919 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16920 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16921 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16922 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16923 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16924 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16925 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16926 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16927 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16928 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16929 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16930 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16931 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16932 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16933 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16934 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16935 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16936 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16937 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16938 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16939 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16940 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16941 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16942 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16943 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16944 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16947 LTCFLAGS='$LTCFLAGS'
16948 compiler='$compiler_DEFAULT'
16950 # A function that is used when there is no print builtin or printf.
16951 func_fallback_echo ()
16953 eval 'cat <<_LTECHO_EOF
16958 # Quote evaled strings.
16972 deplibs_check_method \
16981 lt_cv_sys_global_symbol_pipe \
16982 lt_cv_sys_global_symbol_to_cdecl \
16983 lt_cv_sys_global_symbol_to_c_name_address \
16984 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16985 lt_prog_compiler_no_builtin_flag \
16986 lt_prog_compiler_wl \
16987 lt_prog_compiler_pic \
16988 lt_prog_compiler_static \
16989 lt_cv_prog_compiler_c_o \
16997 export_dynamic_flag_spec \
16998 whole_archive_flag_spec \
16999 compiler_needs_object \
17001 allow_undefined_flag \
17002 no_undefined_flag \
17003 hardcode_libdir_flag_spec \
17004 hardcode_libdir_flag_spec_ld \
17005 hardcode_libdir_separator \
17010 variables_saved_for_relink \
17012 library_names_spec \
17014 install_override_mode \
17018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17019 *[\\\\\\\`\\"\\\$]*)
17020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17028 # Double-quote double-evaled strings.
17029 for var in reload_cmds \
17030 old_postinstall_cmds \
17031 old_postuninstall_cmds \
17033 extract_expsyms_cmds \
17034 old_archive_from_new_cmds \
17035 old_archive_from_expsyms_cmds \
17037 archive_expsym_cmds \
17039 module_expsym_cmds \
17040 export_symbols_cmds \
17043 postuninstall_cmds \
17045 sys_lib_search_path_spec \
17046 sys_lib_dlsearch_path_spec; do
17047 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17048 *[\\\\\\\`\\"\\\$]*)
17049 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17052 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17057 ac_aux_dir='$ac_aux_dir'
17058 xsi_shell='$xsi_shell'
17059 lt_shell_append='$lt_shell_append'
17061 # See if we are running on zsh, and set the options which allow our
17062 # commands through without removal of \ escapes INIT.
17063 if test -n "\${ZSH_VERSION+set}" ; then
17064 setopt NO_GLOB_SUBST
17070 TIMESTAMP='$TIMESTAMP'
17076 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17077 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17079 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17080 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17081 LINGUAS="${LINGUAS-%UNSET%}"
17086 acx_cv_header_stdint="$acx_cv_header_stdint"
17087 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17088 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17089 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17090 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17091 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17092 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17093 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17094 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17095 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17096 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17097 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17098 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17099 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17107 # Handling of arguments.
17108 for ac_config_target in $ac_config_targets
17110 case $ac_config_target in
17111 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17112 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17113 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17114 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17115 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17117 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17118 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17119 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17120 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17122 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17127 # If the user did not use the arguments to specify the items to instantiate,
17128 # then the envvar interface is used. Set only those that are not.
17129 # We use the long form for the default assignment because of an extremely
17130 # bizarre bug on SunOS 4.1.3.
17131 if $ac_need_defaults; then
17132 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17133 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17134 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17137 # Have a temporary directory for convenience. Make it in the build tree
17138 # simply because there is no reason against having it here, and in addition,
17139 # creating and moving files from /tmp can sometimes cause problems.
17140 # Hook for its removal unless debugging.
17141 # Note that there is a small window in which the directory will not be cleaned:
17142 # after its creation but before its name has been assigned to `$tmp'.
17146 trap 'exit_status=$?
17147 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17149 trap 'as_fn_exit 1' 1 2 13 15
17151 # Create a (secure) tmp directory for tmp files.
17154 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17155 test -n "$tmp" && test -d "$tmp"
17158 tmp=./conf$$-$RANDOM
17159 (umask 077 && mkdir "$tmp")
17160 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17162 # Set up the scripts for CONFIG_FILES section.
17163 # No need to generate them if there are no CONFIG_FILES.
17164 # This happens for instance with `./config.status config.h'.
17165 if test -n "$CONFIG_FILES"; then
17168 ac_cr=`echo X | tr X '\015'`
17169 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17170 # But we know of no other shell where ac_cr would be empty at this
17171 # point, so we can use a bashism as a fallback.
17172 if test "x$ac_cr" = x; then
17173 eval ac_cr=\$\'\\r\'
17175 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17176 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17179 ac_cs_awk_cr=$ac_cr
17182 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17187 echo "cat >conf$$subs.awk <<_ACEOF" &&
17188 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17190 } >conf$$subs.sh ||
17191 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17192 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17194 for ac_last_try in false false false false false :; do
17195 . ./conf$$subs.sh ||
17196 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17198 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17199 if test $ac_delim_n = $ac_delim_num; then
17201 elif $ac_last_try; then
17202 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17207 rm -f conf$$subs.sh
17209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17210 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17214 s/^/S["/; s/!.*/"]=/
17224 s/\(.\{148\}\).*/\1/
17226 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17238 s/\(.\{148\}\).*/\1/
17240 s/["\\]/\\&/g; s/^/"/; s/$/"/
17244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17249 ' <conf$$subs.awk | sed '
17254 ' >>$CONFIG_STATUS || ac_write_fail=1
17255 rm -f conf$$subs.awk
17256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17258 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17259 for (key in S) S_is_set[key] = 1
17265 nfields = split(line, field, "@")
17267 len = length(field[1])
17268 for (i = 2; i < nfields; i++) {
17270 keylen = length(key)
17271 if (S_is_set[key]) {
17273 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17274 len += length(value) + length(field[++i])
17285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17286 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17287 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17290 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17291 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17296 # trailing colons and then remove the whole line if VPATH becomes empty
17297 # (actually we leave an empty line to preserve line numbers).
17298 if test "x$srcdir" = x.; then
17299 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17300 s/:*\$(srcdir):*/:/
17301 s/:*\${srcdir}:*/:/
17303 s/^\([^=]*=[ ]*\):*/\1/
17309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17310 fi # test -n "$CONFIG_FILES"
17312 # Set up the scripts for CONFIG_HEADERS section.
17313 # No need to generate them if there are no CONFIG_HEADERS.
17314 # This happens for instance with `./config.status Makefile'.
17315 if test -n "$CONFIG_HEADERS"; then
17316 cat >"$tmp/defines.awk" <<\_ACAWK ||
17320 # Transform confdefs.h into an awk script `defines.awk', embedded as
17321 # here-document in config.status, that substitutes the proper values into
17322 # config.h.in to produce config.h.
17324 # Create a delimiter string that does not exist in confdefs.h, to ease
17325 # handling of long lines.
17327 for ac_last_try in false false :; do
17328 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17329 if test -z "$ac_t"; then
17331 elif $ac_last_try; then
17332 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17338 # For the awk script, D is an array of macro values keyed by name,
17339 # likewise P contains macro parameters if any. Preserve backslash
17340 # newline sequences.
17342 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17344 s/.\{148\}/&'"$ac_delim"'/g
17347 s/^[ ]*#[ ]*define[ ][ ]*/ /
17354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17361 D["\1"]=" \3\\\\\\n"\\/p
17363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17368 s/.\{148\}/&'"$ac_delim"'/g
17373 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17376 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17378 ' <confdefs.h | sed '
17379 s/'"$ac_delim"'/"\\\
17380 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17383 for (key in D) D_is_set[key] = 1
17386 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17388 split(line, arg, " ")
17389 if (arg[1] == "#") {
17393 defundef = substr(arg[1], 2)
17396 split(mac1, mac2, "(") #)
17398 prefix = substr(line, 1, index(line, defundef) - 1)
17399 if (D_is_set[macro]) {
17400 # Preserve the white space surrounding the "#".
17401 print prefix "define", macro P[macro] D[macro]
17404 # Replace #undef with comments. This is necessary, for example,
17405 # in the case of _POSIX_SOURCE, which is predefined and required
17406 # on some systems where configure will not decide to define it.
17407 if (defundef == "undef") {
17408 print "/*", prefix defundef, macro, "*/"
17416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17417 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17418 fi # test -n "$CONFIG_HEADERS"
17421 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17426 :[FHLC]) ac_mode=$ac_tag; continue;;
17428 case $ac_mode$ac_tag in
17430 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17431 :[FH]-) ac_tag=-:-;;
17432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17449 -) ac_f="$tmp/stdin";;
17450 *) # Look for the file first in the build tree, then in the source tree
17451 # (if the path is not absolute). The absolute path cannot be DOS-style,
17452 # because $ac_f cannot contain `:'.
17456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17458 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17460 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17461 as_fn_append ac_file_inputs " '$ac_f'"
17464 # Let's still pretend it is `configure' which instantiates (i.e., don't
17465 # use $as_me), people would be surprised to read:
17466 # /* config.h. Generated by config.status. */
17467 configure_input='Generated from '`
17468 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17470 if test x"$ac_file" != x-; then
17471 configure_input="$ac_file. $configure_input"
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17473 $as_echo "$as_me: creating $ac_file" >&6;}
17475 # Neutralize special characters interpreted by sed in replacement strings.
17476 case $configure_input in #(
17477 *\&* | *\|* | *\\* )
17478 ac_sed_conf_input=`$as_echo "$configure_input" |
17479 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17480 *) ac_sed_conf_input=$configure_input;;
17484 *:-:* | *:-) cat >"$tmp/stdin" \
17485 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17490 ac_dir=`$as_dirname -- "$ac_file" ||
17491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17492 X"$ac_file" : 'X\(//\)[^/]' \| \
17493 X"$ac_file" : 'X\(//\)$' \| \
17494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17495 $as_echo X"$ac_file" |
17496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17500 /^X\(\/\/\)[^/].*/{
17513 as_dir="$ac_dir"; as_fn_mkdir_p
17517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17520 # A ".." for each directory in $ac_dir_suffix.
17521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17522 case $ac_top_builddir_sub in
17523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17527 ac_abs_top_builddir=$ac_pwd
17528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17529 # for backward compatibility:
17530 ac_top_builddir=$ac_top_build_prefix
17533 .) # We are building in place.
17535 ac_top_srcdir=$ac_top_builddir_sub
17536 ac_abs_top_srcdir=$ac_pwd ;;
17537 [\\/]* | ?:[\\/]* ) # Absolute name.
17538 ac_srcdir=$srcdir$ac_dir_suffix;
17539 ac_top_srcdir=$srcdir
17540 ac_abs_top_srcdir=$srcdir ;;
17541 *) # Relative name.
17542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17543 ac_top_srcdir=$ac_top_build_prefix$srcdir
17544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17559 ac_MKDIR_P=$MKDIR_P
17561 [\\/$]* | ?:[\\/]* ) ;;
17562 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17567 # If the template does not know about datarootdir, expand it.
17568 # FIXME: This hack should be removed a few years after 2.60.
17569 ac_datarootdir_hack=; ac_datarootdir_seen=
17580 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17581 *datarootdir*) ac_datarootdir_seen=yes;;
17582 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17584 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 ac_datarootdir_hack='
17588 s&@datadir@&$datadir&g
17589 s&@docdir@&$docdir&g
17590 s&@infodir@&$infodir&g
17591 s&@localedir@&$localedir&g
17592 s&@mandir@&$mandir&g
17593 s&\\\${datarootdir}&$datarootdir&g' ;;
17597 # Neutralize VPATH when `$srcdir' = `.'.
17598 # Shell code in configure.ac might set extrasub.
17599 # FIXME: do we really want to maintain this feature?
17600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17601 ac_sed_extra="$ac_vpsub
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17607 s|@configure_input@|$ac_sed_conf_input|;t t
17608 s&@top_builddir@&$ac_top_builddir_sub&;t t
17609 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17610 s&@srcdir@&$ac_srcdir&;t t
17611 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17612 s&@top_srcdir@&$ac_top_srcdir&;t t
17613 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17614 s&@builddir@&$ac_builddir&;t t
17615 s&@abs_builddir@&$ac_abs_builddir&;t t
17616 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17617 s&@INSTALL@&$ac_INSTALL&;t t
17618 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17619 $ac_datarootdir_hack
17621 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17622 || as_fn_error "could not create $ac_file" "$LINENO" 5
17624 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17625 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17628 which seems to be undefined. Please make sure it is defined." >&5
17629 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17630 which seems to be undefined. Please make sure it is defined." >&2;}
17634 -) cat "$tmp/out" && rm -f "$tmp/out";;
17635 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17637 || as_fn_error "could not create $ac_file" "$LINENO" 5
17643 if test x"$ac_file" != x-; then
17645 $as_echo "/* $configure_input */" \
17646 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17647 } >"$tmp/config.h" \
17648 || as_fn_error "could not create $ac_file" "$LINENO" 5
17649 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17651 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17654 mv "$tmp/config.h" "$ac_file" \
17655 || as_fn_error "could not create $ac_file" "$LINENO" 5
17658 $as_echo "/* $configure_input */" \
17659 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17660 || as_fn_error "could not create -" "$LINENO" 5
17662 # Compute "$ac_file"'s index in $config_headers.
17665 for _am_header in $config_headers :; do
17666 case $_am_header in
17667 $_am_arg | $_am_arg:* )
17670 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17673 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17674 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17675 X"$_am_arg" : 'X\(//\)[^/]' \| \
17676 X"$_am_arg" : 'X\(//\)$' \| \
17677 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17678 $as_echo X"$_am_arg" |
17679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17683 /^X\(\/\/\)[^/].*/{
17695 s/.*/./; q'`/stamp-h$_am_stamp_count
17698 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17699 $as_echo "$as_me: executing $ac_file commands" >&6;}
17704 case $ac_file$ac_mode in
17705 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17706 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17707 # are listed without --file. Let's play safe and only enable the eval
17708 # if we detect the quoting.
17709 case $CONFIG_FILES in
17710 *\'*) eval set x "$CONFIG_FILES" ;;
17711 *) set x $CONFIG_FILES ;;
17716 # Strip MF so we end up with the name of the file.
17717 mf=`echo "$mf" | sed -e 's/:.*$//'`
17718 # Check whether this is an Automake generated Makefile or not.
17719 # We used to match only the files named `Makefile.in', but
17720 # some people rename them; so instead we look at the file content.
17721 # Grep'ing the first line is not enough: some people post-process
17722 # each Makefile.in and add a new line on top of each file to say so.
17723 # Grep'ing the whole file is not good either: AIX grep has a line
17724 # limit of 2048, but all sed's we know have understand at least 4000.
17725 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17726 dirpart=`$as_dirname -- "$mf" ||
17727 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17728 X"$mf" : 'X\(//\)[^/]' \| \
17729 X"$mf" : 'X\(//\)$' \| \
17730 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17736 /^X\(\/\/\)[^/].*/{
17752 # Extract the definition of DEPDIR, am__include, and am__quote
17753 # from the Makefile without running `make'.
17754 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17755 test -z "$DEPDIR" && continue
17756 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17757 test -z "am__include" && continue
17758 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17759 # When using ansi2knr, U may be empty or an underscore; expand it
17760 U=`sed -n 's/^U = //p' < "$mf"`
17761 # Find all dependency output files, they are included files with
17762 # $(DEPDIR) in their names. We invoke sed twice because it is the
17763 # simplest approach to changing $(DEPDIR) to its actual value in the
17765 for file in `sed -n "
17766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17768 # Make sure the directory exists.
17769 test -f "$dirpart/$file" && continue
17770 fdir=`$as_dirname -- "$file" ||
17771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X"$file" : 'X\(//\)[^/]' \| \
17773 X"$file" : 'X\(//\)$' \| \
17774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17775 $as_echo X"$file" |
17776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17780 /^X\(\/\/\)[^/].*/{
17793 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17794 # echo "creating $dirpart/$file"
17795 echo '# dummy' > "$dirpart/$file"
17802 # See if we are running on zsh, and set the options which allow our
17803 # commands through without removal of \ escapes.
17804 if test -n "${ZSH_VERSION+set}" ; then
17805 setopt NO_GLOB_SUBST
17808 cfgfile="${ofile}T"
17809 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17812 cat <<_LT_EOF >> "$cfgfile"
17815 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17816 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17820 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17821 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17822 # Written by Gordon Matzigkeit, 1996
17824 # This file is part of GNU Libtool.
17826 # GNU Libtool is free software; you can redistribute it and/or
17827 # modify it under the terms of the GNU General Public License as
17828 # published by the Free Software Foundation; either version 2 of
17829 # the License, or (at your option) any later version.
17831 # As a special exception to the GNU General Public License,
17832 # if you distribute this file as part of a program or library that
17833 # is built using GNU Libtool, you may include this file under the
17834 # same distribution terms that you use for the rest of that program.
17836 # GNU Libtool is distributed in the hope that it will be useful,
17837 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17839 # GNU General Public License for more details.
17841 # You should have received a copy of the GNU General Public License
17842 # along with GNU Libtool; see the file COPYING. If not, a copy
17843 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17844 # obtained by writing to the Free Software Foundation, Inc.,
17845 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17848 # The names of the tagged configurations supported by this script.
17851 # ### BEGIN LIBTOOL CONFIG
17853 # Whether or not to build shared libraries.
17854 build_libtool_libs=$enable_shared
17856 # Which release of libtool.m4 was used?
17857 macro_version=$macro_version
17858 macro_revision=$macro_revision
17860 # Whether or not to build static libraries.
17861 build_old_libs=$enable_static
17863 # What type of objects to build.
17866 # Whether or not to optimize for fast installation.
17867 fast_install=$enable_fast_install
17869 # Shell to use when invoking shell scripts.
17872 # An echo program that protects backslashes.
17876 host_alias=$host_alias
17880 # The build system.
17881 build_alias=$build_alias
17885 # A sed program that does not truncate output.
17888 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17889 Xsed="\$SED -e 1s/^X//"
17891 # A grep program that handles long lines.
17897 # A literal string matcher.
17900 # A BSD- or MS-compatible name lister.
17903 # Whether we need soft or hard links.
17906 # What is the maximum length of a command?
17907 max_cmd_len=$max_cmd_len
17909 # Object file suffix (normally "o").
17912 # Executable file suffix (normally "").
17915 # whether the shell understands "unset".
17918 # turn spaces into newlines.
17921 # turn newlines into spaces.
17924 # An object symbol dumper.
17925 OBJDUMP=$lt_OBJDUMP
17927 # Method to check whether dependent libraries are shared objects.
17928 deplibs_check_method=$lt_deplibs_check_method
17930 # Command to use when deplibs_check_method == "file_magic".
17931 file_magic_cmd=$lt_file_magic_cmd
17935 AR_FLAGS=$lt_AR_FLAGS
17937 # A symbol stripping program.
17940 # Commands used to install an old-style archive.
17942 old_postinstall_cmds=$lt_old_postinstall_cmds
17943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17945 # Whether to use a lock for old archive extraction.
17946 lock_old_archive_extraction=$lock_old_archive_extraction
17951 # LTCC compiler flags.
17952 LTCFLAGS=$lt_CFLAGS
17954 # Take the output of nm and produce a listing of raw symbols and C names.
17955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17957 # Transform the output of nm in a proper C declaration.
17958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17960 # Transform the output of nm in a C name address pair.
17961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17963 # Transform the output of nm in a C name address pair when lib prefix is needed.
17964 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17966 # The name of the directory that contains temporary libtool files.
17969 # Used to examine libraries when file_magic_cmd begins with "file".
17970 MAGIC_CMD=$MAGIC_CMD
17972 # Must we lock files when doing compilation?
17973 need_locks=$lt_need_locks
17975 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17976 DSYMUTIL=$lt_DSYMUTIL
17978 # Tool to change global to local symbols on Mac OS X.
17981 # Tool to manipulate fat objects and archives on Mac OS X.
17984 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17987 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17988 OTOOL64=$lt_OTOOL64
17990 # Old archive suffix (normally "a").
17993 # Shared library suffix (normally ".so").
17994 shrext_cmds=$lt_shrext_cmds
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17999 # Variables whose values should be saved in libtool wrapper scripts and
18000 # restored at link time.
18001 variables_saved_for_relink=$lt_variables_saved_for_relink
18003 # Do we need the "lib" prefix for modules?
18004 need_lib_prefix=$need_lib_prefix
18006 # Do we need a version for libraries?
18007 need_version=$need_version
18009 # Library versioning type.
18010 version_type=$version_type
18012 # Shared library runtime path variable.
18013 runpath_var=$runpath_var
18015 # Shared library path variable.
18016 shlibpath_var=$shlibpath_var
18018 # Is shlibpath searched before the hard-coded library search path?
18019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18021 # Format of library name prefix.
18022 libname_spec=$lt_libname_spec
18024 # List of archive names. First name is the real one, the rest are links.
18025 # The last name is the one that the linker finds with -lNAME
18026 library_names_spec=$lt_library_names_spec
18028 # The coded name of the library, if different from the real name.
18029 soname_spec=$lt_soname_spec
18031 # Permission mode override for installation of shared libraries.
18032 install_override_mode=$lt_install_override_mode
18034 # Command to use after installation of a shared archive.
18035 postinstall_cmds=$lt_postinstall_cmds
18037 # Command to use after uninstallation of a shared archive.
18038 postuninstall_cmds=$lt_postuninstall_cmds
18040 # Commands used to finish a libtool library installation in a directory.
18041 finish_cmds=$lt_finish_cmds
18043 # As "finish_cmds", except a single script fragment to be evaled but
18045 finish_eval=$lt_finish_eval
18047 # Whether we should hardcode library paths into libraries.
18048 hardcode_into_libs=$hardcode_into_libs
18050 # Compile-time system search path for libraries.
18051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18053 # Run-time system search path for libraries.
18054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18056 # Whether dlopen is supported.
18057 dlopen_support=$enable_dlopen
18059 # Whether dlopen of programs is supported.
18060 dlopen_self=$enable_dlopen_self
18062 # Whether dlopen of statically linked programs is supported.
18063 dlopen_self_static=$enable_dlopen_self_static
18065 # Commands to strip libraries.
18066 old_striplib=$lt_old_striplib
18067 striplib=$lt_striplib
18070 # The linker used to build libraries.
18073 # How to create reloadable object files.
18074 reload_flag=$lt_reload_flag
18075 reload_cmds=$lt_reload_cmds
18077 # Commands used to build an old-style archive.
18078 old_archive_cmds=$lt_old_archive_cmds
18080 # A language specific compiler.
18083 # Is the compiler the GNU compiler?
18086 # Compiler flag to turn off builtin functions.
18087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18089 # How to pass a linker flag through the compiler.
18090 wl=$lt_lt_prog_compiler_wl
18092 # Additional compiler flags for building library objects.
18093 pic_flag=$lt_lt_prog_compiler_pic
18095 # Compiler flag to prevent dynamic linking.
18096 link_static_flag=$lt_lt_prog_compiler_static
18098 # Does compiler simultaneously support -c and -o options?
18099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18101 # Whether or not to add -lc for building shared libraries.
18102 build_libtool_need_lc=$archive_cmds_need_lc
18104 # Whether or not to disallow shared libs when runtime libs are static.
18105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18107 # Compiler flag to allow reflexive dlopens.
18108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18110 # Compiler flag to generate shared objects directly from archives.
18111 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18113 # Whether the compiler copes with passing no objects directly.
18114 compiler_needs_object=$lt_compiler_needs_object
18116 # Create an old-style archive from a shared archive.
18117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18119 # Create a temporary old-style archive to link instead of a shared archive.
18120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18122 # Commands used to build a shared archive.
18123 archive_cmds=$lt_archive_cmds
18124 archive_expsym_cmds=$lt_archive_expsym_cmds
18126 # Commands used to build a loadable module if different from building
18127 # a shared archive.
18128 module_cmds=$lt_module_cmds
18129 module_expsym_cmds=$lt_module_expsym_cmds
18131 # Whether we are building with GNU ld or not.
18132 with_gnu_ld=$lt_with_gnu_ld
18134 # Flag that allows shared libraries with undefined symbols to be built.
18135 allow_undefined_flag=$lt_allow_undefined_flag
18137 # Flag that enforces no undefined symbols.
18138 no_undefined_flag=$lt_no_undefined_flag
18140 # Flag to hardcode \$libdir into a binary during linking.
18141 # This must work even if \$libdir does not exist
18142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18144 # If ld is used when linking, flag to hardcode \$libdir into a binary
18145 # during linking. This must work even if \$libdir does not exist.
18146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18148 # Whether we need a single "-rpath" flag with a separated argument.
18149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18152 # DIR into the resulting binary.
18153 hardcode_direct=$hardcode_direct
18155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18156 # DIR into the resulting binary and the resulting library dependency is
18157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18158 # library is relocated.
18159 hardcode_direct_absolute=$hardcode_direct_absolute
18161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18162 # into the resulting binary.
18163 hardcode_minus_L=$hardcode_minus_L
18165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18166 # into the resulting binary.
18167 hardcode_shlibpath_var=$hardcode_shlibpath_var
18169 # Set to "yes" if building a shared library automatically hardcodes DIR
18170 # into the library and all subsequent libraries and executables linked
18172 hardcode_automatic=$hardcode_automatic
18174 # Set to yes if linker adds runtime paths of dependent libraries
18175 # to runtime path list.
18176 inherit_rpath=$inherit_rpath
18178 # Whether libtool must link a program against all its dependency libraries.
18179 link_all_deplibs=$link_all_deplibs
18181 # Fix the shell variable \$srcfile for the compiler.
18182 fix_srcfile_path=$lt_fix_srcfile_path
18184 # Set to "yes" if exported symbols are required.
18185 always_export_symbols=$always_export_symbols
18187 # The commands to list exported symbols.
18188 export_symbols_cmds=$lt_export_symbols_cmds
18190 # Symbols that should not be listed in the preloaded symbols.
18191 exclude_expsyms=$lt_exclude_expsyms
18193 # Symbols that must always be exported.
18194 include_expsyms=$lt_include_expsyms
18196 # Commands necessary for linking programs (against libraries) with templates.
18197 prelink_cmds=$lt_prelink_cmds
18199 # Specify filename containing input files.
18200 file_list_spec=$lt_file_list_spec
18202 # How to hardcode a shared library path into an executable.
18203 hardcode_action=$hardcode_action
18205 # ### END LIBTOOL CONFIG
18211 cat <<\_LT_EOF >> "$cfgfile"
18212 # AIX sometimes has problems with the GCC collect2 program. For some
18213 # reason, if we set the COLLECT_NAMES environment variable, the problems
18214 # vanish in a puff of smoke.
18215 if test "X${COLLECT_NAMES+set}" != Xset; then
18217 export COLLECT_NAMES
18224 ltmain="$ac_aux_dir/ltmain.sh"
18227 # We use sed instead of cat because bash on DJGPP gets confused if
18228 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18229 # text mode, it properly converts lines to CR/LF. This bash problem
18230 # is reportedly fixed, but why not run on old versions too?
18231 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18232 || (rm -f "$cfgfile"; exit 1)
18236 cat << \_LT_EOF >> "$cfgfile"
18238 # func_dirname file append nondir_replacement
18239 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18240 # otherwise set result to NONDIR_REPLACEMENT.
18244 */*) func_dirname_result="${1%/*}${2}" ;;
18245 * ) func_dirname_result="${3}" ;;
18249 # func_basename file
18252 func_basename_result="${1##*/}"
18255 # func_dirname_and_basename file append nondir_replacement
18256 # perform func_basename and func_dirname in a single function
18258 # dirname: Compute the dirname of FILE. If nonempty,
18259 # add APPEND to the result, otherwise set result
18260 # to NONDIR_REPLACEMENT.
18261 # value returned in "$func_dirname_result"
18262 # basename: Compute filename of FILE.
18263 # value retuned in "$func_basename_result"
18264 # Implementation must be kept synchronized with func_dirname
18265 # and func_basename. For efficiency, we do not delegate to
18266 # those functions but instead duplicate the functionality here.
18267 func_dirname_and_basename ()
18270 */*) func_dirname_result="${1%/*}${2}" ;;
18271 * ) func_dirname_result="${3}" ;;
18273 func_basename_result="${1##*/}"
18276 # func_stripname prefix suffix name
18277 # strip PREFIX and SUFFIX off of NAME.
18278 # PREFIX and SUFFIX must not contain globbing or regex special
18279 # characters, hashes, percent signs, but SUFFIX may contain a leading
18280 # dot (in which case that matches only a dot).
18283 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18284 # positional parameters, so assign one to ordinary parameter first.
18285 func_stripname_result=${3}
18286 func_stripname_result=${func_stripname_result#"${1}"}
18287 func_stripname_result=${func_stripname_result%"${2}"}
18293 func_opt_split_opt=${1%%=*}
18294 func_opt_split_arg=${1#*=}
18301 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18302 *) func_lo2o_result=${1} ;;
18306 # func_xform libobj-or-source
18309 func_xform_result=${1%.*}.lo
18312 # func_arith arithmetic-term...
18315 func_arith_result=$(( $* ))
18319 # STRING may not start with a hyphen.
18322 func_len_result=${#1}
18327 *) # Bourne compatible functions.
18328 cat << \_LT_EOF >> "$cfgfile"
18330 # func_dirname file append nondir_replacement
18331 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18332 # otherwise set result to NONDIR_REPLACEMENT.
18335 # Extract subdirectory from the argument.
18336 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18337 if test "X$func_dirname_result" = "X${1}"; then
18338 func_dirname_result="${3}"
18340 func_dirname_result="$func_dirname_result${2}"
18344 # func_basename file
18347 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18351 # func_stripname prefix suffix name
18352 # strip PREFIX and SUFFIX off of NAME.
18353 # PREFIX and SUFFIX must not contain globbing or regex special
18354 # characters, hashes, percent signs, but SUFFIX may contain a leading
18355 # dot (in which case that matches only a dot).
18356 # func_strip_suffix prefix name
18360 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18361 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18366 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18367 my_sed_long_arg='1s/^-[^=]*=//'
18372 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18373 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18379 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18382 # func_xform libobj-or-source
18385 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18388 # func_arith arithmetic-term...
18391 func_arith_result=`expr "$@"`
18395 # STRING may not start with a hyphen.
18398 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18404 case $lt_shell_append in
18406 cat << \_LT_EOF >> "$cfgfile"
18408 # func_append var value
18409 # Append VALUE to the end of shell variable VAR.
18417 cat << \_LT_EOF >> "$cfgfile"
18419 # func_append var value
18420 # Append VALUE to the end of shell variable VAR.
18431 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18432 || (rm -f "$cfgfile"; exit 1)
18434 mv -f "$cfgfile" "$ofile" ||
18435 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18440 for ac_file in $CONFIG_FILES; do
18441 # Support "outfile[:infile[:infile...]]"
18443 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18445 # PO directories have a Makefile.in generated from Makefile.in.in.
18446 case "$ac_file" in */Makefile.in)
18447 # Adjust a relative srcdir.
18448 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18449 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18450 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18451 # In autoconf-2.13 it is called $ac_given_srcdir.
18452 # In autoconf-2.50 it is called $srcdir.
18453 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18454 case "$ac_given_srcdir" in
18455 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18456 /*) top_srcdir="$ac_given_srcdir" ;;
18457 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18459 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18460 rm -f "$ac_dir/POTFILES"
18461 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18462 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18463 POMAKEFILEDEPS="POTFILES.in"
18464 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18465 # on $ac_dir but don't depend on user-specified configuration
18467 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18468 # The LINGUAS file contains the set of available languages.
18469 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18470 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18472 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18473 # Hide the ALL_LINGUAS assigment from automake.
18474 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18475 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18477 # The set of available languages was given in configure.ac.
18478 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18480 case "$ac_given_srcdir" in
18482 *) srcdirpre='$(srcdir)/' ;;
18488 for lang in $ALL_LINGUAS; do
18489 POFILES="$POFILES $srcdirpre$lang.po"
18490 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18491 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18492 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18494 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18495 # environment variable.
18497 if test -n "$ALL_LINGUAS"; then
18498 for presentlang in $ALL_LINGUAS; do
18500 if test "%UNSET%" != "$LINGUAS"; then
18501 desiredlanguages="$LINGUAS"
18503 desiredlanguages="$ALL_LINGUAS"
18505 for desiredlang in $desiredlanguages; do
18506 # Use the presentlang catalog if desiredlang is
18507 # a. equal to presentlang, or
18508 # b. a variant of presentlang (because in this case,
18509 # presentlang can be used as a fallback for messages
18510 # which are not translated in the desiredlang catalog).
18511 case "$desiredlang" in
18512 "$presentlang"*) useit=yes;;
18515 if test $useit = yes; then
18516 INST_LINGUAS="$INST_LINGUAS $presentlang"
18521 if test -n "$INST_LINGUAS"; then
18522 for lang in $INST_LINGUAS; do
18523 CATALOGS="$CATALOGS $lang.gmo"
18526 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18527 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"
18528 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18529 if test -f "$f"; then
18531 *.orig | *.bak | *~) ;;
18532 *) cat "$f" >> "$ac_dir/Makefile" ;;
18541 if test "$GCC" = yes; then
18542 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18544 echo "/* generated for $CC */" > tmp-stdint.h
18547 sed 's/^ *//' >> tmp-stdint.h <<EOF
18549 #ifndef GCC_GENERATED_STDINT_H
18550 #define GCC_GENERATED_STDINT_H 1
18552 #include <sys/types.h>
18555 if test "$acx_cv_header_stdint" != stdint.h; then
18556 echo "#include <stddef.h>" >> tmp-stdint.h
18558 if test "$acx_cv_header_stdint" != stddef.h; then
18559 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18562 sed 's/^ *//' >> tmp-stdint.h <<EOF
18563 /* glibc uses these symbols as guards to prevent redefinitions. */
18564 #ifdef __int8_t_defined
18569 #ifdef __uint32_t_defined
18575 # ----------------- done header, emit basic int types -------------
18576 if test "$acx_cv_header_stdint" = stddef.h; then
18577 sed 's/^ *//' >> tmp-stdint.h <<EOF
18581 #ifndef __uint8_t_defined
18582 #define __uint8_t_defined
18584 typedef unsigned $acx_cv_type_int8_t uint8_t;
18591 #ifndef __uint16_t_defined
18592 #define __uint16_t_defined
18594 typedef unsigned $acx_cv_type_int16_t uint16_t;
18601 #ifndef __uint32_t_defined
18602 #define __uint32_t_defined
18604 typedef unsigned $acx_cv_type_int32_t uint32_t;
18611 #ifndef __int8_t_defined
18612 #define __int8_t_defined
18614 typedef $acx_cv_type_int8_t int8_t;
18621 #ifndef __int16_t_defined
18622 #define __int16_t_defined
18624 typedef $acx_cv_type_int16_t int16_t;
18631 #ifndef __int32_t_defined
18632 #define __int32_t_defined
18634 typedef $acx_cv_type_int32_t int32_t;
18639 elif test "$ac_cv_type_u_int32_t" = yes; then
18640 sed 's/^ *//' >> tmp-stdint.h <<EOF
18642 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18655 #ifndef __uint8_t_defined
18656 #define __uint8_t_defined
18658 typedef u_int8_t uint8_t;
18665 #ifndef __uint16_t_defined
18666 #define __uint16_t_defined
18668 typedef u_int16_t uint16_t;
18675 #ifndef __uint32_t_defined
18676 #define __uint32_t_defined
18678 typedef u_int32_t uint32_t;
18684 sed 's/^ *//' >> tmp-stdint.h <<EOF
18686 /* Some systems have guard macros to prevent redefinitions, define them. */
18708 # ------------- done basic int types, emit int64_t types ------------
18709 if test "$ac_cv_type_uint64_t" = yes; then
18710 sed 's/^ *//' >> tmp-stdint.h <<EOF
18712 /* system headers have good uint64_t and int64_t */
18720 elif test "$ac_cv_type_u_int64_t" = yes; then
18721 sed 's/^ *//' >> tmp-stdint.h <<EOF
18723 /* system headers have an u_int64_t (and int64_t) */
18729 #ifndef __uint64_t_defined
18730 #define __uint64_t_defined
18732 typedef u_int64_t uint64_t;
18737 elif test -n "$acx_cv_type_int64_t"; then
18738 sed 's/^ *//' >> tmp-stdint.h <<EOF
18740 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18744 typedef $acx_cv_type_int64_t int64_t;
18749 #ifndef __uint64_t_defined
18750 #define __uint64_t_defined
18752 typedef unsigned $acx_cv_type_int64_t uint64_t;
18758 sed 's/^ *//' >> tmp-stdint.h <<EOF
18760 /* some common heuristics for int64_t, using compiler-specific tests */
18761 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18764 #ifndef __int64_t_defined
18766 typedef long long int64_t;
18773 typedef unsigned long long uint64_t;
18777 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18778 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18779 does not implement __extension__. But that compiler doesn't define
18781 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18782 # define __extension__
18788 __extension__ typedef long long int64_t;
18794 __extension__ typedef unsigned long long uint64_t;
18798 #elif !defined __STRICT_ANSI__
18799 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18804 typedef __int64 int64_t;
18810 typedef unsigned __int64 uint64_t;
18813 # endif /* compiler */
18815 #endif /* ANSI version */
18819 # ------------- done int64_t types, emit intptr types ------------
18820 if test "$ac_cv_type_uintptr_t" != yes; then
18821 sed 's/^ *//' >> tmp-stdint.h <<EOF
18823 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18824 #ifndef __uintptr_t_defined
18826 typedef u$acx_cv_type_intptr_t uintptr_t;
18829 #ifndef __intptr_t_defined
18831 typedef $acx_cv_type_intptr_t intptr_t;
18837 # ------------- done intptr types, emit int_least types ------------
18838 if test "$ac_cv_type_int_least32_t" != yes; then
18839 sed 's/^ *//' >> tmp-stdint.h <<EOF
18841 /* Define int_least types */
18842 typedef int8_t int_least8_t;
18843 typedef int16_t int_least16_t;
18844 typedef int32_t int_least32_t;
18846 typedef int64_t int_least64_t;
18849 typedef uint8_t uint_least8_t;
18850 typedef uint16_t uint_least16_t;
18851 typedef uint32_t uint_least32_t;
18853 typedef uint64_t uint_least64_t;
18858 # ------------- done intptr types, emit int_fast types ------------
18859 if test "$ac_cv_type_int_fast32_t" != yes; then
18860 sed 's/^ *//' >> tmp-stdint.h <<EOF
18862 /* Define int_fast types. short is often slow */
18863 typedef int8_t int_fast8_t;
18864 typedef int int_fast16_t;
18865 typedef int32_t int_fast32_t;
18867 typedef int64_t int_fast64_t;
18870 typedef uint8_t uint_fast8_t;
18871 typedef unsigned int uint_fast16_t;
18872 typedef uint32_t uint_fast32_t;
18874 typedef uint64_t uint_fast64_t;
18879 if test "$ac_cv_type_uintmax_t" != yes; then
18880 sed 's/^ *//' >> tmp-stdint.h <<EOF
18882 /* Define intmax based on what we found */
18885 typedef int64_t intmax_t;
18887 typedef long intmax_t;
18892 typedef uint64_t uintmax_t;
18894 typedef unsigned long uintmax_t;
18900 sed 's/^ *//' >> tmp-stdint.h <<EOF
18902 #endif /* GCC_GENERATED_STDINT_H */
18905 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18908 mv -f tmp-stdint.h bfd_stdint.h
18915 *) srcdirpre='$(srcdir)/' ;;
18919 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18920 if test $lang != dummy; then
18921 POFILES="$POFILES $srcdirpre$lang.po"
18922 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18925 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18926 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18927 -e "s,@POFILES@,$POFILES," \
18928 -e "s,@GMOFILES@,$GMOFILES," \
18929 po/Makefile.in > po/Makefile ;;
18937 ac_clean_files=$ac_clean_files_save
18939 test $ac_write_fail = 0 ||
18940 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18943 # configure is writing to config.log, and then calls config.status.
18944 # config.status does its own redirection, appending to config.log.
18945 # Unfortunately, on DOS this fails, as config.log is still kept open
18946 # by configure, so config.status won't be able to write to it; its
18947 # output is simply discarded. So we exec the FD to /dev/null,
18948 # effectively closing config.log, so it can be properly (re)opened and
18949 # appended to by config.status. When coming back to configure, we
18950 # need to make the FD available again.
18951 if test "$no_create" != yes; then
18953 ac_config_status_args=
18954 test "$silent" = yes &&
18955 ac_config_status_args="$ac_config_status_args --quiet"
18957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18960 # would make configure fail if this is the last instruction.
18961 $ac_cs_success || as_fn_exit $?
18963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}