2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1.
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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || 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.
557 PACKAGE_NAME='GCC Quad-precision Math Library'
558 PACKAGE_TARNAME='libquadmath'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
600 ac_subst_vars='am__EXEEXT_FALSE
604 BUILD_LIBQUADMATH_FALSE
605 BUILD_LIBQUADMATH_TRUE
606 LIBQUAD_USE_SYMVER_SUN_FALSE
607 LIBQUAD_USE_SYMVER_SUN_TRUE
608 LIBQUAD_USE_SYMVER_GNU_FALSE
609 LIBQUAD_USE_SYMVER_GNU_TRUE
610 LIBQUAD_USE_SYMVER_FALSE
611 LIBQUAD_USE_SYMVER_TRUE
616 MAINTAINER_MODE_FALSE
664 INSTALL_STRIP_PROGRAM
719 program_transform_name
732 enable_option_checking
733 enable_version_specific_runtime_libs
738 enable_dependency_tracking
741 enable_maintainer_mode
744 ac_precious_vars='build_alias
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
843 cache_file=config.cache ;;
845 -datadir | --datadir | --datadi | --datad)
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
857 -disable-* | --disable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
871 eval enable_$ac_useropt=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 -enable-* | --enable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=\$ac_optarg ;;
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
912 -help | --help | --hel | --he | -h)
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 htmldir=$ac_optarg ;;
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
942 -libdir | --libdir | --libdi | --libd)
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
954 -localedir | --localedir | --localedi | --localed | --locale)
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 # Obsolete; use --without-fp.
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1033 -psdir | --psdir | --psdi | --psd | --ps)
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 sharedstatedir=$ac_optarg ;;
1059 -site | --site | --sit)
1061 -site=* | --site=* | --sit=*)
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1101 eval with_$ac_useropt=\$ac_optarg ;;
1103 -without-* | --without-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1117 eval with_$ac_useropt=no ;;
1120 # Obsolete; use --with-x.
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) as_fn_error "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information."
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' | [0-9]* | *[!_$as_cr_alnum]* )
1146 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error "missing argument to $ac_option"
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1170 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 # Check all directory arguments for consistency.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 # Remove trailing slashes.
1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\$ac_val;;
1188 # Be sure to have absolute directory names.
1190 [\\/$]* | ?:[\\/]* ) continue;;
1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error "pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 --target=TARGET configure for building compilers for TARGET [HOST]
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1374 --enable-shared[=PKGS] build shared libraries [default=yes]
1375 --enable-static[=PKGS] build static libraries [default=yes]
1376 --enable-fast-install[=PKGS]
1377 optimize for fast installation [default=yes]
1378 --disable-dependency-tracking speeds up one-time build
1379 --enable-dependency-tracking do not reject slow dependency extractors
1380 --disable-libtool-lock avoid locking (might break parallel builds)
1381 --enable-maintainer-mode enable make rules and dependencies not useful
1382 (and sometimes confusing) to the casual installer
1383 --enable-multilib build many library versions (default)
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-pic try to use only PIC/non-PIC objects [default=use
1390 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1392 Some influential environment variables:
1393 CC C compiler command
1394 CFLAGS C compiler flags
1395 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1396 nonstandard directory <lib dir>
1397 LIBS libraries to pass to the linker, e.g. -l<library>
1398 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1399 you have headers in a nonstandard directory <include dir>
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 Report bugs to the package provider.
1410 if test "$ac_init_help" = "recursive"; then
1411 # If there are subdirs, report their specific --help.
1412 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413 test -d "$ac_dir" ||
1414 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1435 .) # We are building in place.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1459 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1468 GCC Quad-precision Math Library configure 0.1
1469 generated by GNU Autoconf 2.64
1471 Copyright (C) 2009 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1478 ## ------------------------ ##
1479 ## Autoconf initialization. ##
1480 ## ------------------------ ##
1482 # ac_fn_c_try_compile LINENO
1483 # --------------------------
1484 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_compile ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 rm -f conftest.$ac_objext
1489 if { { ac_try="$ac_compile"
1491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492 *) ac_try_echo=$ac_try;;
1494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495 $as_echo "$ac_try_echo"; } >&5
1496 (eval "$ac_compile") 2>conftest.err
1498 if test -s conftest.err; then
1499 grep -v '^ *+' conftest.err >conftest.er1
1500 cat conftest.er1 >&5
1501 mv -f conftest.er1 conftest.err
1503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504 test $ac_status = 0; } && {
1505 test -z "$ac_c_werror_flag" ||
1506 test ! -s conftest.err
1507 } && test -s conftest.$ac_objext; then :
1510 $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1515 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1518 } # ac_fn_c_try_compile
1520 # ac_fn_c_try_link LINENO
1521 # -----------------------
1522 # Try to link conftest.$ac_ext, and return whether this succeeded.
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 rm -f conftest.$ac_objext conftest$ac_exeext
1527 if { { ac_try="$ac_link"
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_link") 2>conftest.err
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } && {
1543 test -z "$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 } && test -s conftest$ac_exeext && {
1546 test "$cross_compiling" = yes ||
1547 $as_test_x conftest$ac_exeext
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1557 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1558 # interfere with the next link command; also delete a directory that is
1559 # left behind by Apple's compiler. We do this before executing the actions.
1560 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 } # ac_fn_c_try_link
1566 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1567 # -------------------------------------------------------
1568 # Tests whether HEADER exists and can be compiled using the include files in
1569 # INCLUDES, setting the cache variable VAR accordingly.
1570 ac_fn_c_check_header_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 $as_echo_n "(cached) " >&6
1578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579 /* end confdefs.h. */
1583 if ac_fn_c_try_compile "$LINENO"; then :
1588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 } # ac_fn_c_check_header_compile
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 if { { ac_try="$ac_cpp conftest.$ac_ext"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } >/dev/null && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634 # ac_fn_c_try_run LINENO
1635 # ----------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637 # that executables *can* be run.
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if { { ac_try="$ac_link"
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>&5
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652 { { case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_try") 2>&5
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; }; }; then :
1664 $as_echo "$as_me: program exited with status $ac_status" >&5
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=$ac_status
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 # ac_fn_c_check_func LINENO FUNC VAR
1677 # ----------------------------------
1678 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1679 ac_fn_c_check_func ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685 $as_echo_n "(cached) " >&6
1687 if test x$gcc_no_link = xyes; then
1688 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1694 #define $2 innocuous_$2
1696 /* System header to define __stub macros and hopefully few prototypes,
1697 which can conflict with char $2 (); below.
1698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1699 <limits.h> exists even on freestanding compilers. */
1702 # include <limits.h>
1704 # include <assert.h>
1709 /* Override any GCC internal prototype to avoid an error.
1710 Use char because int might match the return type of a GCC
1711 builtin and then its argument prototype would still apply. */
1716 /* The GNU C library defines this for functions which it implements
1717 to always fail with ENOSYS. Some functions are actually named
1718 something starting with __ and the normal name is an alias. */
1719 #if defined __stub_$2 || defined __stub___$2
1731 if ac_fn_c_try_link "$LINENO"; then :
1736 rm -f core conftest.err conftest.$ac_objext \
1737 conftest$ac_exeext conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 } # ac_fn_c_check_func
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1749 It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1750 generated by GNU Autoconf 2.64. Invocation command line was
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 test -z "$as_dir" && as_dir=.
1786 $as_echo "PATH: $as_dir"
1802 # Keep a trace of the command line.
1803 # Strip out --no-create and --no-recursion so they do not pile up.
1804 # Strip out --silent because we don't want to record it for future runs.
1805 # Also quote any args containing shell meta-characters.
1806 # Make two passes to allow for proper duplicate-argument suppression.
1810 ac_must_keep_next=false
1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1818 | -silent | --silent | --silen | --sile | --sil)
1821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1826 as_fn_append ac_configure_args1 " '$ac_arg'"
1827 if test $ac_must_keep_next = true; then
1828 ac_must_keep_next=false # Got value, back to normal.
1831 *=* | --config-cache | -C | -disable-* | --disable-* \
1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1834 | -with-* | --with-* | -without-* | --without-* | --x)
1835 case "$ac_configure_args0 " in
1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1839 -* ) ac_must_keep_next=true ;;
1842 as_fn_append ac_configure_args " '$ac_arg'"
1847 { ac_configure_args0=; unset ac_configure_args0;}
1848 { ac_configure_args1=; unset ac_configure_args1;}
1850 # When interrupted or exit'd, cleanup temporary files, and complete
1851 # config.log. We remove comments because anyway the quotes in there
1852 # would cause problems or look ugly.
1853 # WARNING: Use '\'' to represent an apostrophe within the trap.
1854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1855 trap 'exit_status=$?
1856 # Save into config.log some information that might help in debugging.
1861 ## ---------------- ##
1862 ## Cache variables. ##
1863 ## ---------------- ##
1866 # The following way of writing the cache mishandles newlines in values,
1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869 eval ac_val=\$$ac_var
1873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1877 _ | IFS | as_nl) ;; #(
1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879 *) { eval $ac_var=; unset $ac_var;} ;;
1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885 *${as_nl}ac_space=\ *)
1887 "s/'\''/'\''\\\\'\'''\''/g;
1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 ## ----------------- ##
1900 ## Output variables. ##
1901 ## ----------------- ##
1904 for ac_var in $ac_subst_vars
1906 eval ac_val=\$$ac_var
1908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1910 $as_echo "$ac_var='\''$ac_val'\''"
1914 if test -n "$ac_subst_files"; then
1916 ## ------------------- ##
1917 ## File substitutions. ##
1918 ## ------------------- ##
1921 for ac_var in $ac_subst_files
1923 eval ac_val=\$$ac_var
1925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927 $as_echo "$ac_var='\''$ac_val'\''"
1932 if test -s confdefs.h; then
1942 test "$ac_signal" != 0 &&
1943 $as_echo "$as_me: caught signal $ac_signal"
1944 $as_echo "$as_me: exit $exit_status"
1946 rm -f core *.core core.conftest.* &&
1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1950 for ac_signal in 1 2 13 15; do
1951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1956 rm -f -r conftest* confdefs.h
1958 $as_echo "/* confdefs.h */" > confdefs.h
1960 # Predefined preprocessor variables.
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_NAME "$PACKAGE_NAME"
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_STRING "$PACKAGE_STRING"
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_URL "$PACKAGE_URL"
1987 # Let the site file select an alternate cache file if it wants to.
1988 # Prefer an explicitly selected file to automatically selected ones.
1991 if test -n "$CONFIG_SITE"; then
1992 ac_site_file1=$CONFIG_SITE
1993 elif test "x$prefix" != xNONE; then
1994 ac_site_file1=$prefix/share/config.site
1995 ac_site_file2=$prefix/etc/config.site
1997 ac_site_file1=$ac_default_prefix/share/config.site
1998 ac_site_file2=$ac_default_prefix/etc/config.site
2000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2002 test "x$ac_site_file" = xNONE && continue
2003 if test -r "$ac_site_file"; then
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2006 sed 's/^/| /' "$ac_site_file" >&5
2011 if test -r "$cache_file"; then
2012 # Some versions of bash will fail to source /dev/null (special
2013 # files actually), so we avoid doing that.
2014 if test -f "$cache_file"; then
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2016 $as_echo "$as_me: loading cache $cache_file" >&6;}
2018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2019 *) . "./$cache_file";;
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2024 $as_echo "$as_me: creating cache $cache_file" >&6;}
2028 # Check that the precious variables saved in the cache have kept the same
2030 ac_cache_corrupted=false
2031 for ac_var in $ac_precious_vars; do
2032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2033 eval ac_new_set=\$ac_env_${ac_var}_set
2034 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2035 eval ac_new_val=\$ac_env_${ac_var}_value
2036 case $ac_old_set,$ac_new_set in
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2043 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2044 ac_cache_corrupted=: ;;
2047 if test "x$ac_old_val" != "x$ac_new_val"; then
2048 # differences in whitespace do not lead to failure.
2049 ac_old_val_w=`echo x $ac_old_val`
2050 ac_new_val_w=`echo x $ac_new_val`
2051 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2054 ac_cache_corrupted=:
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2057 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2058 eval $ac_var=\$ac_old_val
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2061 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2063 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2066 # Pass precious variables to config.status.
2067 if test "$ac_new_set" = set; then
2069 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2070 *) ac_arg=$ac_var=$ac_new_val ;;
2072 case " $ac_configure_args " in
2073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2074 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2078 if $ac_cache_corrupted; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2082 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2083 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2085 ## -------------------- ##
2086 ## Main body of script. ##
2087 ## -------------------- ##
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2099 ac_config_headers="$ac_config_headers config.h"
2102 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2104 # You will slowly go insane if you do not grok the following fact: when
2105 # building this library, the top-level /target/ becomes the library's /host/.
2107 # configure then causes --target to default to --host, exactly like any
2108 # other package using autoconf. Therefore, 'target' and 'host' will
2109 # always be the same. This makes sense both for native and cross compilers
2110 # just think about it for a little while. :-)
2112 # Also, if this library is being configured as part of a cross compiler, the
2113 # top-level configure script will pass the "real" host as $with_cross_host.
2115 # Do not delete or change the following two lines. For why, see
2116 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2118 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2119 for ac_t in install-sh install.sh shtool; do
2120 if test -f "$ac_dir/$ac_t"; then
2122 ac_install_sh="$ac_aux_dir/$ac_t -c"
2127 if test -z "$ac_aux_dir"; then
2128 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2131 # These three variables are undocumented and unsupported,
2132 # and are intended to be withdrawn in a future Autoconf release.
2133 # They can cause serious problems if a builder's source tree is in a directory
2134 # whose full name contains unusual characters.
2135 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2136 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2137 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2145 $as_echo_n "checking build system type... " >&6; }
2146 if test "${ac_cv_build+set}" = set; then :
2147 $as_echo_n "(cached) " >&6
2149 ac_build_alias=$build_alias
2150 test "x$ac_build_alias" = x &&
2151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2152 test "x$ac_build_alias" = x &&
2153 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2155 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2159 $as_echo "$ac_cv_build" >&6; }
2160 case $ac_cv_build in
2162 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2165 ac_save_IFS=$IFS; IFS='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2179 $as_echo_n "checking host system type... " >&6; }
2180 if test "${ac_cv_host+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
2183 if test "x$host_alias" = x; then
2184 ac_cv_host=$ac_cv_build
2186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2192 $as_echo "$ac_cv_host" >&6; }
2195 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2198 ac_save_IFS=$IFS; IFS='-'
2204 # Remember, the first character of IFS is used to create $*,
2205 # except with old shells:
2208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2212 $as_echo_n "checking target system type... " >&6; }
2213 if test "${ac_cv_target+set}" = set; then :
2214 $as_echo_n "(cached) " >&6
2216 if test "x$target_alias" = x; then
2217 ac_cv_target=$ac_cv_host
2219 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2220 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2225 $as_echo "$ac_cv_target" >&6; }
2226 case $ac_cv_target in
2228 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2230 target=$ac_cv_target
2231 ac_save_IFS=$IFS; IFS='-'
2237 # Remember, the first character of IFS is used to create $*,
2238 # except with old shells:
2241 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2244 # The aliases save the names the user supplied, while $host etc.
2245 # will get canonicalized.
2246 test -n "$target_alias" &&
2247 test "$program_prefix$program_suffix$program_transform_name" = \
2249 program_prefix=${target_alias}-
2251 case ${build_alias} in
2252 "") build_noncanonical=${build} ;;
2253 *) build_noncanonical=${build_alias} ;;
2256 case ${host_alias} in
2257 "") host_noncanonical=${build_noncanonical} ;;
2258 *) host_noncanonical=${host_alias} ;;
2261 case ${target_alias} in
2262 "") target_noncanonical=${host_noncanonical} ;;
2263 *) target_noncanonical=${target_alias} ;;
2269 target_alias=${target_alias-$host_alias}
2272 am__api_version='1.11'
2274 # Find a good install program. We prefer a C program (faster),
2275 # so one script is as good as another. But avoid the broken or
2276 # incompatible versions:
2277 # SysV /etc/install, /usr/sbin/install
2278 # SunOS /usr/etc/install
2279 # IRIX /sbin/install
2281 # AmigaOS /C/install, which installs bootblocks on floppy discs
2282 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2285 # OS/2's system install, which has a completely different semantic
2286 # ./install, which can be erroneously created by make from ./install.sh.
2287 # Reject install programs that cannot install multiple files.
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2289 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2290 if test -z "$INSTALL"; then
2291 if test "${ac_cv_path_install+set}" = set; then :
2292 $as_echo_n "(cached) " >&6
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 # Account for people who put trailing slashes in PATH elements.
2300 case $as_dir/ in #((
2301 ./ | .// | /[cC]/* | \
2302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2303 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2306 # OSF1 and SCO ODT 3.0 have their own names for install.
2307 # Don't use installbsd from OSF since it installs stuff as root
2309 for ac_prog in ginstall scoinst install; do
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2312 if test $ac_prog = install &&
2313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314 # AIX install. It has an incompatible calling convention.
2316 elif test $ac_prog = install &&
2317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2318 # program-specific install script used by HP pwplus--don't use.
2321 rm -rf conftest.one conftest.two conftest.dir
2322 echo one > conftest.one
2323 echo two > conftest.two
2325 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2326 test -s conftest.one && test -s conftest.two &&
2327 test -s conftest.dir/conftest.one &&
2328 test -s conftest.dir/conftest.two
2330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2343 rm -rf conftest.one conftest.two conftest.dir
2346 if test "${ac_cv_path_install+set}" = set; then
2347 INSTALL=$ac_cv_path_install
2349 # As a last resort, use the slow shell script. Don't cache a
2350 # value for INSTALL within a source directory, because that will
2351 # break other packages using the cache if that directory is
2352 # removed, or if the value is a relative name.
2353 INSTALL=$ac_install_sh
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2357 $as_echo "$INSTALL" >&6; }
2359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2360 # It thinks the first close brace ends the variable substitution.
2361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2368 $as_echo_n "checking whether build environment is sane... " >&6; }
2371 echo timestamp > conftest.file
2372 # Reject unsafe characters in $srcdir or the absolute working directory
2373 # name. Accept space and tab only in the latter.
2377 *[\\\"\#\$\&\'\`$am_lf]*)
2378 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2381 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2382 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2385 # Do `set' in a subshell so we don't clobber the current shell's
2386 # arguments. Must try -L first in case configure is actually a
2387 # symlink; some systems play weird games with the mod time of symlinks
2388 # (eg FreeBSD returns the mod time of the symlink's containing
2391 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2392 if test "$*" = "X"; then
2394 set X `ls -t "$srcdir/configure" conftest.file`
2397 if test "$*" != "X $srcdir/configure conftest.file" \
2398 && test "$*" != "X conftest.file $srcdir/configure"; then
2400 # If neither matched, then we have a broken ls. This can happen
2401 # if, for instance, CONFIG_SHELL is bash and it inherits a
2402 # broken ls alias from the environment. This has actually
2403 # happened. Such a system could not be considered "sane".
2404 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2405 alias in your environment" "$LINENO" 5
2408 test "$2" = conftest.file
2414 as_fn_error "newly created file is older than distributed files!
2415 Check your system clock" "$LINENO" 5
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418 $as_echo "yes" >&6; }
2419 test "$program_prefix" != NONE &&
2420 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421 # Use a double $ so make ignores it.
2422 test "$program_suffix" != NONE &&
2423 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424 # Double any \ or $.
2425 # By default was `s,x,x', remove it if useless.
2426 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2427 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2429 # expand $ac_aux_dir to an absolute path
2430 am_aux_dir=`cd $ac_aux_dir && pwd`
2432 if test x"${MISSING+set}" != xset; then
2435 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2437 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2440 # Use eval to expand $SHELL
2441 if eval "$MISSING --run true"; then
2442 am_missing_run="$MISSING --run "
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2446 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2449 if test x"${install_sh}" != xset; then
2452 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2454 install_sh="\${SHELL} $am_aux_dir/install-sh"
2458 # Installed binaries are usually stripped using `strip' when the user
2459 # run `make install-strip'. However `strip' might not be the right
2460 # tool to use in cross-compilation environments, therefore Automake
2461 # will honor the `STRIP' environment variable to overrule this program.
2462 if test "$cross_compiling" != no; then
2463 if test -n "$ac_tool_prefix"; then
2464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}strip; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_STRIP+set}" = set; then :
2469 $as_echo_n "(cached) " >&6
2471 if test -n "$STRIP"; then
2472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 STRIP=$ac_cv_prog_STRIP
2492 if test -n "$STRIP"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2494 $as_echo "$STRIP" >&6; }
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2502 if test -z "$ac_cv_prog_STRIP"; then
2504 # Extract the first word of "strip", so it can be a program name with args.
2505 set dummy strip; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
2511 if test -n "$ac_ct_STRIP"; then
2512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521 ac_cv_prog_ac_ct_STRIP="strip"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2532 if test -n "$ac_ct_STRIP"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2534 $as_echo "$ac_ct_STRIP" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2540 if test "x$ac_ct_STRIP" = x; then
2543 case $cross_compiling:$ac_tool_warned in
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2547 ac_tool_warned=yes ;;
2552 STRIP="$ac_cv_prog_STRIP"
2556 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2559 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2560 if test -z "$MKDIR_P"; then
2561 if test "${ac_cv_path_mkdir+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2568 test -z "$as_dir" && as_dir=.
2569 for ac_prog in mkdir gmkdir; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2572 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2573 'mkdir (GNU coreutils) '* | \
2574 'mkdir (coreutils) '* | \
2575 'mkdir (fileutils) '4.1*)
2576 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2586 if test "${ac_cv_path_mkdir+set}" = set; then
2587 MKDIR_P="$ac_cv_path_mkdir -p"
2589 # As a last resort, use the slow shell script. Don't cache a
2590 # value for MKDIR_P within a source directory, because that will
2591 # break other packages using the cache if that directory is
2592 # removed, or if the value is a relative name.
2593 test -d ./--version && rmdir ./--version
2594 MKDIR_P="$ac_install_sh -d"
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2598 $as_echo "$MKDIR_P" >&6; }
2602 [\\/$]* | ?:[\\/]*) ;;
2603 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2606 for ac_prog in gawk mawk nawk awk
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy $ac_prog; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_AWK+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$AWK"; then
2616 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_AWK="$ac_prog"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$AWK"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2638 $as_echo "$AWK" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2645 test -n "$AWK" && break
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2649 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2651 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2652 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2653 $as_echo_n "(cached) " >&6
2655 cat >conftest.make <<\_ACEOF
2658 @echo '@@@%%%=$(MAKE)=@@@%%%'
2660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2661 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2663 eval ac_cv_prog_make_${ac_make}_set=yes;;
2665 eval ac_cv_prog_make_${ac_make}_set=no;;
2669 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675 $as_echo "no" >&6; }
2676 SET_MAKE="MAKE=${MAKE-make}"
2679 rm -rf .tst 2>/dev/null
2680 mkdir .tst 2>/dev/null
2681 if test -d .tst; then
2686 rmdir .tst 2>/dev/null
2688 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2689 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2690 # is not polluted with repeated "-I."
2691 am__isrc=' -I$(srcdir)'
2692 # test to see if srcdir already configured
2693 if test -f $srcdir/config.status; then
2694 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2698 # test whether we have cygpath
2699 if test -z "$CYGPATH_W"; then
2700 if (cygpath --version) >/dev/null 2>/dev/null; then
2701 CYGPATH_W='cygpath -w'
2708 # Define the identity of the package.
2709 PACKAGE='libquadmath'
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE "$PACKAGE"
2718 cat >>confdefs.h <<_ACEOF
2719 #define VERSION "$VERSION"
2722 # Some tools Automake needs.
2724 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2727 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2730 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2733 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2736 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2738 # We need awk for the "check" target. The system "awk" is bad on
2740 # Always define AMTAR for backward compatibility.
2742 AMTAR=${AMTAR-"${am_missing_run}tar"}
2744 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2752 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2753 # Check whether --enable-version-specific-runtime-libs was given.
2754 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2755 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2756 yes) version_specific_libs=yes ;;
2757 no) version_specific_libs=no ;;
2758 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2761 version_specific_libs=no
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2765 $as_echo "$version_specific_libs" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2773 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2778 macro_version='2.2.7a'
2779 macro_revision='1.3134'
2793 ltmain="$ac_aux_dir/ltmain.sh"
2795 # Backslashify metacharacters that are still active within
2796 # double-quoted strings.
2797 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2799 # Same as above, but do not quote variable references.
2800 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2802 # Sed substitution to delay expansion of an escaped shell variable in a
2803 # double_quote_subst'ed string.
2804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2806 # Sed substitution to delay expansion of an escaped single quote.
2807 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2809 # Sed substitution to avoid accidental globbing in evaled expressions
2810 no_glob_subst='s/\*/\\\*/g'
2812 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2813 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2814 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2817 $as_echo_n "checking how to print strings... " >&6; }
2818 # Test print first, because it will be a builtin if present.
2819 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2820 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2822 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2825 # Use this function as a fallback that always works.
2826 func_fallback_echo ()
2828 eval 'cat <<_LTECHO_EOF
2832 ECHO='func_fallback_echo'
2835 # func_echo_all arg...
2836 # Invoke $ECHO with all args, space-separated.
2843 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2844 $as_echo "printf" >&6; } ;;
2845 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2846 $as_echo "print -r" >&6; } ;;
2847 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2848 $as_echo "cat" >&6; } ;;
2864 DEPDIR="${am__leading_dot}deps"
2866 ac_config_commands="$ac_config_commands depfiles"
2869 am_make=${MAKE-make}
2870 cat > confinc << 'END'
2872 @echo this is the am__doit target
2875 # If we don't find an include directive, just comment out the code.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2877 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2881 # First try GNU make style include.
2882 echo "include confinc" > confmf
2883 # Ignore all kinds of additional output from `make'.
2884 case `$am_make -s -f confmf 2> /dev/null` in #(
2885 *the\ am__doit\ target*)
2891 # Now try BSD make style include.
2892 if test "$am__include" = "#"; then
2893 echo '.include "confinc"' > confmf
2894 case `$am_make -s -f confmf 2> /dev/null` in #(
2895 *the\ am__doit\ target*)
2896 am__include=.include
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2905 $as_echo "$_am_result" >&6; }
2906 rm -f confinc confmf
2908 # Check whether --enable-dependency-tracking was given.
2909 if test "${enable_dependency_tracking+set}" = set; then :
2910 enableval=$enable_dependency_tracking;
2913 if test "x$enable_dependency_tracking" != xno; then
2914 am_depcomp="$ac_aux_dir/depcomp"
2917 if test "x$enable_dependency_tracking" != xno; then
2927 ac_cpp='$CPP $CPPFLAGS'
2928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$ac_cv_prog_CC"; then
2972 # Extract the first word of "gcc", so it can be a program name with args.
2973 set dummy gcc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$ac_ct_CC"; then
2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_ac_ct_CC="gcc"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3000 if test -n "$ac_ct_CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3002 $as_echo "$ac_ct_CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3008 if test "x$ac_ct_CC" = x; then
3011 case $cross_compiling:$ac_tool_warned in
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3015 ac_tool_warned=yes ;;
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC="${ac_tool_prefix}cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3064 if test -z "$CC"; then
3065 # Extract the first word of "cc", so it can be a program name with args.
3066 set dummy cc; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_CC+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$CC"; then
3073 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3084 ac_prog_rejected=yes
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 if test $ac_prog_rejected = yes; then
3096 # We found a bogon in the path, so make sure we never use it.
3097 set dummy $ac_cv_prog_CC
3099 if test $# != 0; then
3100 # We chose a different compiler from the bogus one.
3101 # However, it has the same basename, so the bogon will be chosen
3102 # first if we set CC to just the basename; use the full file name.
3104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 for ac_prog in cl.exe
3124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_CC+set}" = set; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 if test -n "$CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3161 test -n "$CC" && break
3164 if test -z "$CC"; then
3166 for ac_prog in cl.exe
3168 # Extract the first word of "$ac_prog", so it can be a program name with args.
3169 set dummy $ac_prog; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$ac_ct_CC"; then
3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185 ac_cv_prog_ac_ct_CC="$ac_prog"
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196 if test -n "$ac_ct_CC"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198 $as_echo "$ac_ct_CC" >&6; }
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3205 test -n "$ac_ct_CC" && break
3208 if test "x$ac_ct_CC" = x; then
3211 case $cross_compiling:$ac_tool_warned in
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3224 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error "no acceptable C compiler found in \$PATH
3227 See \`config.log' for more details." "$LINENO" 5; }
3229 # Provide some information about the compiler.
3230 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3233 for ac_option in --version -v -V -qversion; do
3234 { { ac_try="$ac_compiler $ac_option >&5"
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240 $as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3243 if test -s conftest.err; then
3245 ... rest of stderr output deleted ...
3246 10q' conftest.err >conftest.er1
3247 cat conftest.er1 >&5
3248 rm -f conftest.er1 conftest.err
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3267 (eval $ac_link) 2>&5
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
3275 if test x$gcc_no_link = xyes; then
3276 # Setting cross_compile will disable run tests; it will
3277 # also disable AC_CHECK_FILE but that's generally
3278 # correct if we can't link.
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3293 ac_clean_files_save=$ac_clean_files
3294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3295 # Try to create an executable without -o first, disregard a.out.
3296 # It will help us diagnose broken compilers, and finding out an intuition
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3299 $as_echo_n "checking for C compiler default output file name... " >&6; }
3300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3302 # The possible output files:
3303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306 for ac_file in $ac_files
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315 if { { ac_try="$ac_link_default"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link_default") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3331 for ac_file in $ac_files ''
3333 test -f "$ac_file" || continue
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338 # We found the default executable, but exeext='' is most
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then :
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { as_fn_set_status 77
3370 as_fn_error "C compiler cannot create executables
3371 See \`config.log' for more details." "$LINENO" 5; }; }
3373 ac_exeext=$ac_cv_exeext
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3378 $as_echo_n "checking whether the C compiler works... " >&6; }
3379 # If not cross compiling, check that we can run a simple program.
3380 if test "$cross_compiling" != yes; then
3381 if { ac_try='./$ac_file'
3382 { { case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_try") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; }; then
3394 if test "$cross_compiling" = maybe; then
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error "cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." "$LINENO" 5; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3406 $as_echo "yes" >&6; }
3408 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3409 ac_clean_files=$ac_clean_files_save
3410 # Check that the compiler produces executables we can run. If not, either
3411 # the compiler is broken, or we cross compile.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3413 $as_echo_n "checking whether we are cross compiling... " >&6; }
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3415 $as_echo "$cross_compiling" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3418 $as_echo_n "checking for suffix of executables... " >&6; }
3419 if { { ac_try="$ac_link"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3425 $as_echo "$ac_try_echo"; } >&5
3426 (eval "$ac_link") 2>&5
3428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429 test $ac_status = 0; }; then :
3430 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3431 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3432 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 for ac_file in conftest.exe conftest conftest.*; do
3435 test -f "$ac_file" || continue
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3438 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error "cannot compute suffix of executables: cannot compile and link
3447 See \`config.log' for more details." "$LINENO" 5; }
3449 rm -f conftest$ac_cv_exeext
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3451 $as_echo "$ac_cv_exeext" >&6; }
3453 rm -f conftest.$ac_ext
3454 EXEEXT=$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if test "${ac_cv_objext+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 rm -f conftest.o conftest.obj
3474 if { { ac_try="$ac_compile"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compile") 2>&5
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." "$LINENO" 5; }
3502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505 $as_echo "$ac_cv_objext" >&6; }
3506 OBJEXT=$ac_cv_objext
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3527 if ac_fn_c_try_compile "$LINENO"; then :
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538 if test $ac_compiler_gnu = yes; then
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3547 if test "${ac_cv_prog_cc_g+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3565 if ac_fn_c_try_compile "$LINENO"; then :
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_c_werror_flag=$ac_save_c_werror_flag
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 if ac_fn_c_try_compile "$LINENO"; then :
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3617 if test "$GCC" = yes; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3626 $as_echo_n "(cached) " >&6
3628 ac_cv_prog_cc_c89=no
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3634 #include <sys/types.h>
3635 #include <sys/stat.h>
3636 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3637 struct buf { int x; };
3638 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3639 static char *e (p, i)
3645 static char *f (char * (*g) (char **, int), char **p, ...)
3650 s = g (p, va_arg (v,int));
3655 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3656 function prototypes and stuff, but not '\xHH' hex character constants.
3657 These don't provoke an error unfortunately, instead are silently treated
3658 as 'x'. The following induces an error, until -std is added to get
3659 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3660 array size at least. It's necessary to write '\x00'==0 to get something
3661 that's true only with -std. */
3662 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3665 inside strings and character constants. */
3667 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669 int test (int i, double x);
3670 struct s1 {int (*f) (int a);};
3671 struct s2 {int (*f) (double a);};
3672 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3678 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3683 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3684 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 CC="$ac_save_CC $ac_arg"
3687 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_prog_cc_c89=$ac_arg
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 rm -f conftest.$ac_ext
3698 case "x$ac_cv_prog_cc_c89" in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3701 $as_echo "none needed" >&6; } ;;
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3704 $as_echo "unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3708 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 if test "x$ac_cv_prog_cc_c89" != xno; then :
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 depcc="$CC" am_compiler_list=
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3723 $as_echo_n "checking dependency style of $depcc... " >&6; }
3724 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3727 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3728 # We make a subdir and do the tests there. Otherwise we can end up
3729 # making bogus files that we don't know about and never remove. For
3730 # instance it was reported that on HP-UX the gcc test will end up
3731 # making a dummy file named `D' -- because `-MD' means `put the output
3734 # Copy depcomp to subdir because otherwise we won't find it if we're
3735 # using a relative directory.
3736 cp "$am_depcomp" conftest.dir
3738 # We will build objects and dependencies in a subdirectory because
3739 # it helps to detect inapplicable dependency modes. For instance
3740 # both Tru64's cc and ICC support -MD to output dependencies as a
3741 # side effect of compilation, but ICC will put the dependencies in
3742 # the current directory while Tru64 will put them in the object
3746 am_cv_CC_dependencies_compiler_type=none
3747 if test "$am_compiler_list" = ""; then
3748 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3751 case " $depcc " in #(
3752 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3755 for depmode in $am_compiler_list; do
3756 # Setup a source with many dependencies, because some compilers
3757 # like to wrap large dependency lists on column 80 (with \), and
3758 # we should not choose a depcomp mode which is confused by this.
3760 # We need to recreate these files for each test, as the compiler may
3761 # overwrite some of them when testing with obscure command lines.
3762 # This happens at least with the AIX C compiler.
3764 for i in 1 2 3 4 5 6; do
3765 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3766 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3767 # Solaris 8's {/usr,}/bin/sh.
3768 touch sub/conftst$i.h
3770 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3772 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3773 # mode. It turns out that the SunPro C++ compiler does not properly
3774 # handle `-M -o', and we need to detect this. Also, some Intel
3775 # versions had trouble with output in subdirs
3776 am__obj=sub/conftest.${OBJEXT-o}
3777 am__minus_obj="-o $am__obj"
3780 # This depmode causes a compiler race in universal mode.
3781 test "$am__universal" = false || continue
3784 # after this tag, mechanisms are not by side-effect, so they'll
3785 # only be used when explicitly requested
3786 if test "x$enable_dependency_tracking" = xyes; then
3792 msvisualcpp | msvcmsys)
3793 # This compiler won't grok `-c -o', but also, the minuso test has
3794 # not run yet. These depmodes are late enough in the game, and
3795 # so weak that their functioning should not be impacted.
3796 am__obj=conftest.${OBJEXT-o}
3801 if depmode=$depmode \
3802 source=sub/conftest.c object=$am__obj \
3803 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3804 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3805 >/dev/null 2>conftest.err &&
3806 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3807 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3808 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3809 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3810 # icc doesn't choke on unknown options, it will just issue warnings
3811 # or remarks (even with -Werror). So we grep stderr for any message
3812 # that says an option was ignored or not supported.
3813 # When given -MP, icc 7.0 and 7.1 complain thusly:
3814 # icc: Command line warning: ignoring option '-M'; no argument required
3815 # The diagnosis changed in icc 8.0:
3816 # icc: Command line remark: option '-MP' not supported
3817 if (grep 'ignoring option' conftest.err ||
3818 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3819 am_cv_CC_dependencies_compiler_type=$depmode
3828 am_cv_CC_dependencies_compiler_type=none
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3833 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3834 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3837 test "x$enable_dependency_tracking" != xno \
3838 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3840 am__fastdepCC_FALSE='#'
3842 am__fastdepCC_TRUE='#'
3843 am__fastdepCC_FALSE=
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3848 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3849 if test "${ac_cv_path_SED+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3852 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3853 for ac_i in 1 2 3 4 5 6 7; do
3854 ac_script="$ac_script$as_nl$ac_script"
3856 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3857 { ac_script=; unset ac_script;}
3858 if test -z "$SED"; then
3859 ac_path_SED_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_prog in sed gsed; do
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3869 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3870 # Check for GNU ac_path_SED and select it if it is found.
3871 # Check for GNU $ac_path_SED
3872 case `"$ac_path_SED" --version 2>&1` in
3874 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3877 $as_echo_n 0123456789 >"conftest.in"
3880 cat "conftest.in" "conftest.in" >"conftest.tmp"
3881 mv "conftest.tmp" "conftest.in"
3882 cp "conftest.in" "conftest.nl"
3883 $as_echo '' >> "conftest.nl"
3884 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886 as_fn_arith $ac_count + 1 && ac_count=$as_val
3887 if test $ac_count -gt ${ac_path_SED_max-0}; then
3888 # Best one so far, save it but keep looking for a better one
3889 ac_cv_path_SED="$ac_path_SED"
3890 ac_path_SED_max=$ac_count
3892 # 10*(2^10) chars as input seems more than enough
3893 test $ac_count -gt 10 && break
3895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3898 $ac_path_SED_found && break 3
3903 if test -z "$ac_cv_path_SED"; then
3904 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3912 $as_echo "$ac_cv_path_SED" >&6; }
3913 SED="$ac_cv_path_SED"
3916 test -z "$SED" && SED=sed
3917 Xsed="$SED -e 1s/^X//"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3930 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3931 if test "${ac_cv_path_GREP+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3934 if test -z "$GREP"; then
3935 ac_path_GREP_found=false
3936 # Loop through the user's path and test for each of PROGNAME-LIST
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941 test -z "$as_dir" && as_dir=.
3942 for ac_prog in grep ggrep; do
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3946 # Check for GNU ac_path_GREP and select it if it is found.
3947 # Check for GNU $ac_path_GREP
3948 case `"$ac_path_GREP" --version 2>&1` in
3950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3953 $as_echo_n 0123456789 >"conftest.in"
3956 cat "conftest.in" "conftest.in" >"conftest.tmp"
3957 mv "conftest.tmp" "conftest.in"
3958 cp "conftest.in" "conftest.nl"
3959 $as_echo 'GREP' >> "conftest.nl"
3960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3962 as_fn_arith $ac_count + 1 && ac_count=$as_val
3963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3964 # Best one so far, save it but keep looking for a better one
3965 ac_cv_path_GREP="$ac_path_GREP"
3966 ac_path_GREP_max=$ac_count
3968 # 10*(2^10) chars as input seems more than enough
3969 test $ac_count -gt 10 && break
3971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974 $ac_path_GREP_found && break 3
3979 if test -z "$ac_cv_path_GREP"; then
3980 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3983 ac_cv_path_GREP=$GREP
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3988 $as_echo "$ac_cv_path_GREP" >&6; }
3989 GREP="$ac_cv_path_GREP"
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3993 $as_echo_n "checking for egrep... " >&6; }
3994 if test "${ac_cv_path_EGREP+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3998 then ac_cv_path_EGREP="$GREP -E"
4000 if test -z "$EGREP"; then
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4012 # Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014 case `"$ac_path_EGREP" --version 2>&1` in
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4019 $as_echo_n 0123456789 >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 $as_echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 as_fn_arith $ac_count + 1 && ac_count=$as_val
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 $ac_path_EGREP_found && break 3
4045 if test -z "$ac_cv_path_EGREP"; then
4046 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4049 ac_cv_path_EGREP=$EGREP
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4055 $as_echo "$ac_cv_path_EGREP" >&6; }
4056 EGREP="$ac_cv_path_EGREP"
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4060 $as_echo_n "checking for fgrep... " >&6; }
4061 if test "${ac_cv_path_FGREP+set}" = set; then :
4062 $as_echo_n "(cached) " >&6
4064 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4065 then ac_cv_path_FGREP="$GREP -F"
4067 if test -z "$FGREP"; then
4068 ac_path_FGREP_found=false
4069 # Loop through the user's path and test for each of PROGNAME-LIST
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in fgrep; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4078 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4079 # Check for GNU ac_path_FGREP and select it if it is found.
4080 # Check for GNU $ac_path_FGREP
4081 case `"$ac_path_FGREP" --version 2>&1` in
4083 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4086 $as_echo_n 0123456789 >"conftest.in"
4089 cat "conftest.in" "conftest.in" >"conftest.tmp"
4090 mv "conftest.tmp" "conftest.in"
4091 cp "conftest.in" "conftest.nl"
4092 $as_echo 'FGREP' >> "conftest.nl"
4093 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095 as_fn_arith $ac_count + 1 && ac_count=$as_val
4096 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4097 # Best one so far, save it but keep looking for a better one
4098 ac_cv_path_FGREP="$ac_path_FGREP"
4099 ac_path_FGREP_max=$ac_count
4101 # 10*(2^10) chars as input seems more than enough
4102 test $ac_count -gt 10 && break
4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4107 $ac_path_FGREP_found && break 3
4112 if test -z "$ac_cv_path_FGREP"; then
4113 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4116 ac_cv_path_FGREP=$FGREP
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4122 $as_echo "$ac_cv_path_FGREP" >&6; }
4123 FGREP="$ac_cv_path_FGREP"
4126 test -z "$GREP" && GREP=grep
4146 # Check whether --with-gnu-ld was given.
4147 if test "${with_gnu_ld+set}" = set; then :
4148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4154 if test "$GCC" = yes; then
4155 # Check if gcc -print-prog-name=ld gives a path.
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4157 $as_echo_n "checking for ld used by $CC... " >&6; }
4160 # gcc leaves a trailing carriage return which upsets mingw
4161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4166 # Accept absolute paths.
4168 re_direlt='/[^/][^/]*/\.\./'
4169 # Canonicalize the pathname of ld
4170 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4171 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4172 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4174 test -z "$LD" && LD="$ac_prog"
4177 # If it fails, then pretend we aren't using GCC.
4181 # If it is relative, then search for the first ld in PATH.
4185 elif test "$with_gnu_ld" = yes; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4187 $as_echo_n "checking for GNU ld... " >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4190 $as_echo_n "checking for non-GNU ld... " >&6; }
4192 if test "${lt_cv_path_LD+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -z "$LD"; then
4196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4197 for ac_dir in $PATH; do
4199 test -z "$ac_dir" && ac_dir=.
4200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4201 lt_cv_path_LD="$ac_dir/$ac_prog"
4202 # Check to see if the program is GNU ld. I'd rather use --version,
4203 # but apparently some variants of GNU ld only accept -v.
4204 # Break only if it was the GNU/non-GNU ld that we prefer.
4205 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4206 *GNU* | *'with BFD'*)
4207 test "$with_gnu_ld" != no && break
4210 test "$with_gnu_ld" != yes && break
4217 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4222 if test -n "$LD"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4224 $as_echo "$LD" >&6; }
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4229 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4232 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4236 case `$LD -v 2>&1 </dev/null` in
4237 *GNU* | *'with BFD'*)
4238 lt_cv_prog_gnu_ld=yes
4241 lt_cv_prog_gnu_ld=no
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4246 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4247 with_gnu_ld=$lt_cv_prog_gnu_ld
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4258 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4259 if test "${lt_cv_path_NM+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
4262 if test -n "$NM"; then
4263 # Let the user override the test.
4266 lt_nm_to_check="${ac_tool_prefix}nm"
4267 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4268 lt_nm_to_check="$lt_nm_to_check nm"
4270 for lt_tmp_nm in $lt_nm_to_check; do
4271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4272 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4274 test -z "$ac_dir" && ac_dir=.
4275 tmp_nm="$ac_dir/$lt_tmp_nm"
4276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4277 # Check to see if the nm accepts a BSD-compat flag.
4278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4279 # nm: unknown option "B" ignored
4280 # Tru64's nm complains that /dev/null is an invalid object file
4281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4282 */dev/null* | *'Invalid file or object type'*)
4283 lt_cv_path_NM="$tmp_nm -B"
4287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4289 lt_cv_path_NM="$tmp_nm -p"
4293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4294 continue # so that we can try to find one that supports BSD flags
4303 : ${lt_cv_path_NM=no}
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4307 $as_echo "$lt_cv_path_NM" >&6; }
4308 if test "$lt_cv_path_NM" != "no"; then
4311 # Didn't find any BSD compatible name lister, look for dumpbin.
4312 if test -n "$DUMPBIN"; then :
4313 # Let the user override the test.
4315 if test -n "$ac_tool_prefix"; then
4316 for ac_prog in dumpbin "link -dump"
4318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -n "$DUMPBIN"; then
4326 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 DUMPBIN=$ac_cv_prog_DUMPBIN
4346 if test -n "$DUMPBIN"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4348 $as_echo "$DUMPBIN" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 test -n "$DUMPBIN" && break
4358 if test -z "$DUMPBIN"; then
4359 ac_ct_DUMPBIN=$DUMPBIN
4360 for ac_prog in dumpbin "link -dump"
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$ac_ct_DUMPBIN"; then
4370 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4390 if test -n "$ac_ct_DUMPBIN"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4392 $as_echo "$ac_ct_DUMPBIN" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$ac_ct_DUMPBIN" && break
4402 if test "x$ac_ct_DUMPBIN" = x; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4411 DUMPBIN=$ac_ct_DUMPBIN
4415 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4417 DUMPBIN="$DUMPBIN -symbols"
4425 if test "$DUMPBIN" != ":"; then
4429 test -z "$NM" && NM=nm
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4437 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4438 if test "${lt_cv_nm_interface+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4441 lt_cv_nm_interface="BSD nm"
4442 echo "int some_variable = 0;" > conftest.$ac_ext
4443 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4444 (eval "$ac_compile" 2>conftest.err)
4445 cat conftest.err >&5
4446 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4447 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4448 cat conftest.err >&5
4449 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4450 cat conftest.out >&5
4451 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4452 lt_cv_nm_interface="MS dumpbin"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4457 $as_echo "$lt_cv_nm_interface" >&6; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4460 $as_echo_n "checking whether ln -s works... " >&6; }
4462 if test "$LN_S" = "ln -s"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 $as_echo "yes" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4467 $as_echo "no, using $LN_S" >&6; }
4470 # find the maximum length of command line arguments
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4472 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4473 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4481 # On DJGPP, this test can blow up pretty badly due to problems in libc
4482 # (any single argument exceeding 2000 bytes causes a buffer overrun
4483 # during glob expansion). Even if it were fixed, the result of this
4484 # check would be larger than it should be.
4485 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4489 # Under GNU Hurd, this test is not required because there is
4490 # no limit to the length of command line arguments.
4491 # Libtool will interpret -1 as no limit whatsoever
4492 lt_cv_sys_max_cmd_len=-1;
4495 cygwin* | mingw* | cegcc*)
4496 # On Win9x/ME, this test blows up -- it succeeds, but takes
4497 # about 5 minutes as the teststring grows exponentially.
4498 # Worse, since 9x/ME are not pre-emptively multitasking,
4499 # you end up with a "frozen" computer, even though with patience
4500 # the test eventually succeeds (with a max line length of 256k).
4501 # Instead, let's just punt: use the minimum linelength reported by
4502 # all of the supported platforms: 8192 (on NT/2K/XP).
4503 lt_cv_sys_max_cmd_len=8192;
4507 # On MiNT this can take a long time and run out of memory.
4508 lt_cv_sys_max_cmd_len=8192;
4512 # On AmigaOS with pdksh, this test takes hours, literally.
4513 # So we just punt and use a minimum line length of 8192.
4514 lt_cv_sys_max_cmd_len=8192;
4517 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4518 # This has been around since 386BSD, at least. Likely further.
4519 if test -x /sbin/sysctl; then
4520 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4521 elif test -x /usr/sbin/sysctl; then
4522 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4524 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4526 # And add a safety zone
4527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4532 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4533 lt_cv_sys_max_cmd_len=196608
4537 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4538 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4539 # nice to cause kernel panics so lets avoid the loop below.
4540 # First set a reasonable default.
4541 lt_cv_sys_max_cmd_len=16384
4543 if test -x /sbin/sysconfig; then
4544 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4545 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4550 lt_cv_sys_max_cmd_len=102400
4552 sysv5* | sco5v6* | sysv4.2uw2*)
4553 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4554 if test -n "$kargmax"; then
4555 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4557 lt_cv_sys_max_cmd_len=32768
4561 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4562 if test -n "$lt_cv_sys_max_cmd_len"; then
4563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4566 # Make teststring a little bigger before we do anything with it.
4567 # a 1K string should be a reasonable start.
4568 for i in 1 2 3 4 5 6 7 8 ; do
4569 teststring=$teststring$teststring
4571 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4572 # If test is not a shell built-in, we'll probably end up computing a
4573 # maximum length that is only half of the actual maximum length, but
4575 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4576 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4577 test $i != 17 # 1/2 MB should be enough
4580 teststring=$teststring$teststring
4582 # Only check the string length outside the loop.
4583 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4585 # Add a significant safety factor because C++ compilers can tack on
4586 # massive amounts of additional arguments before passing them to the
4587 # linker. It appears as though 1/2 is a usable value.
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4595 if test -n $lt_cv_sys_max_cmd_len ; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4597 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4600 $as_echo "none" >&6; }
4602 max_cmd_len=$lt_cv_sys_max_cmd_len
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4614 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4615 # Try some XSI features
4618 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4620 && eval 'test $(( 1 + 1 )) -eq 2 \
4621 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4624 $as_echo "$xsi_shell" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4628 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4630 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4632 && lt_shell_append=yes
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4634 $as_echo "$lt_shell_append" >&6; }
4637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4647 # test EBCDIC or ASCII
4648 case `echo X|tr X '\101'` in
4649 A) # ASCII based system
4650 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4651 lt_SP2NL='tr \040 \012'
4652 lt_NL2SP='tr \015\012 \040\040'
4654 *) # EBCDIC based system
4655 lt_SP2NL='tr \100 \n'
4656 lt_NL2SP='tr \r\n \100\100'
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4669 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4670 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4671 $as_echo_n "(cached) " >&6
4673 lt_cv_ld_reload_flag='-r'
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4676 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4677 reload_flag=$lt_cv_ld_reload_flag
4678 case $reload_flag in
4680 *) reload_flag=" $reload_flag" ;;
4682 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4685 if test "$GCC" = yes; then
4686 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701 if test -n "$ac_tool_prefix"; then
4702 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4703 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4709 if test -n "$OBJDUMP"; then
4710 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 OBJDUMP=$ac_cv_prog_OBJDUMP
4730 if test -n "$OBJDUMP"; then
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4732 $as_echo "$OBJDUMP" >&6; }
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4740 if test -z "$ac_cv_prog_OBJDUMP"; then
4741 ac_ct_OBJDUMP=$OBJDUMP
4742 # Extract the first word of "objdump", so it can be a program name with args.
4743 set dummy objdump; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4749 if test -n "$ac_ct_OBJDUMP"; then
4750 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4770 if test -n "$ac_ct_OBJDUMP"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4772 $as_echo "$ac_ct_OBJDUMP" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4778 if test "x$ac_ct_OBJDUMP" = x; then
4781 case $cross_compiling:$ac_tool_warned in
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785 ac_tool_warned=yes ;;
4787 OBJDUMP=$ac_ct_OBJDUMP
4790 OBJDUMP="$ac_cv_prog_OBJDUMP"
4793 test -z "$OBJDUMP" && OBJDUMP=objdump
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4804 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4805 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4808 lt_cv_file_magic_cmd='$MAGIC_CMD'
4809 lt_cv_file_magic_test_file=
4810 lt_cv_deplibs_check_method='unknown'
4811 # Need to set the preceding variable on all platforms that support
4812 # interlibrary dependencies.
4813 # 'none' -- dependencies not supported.
4814 # `unknown' -- same as none, but documents that we really don't know.
4815 # 'pass_all' -- all dependencies passed with no checks.
4816 # 'test_compile' -- check by making test program.
4817 # 'file_magic [[regex]]' -- check by looking for files in library path
4818 # which responds to the $file_magic_cmd with a given extended regex.
4819 # If you have `file' or equivalent on your system and you're not sure
4820 # whether `pass_all' will *always* work, you probably want this one.
4824 lt_cv_deplibs_check_method=pass_all
4828 lt_cv_deplibs_check_method=pass_all
4832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4833 lt_cv_file_magic_cmd='/usr/bin/file -L'
4834 lt_cv_file_magic_test_file=/shlib/libc.so
4838 # func_win32_libid is a shell function defined in ltmain.sh
4839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4840 lt_cv_file_magic_cmd='func_win32_libid'
4844 # Base MSYS/MinGW do not provide the 'file' command needed by
4845 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4846 # unless we find 'file', for example because we are cross-compiling.
4847 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4848 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4849 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4850 lt_cv_file_magic_cmd='func_win32_libid'
4852 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4853 lt_cv_file_magic_cmd='$OBJDUMP -f'
4858 # use the weaker test based on 'objdump'. See mingw*.
4859 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4860 lt_cv_file_magic_cmd='$OBJDUMP -f'
4863 darwin* | rhapsody*)
4864 lt_cv_deplibs_check_method=pass_all
4867 freebsd* | dragonfly*)
4868 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4871 # Not sure whether the presence of OpenBSD here was a mistake.
4872 # Let's accept both of them until this is cleared up.
4873 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4874 lt_cv_file_magic_cmd=/usr/bin/file
4875 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4879 lt_cv_deplibs_check_method=pass_all
4884 lt_cv_deplibs_check_method=pass_all
4888 lt_cv_deplibs_check_method=pass_all
4891 hpux10.20* | hpux11*)
4892 lt_cv_file_magic_cmd=/usr/bin/file
4895 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4896 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4899 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]'
4900 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4904 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4910 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4911 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4914 irix5* | irix6* | nonstopux*)
4916 *-32|*"-32 ") libmagic=32-bit;;
4917 *-n32|*"-n32 ") libmagic=N32;;
4918 *-64|*"-64 ") libmagic=64-bit;;
4919 *) libmagic=never-match;;
4921 lt_cv_deplibs_check_method=pass_all
4924 # This must be Linux ELF.
4925 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4926 lt_cv_deplibs_check_method=pass_all
4930 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4939 lt_cv_file_magic_cmd=/usr/bin/file
4940 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4944 lt_cv_deplibs_check_method=pass_all
4948 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4955 osf3* | osf4* | osf5*)
4956 lt_cv_deplibs_check_method=pass_all
4960 lt_cv_deplibs_check_method=pass_all
4964 lt_cv_deplibs_check_method=pass_all
4967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4968 lt_cv_deplibs_check_method=pass_all
4972 case $host_vendor in
4974 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]'
4975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4978 lt_cv_deplibs_check_method=pass_all
4981 lt_cv_file_magic_cmd='/bin/file'
4982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4985 lt_cv_file_magic_cmd='/bin/file'
4986 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4987 lt_cv_file_magic_test_file=/lib/libc.so
4990 lt_cv_deplibs_check_method=pass_all
4993 lt_cv_deplibs_check_method=pass_all
4999 lt_cv_deplibs_check_method=pass_all
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5005 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5006 file_magic_cmd=$lt_cv_file_magic_cmd
5007 deplibs_check_method=$lt_cv_deplibs_check_method
5008 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}ar; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_AR+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5029 if test -n "$AR"; then
5030 ac_cv_prog_AR="$AR" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_AR="${ac_tool_prefix}ar"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 if test -n "$AR"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5052 $as_echo "$AR" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5060 if test -z "$ac_cv_prog_AR"; then
5062 # Extract the first word of "ar", so it can be a program name with args.
5063 set dummy ar; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$ac_ct_AR"; then
5070 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_AR="ar"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5090 if test -n "$ac_ct_AR"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5092 $as_echo "$ac_ct_AR" >&6; }
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5098 if test "x$ac_ct_AR" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5113 test -z "$AR" && AR=ar
5114 test -z "$AR_FLAGS" && AR_FLAGS=cru
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}strip; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_STRIP+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$STRIP"; then
5135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 STRIP=$ac_cv_prog_STRIP
5155 if test -n "$STRIP"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5157 $as_echo "$STRIP" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_prog_STRIP"; then
5167 # Extract the first word of "strip", so it can be a program name with args.
5168 set dummy strip; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$ac_ct_STRIP"; then
5175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_ac_ct_STRIP="strip"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5195 if test -n "$ac_ct_STRIP"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5197 $as_echo "$ac_ct_STRIP" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5203 if test "x$ac_ct_STRIP" = x; then
5206 case $cross_compiling:$ac_tool_warned in
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5215 STRIP="$ac_cv_prog_STRIP"
5218 test -z "$STRIP" && STRIP=:
5225 if test -n "$ac_tool_prefix"; then
5226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5227 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$RANLIB"; then
5234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 RANLIB=$ac_cv_prog_RANLIB
5254 if test -n "$RANLIB"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5256 $as_echo "$RANLIB" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5264 if test -z "$ac_cv_prog_RANLIB"; then
5265 ac_ct_RANLIB=$RANLIB
5266 # Extract the first word of "ranlib", so it can be a program name with args.
5267 set dummy ranlib; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5271 $as_echo_n "(cached) " >&6
5273 if test -n "$ac_ct_RANLIB"; then
5274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_ac_ct_RANLIB="ranlib"
5284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5294 if test -n "$ac_ct_RANLIB"; then
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5296 $as_echo "$ac_ct_RANLIB" >&6; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5302 if test "x$ac_ct_RANLIB" = x; then
5305 case $cross_compiling:$ac_tool_warned in
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5309 ac_tool_warned=yes ;;
5311 RANLIB=$ac_ct_RANLIB
5314 RANLIB="$ac_cv_prog_RANLIB"
5317 test -z "$RANLIB" && RANLIB=:
5324 # Determine commands to create old-style static archives.
5325 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5326 old_postinstall_cmds='chmod 644 $oldlib'
5327 old_postuninstall_cmds=
5329 if test -n "$RANLIB"; then
5332 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5335 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5338 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5343 lock_old_archive_extraction=yes ;;
5345 lock_old_archive_extraction=no ;;
5386 # If no C compiler was specified, use CC.
5389 # If no C compiler flags were specified, use CFLAGS.
5390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5392 # Allow CC to be a program name with arguments.
5396 # Check for command to grab the raw symbol name followed by C symbol from nm.
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5398 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5403 # These are sane defaults that work on at least a few old systems.
5404 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5406 # Character class describing NM global symbol codes.
5407 symcode='[BCDEGRST]'
5409 # Regexp to match symbols that can be accessed directly from C.
5410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5412 # Define system-specific variables.
5417 cygwin* | mingw* | pw32* | cegcc*)
5418 symcode='[ABCDGISTW]'
5421 if test "$host_cpu" = ia64; then
5422 symcode='[ABCDEGRST]'
5426 symcode='[BCDEGRST]'
5429 symcode='[BCDEGQRST]'
5440 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5448 # If we're using GNU nm, then use its standard symbol codes.
5449 case `$NM -V 2>&1` in
5450 *GNU* | *'with BFD'*)
5451 symcode='[ABCDGIRSTW]' ;;
5454 # Transform an extracted symbol line into a proper C declaration.
5455 # Some systems (esp. on ia64) link data and code symbols differently,
5456 # so use this general approach.
5457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5459 # Transform an extracted symbol line into symbol name and symbol address
5460 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5461 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'"
5463 # Handle CRLF in mingw tool chain
5467 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5471 # Try without a prefix underscore, then with it.
5472 for ac_symprfx in "" "_"; do
5474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5475 symxfrm="\\1 $ac_symprfx\\2 \\2"
5477 # Write the raw and C identifiers.
5478 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5479 # Fake it for dumpbin and say T for any non-static function
5480 # and D for any global variable.
5481 # Also find C++ and __fastcall symbols from MSVC++,
5482 # which start with @ or ?.
5483 lt_cv_sys_global_symbol_pipe="$AWK '"\
5484 " {last_section=section; section=\$ 3};"\
5485 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5486 " \$ 0!~/External *\|/{next};"\
5487 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5488 " {if(hide[section]) next};"\
5489 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5490 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5491 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5492 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5493 " ' prfx=^$ac_symprfx"
5495 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5498 # Check to see that the pipe works correctly.
5502 cat > conftest.$ac_ext <<_LT_EOF
5507 void nm_test_func(void);
5508 void nm_test_func(void){}
5512 int main(){nm_test_var='a';nm_test_func();return(0);}
5515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5516 (eval $ac_compile) 2>&5
5518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519 test $ac_status = 0; }; then
5520 # Now try to grab the symbols.
5522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5523 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5526 test $ac_status = 0; } && test -s "$nlist"; then
5527 # Try sorting and uniquifying the output.
5528 if sort "$nlist" | uniq > "$nlist"T; then
5529 mv -f "$nlist"T "$nlist"
5534 # Make sure that we snagged all the symbols we need.
5535 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5536 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5537 cat <<_LT_EOF > conftest.$ac_ext
5543 # Now generate the symbol file.
5544 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5546 cat <<_LT_EOF >> conftest.$ac_ext
5548 /* The mapping between symbol names and symbols. */
5553 lt__PROGRAM__LTX_preloaded_symbols[] =
5555 { "@PROGRAM@", (void *) 0 },
5557 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5558 cat <<\_LT_EOF >> conftest.$ac_ext
5562 /* This works around a problem in FreeBSD linker */
5563 #ifdef FREEBSD_WORKAROUND
5564 static const void *lt_preloaded_setup() {
5565 return lt__PROGRAM__LTX_preloaded_symbols;
5573 # Now try linking the two files.
5574 mv conftest.$ac_objext conftstm.$ac_objext
5575 lt_save_LIBS="$LIBS"
5576 lt_save_CFLAGS="$CFLAGS"
5577 LIBS="conftstm.$ac_objext"
5578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5580 (eval $ac_link) 2>&5
5582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5583 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5586 LIBS="$lt_save_LIBS"
5587 CFLAGS="$lt_save_CFLAGS"
5589 echo "cannot find nm_test_func in $nlist" >&5
5592 echo "cannot find nm_test_var in $nlist" >&5
5595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5598 echo "$progname: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 rm -rf conftest* conftst*
5603 # Do not use the global_symbol_pipe unless it works.
5604 if test "$pipe_works" = yes; then
5607 lt_cv_sys_global_symbol_pipe=
5613 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5614 lt_cv_sys_global_symbol_to_cdecl=
5616 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5618 $as_echo "failed" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5621 $as_echo "ok" >&6; }
5646 # Check whether --enable-libtool-lock was given.
5647 if test "${enable_libtool_lock+set}" = set; then :
5648 enableval=$enable_libtool_lock;
5651 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5653 # Some flags need to be propagated to the compiler or linker for good
5657 # Find out which ABI we are using.
5658 echo 'int i;' > conftest.$ac_ext
5659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5660 (eval $ac_compile) 2>&5
5662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5663 test $ac_status = 0; }; then
5664 case `/usr/bin/file conftest.$ac_objext` in
5676 # Find out which ABI we are using.
5677 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5679 (eval $ac_compile) 2>&5
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }; then
5683 if test "$lt_cv_prog_gnu_ld" = yes; then
5684 case `/usr/bin/file conftest.$ac_objext` in
5686 LD="${LD-ld} -melf32bsmip"
5689 LD="${LD-ld} -melf32bmipn32"
5692 LD="${LD-ld} -melf64bmip"
5696 case `/usr/bin/file conftest.$ac_objext` in
5712 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5713 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5714 # Find out which ABI we are using.
5715 echo 'int i;' > conftest.$ac_ext
5716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5717 (eval $ac_compile) 2>&5
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; then
5721 case `/usr/bin/file conftest.o` in
5724 x86_64-*kfreebsd*-gnu)
5725 LD="${LD-ld} -m elf_i386_fbsd"
5728 LD="${LD-ld} -m elf_i386"
5730 ppc64-*linux*|powerpc64-*linux*)
5731 LD="${LD-ld} -m elf32ppclinux"
5734 LD="${LD-ld} -m elf_s390"
5737 LD="${LD-ld} -m elf32_sparc"
5743 x86_64-*kfreebsd*-gnu)
5744 LD="${LD-ld} -m elf_x86_64_fbsd"
5747 LD="${LD-ld} -m elf_x86_64"
5749 ppc*-*linux*|powerpc*-*linux*)
5750 LD="${LD-ld} -m elf64ppc"
5752 s390*-*linux*|s390*-*tpf*)
5753 LD="${LD-ld} -m elf64_s390"
5756 LD="${LD-ld} -m elf64_sparc"
5766 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5767 SAVE_CFLAGS="$CFLAGS"
5768 CFLAGS="$CFLAGS -belf"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5770 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5771 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5775 ac_cpp='$CPP $CPPFLAGS'
5776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5780 if test x$gcc_no_link = xyes; then
5781 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5794 if ac_fn_c_try_link "$LINENO"; then :
5795 lt_cv_cc_needs_belf=yes
5797 lt_cv_cc_needs_belf=no
5799 rm -f core conftest.err conftest.$ac_objext \
5800 conftest$ac_exeext conftest.$ac_ext
5802 ac_cpp='$CPP $CPPFLAGS'
5803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5809 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5810 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5812 CFLAGS="$SAVE_CFLAGS"
5816 # Find out which ABI we are using.
5817 echo 'int i;' > conftest.$ac_ext
5818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5819 (eval $ac_compile) 2>&5
5821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5822 test $ac_status = 0; }; then
5823 case `/usr/bin/file conftest.o` in
5825 case $lt_cv_prog_gnu_ld in
5826 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5828 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5840 need_locks="$enable_libtool_lock"
5844 rhapsody* | darwin*)
5845 if test -n "$ac_tool_prefix"; then
5846 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5847 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 if test -n "$DSYMUTIL"; then
5854 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5874 if test -n "$DSYMUTIL"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5876 $as_echo "$DSYMUTIL" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5884 if test -z "$ac_cv_prog_DSYMUTIL"; then
5885 ac_ct_DSYMUTIL=$DSYMUTIL
5886 # Extract the first word of "dsymutil", so it can be a program name with args.
5887 set dummy dsymutil; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5893 if test -n "$ac_ct_DSYMUTIL"; then
5894 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5914 if test -n "$ac_ct_DSYMUTIL"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5916 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5922 if test "x$ac_ct_DSYMUTIL" = x; then
5925 case $cross_compiling:$ac_tool_warned in
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5929 ac_tool_warned=yes ;;
5931 DSYMUTIL=$ac_ct_DSYMUTIL
5934 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5937 if test -n "$ac_tool_prefix"; then
5938 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5939 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5945 if test -n "$NMEDIT"; then
5946 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 NMEDIT=$ac_cv_prog_NMEDIT
5966 if test -n "$NMEDIT"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5968 $as_echo "$NMEDIT" >&6; }
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5976 if test -z "$ac_cv_prog_NMEDIT"; then
5977 ac_ct_NMEDIT=$NMEDIT
5978 # Extract the first word of "nmedit", so it can be a program name with args.
5979 set dummy nmedit; ac_word=$2
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5981 $as_echo_n "checking for $ac_word... " >&6; }
5982 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5983 $as_echo_n "(cached) " >&6
5985 if test -n "$ac_ct_NMEDIT"; then
5986 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6006 if test -n "$ac_ct_NMEDIT"; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6008 $as_echo "$ac_ct_NMEDIT" >&6; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6011 $as_echo "no" >&6; }
6014 if test "x$ac_ct_NMEDIT" = x; then
6017 case $cross_compiling:$ac_tool_warned in
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6021 ac_tool_warned=yes ;;
6023 NMEDIT=$ac_ct_NMEDIT
6026 NMEDIT="$ac_cv_prog_NMEDIT"
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if test "${ac_cv_prog_LIPO+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$LIPO"; then
6038 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 LIPO=$ac_cv_prog_LIPO
6058 if test -n "$LIPO"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6060 $as_echo "$LIPO" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test -z "$ac_cv_prog_LIPO"; then
6070 # Extract the first word of "lipo", so it can be a program name with args.
6071 set dummy lipo; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -n "$ac_ct_LIPO"; then
6078 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_prog_ac_ct_LIPO="lipo"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6098 if test -n "$ac_ct_LIPO"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6100 $as_echo "$ac_ct_LIPO" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6106 if test "x$ac_ct_LIPO" = x; then
6109 case $cross_compiling:$ac_tool_warned in
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned=yes ;;
6118 LIPO="$ac_cv_prog_LIPO"
6121 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}otool; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$OTOOL"; then
6130 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 OTOOL=$ac_cv_prog_OTOOL
6150 if test -n "$OTOOL"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6152 $as_echo "$OTOOL" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6160 if test -z "$ac_cv_prog_OTOOL"; then
6162 # Extract the first word of "otool", so it can be a program name with args.
6163 set dummy otool; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$ac_ct_OTOOL"; then
6170 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_ac_ct_OTOOL="otool"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6190 if test -n "$ac_ct_OTOOL"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6192 $as_echo "$ac_ct_OTOOL" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6198 if test "x$ac_ct_OTOOL" = x; then
6201 case $cross_compiling:$ac_tool_warned in
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned=yes ;;
6210 OTOOL="$ac_cv_prog_OTOOL"
6213 if test -n "$ac_tool_prefix"; then
6214 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6215 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6217 $as_echo_n "checking for $ac_word... " >&6; }
6218 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6219 $as_echo_n "(cached) " >&6
6221 if test -n "$OTOOL64"; then
6222 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 test -z "$as_dir" && as_dir=.
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6231 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 OTOOL64=$ac_cv_prog_OTOOL64
6242 if test -n "$OTOOL64"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6244 $as_echo "$OTOOL64" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6247 $as_echo "no" >&6; }
6252 if test -z "$ac_cv_prog_OTOOL64"; then
6253 ac_ct_OTOOL64=$OTOOL64
6254 # Extract the first word of "otool64", so it can be a program name with args.
6255 set dummy otool64; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$ac_ct_OTOOL64"; then
6262 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_ac_ct_OTOOL64="otool64"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6282 if test -n "$ac_ct_OTOOL64"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6284 $as_echo "$ac_ct_OTOOL64" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6290 if test "x$ac_ct_OTOOL64" = x; then
6293 case $cross_compiling:$ac_tool_warned in
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6297 ac_tool_warned=yes ;;
6299 OTOOL64=$ac_ct_OTOOL64
6302 OTOOL64="$ac_cv_prog_OTOOL64"
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6332 $as_echo_n "checking for -single_module linker flag... " >&6; }
6333 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6336 lt_cv_apple_cc_single_mod=no
6337 if test -z "${LT_MULTI_MODULE}"; then
6338 # By default we will add the -single_module flag. You can override
6339 # by either setting the environment variable LT_MULTI_MODULE
6340 # non-empty at configure time, or by adding -multi_module to the
6342 rm -rf libconftest.dylib*
6343 echo "int foo(void){return 1;}" > conftest.c
6344 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6345 -dynamiclib -Wl,-single_module conftest.c" >&5
6346 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6347 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6349 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6350 lt_cv_apple_cc_single_mod=yes
6352 cat conftest.err >&5
6354 rm -rf libconftest.dylib*
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6359 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6361 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6362 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6365 lt_cv_ld_exported_symbols_list=no
6366 save_LDFLAGS=$LDFLAGS
6367 echo "_main" > conftest.sym
6368 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6369 if test x$gcc_no_link = xyes; then
6370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6383 if ac_fn_c_try_link "$LINENO"; then :
6384 lt_cv_ld_exported_symbols_list=yes
6386 lt_cv_ld_exported_symbols_list=no
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 LDFLAGS="$save_LDFLAGS"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6394 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6396 $as_echo_n "checking for -force_load linker flag... " >&6; }
6397 if test "${lt_cv_ld_force_load+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6400 lt_cv_ld_force_load=no
6401 cat > conftest.c << _LT_EOF
6402 int forced_loaded() { return 2;}
6404 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6405 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6406 echo "$AR cru libconftest.a conftest.o" >&5
6407 $AR cru libconftest.a conftest.o 2>&5
6408 cat > conftest.c << _LT_EOF
6409 int main() { return 0;}
6411 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6412 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6414 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6415 lt_cv_ld_force_load=yes
6417 cat conftest.err >&5
6419 rm -f conftest.err libconftest.a conftest conftest.c
6420 rm -rf conftest.dSYM
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6424 $as_echo "$lt_cv_ld_force_load" >&6; }
6426 rhapsody* | darwin1.[012])
6427 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6430 darwin*) # darwin 5.x on
6431 # if running on 10.5 or later, the deployment target defaults
6432 # to the OS version, if on x86, and 10.4, the deployment
6433 # target defaults to 10.4. Don't you love it?
6434 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6435 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6440 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6444 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6445 _lt_dar_single_mod='$single_module'
6447 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6448 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6450 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6452 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6453 _lt_dsymutil='~$DSYMUTIL $lib || :'
6461 ac_cpp='$CPP $CPPFLAGS'
6462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6466 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6467 # On Suns, sometimes $CPP names a directory.
6468 if test -n "$CPP" && test -d "$CPP"; then
6471 if test -z "$CPP"; then
6472 if test "${ac_cv_prog_CPP+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6475 # Double quotes because CPP needs to be expanded
6476 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6479 for ac_c_preproc_warn_flag in '' yes
6481 # Use a header file that comes with gcc, so configuring glibc
6482 # with a fresh cross-compiler works.
6483 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6484 # <limits.h> exists even on freestanding compilers.
6485 # On the NeXT, cc -E runs the code through the compiler's parser,
6486 # not just through cpp. "Syntax error" is here to catch this case.
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6490 # include <limits.h>
6492 # include <assert.h>
6496 if ac_fn_c_try_cpp "$LINENO"; then :
6499 # Broken: fails on valid input.
6502 rm -f conftest.err conftest.$ac_ext
6504 # OK, works on sane cases. Now check whether nonexistent headers
6505 # can be detected and how.
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6508 #include <ac_nonexistent.h>
6510 if ac_fn_c_try_cpp "$LINENO"; then :
6511 # Broken: success on invalid input.
6514 # Passes both tests.
6518 rm -f conftest.err conftest.$ac_ext
6521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6522 rm -f conftest.err conftest.$ac_ext
6523 if $ac_preproc_ok; then :
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6536 $as_echo "$CPP" >&6; }
6538 for ac_c_preproc_warn_flag in '' yes
6540 # Use a header file that comes with gcc, so configuring glibc
6541 # with a fresh cross-compiler works.
6542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6543 # <limits.h> exists even on freestanding compilers.
6544 # On the NeXT, cc -E runs the code through the compiler's parser,
6545 # not just through cpp. "Syntax error" is here to catch this case.
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6549 # include <limits.h>
6551 # include <assert.h>
6555 if ac_fn_c_try_cpp "$LINENO"; then :
6558 # Broken: fails on valid input.
6561 rm -f conftest.err conftest.$ac_ext
6563 # OK, works on sane cases. Now check whether nonexistent headers
6564 # can be detected and how.
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 #include <ac_nonexistent.h>
6569 if ac_fn_c_try_cpp "$LINENO"; then :
6570 # Broken: success on invalid input.
6573 # Passes both tests.
6577 rm -f conftest.err conftest.$ac_ext
6580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6581 rm -f conftest.err conftest.$ac_ext
6582 if $ac_preproc_ok; then :
6585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6587 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6588 See \`config.log' for more details." "$LINENO" 5; }
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6599 $as_echo_n "checking for ANSI C header files... " >&6; }
6600 if test "${ac_cv_header_stdc+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6618 if ac_fn_c_try_compile "$LINENO"; then :
6619 ac_cv_header_stdc=yes
6621 ac_cv_header_stdc=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 if test $ac_cv_header_stdc = yes; then
6626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6633 $EGREP "memchr" >/dev/null 2>&1; then :
6636 ac_cv_header_stdc=no
6642 if test $ac_cv_header_stdc = yes; then
6643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650 $EGREP "free" >/dev/null 2>&1; then :
6653 ac_cv_header_stdc=no
6659 if test $ac_cv_header_stdc = yes; then
6660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6661 if test "$cross_compiling" = yes; then :
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6668 #if ((' ' & 0x0FF) == 0x020)
6669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6672 # define ISLOWER(c) \
6673 (('a' <= (c) && (c) <= 'i') \
6674 || ('j' <= (c) && (c) <= 'r') \
6675 || ('s' <= (c) && (c) <= 'z'))
6676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6684 for (i = 0; i < 256; i++)
6685 if (XOR (islower (i), ISLOWER (i))
6686 || toupper (i) != TOUPPER (i))
6691 if ac_fn_c_try_run "$LINENO"; then :
6694 ac_cv_header_stdc=no
6696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6697 conftest.$ac_objext conftest.beam conftest.$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6703 $as_echo "$ac_cv_header_stdc" >&6; }
6704 if test $ac_cv_header_stdc = yes; then
6706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6712 inttypes.h stdint.h unistd.h
6714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6717 eval as_val=\$$as_ac_Header
6718 if test "x$as_val" = x""yes; then :
6719 cat >>confdefs.h <<_ACEOF
6720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6728 for ac_header in dlfcn.h
6730 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6732 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6733 cat >>confdefs.h <<_ACEOF
6734 #define HAVE_DLFCN_H 1
6755 # Check whether --enable-shared was given.
6756 if test "${enable_shared+set}" = set; then :
6757 enableval=$enable_shared; p=${PACKAGE-default}
6759 yes) enable_shared=yes ;;
6760 no) enable_shared=no ;;
6763 # Look at the argument we got. We use all the common list separators.
6764 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6765 for pkg in $enableval; do
6767 if test "X$pkg" = "X$p"; then
6786 # Check whether --enable-static was given.
6787 if test "${enable_static+set}" = set; then :
6788 enableval=$enable_static; p=${PACKAGE-default}
6790 yes) enable_static=yes ;;
6791 no) enable_static=no ;;
6794 # Look at the argument we got. We use all the common list separators.
6795 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6796 for pkg in $enableval; do
6798 if test "X$pkg" = "X$p"; then
6818 # Check whether --with-pic was given.
6819 if test "${with_pic+set}" = set; then :
6820 withval=$with_pic; pic_mode="$withval"
6826 test -z "$pic_mode" && pic_mode=default
6834 # Check whether --enable-fast-install was given.
6835 if test "${enable_fast_install+set}" = set; then :
6836 enableval=$enable_fast_install; p=${PACKAGE-default}
6838 yes) enable_fast_install=yes ;;
6839 no) enable_fast_install=no ;;
6841 enable_fast_install=no
6842 # Look at the argument we got. We use all the common list separators.
6843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6844 for pkg in $enableval; do
6846 if test "X$pkg" = "X$p"; then
6847 enable_fast_install=yes
6854 enable_fast_install=yes
6867 # This can be used to rebuild libtool when needed
6868 LIBTOOL_DEPS="$ltmain"
6870 # Always use our own libtool.
6871 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6898 test -z "$LN_S" && LN_S="ln -s"
6913 if test -n "${ZSH_VERSION+set}" ; then
6914 setopt NO_GLOB_SUBST
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6918 $as_echo_n "checking for objdir... " >&6; }
6919 if test "${lt_cv_objdir+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6922 rm -f .libs 2>/dev/null
6923 mkdir .libs 2>/dev/null
6924 if test -d .libs; then
6927 # MS-DOS does not allow filenames that begin with a dot.
6930 rmdir .libs 2>/dev/null
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6933 $as_echo "$lt_cv_objdir" >&6; }
6934 objdir=$lt_cv_objdir
6940 cat >>confdefs.h <<_ACEOF
6941 #define LT_OBJDIR "$lt_cv_objdir/"
6949 # AIX sometimes has problems with the GCC collect2 program. For some
6950 # reason, if we set the COLLECT_NAMES environment variable, the problems
6951 # vanish in a puff of smoke.
6952 if test "X${COLLECT_NAMES+set}" != Xset; then
6954 export COLLECT_NAMES
6961 can_build_shared=yes
6963 # All known linkers require a `.a' archive for static linking (except MSVC,
6964 # which needs '.lib').
6967 with_gnu_ld="$lt_cv_prog_gnu_ld"
6970 old_CFLAGS="$CFLAGS"
6972 # Set sane defaults for various variables
6973 test -z "$CC" && CC=cc
6974 test -z "$LTCC" && LTCC=$CC
6975 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6976 test -z "$LD" && LD=ld
6977 test -z "$ac_objext" && ac_objext=o
6979 for cc_temp in $compiler""; do
6981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6987 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6990 # Only perform the check for file, if the check method requires it
6991 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6992 case $deplibs_check_method in
6994 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6996 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6997 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
7002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7005 lt_save_MAGIC_CMD="$MAGIC_CMD"
7006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7007 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7008 for ac_dir in $ac_dummy; do
7010 test -z "$ac_dir" && ac_dir=.
7011 if test -f $ac_dir/${ac_tool_prefix}file; then
7012 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7013 if test -n "$file_magic_test_file"; then
7014 case $deplibs_check_method in
7016 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7019 $EGREP "$file_magic_regex" > /dev/null; then
7024 *** Warning: the command libtool uses to detect shared libraries,
7025 *** $file_magic_cmd, produces output that libtool cannot recognize.
7026 *** The result is that libtool may fail to recognize shared libraries
7027 *** as such. This will affect the creation of libtool libraries that
7028 *** depend on shared libraries, but programs linked with such libtool
7029 *** libraries will work regardless of this problem. Nevertheless, you
7030 *** may want to report the problem to your system manager and/or to
7031 *** bug-libtool@gnu.org
7041 MAGIC_CMD="$lt_save_MAGIC_CMD"
7046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047 if test -n "$MAGIC_CMD"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7049 $as_echo "$MAGIC_CMD" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7059 if test -z "$lt_cv_path_MAGIC_CMD"; then
7060 if test -n "$ac_tool_prefix"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7062 $as_echo_n "checking for file... " >&6; }
7063 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7068 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7071 lt_save_MAGIC_CMD="$MAGIC_CMD"
7072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7073 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7074 for ac_dir in $ac_dummy; do
7076 test -z "$ac_dir" && ac_dir=.
7077 if test -f $ac_dir/file; then
7078 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7079 if test -n "$file_magic_test_file"; then
7080 case $deplibs_check_method in
7082 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7083 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7084 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7085 $EGREP "$file_magic_regex" > /dev/null; then
7090 *** Warning: the command libtool uses to detect shared libraries,
7091 *** $file_magic_cmd, produces output that libtool cannot recognize.
7092 *** The result is that libtool may fail to recognize shared libraries
7093 *** as such. This will affect the creation of libtool libraries that
7094 *** depend on shared libraries, but programs linked with such libtool
7095 *** libraries will work regardless of this problem. Nevertheless, you
7096 *** may want to report the problem to your system manager and/or to
7097 *** bug-libtool@gnu.org
7107 MAGIC_CMD="$lt_save_MAGIC_CMD"
7112 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7113 if test -n "$MAGIC_CMD"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7115 $as_echo "$MAGIC_CMD" >&6; }
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7131 # Use C for the default configuration in the libtool script
7135 ac_cpp='$CPP $CPPFLAGS'
7136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141 # Source file extension for C test sources.
7144 # Object file extension for compiled C test sources.
7148 # Code to be used in simple compile tests
7149 lt_simple_compile_test_code="int some_variable = 0;"
7151 # Code to be used in simple link tests
7152 lt_simple_link_test_code='int main(){return(0);}'
7160 # If no C compiler was specified, use CC.
7163 # If no C compiler flags were specified, use CFLAGS.
7164 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7166 # Allow CC to be a program name with arguments.
7169 # Save the default compiler, since it gets overwritten when the other
7170 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7171 compiler_DEFAULT=$CC
7173 # save warnings/boilerplate of simple test code
7174 ac_outfile=conftest.$ac_objext
7175 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7176 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7177 _lt_compiler_boilerplate=`cat conftest.err`
7180 ac_outfile=conftest.$ac_objext
7181 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7182 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7183 _lt_linker_boilerplate=`cat conftest.err`
7188 ## There is no encapsulation within the following macros, do not change
7189 ## the running order or otherwise move them around unless you know exactly
7190 ## what you are doing...
7191 if test -n "$compiler"; then
7193 lt_prog_compiler_no_builtin_flag=
7195 if test "$GCC" = yes; then
7196 case $cc_basename in
7198 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7200 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7204 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7205 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7208 lt_cv_prog_compiler_rtti_exceptions=no
7209 ac_outfile=conftest.$ac_objext
7210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7211 lt_compiler_flag="-fno-rtti -fno-exceptions"
7212 # Insert the option either (1) after the last *FLAGS variable, or
7213 # (2) before a word containing "conftest.", or (3) at the end.
7214 # Note that $ac_compile itself does not contain backslashes and begins
7215 # with a dollar sign (not a hyphen), so the echo should work correctly.
7216 # The option is referenced via a variable to avoid confusing sed.
7217 lt_compile=`echo "$ac_compile" | $SED \
7218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7220 -e 's:$: $lt_compiler_flag:'`
7221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7222 (eval "$lt_compile" 2>conftest.err)
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 if (exit $ac_status) && test -s "$ac_outfile"; then
7227 # The compiler can only warn and ignore the option if not recognized
7228 # So say no if there are warnings other than the usual output.
7229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7232 lt_cv_prog_compiler_rtti_exceptions=yes
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7239 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7241 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7242 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7254 lt_prog_compiler_wl=
7255 lt_prog_compiler_pic=
7256 lt_prog_compiler_static=
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7259 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7261 if test "$GCC" = yes; then
7262 lt_prog_compiler_wl='-Wl,'
7263 lt_prog_compiler_static='-static'
7267 # All AIX code is PIC.
7268 if test "$host_cpu" = ia64; then
7269 # AIX 5 now supports IA64 processor
7270 lt_prog_compiler_static='-Bstatic'
7277 # see comment about AmigaOS4 .so support
7278 lt_prog_compiler_pic='-fPIC'
7281 # FIXME: we need at least 68020 code to build shared libraries, but
7282 # adding the `-m68020' flag to GCC prevents building anything better,
7284 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7290 # PIC is the default for these OSes.
7293 mingw* | cygwin* | pw32* | os2* | cegcc*)
7294 # This hack is so that the source file can tell whether it is being
7295 # built for inclusion in a dll (and should export symbols for example).
7296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7297 # (--disable-auto-import) libraries
7298 lt_prog_compiler_pic='-DDLL_EXPORT'
7301 darwin* | rhapsody*)
7302 # PIC is the default on this platform
7303 # Common symbols not allowed in MH_DYLIB files
7304 lt_prog_compiler_pic='-fno-common'
7308 # PIC is the default for Haiku.
7309 # The "-static" flag exists, but is broken.
7310 lt_prog_compiler_static=
7314 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7315 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7316 # sets the default TLS model and affects inlining.
7322 lt_prog_compiler_pic='-fPIC'
7328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7329 # Instead, we relocate shared libraries at runtime.
7333 # Just because we use GCC doesn't mean we suddenly get shared libraries
7334 # on systems that don't support them.
7335 lt_prog_compiler_can_build_shared=no
7340 # QNX uses GNU C++, but need to define -shared option too, otherwise
7342 lt_prog_compiler_pic='-fPIC -shared'
7346 if test -d /usr/nec; then
7347 lt_prog_compiler_pic=-Kconform_pic
7352 lt_prog_compiler_pic='-fPIC'
7356 case $cc_basename in
7357 nvcc*) # Cuda Compiler Driver 2.2
7358 lt_prog_compiler_wl='-Xlinker '
7359 lt_prog_compiler_pic='-Xcompiler -fPIC'
7363 # PORTME Check for flag to pass linker flags through the system compiler.
7366 lt_prog_compiler_wl='-Wl,'
7367 if test "$host_cpu" = ia64; then
7368 # AIX 5 now supports IA64 processor
7369 lt_prog_compiler_static='-Bstatic'
7371 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7375 mingw* | cygwin* | pw32* | os2* | cegcc*)
7376 # This hack is so that the source file can tell whether it is being
7377 # built for inclusion in a dll (and should export symbols for example).
7378 lt_prog_compiler_pic='-DDLL_EXPORT'
7381 hpux9* | hpux10* | hpux11*)
7382 lt_prog_compiler_wl='-Wl,'
7383 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7390 lt_prog_compiler_pic='+Z'
7393 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7394 lt_prog_compiler_static='${wl}-a ${wl}archive'
7397 irix5* | irix6* | nonstopux*)
7398 lt_prog_compiler_wl='-Wl,'
7399 # PIC (with -KPIC) is the default.
7400 lt_prog_compiler_static='-non_shared'
7403 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7404 case $cc_basename in
7405 # old Intel for x86_64 which still supported -KPIC.
7407 lt_prog_compiler_wl='-Wl,'
7408 lt_prog_compiler_pic='-KPIC'
7409 lt_prog_compiler_static='-static'
7411 # icc used to be incompatible with GCC.
7412 # ICC 10 doesn't accept -KPIC any more.
7414 lt_prog_compiler_wl='-Wl,'
7415 lt_prog_compiler_pic='-fPIC'
7416 lt_prog_compiler_static='-static'
7418 # Lahey Fortran 8.1.
7420 lt_prog_compiler_wl='-Wl,'
7421 lt_prog_compiler_pic='--shared'
7422 lt_prog_compiler_static='--static'
7424 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7425 # Portland Group compilers (*not* the Pentium gcc compiler,
7426 # which looks to be a dead project)
7427 lt_prog_compiler_wl='-Wl,'
7428 lt_prog_compiler_pic='-fpic'
7429 lt_prog_compiler_static='-Bstatic'
7432 lt_prog_compiler_wl='-Wl,'
7433 # All Alpha code is PIC.
7434 lt_prog_compiler_static='-non_shared'
7436 xl* | bgxl* | bgf* | mpixl*)
7437 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7438 lt_prog_compiler_wl='-Wl,'
7439 lt_prog_compiler_pic='-qpic'
7440 lt_prog_compiler_static='-qstaticlink'
7443 case `$CC -V 2>&1 | sed 5q` in
7444 *Sun\ F* | *Sun*Fortran*)
7445 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7446 lt_prog_compiler_pic='-KPIC'
7447 lt_prog_compiler_static='-Bstatic'
7448 lt_prog_compiler_wl=''
7452 lt_prog_compiler_pic='-KPIC'
7453 lt_prog_compiler_static='-Bstatic'
7454 lt_prog_compiler_wl='-Wl,'
7462 lt_prog_compiler_pic='-KPIC'
7463 lt_prog_compiler_static='-Bstatic'
7467 # QNX uses GNU C++, but need to define -shared option too, otherwise
7469 lt_prog_compiler_pic='-fPIC -shared'
7472 osf3* | osf4* | osf5*)
7473 lt_prog_compiler_wl='-Wl,'
7474 # All OSF/1 code is PIC.
7475 lt_prog_compiler_static='-non_shared'
7479 lt_prog_compiler_static='-non_shared'
7483 lt_prog_compiler_pic='-KPIC'
7484 lt_prog_compiler_static='-Bstatic'
7485 case $cc_basename in
7487 lt_prog_compiler_wl='-Qoption ld ';;
7489 lt_prog_compiler_wl='-Wl,';;
7494 lt_prog_compiler_wl='-Qoption ld '
7495 lt_prog_compiler_pic='-PIC'
7496 lt_prog_compiler_static='-Bstatic'
7499 sysv4 | sysv4.2uw2* | sysv4.3*)
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_pic='-KPIC'
7502 lt_prog_compiler_static='-Bstatic'
7506 if test -d /usr/nec ;then
7507 lt_prog_compiler_pic='-Kconform_pic'
7508 lt_prog_compiler_static='-Bstatic'
7512 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7513 lt_prog_compiler_wl='-Wl,'
7514 lt_prog_compiler_pic='-KPIC'
7515 lt_prog_compiler_static='-Bstatic'
7519 lt_prog_compiler_wl='-Wl,'
7520 lt_prog_compiler_can_build_shared=no
7524 lt_prog_compiler_pic='-pic'
7525 lt_prog_compiler_static='-Bstatic'
7529 lt_prog_compiler_can_build_shared=no
7535 # For platforms which do not support PIC, -DPIC is meaningless:
7537 lt_prog_compiler_pic=
7540 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7544 $as_echo "$lt_prog_compiler_pic" >&6; }
7552 # Check to make sure the PIC flag actually works.
7554 if test -n "$lt_prog_compiler_pic"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7556 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7557 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7558 $as_echo_n "(cached) " >&6
7560 lt_cv_prog_compiler_pic_works=no
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7563 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7564 # Insert the option either (1) after the last *FLAGS variable, or
7565 # (2) before a word containing "conftest.", or (3) at the end.
7566 # Note that $ac_compile itself does not contain backslashes and begins
7567 # with a dollar sign (not a hyphen), so the echo should work correctly.
7568 # The option is referenced via a variable to avoid confusing sed.
7569 lt_compile=`echo "$ac_compile" | $SED \
7570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7572 -e 's:$: $lt_compiler_flag:'`
7573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7574 (eval "$lt_compile" 2>conftest.err)
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 if (exit $ac_status) && test -s "$ac_outfile"; then
7579 # The compiler can only warn and ignore the option if not recognized
7580 # So say no if there are warnings other than the usual output.
7581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7584 lt_cv_prog_compiler_pic_works=yes
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7591 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7593 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7594 case $lt_prog_compiler_pic in
7596 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7599 lt_prog_compiler_pic=
7600 lt_prog_compiler_can_build_shared=no
7611 # Check to make sure the static flag actually works.
7613 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7615 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7616 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7619 lt_cv_prog_compiler_static_works=no
7620 save_LDFLAGS="$LDFLAGS"
7621 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7622 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7624 # The linker can only warn and ignore the option if not recognized
7625 # So say no if there are warnings
7626 if test -s conftest.err; then
7627 # Append any errors to the config.log.
7628 cat conftest.err 1>&5
7629 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7631 if diff conftest.exp conftest.er2 >/dev/null; then
7632 lt_cv_prog_compiler_static_works=yes
7635 lt_cv_prog_compiler_static_works=yes
7639 LDFLAGS="$save_LDFLAGS"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7643 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7645 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7648 lt_prog_compiler_static=
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7658 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7659 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7662 lt_cv_prog_compiler_c_o=no
7663 $RM -r conftest 2>/dev/null
7667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7669 lt_compiler_flag="-o out/conftest2.$ac_objext"
7670 # Insert the option either (1) after the last *FLAGS variable, or
7671 # (2) before a word containing "conftest.", or (3) at the end.
7672 # Note that $ac_compile itself does not contain backslashes and begins
7673 # with a dollar sign (not a hyphen), so the echo should work correctly.
7674 lt_compile=`echo "$ac_compile" | $SED \
7675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7677 -e 's:$: $lt_compiler_flag:'`
7678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7679 (eval "$lt_compile" 2>out/conftest.err)
7681 cat out/conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7685 # The compiler can only warn and ignore the option if not recognized
7686 # So say no if there are warnings
7687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7690 lt_cv_prog_compiler_c_o=yes
7695 # SGI C++ compiler will create directory out/ii_files/ for
7696 # template instantiation
7697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7698 $RM out/* && rmdir out
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7705 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7714 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7717 lt_cv_prog_compiler_c_o=no
7718 $RM -r conftest 2>/dev/null
7722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724 lt_compiler_flag="-o out/conftest2.$ac_objext"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 lt_compile=`echo "$ac_compile" | $SED \
7730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7732 -e 's:$: $lt_compiler_flag:'`
7733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7734 (eval "$lt_compile" 2>out/conftest.err)
7736 cat out/conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings
7742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7745 lt_cv_prog_compiler_c_o=yes
7750 # SGI C++ compiler will create directory out/ii_files/ for
7751 # template instantiation
7752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7753 $RM out/* && rmdir out
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7760 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7765 hard_links="nottested"
7766 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7767 # do not overwrite the value of need_locks provided by the user
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7769 $as_echo_n "checking if we can lock with hard links... " >&6; }
7772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7774 ln conftest.a conftest.b 2>&5 || hard_links=no
7775 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7777 $as_echo "$hard_links" >&6; }
7778 if test "$hard_links" = no; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7780 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7796 allow_undefined_flag=
7797 always_export_symbols=no
7799 archive_expsym_cmds=
7800 compiler_needs_object=no
7801 enable_shared_with_static_runtimes=no
7802 export_dynamic_flag_spec=
7803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7804 hardcode_automatic=no
7806 hardcode_direct_absolute=no
7807 hardcode_libdir_flag_spec=
7808 hardcode_libdir_flag_spec_ld=
7809 hardcode_libdir_separator=
7811 hardcode_shlibpath_var=unsupported
7813 link_all_deplibs=unknown
7816 old_archive_from_new_cmds=
7817 old_archive_from_expsyms_cmds=
7818 thread_safe_flag_spec=
7819 whole_archive_flag_spec=
7820 # include_expsyms should be a list of space-separated symbols to be *always*
7821 # included in the symbol list
7823 # exclude_expsyms can be an extended regexp of symbols to exclude
7824 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7825 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7826 # as well as any symbol that contains `d'.
7827 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7828 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7829 # platforms (ab)use it in PIC code, but their linkers get confused if
7830 # the symbol is explicitly referenced. Since portable code cannot
7831 # rely on this symbol name, it's probably fine to never include it in
7832 # preloaded symbol tables.
7833 # Exclude shared library initialization/finalization symbols.
7834 extract_expsyms_cmds=
7837 cygwin* | mingw* | pw32* | cegcc*)
7838 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7839 # When not using gcc, we currently assume that we are using
7840 # Microsoft Visual C++.
7841 if test "$GCC" != yes; then
7846 # we just hope/assume this is gcc and not c89 (= MSVC++)
7856 # On some targets, GNU ld is compatible enough with the native linker
7857 # that we're better off using the native interface for both.
7858 lt_use_gnu_ld_interface=no
7859 if test "$with_gnu_ld" = yes; then
7862 # The AIX port of GNU ld has always aspired to compatibility
7863 # with the native linker. However, as the warning in the GNU ld
7864 # block says, versions before 2.19.5* couldn't really create working
7865 # shared libraries, regardless of the interface used.
7866 case `$LD -v 2>&1` in
7867 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7868 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7869 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7871 lt_use_gnu_ld_interface=yes
7876 lt_use_gnu_ld_interface=yes
7881 if test "$lt_use_gnu_ld_interface" = yes; then
7882 # If archive_cmds runs LD, not CC, wlarc should be empty
7885 # Set some defaults for GNU ld with shared library support. These
7886 # are reset later if shared libraries are not supported. Putting them
7887 # here allows them to be overridden if necessary.
7888 runpath_var=LD_RUN_PATH
7889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7890 export_dynamic_flag_spec='${wl}--export-dynamic'
7891 # ancient GNU ld didn't support --whole-archive et. al.
7892 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7893 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7895 whole_archive_flag_spec=
7897 supports_anon_versioning=no
7898 case `$LD -v 2>&1` in
7899 *GNU\ gold*) supports_anon_versioning=yes ;;
7900 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7901 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7902 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7903 *\ 2.11.*) ;; # other 2.11 versions
7904 *) supports_anon_versioning=yes ;;
7907 # See if GNU ld supports shared libraries.
7910 # On AIX/PPC, the GNU linker is very broken
7911 if test "$host_cpu" != ia64; then
7915 *** Warning: the GNU linker, at least up to release 2.19, is reported
7916 *** to be unable to reliably create shared libraries on AIX.
7917 *** Therefore, libtool is disabling shared libraries support. If you
7918 *** really care for shared libraries, you may want to install binutils
7919 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7920 *** You will then need to restart the configuration process.
7929 # see comment about AmigaOS4 .so support
7930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7931 archive_expsym_cmds=''
7934 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)'
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 hardcode_minus_L=yes
7942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7943 allow_undefined_flag=unsupported
7944 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7945 # support --undefined. This deserves some investigation. FIXME
7946 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7952 cygwin* | mingw* | pw32* | cegcc*)
7953 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7954 # as there is no search path for DLLs.
7955 hardcode_libdir_flag_spec='-L$libdir'
7956 export_dynamic_flag_spec='${wl}--export-all-symbols'
7957 allow_undefined_flag=unsupported
7958 always_export_symbols=no
7959 enable_shared_with_static_runtimes=yes
7960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7962 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7964 # If the export-symbols file already is a .def file (1st line
7965 # is EXPORTS), use it as is; otherwise, prepend...
7966 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7967 cp $export_symbols $output_objdir/$soname.def;
7969 echo EXPORTS > $output_objdir/$soname.def;
7970 cat $export_symbols >> $output_objdir/$soname.def;
7972 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7980 link_all_deplibs=yes
7985 hardcode_shlibpath_var=no
7986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7987 export_dynamic_flag_spec='${wl}-E'
7988 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7989 # Instead, shared libraries are loaded at an image base (0x10000000 by
7990 # default) and relocated if they conflict, which is a slow very memory
7991 # consuming and fragmenting process. To avoid this, we pick a random,
7992 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7993 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7995 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'
7998 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8000 if test "$host_os" = linux-dietlibc; then
8001 case $cc_basename in
8002 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8005 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8006 && test "$tmp_diet" = no
8009 tmp_sharedflag='-shared'
8010 case $cc_basename,$host_cpu in
8011 pgcc*) # Portland Group C compiler
8012 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'
8013 tmp_addflag=' $pic_flag'
8015 pgf77* | pgf90* | pgf95* | pgfortran*)
8016 # Portland Group f77 and f90 compilers
8017 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'
8018 tmp_addflag=' $pic_flag -Mnomain' ;;
8019 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8020 tmp_addflag=' -i_dynamic' ;;
8021 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8022 tmp_addflag=' -i_dynamic -nofor_main' ;;
8023 ifc* | ifort*) # Intel Fortran compiler
8024 tmp_addflag=' -nofor_main' ;;
8025 lf95*) # Lahey Fortran 8.1
8026 whole_archive_flag_spec=
8027 tmp_sharedflag='--shared' ;;
8028 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8029 tmp_sharedflag='-qmkshrobj'
8031 nvcc*) # Cuda Compiler Driver 2.2
8032 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'
8033 compiler_needs_object=yes
8036 case `$CC -V 2>&1 | sed 5q` in
8037 *Sun\ C*) # Sun C 5.9
8038 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'
8039 compiler_needs_object=yes
8040 tmp_sharedflag='-G' ;;
8041 *Sun\ F*) # Sun Fortran 8.3
8042 tmp_sharedflag='-G' ;;
8044 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 if test "x$supports_anon_versioning" = xyes; then
8047 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8049 echo "local: *; };" >> $output_objdir/$libname.ver~
8050 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8053 case $cc_basename in
8054 xlf* | bgf* | bgxlf* | mpixlf*)
8055 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8056 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8057 hardcode_libdir_flag_spec=
8058 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8059 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8060 if test "x$supports_anon_versioning" = xyes; then
8061 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8062 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8063 echo "local: *; };" >> $output_objdir/$libname.ver~
8064 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8075 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8084 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8089 *** create shared libraries on Solaris systems. Therefore, libtool
8090 *** is disabling shared libraries support. We urge you to upgrade GNU
8091 *** binutils to release 2.9.1 or newer. Another option is to modify
8092 *** your PATH or compiler configuration so that the native linker is
8093 *** used, and then restart.
8096 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8105 case `$LD -v 2>&1` in
8106 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8110 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8111 *** reliably create shared libraries on SCO systems. Therefore, libtool
8112 *** is disabling shared libraries support. We urge you to upgrade GNU
8113 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8114 *** your PATH or compiler configuration so that the native linker is
8115 *** used, and then restart.
8120 # For security reasons, it is highly recommended that you always
8121 # use absolute paths for naming shared libraries, and exclude the
8122 # DT_RUNPATH tag from executables and libraries. But doing so
8123 # requires that you compile everything twice, which is a pain.
8124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8136 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_shlibpath_var=no
8143 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8152 if test "$ld_shlibs" = no; then
8154 hardcode_libdir_flag_spec=
8155 export_dynamic_flag_spec=
8156 whole_archive_flag_spec=
8159 # PORTME fill in a description of your system's linker (not GNU ld)
8162 allow_undefined_flag=unsupported
8163 always_export_symbols=yes
8164 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'
8165 # Note: this linker hardcodes the directories in LIBPATH if there
8166 # are no directories specified by -L.
8167 hardcode_minus_L=yes
8168 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8169 # Neither direct hardcoding nor static linking is supported with a
8171 hardcode_direct=unsupported
8176 if test "$host_cpu" = ia64; then
8177 # On IA64, the linker does run time linking by default, so we don't
8178 # have to do anything special.
8179 aix_use_runtimelinking=no
8180 exp_sym_flag='-Bexport'
8183 # If we're using GNU nm, then we don't want the "-C" option.
8184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8185 # Also, AIX nm treats weak defined symbols like other global
8186 # defined symbols, whereas GNU nm marks them as "W".
8187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8188 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'
8190 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8192 aix_use_runtimelinking=no
8194 # Test if we are trying to use run time linking or normal
8195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8196 # need to do runtime linking.
8197 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8198 for ld_flag in $LDFLAGS; do
8199 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8200 aix_use_runtimelinking=yes
8207 exp_sym_flag='-bexport'
8208 no_entry_flag='-bnoentry'
8211 # When large executables or shared objects are built, AIX ld can
8212 # have problems creating the table of contents. If linking a library
8213 # or program results in "error TOC overflow" add -mminimal-toc to
8214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8219 hardcode_direct_absolute=yes
8220 hardcode_libdir_separator=':'
8221 link_all_deplibs=yes
8222 file_list_spec='${wl}-f,'
8224 if test "$GCC" = yes; then
8225 case $host_os in aix4.[012]|aix4.[012].*)
8226 # We only want to do this on AIX 4.2 and lower, the check
8227 # below for broken collect2 doesn't work under 4.3+
8228 collect2name=`${CC} -print-prog-name=collect2`
8229 if test -f "$collect2name" &&
8230 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8232 # We have reworked collect2
8235 # We have old collect2
8236 hardcode_direct=unsupported
8237 # It fails to find uninstalled libraries when the uninstalled
8238 # path is not listed in the libpath. Setting hardcode_minus_L
8239 # to unsupported forces relinking
8240 hardcode_minus_L=yes
8241 hardcode_libdir_flag_spec='-L$libdir'
8242 hardcode_libdir_separator=
8246 shared_flag='-shared'
8247 if test "$aix_use_runtimelinking" = yes; then
8248 shared_flag="$shared_flag "'${wl}-G'
8252 if test "$host_cpu" = ia64; then
8253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8254 # chokes on -Wl,-G. The following line is correct:
8257 if test "$aix_use_runtimelinking" = yes; then
8258 shared_flag='${wl}-G'
8260 shared_flag='${wl}-bM:SRE'
8265 export_dynamic_flag_spec='${wl}-bexpall'
8266 # It seems that -bexpall does not export symbols beginning with
8267 # underscore (_), so it is better to generate a list of symbols to export.
8268 always_export_symbols=yes
8269 if test "$aix_use_runtimelinking" = yes; then
8270 # Warning - without using the other runtime loading flags (-brtl),
8271 # -berok will link without error, but may produce a broken library.
8272 allow_undefined_flag='-berok'
8273 # Determine the default libpath from the value encoded in an
8275 if test x$gcc_no_link = xyes; then
8276 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8289 if ac_fn_c_try_link "$LINENO"; then :
8291 lt_aix_libpath_sed='
8292 /Import File Strings/,/^$/ {
8298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8299 # Check for a 64-bit object if we didn't find anything.
8300 if test -z "$aix_libpath"; then
8301 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8304 rm -f core conftest.err conftest.$ac_objext \
8305 conftest$ac_exeext conftest.$ac_ext
8306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8308 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8309 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"
8311 if test "$host_cpu" = ia64; then
8312 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8313 allow_undefined_flag="-z nodefs"
8314 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"
8316 # Determine the default libpath from the value encoded in an
8318 if test x$gcc_no_link = xyes; then
8319 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8332 if ac_fn_c_try_link "$LINENO"; then :
8334 lt_aix_libpath_sed='
8335 /Import File Strings/,/^$/ {
8341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8342 # Check for a 64-bit object if we didn't find anything.
8343 if test -z "$aix_libpath"; then
8344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8347 rm -f core conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8352 # Warning - without using the other run time loading flags,
8353 # -berok will link without error, but may produce a broken library.
8354 no_undefined_flag=' ${wl}-bernotok'
8355 allow_undefined_flag=' ${wl}-berok'
8356 if test "$with_gnu_ld" = yes; then
8357 # We only use this code for GNU lds that support --whole-archive.
8358 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8360 # Exported symbols can be pulled into shared objects from archives
8361 whole_archive_flag_spec='$convenience'
8363 archive_cmds_need_lc=yes
8364 # This is similar to how AIX traditionally builds its shared libraries.
8365 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'
8373 # see comment about AmigaOS4 .so support
8374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8375 archive_expsym_cmds=''
8378 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)'
8379 hardcode_libdir_flag_spec='-L$libdir'
8380 hardcode_minus_L=yes
8386 export_dynamic_flag_spec=-rdynamic
8389 cygwin* | mingw* | pw32* | cegcc*)
8390 # When not using gcc, we currently assume that we are using
8391 # Microsoft Visual C++.
8392 # hardcode_libdir_flag_spec is actually meaningless, as there is
8393 # no search path for DLLs.
8394 hardcode_libdir_flag_spec=' '
8395 allow_undefined_flag=unsupported
8396 # Tell ltmain to make .lib files, not .a files.
8398 # Tell ltmain to make .dll files, not .so files.
8400 # FIXME: Setting linknames here is a bad hack.
8401 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8402 # The linker will automatically build a .lib file if we build a DLL.
8403 old_archive_from_new_cmds='true'
8404 # FIXME: Should let the user specify the lib program.
8405 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8406 fix_srcfile_path='`cygpath -w "$srcfile"`'
8407 enable_shared_with_static_runtimes=yes
8410 darwin* | rhapsody*)
8413 archive_cmds_need_lc=no
8415 hardcode_automatic=yes
8416 hardcode_shlibpath_var=unsupported
8417 if test "$lt_cv_ld_force_load" = "yes"; then
8418 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\"`'
8420 whole_archive_flag_spec=''
8422 link_all_deplibs=yes
8423 allow_undefined_flag="$_lt_dar_allow_undefined"
8424 case $cc_basename in
8425 ifort*) _lt_dar_can_shared=yes ;;
8426 *) _lt_dar_can_shared=$GCC ;;
8428 if test "$_lt_dar_can_shared" = "yes"; then
8429 output_verbose_link_cmd=func_echo_all
8430 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8431 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8432 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}"
8433 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}"
8442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8443 hardcode_libdir_flag_spec='-L$libdir'
8444 hardcode_shlibpath_var=no
8451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8452 # support. Future versions do this automatically, but an explicit c++rt0.o
8453 # does not break anything, and helps significantly (at the cost of a little
8456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8457 hardcode_libdir_flag_spec='-R$libdir'
8459 hardcode_shlibpath_var=no
8462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466 hardcode_minus_L=yes
8467 hardcode_shlibpath_var=no
8470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8471 freebsd* | dragonfly*)
8472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8473 hardcode_libdir_flag_spec='-R$libdir'
8475 hardcode_shlibpath_var=no
8479 if test "$GCC" = yes; then
8480 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'
8482 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'
8484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8485 hardcode_libdir_separator=:
8488 # hardcode_minus_L: Not really in the search PATH,
8489 # but as the default location of the library.
8490 hardcode_minus_L=yes
8491 export_dynamic_flag_spec='${wl}-E'
8495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8500 if test "$with_gnu_ld" = no; then
8501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8502 hardcode_libdir_flag_spec_ld='+b $libdir'
8503 hardcode_libdir_separator=:
8505 hardcode_direct_absolute=yes
8506 export_dynamic_flag_spec='${wl}-E'
8507 # hardcode_minus_L: Not really in the search PATH,
8508 # but as the default location of the library.
8509 hardcode_minus_L=yes
8514 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8517 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8536 # Older versions of the 11.00 compiler do not understand -b yet
8537 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8539 $as_echo_n "checking if $CC understands -b... " >&6; }
8540 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8543 lt_cv_prog_compiler__b=no
8544 save_LDFLAGS="$LDFLAGS"
8545 LDFLAGS="$LDFLAGS -b"
8546 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8548 # The linker can only warn and ignore the option if not recognized
8549 # So say no if there are warnings
8550 if test -s conftest.err; then
8551 # Append any errors to the config.log.
8552 cat conftest.err 1>&5
8553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555 if diff conftest.exp conftest.er2 >/dev/null; then
8556 lt_cv_prog_compiler__b=yes
8559 lt_cv_prog_compiler__b=yes
8563 LDFLAGS="$save_LDFLAGS"
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8567 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8569 if test x"$lt_cv_prog_compiler__b" = xyes; then
8570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8578 if test "$with_gnu_ld" = no; then
8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_separator=:
8585 hardcode_shlibpath_var=no
8589 hardcode_direct_absolute=yes
8590 export_dynamic_flag_spec='${wl}-E'
8592 # hardcode_minus_L: Not really in the search PATH,
8593 # but as the default location of the library.
8594 hardcode_minus_L=yes
8600 irix5* | irix6* | nonstopux*)
8601 if test "$GCC" = yes; then
8602 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'
8603 # Try to use the -exported_symbol ld option, if it does not
8604 # work, assume that -exports_file does not work either and
8605 # implicitly export all symbols.
8606 save_LDFLAGS="$LDFLAGS"
8607 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8608 if test x$gcc_no_link = xyes; then
8609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8615 if ac_fn_c_try_link "$LINENO"; then :
8616 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'
8619 rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 LDFLAGS="$save_LDFLAGS"
8623 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'
8624 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'
8626 archive_cmds_need_lc='no'
8627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8628 hardcode_libdir_separator=:
8630 link_all_deplibs=yes
8634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8637 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8639 hardcode_libdir_flag_spec='-R$libdir'
8641 hardcode_shlibpath_var=no
8645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 hardcode_libdir_separator=:
8649 hardcode_shlibpath_var=no
8656 if test -f /usr/libexec/ld.so; then
8658 hardcode_shlibpath_var=no
8659 hardcode_direct_absolute=yes
8660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8661 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8662 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8663 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8664 export_dynamic_flag_spec='${wl}-E'
8667 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8669 hardcode_libdir_flag_spec='-R$libdir'
8672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8683 hardcode_libdir_flag_spec='-L$libdir'
8684 hardcode_minus_L=yes
8685 allow_undefined_flag=unsupported
8686 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'
8687 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8691 if test "$GCC" = yes; then
8692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8693 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'
8695 allow_undefined_flag=' -expect_unresolved \*'
8696 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'
8698 archive_cmds_need_lc='no'
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 hardcode_libdir_separator=:
8703 osf4* | osf5*) # as osf3* with the addition of -msym flag
8704 if test "$GCC" = yes; then
8705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8706 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'
8707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709 allow_undefined_flag=' -expect_unresolved \*'
8710 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'
8711 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~
8712 $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'
8714 # Both c and cxx compiler support -rpath directly
8715 hardcode_libdir_flag_spec='-rpath $libdir'
8717 archive_cmds_need_lc='no'
8718 hardcode_libdir_separator=:
8722 no_undefined_flag=' -z defs'
8723 if test "$GCC" = yes; then
8725 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8727 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8729 case `$CC -V 2>&1` in
8732 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8738 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8739 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8740 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8744 hardcode_libdir_flag_spec='-R$libdir'
8745 hardcode_shlibpath_var=no
8747 solaris2.[0-5] | solaris2.[0-5].*) ;;
8749 # The compiler driver will combine and reorder linker options,
8750 # but understands `-z linker_flag'. GCC discards it without `$wl',
8751 # but is careful enough not to reorder.
8752 # Supported since Solaris 2.6 (maybe 2.5.1?)
8753 if test "$GCC" = yes; then
8754 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8756 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8760 link_all_deplibs=yes
8764 if test "x$host_vendor" = xsequent; then
8765 # Use $CC to link under sequent, because it throws in some extra .o
8766 # files that make .init and .fini sections work.
8767 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8769 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8771 hardcode_libdir_flag_spec='-L$libdir'
8773 hardcode_minus_L=yes
8774 hardcode_shlibpath_var=no
8778 case $host_vendor in
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_direct=yes # is this really true???
8784 ## LD is ld it makes a PLAMLIB
8785 ## CC just makes a GrossModule.
8786 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8787 reload_cmds='$CC -r -o $output$reload_objs'
8791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8792 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8795 runpath_var='LD_RUN_PATH'
8796 hardcode_shlibpath_var=no
8800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801 hardcode_shlibpath_var=no
8802 export_dynamic_flag_spec='-Bexport'
8806 if test -d /usr/nec; then
8807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_shlibpath_var=no
8809 runpath_var=LD_RUN_PATH
8810 hardcode_runpath_var=yes
8815 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8816 no_undefined_flag='${wl}-z,text'
8817 archive_cmds_need_lc=no
8818 hardcode_shlibpath_var=no
8819 runpath_var='LD_RUN_PATH'
8821 if test "$GCC" = yes; then
8822 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8823 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8830 sysv5* | sco3.2v5* | sco5v6*)
8831 # Note: We can NOT use -z defs as we might desire, because we do not
8832 # link with -lc, and that would cause any symbols used from libc to
8833 # always be unresolved, which means just about no library would
8834 # ever link correctly. If we're not using GNU ld we use -z text
8835 # though, which does catch some bad symbols but isn't as heavy-handed
8837 no_undefined_flag='${wl}-z,text'
8838 allow_undefined_flag='${wl}-z,nodefs'
8839 archive_cmds_need_lc=no
8840 hardcode_shlibpath_var=no
8841 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8842 hardcode_libdir_separator=':'
8843 link_all_deplibs=yes
8844 export_dynamic_flag_spec='${wl}-Bexport'
8845 runpath_var='LD_RUN_PATH'
8847 if test "$GCC" = yes; then
8848 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8849 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 hardcode_shlibpath_var=no
8867 if test x$host_vendor = xsni; then
8869 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8870 export_dynamic_flag_spec='${wl}-Blargedynsym'
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8877 $as_echo "$ld_shlibs" >&6; }
8878 test "$ld_shlibs" = no && can_build_shared=no
8880 with_gnu_ld=$with_gnu_ld
8897 # Do we need to explicitly link libc?
8899 case "x$archive_cmds_need_lc" in
8901 # Assume -lc should be added
8902 archive_cmds_need_lc=yes
8904 if test "$enable_shared" = yes && test "$GCC" = yes; then
8905 case $archive_cmds in
8907 # FIXME: we may have to deal with multi-command sequences.
8910 # Test whether the compiler implicitly links with -lc since on some
8911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8912 # to ld, don't add -lc before -lgcc.
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8915 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8922 (eval $ac_compile) 2>&5
8924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8925 test $ac_status = 0; } 2>conftest.err; then
8928 libobjs=conftest.$ac_objext
8930 wl=$lt_prog_compiler_wl
8931 pic_flag=$lt_prog_compiler_pic
8937 lt_save_allow_undefined_flag=$allow_undefined_flag
8938 allow_undefined_flag=
8939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8940 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943 test $ac_status = 0; }
8945 lt_cv_archive_cmds_need_lc=no
8947 lt_cv_archive_cmds_need_lc=yes
8949 allow_undefined_flag=$lt_save_allow_undefined_flag
8951 cat conftest.err 1>&5
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8957 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8958 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9122 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9124 if test "$GCC" = yes; then
9126 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9127 *) lt_awk_arg="/^libraries:/" ;;
9130 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9131 *) lt_sed_strip_eq="s,=/,/,g" ;;
9133 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9134 case $lt_search_path_spec in
9136 # if the path contains ";" then we assume it to be the separator
9137 # otherwise default to the standard path separator (i.e. ":") - it is
9138 # assumed that no part of a normal pathname contains ";" but that should
9139 # okay in the real world where ";" in dirpaths is itself problematic.
9140 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9143 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9146 # Ok, now we have the path, separated by spaces, we can step through it
9147 # and add multilib dir if necessary.
9148 lt_tmp_lt_search_path_spec=
9149 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9150 for lt_sys_path in $lt_search_path_spec; do
9151 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9154 test -d "$lt_sys_path" && \
9155 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9158 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9159 BEGIN {RS=" "; FS="/|\n";} {
9162 for (lt_i = NF; lt_i > 0; lt_i--) {
9163 if ($lt_i != "" && $lt_i != ".") {
9164 if ($lt_i == "..") {
9167 if (lt_count == 0) {
9168 lt_foo="/" $lt_i lt_foo;
9175 if (lt_foo != "") { lt_freq[lt_foo]++; }
9176 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9178 # AWK program above erroneously prepends '/' to C:/dos/paths
9181 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9182 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9184 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9186 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9189 libname_spec='lib$name'
9197 shlibpath_overrides_runpath=unknown
9199 dynamic_linker="$host_os ld.so"
9200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9201 need_lib_prefix=unknown
9202 hardcode_into_libs=no
9204 # when you set need_version to no, make sure it does not cause -set_version
9205 # flags to be left without arguments
9206 need_version=unknown
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9212 shlibpath_var=LIBPATH
9214 # AIX 3 has no versioning support, so we append a major version to the name.
9215 soname_spec='${libname}${release}${shared_ext}$major'
9222 hardcode_into_libs=yes
9223 if test "$host_cpu" = ia64; then
9224 # AIX 5 supports IA64
9225 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9226 shlibpath_var=LD_LIBRARY_PATH
9228 # With GCC up to 2.95.x, collect2 would create an import file
9229 # for dependence libraries. The import file would start with
9230 # the line `#! .'. This would cause the generated library to
9231 # depend on `.', always an invalid library. This was fixed in
9232 # development snapshots of GCC prior to 3.0.
9234 aix4 | aix4.[01] | aix4.[01].*)
9235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9237 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9244 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9245 # soname into executable. Probably we can add versioning support to
9246 # collect2, so additional links can be useful in future.
9247 if test "$aix_use_runtimelinking" = yes; then
9248 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9249 # instead of lib<name>.a to let people know that these are not
9250 # typical AIX shared libraries.
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253 # We preserve .a as extension for shared libraries through AIX4.2
9254 # and later when we are not doing run time linking.
9255 library_names_spec='${libname}${release}.a $libname.a'
9256 soname_spec='${libname}${release}${shared_ext}$major'
9258 shlibpath_var=LIBPATH
9265 # Since July 2007 AmigaOS4 officially supports .so libraries.
9266 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 library_names_spec='$libname.ixlibrary $libname.a'
9271 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9272 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'
9278 library_names_spec='${libname}${shared_ext}'
9279 dynamic_linker="$host_os ld.so"
9280 shlibpath_var=LIBRARY_PATH
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9292 # the default ld.so.conf also contains /usr/contrib/lib and
9293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9294 # libtool to hard-code these into programs
9297 cygwin* | mingw* | pw32* | cegcc*)
9298 version_type=windows
9303 case $GCC,$host_os in
9304 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9305 library_names_spec='$libname.dll.a'
9306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9307 postinstall_cmds='base_file=`basename \${file}`~
9308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9309 dldir=$destdir/`dirname \$dlpath`~
9310 test -d \$dldir || mkdir -p \$dldir~
9311 $install_prog $dir/$dlname \$dldir/$dlname~
9312 chmod a+x \$dldir/$dlname~
9313 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9314 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9317 dlpath=$dir/\$dldll~
9319 shlibpath_overrides_runpath=yes
9323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9324 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9329 # MinGW DLLs use traditional 'lib' prefix
9330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9333 # pw32 DLLs use 'pw' prefix rather than 'lib'
9334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9343 dynamic_linker='Win32 ld.exe'
9344 # FIXME: first we should search . and the directory the executable is in
9348 darwin* | rhapsody*)
9349 dynamic_linker="$host_os dyld"
9353 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9354 soname_spec='${libname}${release}${major}$shared_ext'
9355 shlibpath_overrides_runpath=yes
9356 shlibpath_var=DYLD_LIBRARY_PATH
9357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 shlibpath_var=LD_LIBRARY_PATH
9376 freebsd* | dragonfly*)
9377 # DragonFly does not have aout. When/if they implement a new
9378 # versioning mechanism, adjust this.
9379 if test -x /usr/bin/objformat; then
9380 objformat=`/usr/bin/objformat`
9383 freebsd[123]*) objformat=aout ;;
9387 version_type=freebsd-$objformat
9388 case $version_type in
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9399 shlibpath_var=LD_LIBRARY_PATH
9402 shlibpath_overrides_runpath=yes
9404 freebsd3.[01]* | freebsdelf3.[01]*)
9405 shlibpath_overrides_runpath=yes
9406 hardcode_into_libs=yes
9408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9410 shlibpath_overrides_runpath=no
9411 hardcode_into_libs=yes
9413 *) # from 4.6 on, and DragonFly
9414 shlibpath_overrides_runpath=yes
9415 hardcode_into_libs=yes
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 shlibpath_var=LD_LIBRARY_PATH
9427 hardcode_into_libs=yes
9434 dynamic_linker="$host_os runtime_loader"
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 shlibpath_var=LIBRARY_PATH
9438 shlibpath_overrides_runpath=yes
9439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9440 hardcode_into_libs=yes
9443 hpux9* | hpux10* | hpux11*)
9444 # Give a soname corresponding to the major version so that dld.sl refuses to
9445 # link against other versions.
9452 hardcode_into_libs=yes
9453 dynamic_linker="$host_os dld.so"
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 if test "X$HPUX_IA64_MODE" = X32; then
9459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9467 hardcode_into_libs=yes
9468 dynamic_linker="$host_os dld.sl"
9469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9478 dynamic_linker="$host_os dld.sl"
9479 shlibpath_var=SHLIB_PATH
9480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9485 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9486 postinstall_cmds='chmod 555 $lib'
9487 # or fails outright, so override atomically:
9488 install_override_mode=555
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 shlibpath_overrides_runpath=no
9500 hardcode_into_libs=yes
9503 irix5* | irix6* | nonstopux*)
9505 nonstopux*) version_type=nonstopux ;;
9507 if test "$lt_cv_prog_gnu_ld" = yes; then
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9518 irix5* | nonstopux*)
9522 case $LD in # libtool.m4 will add one of these switches to LD
9523 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9524 libsuff= shlibsuff= libmagic=32-bit;;
9525 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9526 libsuff=32 shlibsuff=N32 libmagic=N32;;
9527 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9528 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9529 *) libsuff= shlibsuff= libmagic=never-match;;
9533 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9534 shlibpath_overrides_runpath=no
9535 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9536 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9537 hardcode_into_libs=yes
9540 # No shared lib support for Linux oldld, aout, or coff.
9541 linux*oldld* | linux*aout* | linux*coff*)
9545 # This must be Linux ELF.
9546 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=no
9556 # Some binutils ld are patched to set DT_RUNPATH
9557 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9560 lt_cv_shlibpath_overrides_runpath=no
9561 save_LDFLAGS=$LDFLAGS
9563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9565 if test x$gcc_no_link = xyes; then
9566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9579 if ac_fn_c_try_link "$LINENO"; then :
9580 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9581 lt_cv_shlibpath_overrides_runpath=yes
9584 rm -f core conftest.err conftest.$ac_objext \
9585 conftest$ac_exeext conftest.$ac_ext
9586 LDFLAGS=$save_LDFLAGS
9591 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9593 # This implies no fast_install, which is unacceptable.
9594 # Some rework will be needed to allow for fast_install
9595 # before this can be enabled.
9596 hardcode_into_libs=yes
9598 # Append ld.so.conf contents to the search path
9599 if test -f /etc/ld.so.conf; then
9600 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' ' '`
9601 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9604 # We used to test for /lib/ld.so.1 and disable shared libraries on
9605 # powerpc, because MkLinux only supported shared libraries with the
9606 # GNU dynamic linker. Since this was broken with cross compilers,
9607 # most powerpc-linux boxes support dynamic linking these days and
9608 # people can always --disable-shared, the test was removed, and we
9609 # assume the GNU/Linux dynamic linker is in use.
9610 dynamic_linker='GNU/Linux ld.so'
9617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9620 dynamic_linker='NetBSD (a.out) ld.so'
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 dynamic_linker='NetBSD ld.elf_so'
9626 shlibpath_var=LD_LIBRARY_PATH
9627 shlibpath_overrides_runpath=yes
9628 hardcode_into_libs=yes
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=no
9646 hardcode_into_libs=yes
9647 dynamic_linker='ldqnx.so'
9652 sys_lib_dlsearch_path_spec="/usr/lib"
9654 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9656 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9657 *) need_version=no ;;
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9664 openbsd2.[89] | openbsd2.[89].*)
9665 shlibpath_overrides_runpath=no
9668 shlibpath_overrides_runpath=yes
9672 shlibpath_overrides_runpath=yes
9677 libname_spec='$name'
9680 library_names_spec='$libname${shared_ext} $libname.a'
9681 dynamic_linker='OS/2 ld.exe'
9682 shlibpath_var=LIBPATH
9685 osf3* | osf4* | osf5*)
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9693 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes
9708 hardcode_into_libs=yes
9709 # ldd complains unless libraries are executable
9710 postinstall_cmds='chmod +x $lib'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=yes
9719 if test "$with_gnu_ld" = yes; then
9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 case $host_vendor in
9732 shlibpath_overrides_runpath=no
9734 runpath_var=LD_RUN_PATH
9742 shlibpath_overrides_runpath=no
9743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9749 if test -d /usr/nec ;then
9751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752 soname_spec='$libname${shared_ext}.$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9757 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758 version_type=freebsd-elf
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=yes
9765 hardcode_into_libs=yes
9766 if test "$with_gnu_ld" = yes; then
9767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9772 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9776 sys_lib_dlsearch_path_spec='/usr/lib'
9780 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 shlibpath_var=LD_LIBRARY_PATH
9786 shlibpath_overrides_runpath=no
9787 hardcode_into_libs=yes
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 soname_spec='${libname}${release}${shared_ext}$major'
9794 shlibpath_var=LD_LIBRARY_PATH
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9802 $as_echo "$dynamic_linker" >&6; }
9803 test "$dynamic_linker" = no && can_build_shared=no
9805 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9806 if test "$GCC" = yes; then
9807 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9810 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9811 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9813 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9814 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9909 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9911 if test -n "$hardcode_libdir_flag_spec" ||
9912 test -n "$runpath_var" ||
9913 test "X$hardcode_automatic" = "Xyes" ; then
9915 # We can hardcode non-existent directories.
9916 if test "$hardcode_direct" != no &&
9917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9918 # have to relink, otherwise we might link with an installed library
9919 # when we should be linking with a yet-to-be-installed one
9920 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9921 test "$hardcode_minus_L" != no; then
9922 # Linking always hardcodes the temporary library directory.
9923 hardcode_action=relink
9925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9926 hardcode_action=immediate
9929 # We cannot hardcode anything, or else we can only hardcode existing
9931 hardcode_action=unsupported
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9934 $as_echo "$hardcode_action" >&6; }
9936 if test "$hardcode_action" = relink ||
9937 test "$inherit_rpath" = yes; then
9938 # Fast installation is not supported
9939 enable_fast_install=no
9940 elif test "$shlibpath_overrides_runpath" = yes ||
9941 test "$enable_shared" = no; then
9942 # Fast installation is not necessary
9943 enable_fast_install=needless
9951 if test "x$enable_dlopen" != xyes; then
9952 enable_dlopen=unknown
9953 enable_dlopen_self=unknown
9954 enable_dlopen_self_static=unknown
9961 lt_cv_dlopen="load_add_on"
9963 lt_cv_dlopen_self=yes
9966 mingw* | pw32* | cegcc*)
9967 lt_cv_dlopen="LoadLibrary"
9972 lt_cv_dlopen="dlopen"
9977 # if libdl is installed we need to link against it
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9979 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9983 ac_check_lib_save_LIBS=$LIBS
9985 if test x$gcc_no_link = xyes; then
9986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
10006 if ac_fn_c_try_link "$LINENO"; then :
10007 ac_cv_lib_dl_dlopen=yes
10009 ac_cv_lib_dl_dlopen=no
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10017 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10021 lt_cv_dlopen="dyld"
10023 lt_cv_dlopen_self=yes
10030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10031 if test "x$ac_cv_func_shl_load" = x""yes; then :
10032 lt_cv_dlopen="shl_load"
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10036 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10039 ac_check_lib_save_LIBS=$LIBS
10041 if test x$gcc_no_link = xyes; then
10042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10057 return shl_load ();
10062 if ac_fn_c_try_link "$LINENO"; then :
10063 ac_cv_lib_dld_shl_load=yes
10065 ac_cv_lib_dld_shl_load=no
10067 rm -f core conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 LIBS=$ac_check_lib_save_LIBS
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10072 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10073 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10074 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10076 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10077 if test "x$ac_cv_func_dlopen" = x""yes; then :
10078 lt_cv_dlopen="dlopen"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10081 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10082 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10085 ac_check_lib_save_LIBS=$LIBS
10087 if test x$gcc_no_link = xyes; then
10088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10108 if ac_fn_c_try_link "$LINENO"; then :
10109 ac_cv_lib_dl_dlopen=yes
10111 ac_cv_lib_dl_dlopen=no
10113 rm -f core conftest.err conftest.$ac_objext \
10114 conftest$ac_exeext conftest.$ac_ext
10115 LIBS=$ac_check_lib_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10118 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10119 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10123 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10124 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10127 ac_check_lib_save_LIBS=$LIBS
10128 LIBS="-lsvld $LIBS"
10129 if test x$gcc_no_link = xyes; then
10130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10150 if ac_fn_c_try_link "$LINENO"; then :
10151 ac_cv_lib_svld_dlopen=yes
10153 ac_cv_lib_svld_dlopen=no
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10160 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10161 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10165 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10166 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10169 ac_check_lib_save_LIBS=$LIBS
10171 if test x$gcc_no_link = xyes; then
10172 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10177 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10187 return dld_link ();
10192 if ac_fn_c_try_link "$LINENO"; then :
10193 ac_cv_lib_dld_dld_link=yes
10195 ac_cv_lib_dld_dld_link=no
10197 rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS=$ac_check_lib_save_LIBS
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10202 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10203 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10225 if test "x$lt_cv_dlopen" != xno; then
10231 case $lt_cv_dlopen in
10233 save_CPPFLAGS="$CPPFLAGS"
10234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10236 save_LDFLAGS="$LDFLAGS"
10237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10240 LIBS="$lt_cv_dlopen_libs $LIBS"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10243 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10244 if test "${lt_cv_dlopen_self+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10247 if test "$cross_compiling" = yes; then :
10248 lt_cv_dlopen_self=cross
10250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10251 lt_status=$lt_dlunknown
10252 cat > conftest.$ac_ext <<_LT_EOF
10253 #line 10253 "configure"
10254 #include "confdefs.h"
10263 # define LT_DLGLOBAL RTLD_GLOBAL
10266 # define LT_DLGLOBAL DL_GLOBAL
10268 # define LT_DLGLOBAL 0
10272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10273 find out it does not work in some platform. */
10274 #ifndef LT_DLLAZY_OR_NOW
10276 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10279 # define LT_DLLAZY_OR_NOW DL_LAZY
10282 # define LT_DLLAZY_OR_NOW RTLD_NOW
10285 # define LT_DLLAZY_OR_NOW DL_NOW
10287 # define LT_DLLAZY_OR_NOW 0
10294 /* When -fvisbility=hidden is used, assume the code has been annotated
10295 correspondingly for the symbols needed. */
10296 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10297 void fnord () __attribute__((visibility("default")));
10300 void fnord () { int i=42; }
10303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10304 int status = $lt_dlunknown;
10308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10311 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10312 else puts (dlerror ());
10314 /* dlclose (self); */
10322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10323 (eval $ac_link) 2>&5
10325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10326 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10327 (./conftest; exit; ) >&5 2>/dev/null
10329 case x$lt_status in
10330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10335 # compilation failed
10336 lt_cv_dlopen_self=no
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10344 $as_echo "$lt_cv_dlopen_self" >&6; }
10346 if test "x$lt_cv_dlopen_self" = xyes; then
10347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10349 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10350 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10353 if test "$cross_compiling" = yes; then :
10354 lt_cv_dlopen_self_static=cross
10356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10357 lt_status=$lt_dlunknown
10358 cat > conftest.$ac_ext <<_LT_EOF
10359 #line 10359 "configure"
10360 #include "confdefs.h"
10369 # define LT_DLGLOBAL RTLD_GLOBAL
10372 # define LT_DLGLOBAL DL_GLOBAL
10374 # define LT_DLGLOBAL 0
10378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10379 find out it does not work in some platform. */
10380 #ifndef LT_DLLAZY_OR_NOW
10382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10385 # define LT_DLLAZY_OR_NOW DL_LAZY
10388 # define LT_DLLAZY_OR_NOW RTLD_NOW
10391 # define LT_DLLAZY_OR_NOW DL_NOW
10393 # define LT_DLLAZY_OR_NOW 0
10400 /* When -fvisbility=hidden is used, assume the code has been annotated
10401 correspondingly for the symbols needed. */
10402 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10403 void fnord () __attribute__((visibility("default")));
10406 void fnord () { int i=42; }
10409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10410 int status = $lt_dlunknown;
10414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10418 else puts (dlerror ());
10420 /* dlclose (self); */
10428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10429 (eval $ac_link) 2>&5
10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10433 (./conftest; exit; ) >&5 2>/dev/null
10435 case x$lt_status in
10436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10438 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10441 # compilation failed
10442 lt_cv_dlopen_self_static=no
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10450 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10453 CPPFLAGS="$save_CPPFLAGS"
10454 LDFLAGS="$save_LDFLAGS"
10459 case $lt_cv_dlopen_self in
10460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10461 *) enable_dlopen_self=unknown ;;
10464 case $lt_cv_dlopen_self_static in
10465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10466 *) enable_dlopen_self_static=unknown ;;
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10489 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10490 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; }
10496 # FIXME - insert some real tests, host_os isn't really good enough
10499 if test -n "$STRIP" ; then
10500 striplib="$STRIP -x"
10501 old_striplib="$STRIP -S"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10503 $as_echo "yes" >&6; }
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511 $as_echo "no" >&6; }
10527 # Report which library types will actually be built
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10529 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10531 $as_echo "$can_build_shared" >&6; }
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10534 $as_echo_n "checking whether to build shared libraries... " >&6; }
10535 test "$can_build_shared" = "no" && enable_shared=no
10537 # On AIX, shared libraries and static libraries use the same namespace, and
10538 # are all built from PIC.
10541 test "$enable_shared" = yes && enable_static=no
10542 if test -n "$RANLIB"; then
10543 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10544 postinstall_cmds='$RANLIB $lib'
10549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10550 test "$enable_shared" = yes && enable_static=no
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10555 $as_echo "$enable_shared" >&6; }
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10558 $as_echo_n "checking whether to build static libraries... " >&6; }
10559 # Make sure either enable_shared or enable_static is yes.
10560 test "$enable_shared" = yes || enable_static=yes
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10562 $as_echo "$enable_static" >&6; }
10569 ac_cpp='$CPP $CPPFLAGS'
10570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10588 ac_config_commands="$ac_config_commands libtool"
10593 # Only expand once:
10600 *-cygwin* | *-mingw*)
10601 # 'host' will be top-level target in the case of a target lib,
10602 # we must compare to with_cross_host to decide if this is a native
10603 # or cross-compiler and select where to install dlls appropriately.
10604 if test -n "$with_cross_host" &&
10605 test x"$with_cross_host" != x"no"; then
10606 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10608 lt_host_flags='-no-undefined -bindir "$(bindir)"';
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10623 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10624 # Check whether --enable-maintainer-mode was given.
10625 if test "${enable_maintainer_mode+set}" = set; then :
10626 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10628 USE_MAINTAINER_MODE=no
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10632 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10633 if test $USE_MAINTAINER_MODE = yes; then
10634 MAINTAINER_MODE_TRUE=
10635 MAINTAINER_MODE_FALSE='#'
10637 MAINTAINER_MODE_TRUE='#'
10638 MAINTAINER_MODE_FALSE=
10641 MAINT=$MAINTAINER_MODE_TRUE
10644 # Default to --enable-multilib
10645 # Check whether --enable-multilib was given.
10646 if test "${enable_multilib+set}" = set; then :
10647 enableval=$enable_multilib; case "$enableval" in
10648 yes) multilib=yes ;;
10650 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10657 # We may get other options which we leave undocumented:
10658 # --with-target-subdir, --with-multisrctop, --with-multisubdir
10659 # See config-ml.in if you want the gory details.
10661 if test "$srcdir" = "."; then
10662 if test "$with_target_subdir" != "."; then
10663 multi_basedir="$srcdir/$with_multisrctop../.."
10665 multi_basedir="$srcdir/$with_multisrctop.."
10668 multi_basedir="$srcdir/.."
10672 # Even if the default multilib is not a cross compilation,
10673 # it may be that some of the other multilibs are.
10674 if test $cross_compiling = no && test $multilib = yes \
10675 && test "x${with_multisubdir}" != x ; then
10676 cross_compiling=maybe
10679 ac_config_commands="$ac_config_commands default-1"
10683 ac_cpp='$CPP $CPPFLAGS'
10684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10688 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
10689 # We must force CC to /not/ be precious variables; otherwise
10690 # the wrong, non-multilib-adjusted value will be used in multilibs.
10691 # As a side effect, we have to subst CFLAGS ourselves.
10696 ac_cpp='$CPP $CPPFLAGS'
10697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10700 if test -n "$ac_tool_prefix"; then
10701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if test "${ac_cv_prog_CC+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10708 if test -n "$CC"; then
10709 ac_cv_prog_CC="$CC" # Let the user override the test.
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10729 if test -n "$CC"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10731 $as_echo "$CC" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10739 if test -z "$ac_cv_prog_CC"; then
10741 # Extract the first word of "gcc", so it can be a program name with args.
10742 set dummy gcc; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 if test -n "$ac_ct_CC"; then
10749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_prog_ac_ct_CC="gcc"
10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10769 if test -n "$ac_ct_CC"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10771 $as_echo "$ac_ct_CC" >&6; }
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10777 if test "x$ac_ct_CC" = x; then
10780 case $cross_compiling:$ac_tool_warned in
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10784 ac_tool_warned=yes ;;
10789 CC="$ac_cv_prog_CC"
10792 if test -z "$CC"; then
10793 if test -n "$ac_tool_prefix"; then
10794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10795 set dummy ${ac_tool_prefix}cc; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if test "${ac_cv_prog_CC+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10801 if test -n "$CC"; then
10802 ac_cv_prog_CC="$CC" # Let the user override the test.
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_prog_CC="${ac_tool_prefix}cc"
10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 if test -n "$CC"; then
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10824 $as_echo "$CC" >&6; }
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827 $as_echo "no" >&6; }
10833 if test -z "$CC"; then
10834 # Extract the first word of "cc", so it can be a program name with args.
10835 set dummy cc; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837 $as_echo_n "checking for $ac_word... " >&6; }
10838 if test "${ac_cv_prog_CC+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10841 if test -n "$CC"; then
10842 ac_cv_prog_CC="$CC" # Let the user override the test.
10844 ac_prog_rejected=no
10845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10846 for as_dir in $PATH
10849 test -z "$as_dir" && as_dir=.
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10853 ac_prog_rejected=yes
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 if test $ac_prog_rejected = yes; then
10865 # We found a bogon in the path, so make sure we never use it.
10866 set dummy $ac_cv_prog_CC
10868 if test $# != 0; then
10869 # We chose a different compiler from the bogus one.
10870 # However, it has the same basename, so the bogon will be chosen
10871 # first if we set CC to just the basename; use the full file name.
10873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10879 if test -n "$CC"; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10881 $as_echo "$CC" >&6; }
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 $as_echo "no" >&6; }
10889 if test -z "$CC"; then
10890 if test -n "$ac_tool_prefix"; then
10891 for ac_prog in cl.exe
10893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10896 $as_echo_n "checking for $ac_word... " >&6; }
10897 if test "${ac_cv_prog_CC+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10900 if test -n "$CC"; then
10901 ac_cv_prog_CC="$CC" # Let the user override the test.
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10921 if test -n "$CC"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10923 $as_echo "$CC" >&6; }
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10930 test -n "$CC" && break
10933 if test -z "$CC"; then
10935 for ac_prog in cl.exe
10937 # Extract the first word of "$ac_prog", so it can be a program name with args.
10938 set dummy $ac_prog; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10944 if test -n "$ac_ct_CC"; then
10945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_prog_ac_ct_CC="$ac_prog"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10965 if test -n "$ac_ct_CC"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10967 $as_echo "$ac_ct_CC" >&6; }
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10974 test -n "$ac_ct_CC" && break
10977 if test "x$ac_ct_CC" = x; then
10980 case $cross_compiling:$ac_tool_warned in
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10984 ac_tool_warned=yes ;;
10993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10995 as_fn_error "no acceptable C compiler found in \$PATH
10996 See \`config.log' for more details." "$LINENO" 5; }
10998 # Provide some information about the compiler.
10999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11002 for ac_option in --version -v -V -qversion; do
11003 { { ac_try="$ac_compiler $ac_option >&5"
11004 case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11009 $as_echo "$ac_try_echo"; } >&5
11010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11012 if test -s conftest.err; then
11014 ... rest of stderr output deleted ...
11015 10q' conftest.err >conftest.er1
11016 cat conftest.er1 >&5
11017 rm -f conftest.er1 conftest.err
11019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11020 test $ac_status = 0; }
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11025 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11042 if ac_fn_c_try_compile "$LINENO"; then :
11043 ac_compiler_gnu=yes
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11053 if test $ac_compiler_gnu = yes; then
11058 ac_test_CFLAGS=${CFLAGS+set}
11059 ac_save_CFLAGS=$CFLAGS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11062 if test "${ac_cv_prog_cc_g+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
11065 ac_save_c_werror_flag=$ac_c_werror_flag
11066 ac_c_werror_flag=yes
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11080 if ac_fn_c_try_compile "$LINENO"; then :
11081 ac_cv_prog_cc_g=yes
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11095 if ac_fn_c_try_compile "$LINENO"; then :
11098 ac_c_werror_flag=$ac_save_c_werror_flag
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11111 if ac_fn_c_try_compile "$LINENO"; then :
11112 ac_cv_prog_cc_g=yes
11114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 ac_c_werror_flag=$ac_save_c_werror_flag
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11122 $as_echo "$ac_cv_prog_cc_g" >&6; }
11123 if test "$ac_test_CFLAGS" = set; then
11124 CFLAGS=$ac_save_CFLAGS
11125 elif test $ac_cv_prog_cc_g = yes; then
11126 if test "$GCC" = yes; then
11132 if test "$GCC" = yes; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11140 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11143 ac_cv_prog_cc_c89=no
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 #include <stdarg.h>
11149 #include <sys/types.h>
11150 #include <sys/stat.h>
11151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11152 struct buf { int x; };
11153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11154 static char *e (p, i)
11160 static char *f (char * (*g) (char **, int), char **p, ...)
11165 s = g (p, va_arg (v,int));
11170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11171 function prototypes and stuff, but not '\xHH' hex character constants.
11172 These don't provoke an error unfortunately, instead are silently treated
11173 as 'x'. The following induces an error, until -std is added to get
11174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11175 array size at least. It's necessary to write '\x00'==0 to get something
11176 that's true only with -std. */
11177 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11179 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11180 inside strings and character constants. */
11182 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11184 int test (int i, double x);
11185 struct s1 {int (*f) (int a);};
11186 struct s2 {int (*f) (double a);};
11187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11193 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11198 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11199 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11201 CC="$ac_save_CC $ac_arg"
11202 if ac_fn_c_try_compile "$LINENO"; then :
11203 ac_cv_prog_cc_c89=$ac_arg
11205 rm -f core conftest.err conftest.$ac_objext
11206 test "x$ac_cv_prog_cc_c89" != "xno" && break
11208 rm -f conftest.$ac_ext
11213 case "x$ac_cv_prog_cc_c89" in
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11216 $as_echo "none needed" >&6; } ;;
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11219 $as_echo "unsupported" >&6; } ;;
11221 CC="$CC $ac_cv_prog_cc_c89"
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11223 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11225 if test "x$ac_cv_prog_cc_c89" != xno; then :
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11235 depcc="$CC" am_compiler_list=
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11238 $as_echo_n "checking dependency style of $depcc... " >&6; }
11239 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11240 $as_echo_n "(cached) " >&6
11242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11243 # We make a subdir and do the tests there. Otherwise we can end up
11244 # making bogus files that we don't know about and never remove. For
11245 # instance it was reported that on HP-UX the gcc test will end up
11246 # making a dummy file named `D' -- because `-MD' means `put the output
11249 # Copy depcomp to subdir because otherwise we won't find it if we're
11250 # using a relative directory.
11251 cp "$am_depcomp" conftest.dir
11253 # We will build objects and dependencies in a subdirectory because
11254 # it helps to detect inapplicable dependency modes. For instance
11255 # both Tru64's cc and ICC support -MD to output dependencies as a
11256 # side effect of compilation, but ICC will put the dependencies in
11257 # the current directory while Tru64 will put them in the object
11261 am_cv_CC_dependencies_compiler_type=none
11262 if test "$am_compiler_list" = ""; then
11263 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11265 am__universal=false
11266 case " $depcc " in #(
11267 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11270 for depmode in $am_compiler_list; do
11271 # Setup a source with many dependencies, because some compilers
11272 # like to wrap large dependency lists on column 80 (with \), and
11273 # we should not choose a depcomp mode which is confused by this.
11275 # We need to recreate these files for each test, as the compiler may
11276 # overwrite some of them when testing with obscure command lines.
11277 # This happens at least with the AIX C compiler.
11279 for i in 1 2 3 4 5 6; do
11280 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11281 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11282 # Solaris 8's {/usr,}/bin/sh.
11283 touch sub/conftst$i.h
11285 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11288 # mode. It turns out that the SunPro C++ compiler does not properly
11289 # handle `-M -o', and we need to detect this. Also, some Intel
11290 # versions had trouble with output in subdirs
11291 am__obj=sub/conftest.${OBJEXT-o}
11292 am__minus_obj="-o $am__obj"
11295 # This depmode causes a compiler race in universal mode.
11296 test "$am__universal" = false || continue
11299 # after this tag, mechanisms are not by side-effect, so they'll
11300 # only be used when explicitly requested
11301 if test "x$enable_dependency_tracking" = xyes; then
11307 msvisualcpp | msvcmsys)
11308 # This compiler won't grok `-c -o', but also, the minuso test has
11309 # not run yet. These depmodes are late enough in the game, and
11310 # so weak that their functioning should not be impacted.
11311 am__obj=conftest.${OBJEXT-o}
11316 if depmode=$depmode \
11317 source=sub/conftest.c object=$am__obj \
11318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11319 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11320 >/dev/null 2>conftest.err &&
11321 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11322 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11323 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11324 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11325 # icc doesn't choke on unknown options, it will just issue warnings
11326 # or remarks (even with -Werror). So we grep stderr for any message
11327 # that says an option was ignored or not supported.
11328 # When given -MP, icc 7.0 and 7.1 complain thusly:
11329 # icc: Command line warning: ignoring option '-M'; no argument required
11330 # The diagnosis changed in icc 8.0:
11331 # icc: Command line remark: option '-MP' not supported
11332 if (grep 'ignoring option' conftest.err ||
11333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11334 am_cv_CC_dependencies_compiler_type=$depmode
11341 rm -rf conftest.dir
11343 am_cv_CC_dependencies_compiler_type=none
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11348 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11349 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11352 test "x$enable_dependency_tracking" != xno \
11353 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11354 am__fastdepCC_TRUE=
11355 am__fastdepCC_FALSE='#'
11357 am__fastdepCC_TRUE='#'
11358 am__fastdepCC_FALSE=
11366 if test "x$CC" != xcc; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11368 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11371 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11373 set dummy $CC; ac_cc=`$as_echo "$2" |
11374 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11375 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11376 $as_echo_n "(cached) " >&6
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11389 # Make sure it works both with $CC and with simple cc.
11390 # We do the test twice because some compilers refuse to overwrite an
11391 # existing .o file with -o, though they will create one.
11392 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11394 if { { case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11399 $as_echo "$ac_try_echo"; } >&5
11400 (eval "$ac_try") 2>&5
11402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403 test $ac_status = 0; } &&
11404 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11409 $as_echo "$ac_try_echo"; } >&5
11410 (eval "$ac_try") 2>&5
11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11413 test $ac_status = 0; };
11415 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11416 if test "x$CC" != xcc; then
11417 # Test first that cc exists at all.
11418 if { ac_try='cc -c conftest.$ac_ext >&5'
11419 { { case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11424 $as_echo "$ac_try_echo"; } >&5
11425 (eval "$ac_try") 2>&5
11427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11428 test $ac_status = 0; }; }; then
11429 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11431 if { { case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11436 $as_echo "$ac_try_echo"; } >&5
11437 (eval "$ac_try") 2>&5
11439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11440 test $ac_status = 0; } &&
11441 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11446 $as_echo "$ac_try_echo"; } >&5
11447 (eval "$ac_try") 2>&5
11449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11450 test $ac_status = 0; };
11455 # cc exists but doesn't like -o.
11456 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11461 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11463 rm -f core conftest*
11466 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11468 $as_echo "yes" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11473 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11477 # FIXME: we rely on the cache variable name because
11478 # there is no other way.
11480 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11481 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11482 if test "$am_t" != yes; then
11483 # Losing compiler, so override with the script.
11484 # FIXME: It is wrong to rewrite CC.
11485 # But if we don't then we get into trouble of one sort or another.
11486 # A longer-term fix would be to have automake use am__CC in this case,
11487 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11488 CC="$am_aux_dir/compile $CC"
11493 if test "x$GCC" != "xyes"; then
11494 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5
11497 ac_cpp='$CPP $CPPFLAGS'
11498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11502 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11503 # On Suns, sometimes $CPP names a directory.
11504 if test -n "$CPP" && test -d "$CPP"; then
11507 if test -z "$CPP"; then
11508 if test "${ac_cv_prog_CPP+set}" = set; then :
11509 $as_echo_n "(cached) " >&6
11511 # Double quotes because CPP needs to be expanded
11512 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11514 ac_preproc_ok=false
11515 for ac_c_preproc_warn_flag in '' yes
11517 # Use a header file that comes with gcc, so configuring glibc
11518 # with a fresh cross-compiler works.
11519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 # <limits.h> exists even on freestanding compilers.
11521 # On the NeXT, cc -E runs the code through the compiler's parser,
11522 # not just through cpp. "Syntax error" is here to catch this case.
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11526 # include <limits.h>
11528 # include <assert.h>
11532 if ac_fn_c_try_cpp "$LINENO"; then :
11535 # Broken: fails on valid input.
11538 rm -f conftest.err conftest.$ac_ext
11540 # OK, works on sane cases. Now check whether nonexistent headers
11541 # can be detected and how.
11542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544 #include <ac_nonexistent.h>
11546 if ac_fn_c_try_cpp "$LINENO"; then :
11547 # Broken: success on invalid input.
11550 # Passes both tests.
11554 rm -f conftest.err conftest.$ac_ext
11557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11558 rm -f conftest.err conftest.$ac_ext
11559 if $ac_preproc_ok; then :
11564 ac_cv_prog_CPP=$CPP
11567 CPP=$ac_cv_prog_CPP
11569 ac_cv_prog_CPP=$CPP
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11572 $as_echo "$CPP" >&6; }
11573 ac_preproc_ok=false
11574 for ac_c_preproc_warn_flag in '' yes
11576 # Use a header file that comes with gcc, so configuring glibc
11577 # with a fresh cross-compiler works.
11578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 # <limits.h> exists even on freestanding compilers.
11580 # On the NeXT, cc -E runs the code through the compiler's parser,
11581 # not just through cpp. "Syntax error" is here to catch this case.
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 # include <limits.h>
11587 # include <assert.h>
11591 if ac_fn_c_try_cpp "$LINENO"; then :
11594 # Broken: fails on valid input.
11597 rm -f conftest.err conftest.$ac_ext
11599 # OK, works on sane cases. Now check whether nonexistent headers
11600 # can be detected and how.
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603 #include <ac_nonexistent.h>
11605 if ac_fn_c_try_cpp "$LINENO"; then :
11606 # Broken: success on invalid input.
11609 # Passes both tests.
11613 rm -f conftest.err conftest.$ac_ext
11616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11617 rm -f conftest.err conftest.$ac_ext
11618 if $ac_preproc_ok; then :
11621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11623 as_fn_error "C preprocessor \"$CPP\" fails sanity check
11624 See \`config.log' for more details." "$LINENO" 5; }
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11634 # Calculate toolexeclibdir
11635 # Also toolexecdir, though it's only used in toolexeclibdir
11636 case ${version_specific_libs} in
11638 # Need the gcc compiler version to know where to install libraries
11639 # and header files if --enable-version-specific-runtime-libs option
11641 toolexecdir='$(libdir)/gcc/$(target_alias)'
11642 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11645 if test -n "$with_cross_host" &&
11646 test x"$with_cross_host" != x"no"; then
11647 # Install a library built with a cross compiler in tooldir, not libdir.
11648 toolexecdir='$(exec_prefix)/$(target_alias)'
11649 toolexeclibdir='$(toolexecdir)/lib'
11651 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11652 toolexeclibdir='$(libdir)'
11654 multi_os_directory=`$CC -print-multi-os-directory`
11655 case $multi_os_directory in
11656 .) ;; # Avoid trailing /.
11657 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
11665 $as_echo_n "checking for sqrtl in -lm... " >&6; }
11666 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11669 ac_check_lib_save_LIBS=$LIBS
11671 if test x$gcc_no_link = xyes; then
11672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11677 /* Override any GCC internal prototype to avoid an error.
11678 Use char because int might match the return type of a GCC
11679 builtin and then its argument prototype would still apply. */
11692 if ac_fn_c_try_link "$LINENO"; then :
11693 ac_cv_lib_m_sqrtl=yes
11695 ac_cv_lib_m_sqrtl=no
11697 rm -f core conftest.err conftest.$ac_objext \
11698 conftest$ac_exeext conftest.$ac_ext
11699 LIBS=$ac_check_lib_save_LIBS
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
11702 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
11703 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
11705 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
11710 $as_echo_n "checking for cbrtl in -lm... " >&6; }
11711 if test "${ac_cv_lib_m_cbrtl+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
11714 ac_check_lib_save_LIBS=$LIBS
11716 if test x$gcc_no_link = xyes; then
11717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_m_cbrtl=yes
11740 ac_cv_lib_m_cbrtl=no
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
11747 $as_echo "$ac_cv_lib_m_cbrtl" >&6; }
11748 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then :
11750 $as_echo "#define HAVE_CBRTL 1" >>confdefs.h
11755 # Check for symbol versioning (copied from libssp).
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
11757 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
11758 if test x$gcc_no_link = xyes; then
11759 # If we cannot link, we cannot build shared libraries, so do not use
11760 # symbol versioning.
11761 quadmath_use_symver=no
11763 save_LDFLAGS="$LDFLAGS"
11764 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
11765 cat > conftest.map <<EOF
11767 global: *foo*; bar; local: *;
11770 if test x$gcc_no_link = xyes; then
11771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11784 if ac_fn_c_try_link "$LINENO"; then :
11785 quadmath_use_symver=gnu
11787 quadmath_use_symver=no
11789 rm -f core conftest.err conftest.$ac_objext \
11790 conftest$ac_exeext conftest.$ac_ext
11791 if test x$quadmath_use_symver = xno; then
11792 case "$target_os" in
11794 LDFLAGS="$save_LDFLAGS"
11795 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
11796 # Sun ld cannot handle wildcards and treats all entries as undefined.
11797 cat > conftest.map <<EOF
11799 global: foo; local: *;
11802 if test x$gcc_no_link = xyes; then
11803 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 quadmath_use_symver=sun
11819 quadmath_use_symver=no
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11826 LDFLAGS="$save_LDFLAGS"
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
11829 $as_echo "$quadmath_use_symver" >&6; }
11830 if test "x$quadmath_use_symver" != xno; then
11831 LIBQUAD_USE_SYMVER_TRUE=
11832 LIBQUAD_USE_SYMVER_FALSE='#'
11834 LIBQUAD_USE_SYMVER_TRUE='#'
11835 LIBQUAD_USE_SYMVER_FALSE=
11838 if test "x$quadmath_use_symver" = xgnu; then
11839 LIBQUAD_USE_SYMVER_GNU_TRUE=
11840 LIBQUAD_USE_SYMVER_GNU_FALSE='#'
11842 LIBQUAD_USE_SYMVER_GNU_TRUE='#'
11843 LIBQUAD_USE_SYMVER_GNU_FALSE=
11846 if test "x$quadmath_use_symver" = xsun; then
11847 LIBQUAD_USE_SYMVER_SUN_TRUE=
11848 LIBQUAD_USE_SYMVER_SUN_FALSE='#'
11850 LIBQUAD_USE_SYMVER_SUN_TRUE='#'
11851 LIBQUAD_USE_SYMVER_SUN_FALSE=
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
11856 $as_echo_n "checking whether __float128 is supported... " >&6; }
11857 if test x$gcc_no_link = xyes; then
11858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11863 typedef _Complex float __attribute__((mode(TC))) __complex128;
11865 __float128 foo (__float128 x)
11868 __complex128 z1, z2;
11874 return (__float128) z2;
11877 __float128 bar (__float128 x)
11879 return x * __builtin_huge_valq ();
11893 if ac_fn_c_try_link "$LINENO"; then :
11895 libquad_have_float128=yes
11899 libquad_have_float128=no
11902 rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_have_float128" >&5
11905 $as_echo "$libquad_have_float128" >&6; }
11908 if test "x$libquad_have_float128" = xyes; then
11909 BUILD_LIBQUADMATH_TRUE=
11910 BUILD_LIBQUADMATH_FALSE='#'
11912 BUILD_LIBQUADMATH_TRUE='#'
11913 BUILD_LIBQUADMATH_FALSE=
11917 cat >confcache <<\_ACEOF
11918 # This file is a shell script that caches the results of configure
11919 # tests run on this system so they can be shared between configure
11920 # scripts and configure runs, see configure's option --config-cache.
11921 # It is not useful on other systems. If it contains results you don't
11922 # want to keep, you may remove or edit it.
11924 # config.status only pays attention to the cache file if you give it
11925 # the --recheck option to rerun configure.
11927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11929 # following values.
11933 # The following way of writing the cache mishandles newlines in values,
11934 # but we know of no workaround that is simple, portable, and efficient.
11935 # So, we kill variables containing newlines.
11936 # Ultrix sh set writes to stderr and can't be redirected directly,
11937 # and sets the high bit in the cache file unless we assign to the vars.
11939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11940 eval ac_val=\$$ac_var
11944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11948 _ | IFS | as_nl) ;; #(
11949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11950 *) { eval $ac_var=; unset $ac_var;} ;;
11956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11957 *${as_nl}ac_space=\ *)
11958 # `set' does not quote correctly, so add quotes: double-quote
11959 # substitution turns \\\\ into \\, and sed turns \\ into \.
11962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11965 # `set' quotes correctly as required by POSIX, so do not add quotes.
11966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11980 if test -w "$cache_file"; then
11981 test "x$cache_file" != "x/dev/null" &&
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11983 $as_echo "$as_me: updating cache $cache_file" >&6;}
11984 cat confcache >$cache_file
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11992 if test ${multilib} = yes; then
11993 multilib_arg="--enable-multilib"
11998 ac_config_files="$ac_config_files Makefile"
12000 cat >confcache <<\_ACEOF
12001 # This file is a shell script that caches the results of configure
12002 # tests run on this system so they can be shared between configure
12003 # scripts and configure runs, see configure's option --config-cache.
12004 # It is not useful on other systems. If it contains results you don't
12005 # want to keep, you may remove or edit it.
12007 # config.status only pays attention to the cache file if you give it
12008 # the --recheck option to rerun configure.
12010 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12011 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12012 # following values.
12016 # The following way of writing the cache mishandles newlines in values,
12017 # but we know of no workaround that is simple, portable, and efficient.
12018 # So, we kill variables containing newlines.
12019 # Ultrix sh set writes to stderr and can't be redirected directly,
12020 # and sets the high bit in the cache file unless we assign to the vars.
12022 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12023 eval ac_val=\$$ac_var
12027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12031 _ | IFS | as_nl) ;; #(
12032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12033 *) { eval $ac_var=; unset $ac_var;} ;;
12039 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12040 *${as_nl}ac_space=\ *)
12041 # `set' does not quote correctly, so add quotes: double-quote
12042 # substitution turns \\\\ into \\, and sed turns \\ into \.
12045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12048 # `set' quotes correctly as required by POSIX, so do not add quotes.
12049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12060 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12062 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12063 if test -w "$cache_file"; then
12064 test "x$cache_file" != "x/dev/null" &&
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12066 $as_echo "$as_me: updating cache $cache_file" >&6;}
12067 cat confcache >$cache_file
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12070 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12075 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12076 # Let make expand exec_prefix.
12077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12079 DEFS=-DHAVE_CONFIG_H
12083 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12084 # 1. Remove the extension, and $U if already installed.
12085 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12086 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12087 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12088 # will be set to the directory where LIBOBJS objects are built.
12089 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12090 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12092 LIBOBJS=$ac_libobjs
12094 LTLIBOBJS=$ac_ltlibobjs
12097 if test -n "$EXEEXT"; then
12099 am__EXEEXT_FALSE='#'
12101 am__EXEEXT_TRUE='#'
12105 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12106 as_fn_error "conditional \"AMDEP\" was never defined.
12107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12110 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12113 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12114 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12118 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12121 if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
12122 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
12123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12125 if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
12126 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
12127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12129 if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
12130 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
12131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12133 if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
12134 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined.
12135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12138 : ${CONFIG_STATUS=./config.status}
12140 ac_clean_files_save=$ac_clean_files
12141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12143 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12145 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12147 # Generated by $as_me.
12148 # Run this file to recreate the current configuration.
12149 # Compiler output produced by configure, useful for debugging
12150 # configure, is in config.log if it exists.
12153 ac_cs_recheck=false
12156 SHELL=\${CONFIG_SHELL-$SHELL}
12159 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12160 ## -------------------- ##
12161 ## M4sh Initialization. ##
12162 ## -------------------- ##
12164 # Be more Bourne compatible
12165 DUALCASE=1; export DUALCASE # for MKS sh
12166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12169 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12170 # is contrary to our usage. Disable this feature.
12171 alias -g '${1+"$@"}'='"$@"'
12172 setopt NO_GLOB_SUBST
12174 case `(set -o) 2>/dev/null` in #(
12186 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12187 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12190 # Prefer a ksh shell builtin over an external printf program on Solaris,
12191 # but without wasting forks for bash or zsh.
12192 if test -z "$BASH_VERSION$ZSH_VERSION" \
12193 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12194 as_echo='print -r --'
12195 as_echo_n='print -rn --'
12196 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12197 as_echo='printf %s\n'
12198 as_echo_n='printf %s'
12200 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12201 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12202 as_echo_n='/usr/ucb/echo -n'
12204 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12205 as_echo_n_body='eval
12209 expr "X$arg" : "X\\(.*\\)$as_nl";
12210 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12212 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12214 export as_echo_n_body
12215 as_echo_n='sh -c $as_echo_n_body as_echo'
12217 export as_echo_body
12218 as_echo='sh -c $as_echo_body as_echo'
12221 # The user is always right.
12222 if test "${PATH_SEPARATOR+set}" != set; then
12224 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12225 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12232 # We need space, tab and new line, in precisely that order. Quoting is
12233 # there to prevent editors from complaining about space-tab.
12234 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12235 # splitting by setting IFS to empty value.)
12238 # Find who we are. Look in the path if we contain no directory separator.
12240 *[\\/]* ) as_myself=$0 ;;
12241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12252 # We did not find ourselves, most probably we were run as `sh COMMAND'
12253 # in which case we are not to be found in the path.
12254 if test "x$as_myself" = x; then
12257 if test ! -f "$as_myself"; then
12258 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12262 # Unset variables that we do not need and which cause bugs (e.g. in
12263 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12264 # suppresses any "Segmentation fault" message there. '((' could
12265 # trigger a bug in pdksh 5.2.14.
12266 for as_var in BASH_ENV ENV MAIL MAILPATH
12267 do eval test x\${$as_var+set} = xset \
12268 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12284 # as_fn_error ERROR [LINENO LOG_FD]
12285 # ---------------------------------
12286 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12287 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12288 # script with status $?, using 1 if that was 0.
12291 as_status=$?; test $as_status -eq 0 && as_status=1
12293 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12294 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12296 $as_echo "$as_me: error: $1" >&2
12297 as_fn_exit $as_status
12301 # as_fn_set_status STATUS
12302 # -----------------------
12303 # Set $? to STATUS, without forking.
12304 as_fn_set_status ()
12307 } # as_fn_set_status
12309 # as_fn_exit STATUS
12310 # -----------------
12311 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12315 as_fn_set_status $1
12321 # Portably unset VAR.
12324 { eval $1=; unset $1;}
12326 as_unset=as_fn_unset
12327 # as_fn_append VAR VALUE
12328 # ----------------------
12329 # Append the text in VALUE to the end of the definition contained in VAR. Take
12330 # advantage of any shell optimizations that allow amortized linear growth over
12331 # repeated appends, instead of the typical quadratic growth present in naive
12333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12334 eval 'as_fn_append ()
12345 # as_fn_arith ARG...
12346 # ------------------
12347 # Perform arithmetic evaluation on the ARGs, and store the result in the
12348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12349 # must be portable across $(()) and expr.
12350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12351 eval 'as_fn_arith ()
12358 as_val=`expr "$@" || test $? -eq 1`
12363 if expr a : '\(a\)' >/dev/null 2>&1 &&
12364 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12370 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12371 as_basename=basename
12376 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12382 as_me=`$as_basename -- "$0" ||
12383 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12384 X"$0" : 'X\(//\)$' \| \
12385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12387 sed '/^.*\/\([^/][^/]*\)\/*$/{
12401 # Avoid depending upon Character Ranges.
12402 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12403 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12404 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12405 as_cr_digits='0123456789'
12406 as_cr_alnum=$as_cr_Letters$as_cr_digits
12408 ECHO_C= ECHO_N= ECHO_T=
12409 case `echo -n x` in #(((((
12411 case `echo 'xy\c'` in
12412 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12414 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12421 rm -f conf$$ conf$$.exe conf$$.file
12422 if test -d conf$$.dir; then
12423 rm -f conf$$.dir/conf$$.file
12426 mkdir conf$$.dir 2>/dev/null
12428 if (echo >conf$$.file) 2>/dev/null; then
12429 if ln -s conf$$.file conf$$ 2>/dev/null; then
12431 # ... but there are two gotchas:
12432 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12433 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12434 # In both cases, we have to default to `cp -p'.
12435 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12437 elif ln conf$$.file conf$$ 2>/dev/null; then
12445 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12446 rmdir conf$$.dir 2>/dev/null
12451 # Create "$as_dir" as a directory, including parents if necessary.
12456 -*) as_dir=./$as_dir;;
12458 test -d "$as_dir" || eval $as_mkdir_p || {
12462 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12463 *) as_qdir=$as_dir;;
12465 as_dirs="'$as_qdir' $as_dirs"
12466 as_dir=`$as_dirname -- "$as_dir" ||
12467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12468 X"$as_dir" : 'X\(//\)[^/]' \| \
12469 X"$as_dir" : 'X\(//\)$' \| \
12470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12471 $as_echo X"$as_dir" |
12472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12476 /^X\(\/\/\)[^/].*/{
12489 test -d "$as_dir" && break
12491 test -z "$as_dirs" || eval "mkdir $as_dirs"
12492 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12496 if mkdir -p . 2>/dev/null; then
12497 as_mkdir_p='mkdir -p "$as_dir"'
12499 test -d ./-p && rmdir ./-p
12503 if test -x / >/dev/null 2>&1; then
12504 as_test_x='test -x'
12506 if ls -dL / >/dev/null 2>&1; then
12513 if test -d "$1"; then
12519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12520 ???[sx]*):;;*)false;;esac;fi
12524 as_executable_p=$as_test_x
12526 # Sed expression to map a string onto a valid CPP name.
12527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12529 # Sed expression to map a string onto a valid variable name.
12530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12534 ## ----------------------------------- ##
12535 ## Main body of $CONFIG_STATUS script. ##
12536 ## ----------------------------------- ##
12538 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12541 # Save the log message, to keep $0 and so on meaningful, and to
12542 # report actual input values of CONFIG_FILES etc. instead of their
12543 # values after options handling.
12545 This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
12546 generated by GNU Autoconf 2.64. Invocation command line was
12548 CONFIG_FILES = $CONFIG_FILES
12549 CONFIG_HEADERS = $CONFIG_HEADERS
12550 CONFIG_LINKS = $CONFIG_LINKS
12551 CONFIG_COMMANDS = $CONFIG_COMMANDS
12554 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12559 case $ac_config_files in *"
12560 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12563 case $ac_config_headers in *"
12564 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569 # Files that config.status was made for.
12570 config_files="$ac_config_files"
12571 config_headers="$ac_config_headers"
12572 config_commands="$ac_config_commands"
12576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578 \`$as_me' instantiates files and other configuration actions
12579 from templates according to the current configuration. Unless the files
12580 and actions are specified as TAGs, all are instantiated by default.
12582 Usage: $0 [OPTION]... [TAG]...
12584 -h, --help print this help, then exit
12585 -V, --version print version number and configuration settings, then exit
12586 -q, --quiet, --silent
12587 do not print progress messages
12588 -d, --debug don't remove temporary files
12589 --recheck update $as_me by reconfiguring in the same conditions
12590 --file=FILE[:TEMPLATE]
12591 instantiate the configuration file FILE
12592 --header=FILE[:TEMPLATE]
12593 instantiate the configuration header FILE
12595 Configuration files:
12598 Configuration headers:
12601 Configuration commands:
12604 Report bugs to the package provider."
12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12609 GCC Quad-precision Math Library config.status 0.1
12610 configured by $0, generated by GNU Autoconf 2.64,
12611 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12613 Copyright (C) 2009 Free Software Foundation, Inc.
12614 This config.status script is free software; the Free Software Foundation
12615 gives unlimited permission to copy, distribute and modify it."
12622 test -n "\$AWK" || AWK=awk
12625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12626 # The default lists apply if the user does not specify any file.
12632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12644 # Handling of the options.
12645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12648 $as_echo "$ac_cs_version"; exit ;;
12649 --debug | --debu | --deb | --de | --d | -d )
12651 --file | --fil | --fi | --f )
12654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12656 as_fn_append CONFIG_FILES " '$ac_optarg'"
12657 ac_need_defaults=false;;
12658 --header | --heade | --head | --hea )
12661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12663 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12664 ac_need_defaults=false;;
12666 # Conflict between --help and --header
12667 as_fn_error "ambiguous option: \`$1'
12668 Try \`$0 --help' for more information.";;
12669 --help | --hel | -h )
12670 $as_echo "$ac_cs_usage"; exit ;;
12671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12672 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12675 # This is an error.
12676 -*) as_fn_error "unrecognized option: \`$1'
12677 Try \`$0 --help' for more information." ;;
12679 *) as_fn_append ac_config_targets " $1"
12680 ac_need_defaults=false ;;
12686 ac_configure_extra_args=
12688 if $ac_cs_silent; then
12690 ac_configure_extra_args="$ac_configure_extra_args --silent"
12694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12695 if \$ac_cs_recheck; then
12696 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12698 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12699 CONFIG_SHELL='$SHELL'
12700 export CONFIG_SHELL
12705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12709 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12710 ## Running $as_me. ##
12716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12723 # The HP-UX ksh and POSIX shell print the target directory to stdout
12724 # if CDPATH is set.
12725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12727 sed_quote_subst='$sed_quote_subst'
12728 double_quote_subst='$double_quote_subst'
12729 delay_variable_subst='$delay_variable_subst'
12730 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12731 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12732 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12733 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12734 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12735 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12736 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12737 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12738 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12739 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12740 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12741 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12742 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12743 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12744 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12745 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12746 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12747 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12748 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12749 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12750 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12751 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12752 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12753 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12754 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12755 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12756 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12757 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12758 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12759 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12760 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12761 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12762 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12763 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12764 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12765 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12766 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12767 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12768 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12769 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12770 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12771 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12772 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12773 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12774 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12775 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12776 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12777 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12778 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"`'
12779 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12780 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12781 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12782 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12783 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12784 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12785 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12786 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12787 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12788 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12789 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12790 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12791 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12792 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12793 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12794 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12795 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12796 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12797 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12798 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12799 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12800 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12801 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12802 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12803 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12804 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12805 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12806 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12807 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12808 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12809 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12810 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12811 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12812 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12813 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12814 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12815 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12816 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12817 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12818 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12819 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12820 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12821 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12822 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12823 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12824 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12825 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12826 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12827 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12828 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12829 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12830 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12831 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12832 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12833 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12834 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12835 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12836 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12837 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12838 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12839 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12840 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12841 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12842 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12843 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12844 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12845 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12846 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12847 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12848 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12849 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12852 LTCFLAGS='$LTCFLAGS'
12853 compiler='$compiler_DEFAULT'
12855 # A function that is used when there is no print builtin or printf.
12856 func_fallback_echo ()
12858 eval 'cat <<_LTECHO_EOF
12863 # Quote evaled strings.
12877 deplibs_check_method \
12886 lt_cv_sys_global_symbol_pipe \
12887 lt_cv_sys_global_symbol_to_cdecl \
12888 lt_cv_sys_global_symbol_to_c_name_address \
12889 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12890 lt_prog_compiler_no_builtin_flag \
12891 lt_prog_compiler_wl \
12892 lt_prog_compiler_pic \
12893 lt_prog_compiler_static \
12894 lt_cv_prog_compiler_c_o \
12902 export_dynamic_flag_spec \
12903 whole_archive_flag_spec \
12904 compiler_needs_object \
12906 allow_undefined_flag \
12907 no_undefined_flag \
12908 hardcode_libdir_flag_spec \
12909 hardcode_libdir_flag_spec_ld \
12910 hardcode_libdir_separator \
12915 variables_saved_for_relink \
12917 library_names_spec \
12919 install_override_mode \
12923 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12924 *[\\\\\\\`\\"\\\$]*)
12925 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12928 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12933 # Double-quote double-evaled strings.
12934 for var in reload_cmds \
12935 old_postinstall_cmds \
12936 old_postuninstall_cmds \
12938 extract_expsyms_cmds \
12939 old_archive_from_new_cmds \
12940 old_archive_from_expsyms_cmds \
12942 archive_expsym_cmds \
12944 module_expsym_cmds \
12945 export_symbols_cmds \
12948 postuninstall_cmds \
12950 sys_lib_search_path_spec \
12951 sys_lib_dlsearch_path_spec; do
12952 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12953 *[\\\\\\\`\\"\\\$]*)
12954 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12957 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12962 ac_aux_dir='$ac_aux_dir'
12963 xsi_shell='$xsi_shell'
12964 lt_shell_append='$lt_shell_append'
12966 # See if we are running on zsh, and set the options which allow our
12967 # commands through without removal of \ escapes INIT.
12968 if test -n "\${ZSH_VERSION+set}" ; then
12969 setopt NO_GLOB_SUBST
12975 TIMESTAMP='$TIMESTAMP'
12985 with_multisubdir="$with_multisubdir"
12986 with_multisrctop="$with_multisrctop"
12987 with_target_subdir="$with_target_subdir"
12988 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12989 multi_basedir="$multi_basedir"
12990 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12993 GFORTRAN="$GFORTRAN"
12998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13000 # Handling of arguments.
13001 for ac_config_target in $ac_config_targets
13003 case $ac_config_target in
13004 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13007 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13008 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13010 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13015 # If the user did not use the arguments to specify the items to instantiate,
13016 # then the envvar interface is used. Set only those that are not.
13017 # We use the long form for the default assignment because of an extremely
13018 # bizarre bug on SunOS 4.1.3.
13019 if $ac_need_defaults; then
13020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13025 # Have a temporary directory for convenience. Make it in the build tree
13026 # simply because there is no reason against having it here, and in addition,
13027 # creating and moving files from /tmp can sometimes cause problems.
13028 # Hook for its removal unless debugging.
13029 # Note that there is a small window in which the directory will not be cleaned:
13030 # after its creation but before its name has been assigned to `$tmp'.
13034 trap 'exit_status=$?
13035 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13037 trap 'as_fn_exit 1' 1 2 13 15
13039 # Create a (secure) tmp directory for tmp files.
13042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13043 test -n "$tmp" && test -d "$tmp"
13046 tmp=./conf$$-$RANDOM
13047 (umask 077 && mkdir "$tmp")
13048 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13050 # Set up the scripts for CONFIG_FILES section.
13051 # No need to generate them if there are no CONFIG_FILES.
13052 # This happens for instance with `./config.status config.h'.
13053 if test -n "$CONFIG_FILES"; then
13056 ac_cr=`echo X | tr X '\015'`
13057 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13058 # But we know of no other shell where ac_cr would be empty at this
13059 # point, so we can use a bashism as a fallback.
13060 if test "x$ac_cr" = x; then
13061 eval ac_cr=\$\'\\r\'
13063 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13064 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13067 ac_cs_awk_cr=$ac_cr
13070 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13075 echo "cat >conf$$subs.awk <<_ACEOF" &&
13076 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13078 } >conf$$subs.sh ||
13079 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13080 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13082 for ac_last_try in false false false false false :; do
13083 . ./conf$$subs.sh ||
13084 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13086 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13087 if test $ac_delim_n = $ac_delim_num; then
13089 elif $ac_last_try; then
13090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13095 rm -f conf$$subs.sh
13097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13098 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13102 s/^/S["/; s/!.*/"]=/
13112 s/\(.\{148\}\).*/\1/
13114 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13119 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13126 s/\(.\{148\}\).*/\1/
13128 s/["\\]/\\&/g; s/^/"/; s/$/"/
13132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13137 ' <conf$$subs.awk | sed '
13142 ' >>$CONFIG_STATUS || ac_write_fail=1
13143 rm -f conf$$subs.awk
13144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13146 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13147 for (key in S) S_is_set[key] = 1
13153 nfields = split(line, field, "@")
13155 len = length(field[1])
13156 for (i = 2; i < nfields; i++) {
13158 keylen = length(key)
13159 if (S_is_set[key]) {
13161 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13162 len += length(value) + length(field[++i])
13173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13174 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13175 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13178 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13179 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13182 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13183 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13184 # trailing colons and then remove the whole line if VPATH becomes empty
13185 # (actually we leave an empty line to preserve line numbers).
13186 if test "x$srcdir" = x.; then
13187 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13188 s/:*\$(srcdir):*/:/
13189 s/:*\${srcdir}:*/:/
13191 s/^\([^=]*=[ ]*\):*/\1/
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 fi # test -n "$CONFIG_FILES"
13200 # Set up the scripts for CONFIG_HEADERS section.
13201 # No need to generate them if there are no CONFIG_HEADERS.
13202 # This happens for instance with `./config.status Makefile'.
13203 if test -n "$CONFIG_HEADERS"; then
13204 cat >"$tmp/defines.awk" <<\_ACAWK ||
13208 # Transform confdefs.h into an awk script `defines.awk', embedded as
13209 # here-document in config.status, that substitutes the proper values into
13210 # config.h.in to produce config.h.
13212 # Create a delimiter string that does not exist in confdefs.h, to ease
13213 # handling of long lines.
13215 for ac_last_try in false false :; do
13216 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13217 if test -z "$ac_t"; then
13219 elif $ac_last_try; then
13220 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13226 # For the awk script, D is an array of macro values keyed by name,
13227 # likewise P contains macro parameters if any. Preserve backslash
13228 # newline sequences.
13230 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13232 s/.\{148\}/&'"$ac_delim"'/g
13235 s/^[ ]*#[ ]*define[ ][ ]*/ /
13242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13244 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13249 D["\1"]=" \3\\\\\\n"\\/p
13251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13256 s/.\{148\}/&'"$ac_delim"'/g
13261 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13264 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13266 ' <confdefs.h | sed '
13267 s/'"$ac_delim"'/"\\\
13268 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13271 for (key in D) D_is_set[key] = 1
13274 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13276 split(line, arg, " ")
13277 if (arg[1] == "#") {
13281 defundef = substr(arg[1], 2)
13284 split(mac1, mac2, "(") #)
13286 prefix = substr(line, 1, index(line, defundef) - 1)
13287 if (D_is_set[macro]) {
13288 # Preserve the white space surrounding the "#".
13289 print prefix "define", macro P[macro] D[macro]
13292 # Replace #undef with comments. This is necessary, for example,
13293 # in the case of _POSIX_SOURCE, which is predefined and required
13294 # on some systems where configure will not decide to define it.
13295 if (defundef == "undef") {
13296 print "/*", prefix defundef, macro, "*/"
13304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13305 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13306 fi # test -n "$CONFIG_HEADERS"
13309 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13314 :[FHLC]) ac_mode=$ac_tag; continue;;
13316 case $ac_mode$ac_tag in
13318 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13319 :[FH]-) ac_tag=-:-;;
13320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13337 -) ac_f="$tmp/stdin";;
13338 *) # Look for the file first in the build tree, then in the source tree
13339 # (if the path is not absolute). The absolute path cannot be DOS-style,
13340 # because $ac_f cannot contain `:'.
13344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13346 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13348 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13349 as_fn_append ac_file_inputs " '$ac_f'"
13352 # Let's still pretend it is `configure' which instantiates (i.e., don't
13353 # use $as_me), people would be surprised to read:
13354 # /* config.h. Generated by config.status. */
13355 configure_input='Generated from '`
13356 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13358 if test x"$ac_file" != x-; then
13359 configure_input="$ac_file. $configure_input"
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13361 $as_echo "$as_me: creating $ac_file" >&6;}
13363 # Neutralize special characters interpreted by sed in replacement strings.
13364 case $configure_input in #(
13365 *\&* | *\|* | *\\* )
13366 ac_sed_conf_input=`$as_echo "$configure_input" |
13367 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13368 *) ac_sed_conf_input=$configure_input;;
13372 *:-:* | *:-) cat >"$tmp/stdin" \
13373 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13378 ac_dir=`$as_dirname -- "$ac_file" ||
13379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13380 X"$ac_file" : 'X\(//\)[^/]' \| \
13381 X"$ac_file" : 'X\(//\)$' \| \
13382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13383 $as_echo X"$ac_file" |
13384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13388 /^X\(\/\/\)[^/].*/{
13401 as_dir="$ac_dir"; as_fn_mkdir_p
13405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13408 # A ".." for each directory in $ac_dir_suffix.
13409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13410 case $ac_top_builddir_sub in
13411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13415 ac_abs_top_builddir=$ac_pwd
13416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13417 # for backward compatibility:
13418 ac_top_builddir=$ac_top_build_prefix
13421 .) # We are building in place.
13423 ac_top_srcdir=$ac_top_builddir_sub
13424 ac_abs_top_srcdir=$ac_pwd ;;
13425 [\\/]* | ?:[\\/]* ) # Absolute name.
13426 ac_srcdir=$srcdir$ac_dir_suffix;
13427 ac_top_srcdir=$srcdir
13428 ac_abs_top_srcdir=$srcdir ;;
13429 *) # Relative name.
13430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13431 ac_top_srcdir=$ac_top_build_prefix$srcdir
13432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13447 ac_MKDIR_P=$MKDIR_P
13449 [\\/$]* | ?:[\\/]* ) ;;
13450 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13455 # If the template does not know about datarootdir, expand it.
13456 # FIXME: This hack should be removed a few years after 2.60.
13457 ac_datarootdir_hack=; ac_datarootdir_seen=
13468 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13469 *datarootdir*) ac_datarootdir_seen=yes;;
13470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13472 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13475 ac_datarootdir_hack='
13476 s&@datadir@&$datadir&g
13477 s&@docdir@&$docdir&g
13478 s&@infodir@&$infodir&g
13479 s&@localedir@&$localedir&g
13480 s&@mandir@&$mandir&g
13481 s&\\\${datarootdir}&$datarootdir&g' ;;
13485 # Neutralize VPATH when `$srcdir' = `.'.
13486 # Shell code in configure.ac might set extrasub.
13487 # FIXME: do we really want to maintain this feature?
13488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13489 ac_sed_extra="$ac_vpsub
13492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13495 s|@configure_input@|$ac_sed_conf_input|;t t
13496 s&@top_builddir@&$ac_top_builddir_sub&;t t
13497 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13498 s&@srcdir@&$ac_srcdir&;t t
13499 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13500 s&@top_srcdir@&$ac_top_srcdir&;t t
13501 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13502 s&@builddir@&$ac_builddir&;t t
13503 s&@abs_builddir@&$ac_abs_builddir&;t t
13504 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13505 s&@INSTALL@&$ac_INSTALL&;t t
13506 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13507 $ac_datarootdir_hack
13509 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13510 || as_fn_error "could not create $ac_file" "$LINENO" 5
13512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13513 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13516 which seems to be undefined. Please make sure it is defined." >&5
13517 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13518 which seems to be undefined. Please make sure it is defined." >&2;}
13522 -) cat "$tmp/out" && rm -f "$tmp/out";;
13523 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13525 || as_fn_error "could not create $ac_file" "$LINENO" 5
13531 if test x"$ac_file" != x-; then
13533 $as_echo "/* $configure_input */" \
13534 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13535 } >"$tmp/config.h" \
13536 || as_fn_error "could not create $ac_file" "$LINENO" 5
13537 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13539 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13542 mv "$tmp/config.h" "$ac_file" \
13543 || as_fn_error "could not create $ac_file" "$LINENO" 5
13546 $as_echo "/* $configure_input */" \
13547 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13548 || as_fn_error "could not create -" "$LINENO" 5
13550 # Compute "$ac_file"'s index in $config_headers.
13553 for _am_header in $config_headers :; do
13554 case $_am_header in
13555 $_am_arg | $_am_arg:* )
13558 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13561 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13562 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13563 X"$_am_arg" : 'X\(//\)[^/]' \| \
13564 X"$_am_arg" : 'X\(//\)$' \| \
13565 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13566 $as_echo X"$_am_arg" |
13567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13571 /^X\(\/\/\)[^/].*/{
13583 s/.*/./; q'`/stamp-h$_am_stamp_count
13586 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13587 $as_echo "$as_me: executing $ac_file commands" >&6;}
13592 case $ac_file$ac_mode in
13593 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13594 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13595 # are listed without --file. Let's play safe and only enable the eval
13596 # if we detect the quoting.
13597 case $CONFIG_FILES in
13598 *\'*) eval set x "$CONFIG_FILES" ;;
13599 *) set x $CONFIG_FILES ;;
13604 # Strip MF so we end up with the name of the file.
13605 mf=`echo "$mf" | sed -e 's/:.*$//'`
13606 # Check whether this is an Automake generated Makefile or not.
13607 # We used to match only the files named `Makefile.in', but
13608 # some people rename them; so instead we look at the file content.
13609 # Grep'ing the first line is not enough: some people post-process
13610 # each Makefile.in and add a new line on top of each file to say so.
13611 # Grep'ing the whole file is not good either: AIX grep has a line
13612 # limit of 2048, but all sed's we know have understand at least 4000.
13613 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13614 dirpart=`$as_dirname -- "$mf" ||
13615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13616 X"$mf" : 'X\(//\)[^/]' \| \
13617 X"$mf" : 'X\(//\)$' \| \
13618 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13624 /^X\(\/\/\)[^/].*/{
13640 # Extract the definition of DEPDIR, am__include, and am__quote
13641 # from the Makefile without running `make'.
13642 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13643 test -z "$DEPDIR" && continue
13644 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13645 test -z "am__include" && continue
13646 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13647 # When using ansi2knr, U may be empty or an underscore; expand it
13648 U=`sed -n 's/^U = //p' < "$mf"`
13649 # Find all dependency output files, they are included files with
13650 # $(DEPDIR) in their names. We invoke sed twice because it is the
13651 # simplest approach to changing $(DEPDIR) to its actual value in the
13653 for file in `sed -n "
13654 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13655 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13656 # Make sure the directory exists.
13657 test -f "$dirpart/$file" && continue
13658 fdir=`$as_dirname -- "$file" ||
13659 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13660 X"$file" : 'X\(//\)[^/]' \| \
13661 X"$file" : 'X\(//\)$' \| \
13662 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13663 $as_echo X"$file" |
13664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13668 /^X\(\/\/\)[^/].*/{
13681 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13682 # echo "creating $dirpart/$file"
13683 echo '# dummy' > "$dirpart/$file"
13690 # See if we are running on zsh, and set the options which allow our
13691 # commands through without removal of \ escapes.
13692 if test -n "${ZSH_VERSION+set}" ; then
13693 setopt NO_GLOB_SUBST
13696 cfgfile="${ofile}T"
13697 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13700 cat <<_LT_EOF >> "$cfgfile"
13703 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13704 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13705 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13706 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13708 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13709 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13710 # Written by Gordon Matzigkeit, 1996
13712 # This file is part of GNU Libtool.
13714 # GNU Libtool is free software; you can redistribute it and/or
13715 # modify it under the terms of the GNU General Public License as
13716 # published by the Free Software Foundation; either version 2 of
13717 # the License, or (at your option) any later version.
13719 # As a special exception to the GNU General Public License,
13720 # if you distribute this file as part of a program or library that
13721 # is built using GNU Libtool, you may include this file under the
13722 # same distribution terms that you use for the rest of that program.
13724 # GNU Libtool is distributed in the hope that it will be useful,
13725 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13727 # GNU General Public License for more details.
13729 # You should have received a copy of the GNU General Public License
13730 # along with GNU Libtool; see the file COPYING. If not, a copy
13731 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13732 # obtained by writing to the Free Software Foundation, Inc.,
13733 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13736 # The names of the tagged configurations supported by this script.
13739 # ### BEGIN LIBTOOL CONFIG
13741 # Which release of libtool.m4 was used?
13742 macro_version=$macro_version
13743 macro_revision=$macro_revision
13745 # Whether or not to build shared libraries.
13746 build_libtool_libs=$enable_shared
13748 # Whether or not to build static libraries.
13749 build_old_libs=$enable_static
13751 # What type of objects to build.
13754 # Whether or not to optimize for fast installation.
13755 fast_install=$enable_fast_install
13757 # Shell to use when invoking shell scripts.
13760 # An echo program that protects backslashes.
13764 host_alias=$host_alias
13768 # The build system.
13769 build_alias=$build_alias
13773 # A sed program that does not truncate output.
13776 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13777 Xsed="\$SED -e 1s/^X//"
13779 # A grep program that handles long lines.
13785 # A literal string matcher.
13788 # A BSD- or MS-compatible name lister.
13791 # Whether we need soft or hard links.
13794 # What is the maximum length of a command?
13795 max_cmd_len=$max_cmd_len
13797 # Object file suffix (normally "o").
13800 # Executable file suffix (normally "").
13803 # whether the shell understands "unset".
13806 # turn spaces into newlines.
13809 # turn newlines into spaces.
13812 # An object symbol dumper.
13813 OBJDUMP=$lt_OBJDUMP
13815 # Method to check whether dependent libraries are shared objects.
13816 deplibs_check_method=$lt_deplibs_check_method
13818 # Command to use when deplibs_check_method == "file_magic".
13819 file_magic_cmd=$lt_file_magic_cmd
13823 AR_FLAGS=$lt_AR_FLAGS
13825 # A symbol stripping program.
13828 # Commands used to install an old-style archive.
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13833 # Whether to use a lock for old archive extraction.
13834 lock_old_archive_extraction=$lock_old_archive_extraction
13839 # LTCC compiler flags.
13840 LTCFLAGS=$lt_CFLAGS
13842 # Take the output of nm and produce a listing of raw symbols and C names.
13843 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13845 # Transform the output of nm in a proper C declaration.
13846 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13848 # Transform the output of nm in a C name address pair.
13849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13851 # Transform the output of nm in a C name address pair when lib prefix is needed.
13852 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13854 # The name of the directory that contains temporary libtool files.
13857 # Used to examine libraries when file_magic_cmd begins with "file".
13858 MAGIC_CMD=$MAGIC_CMD
13860 # Must we lock files when doing compilation?
13861 need_locks=$lt_need_locks
13863 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13864 DSYMUTIL=$lt_DSYMUTIL
13866 # Tool to change global to local symbols on Mac OS X.
13869 # Tool to manipulate fat objects and archives on Mac OS X.
13872 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13875 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13876 OTOOL64=$lt_OTOOL64
13878 # Old archive suffix (normally "a").
13881 # Shared library suffix (normally ".so").
13882 shrext_cmds=$lt_shrext_cmds
13884 # The commands to extract the exported symbol list from a shared archive.
13885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13887 # Variables whose values should be saved in libtool wrapper scripts and
13888 # restored at link time.
13889 variables_saved_for_relink=$lt_variables_saved_for_relink
13891 # Do we need the "lib" prefix for modules?
13892 need_lib_prefix=$need_lib_prefix
13894 # Do we need a version for libraries?
13895 need_version=$need_version
13897 # Library versioning type.
13898 version_type=$version_type
13900 # Shared library runtime path variable.
13901 runpath_var=$runpath_var
13903 # Shared library path variable.
13904 shlibpath_var=$shlibpath_var
13906 # Is shlibpath searched before the hard-coded library search path?
13907 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13909 # Format of library name prefix.
13910 libname_spec=$lt_libname_spec
13912 # List of archive names. First name is the real one, the rest are links.
13913 # The last name is the one that the linker finds with -lNAME
13914 library_names_spec=$lt_library_names_spec
13916 # The coded name of the library, if different from the real name.
13917 soname_spec=$lt_soname_spec
13919 # Permission mode override for installation of shared libraries.
13920 install_override_mode=$lt_install_override_mode
13922 # Command to use after installation of a shared archive.
13923 postinstall_cmds=$lt_postinstall_cmds
13925 # Command to use after uninstallation of a shared archive.
13926 postuninstall_cmds=$lt_postuninstall_cmds
13928 # Commands used to finish a libtool library installation in a directory.
13929 finish_cmds=$lt_finish_cmds
13931 # As "finish_cmds", except a single script fragment to be evaled but
13933 finish_eval=$lt_finish_eval
13935 # Whether we should hardcode library paths into libraries.
13936 hardcode_into_libs=$hardcode_into_libs
13938 # Compile-time system search path for libraries.
13939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13941 # Run-time system search path for libraries.
13942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13944 # Whether dlopen is supported.
13945 dlopen_support=$enable_dlopen
13947 # Whether dlopen of programs is supported.
13948 dlopen_self=$enable_dlopen_self
13950 # Whether dlopen of statically linked programs is supported.
13951 dlopen_self_static=$enable_dlopen_self_static
13953 # Commands to strip libraries.
13954 old_striplib=$lt_old_striplib
13955 striplib=$lt_striplib
13958 # The linker used to build libraries.
13961 # How to create reloadable object files.
13962 reload_flag=$lt_reload_flag
13963 reload_cmds=$lt_reload_cmds
13965 # Commands used to build an old-style archive.
13966 old_archive_cmds=$lt_old_archive_cmds
13968 # A language specific compiler.
13971 # Is the compiler the GNU compiler?
13974 # Compiler flag to turn off builtin functions.
13975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13977 # How to pass a linker flag through the compiler.
13978 wl=$lt_lt_prog_compiler_wl
13980 # Additional compiler flags for building library objects.
13981 pic_flag=$lt_lt_prog_compiler_pic
13983 # Compiler flag to prevent dynamic linking.
13984 link_static_flag=$lt_lt_prog_compiler_static
13986 # Does compiler simultaneously support -c and -o options?
13987 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13989 # Whether or not to add -lc for building shared libraries.
13990 build_libtool_need_lc=$archive_cmds_need_lc
13992 # Whether or not to disallow shared libs when runtime libs are static.
13993 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13995 # Compiler flag to allow reflexive dlopens.
13996 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13998 # Compiler flag to generate shared objects directly from archives.
13999 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14001 # Whether the compiler copes with passing no objects directly.
14002 compiler_needs_object=$lt_compiler_needs_object
14004 # Create an old-style archive from a shared archive.
14005 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14007 # Create a temporary old-style archive to link instead of a shared archive.
14008 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14010 # Commands used to build a shared archive.
14011 archive_cmds=$lt_archive_cmds
14012 archive_expsym_cmds=$lt_archive_expsym_cmds
14014 # Commands used to build a loadable module if different from building
14015 # a shared archive.
14016 module_cmds=$lt_module_cmds
14017 module_expsym_cmds=$lt_module_expsym_cmds
14019 # Whether we are building with GNU ld or not.
14020 with_gnu_ld=$lt_with_gnu_ld
14022 # Flag that allows shared libraries with undefined symbols to be built.
14023 allow_undefined_flag=$lt_allow_undefined_flag
14025 # Flag that enforces no undefined symbols.
14026 no_undefined_flag=$lt_no_undefined_flag
14028 # Flag to hardcode \$libdir into a binary during linking.
14029 # This must work even if \$libdir does not exist
14030 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14032 # If ld is used when linking, flag to hardcode \$libdir into a binary
14033 # during linking. This must work even if \$libdir does not exist.
14034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14036 # Whether we need a single "-rpath" flag with a separated argument.
14037 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14040 # DIR into the resulting binary.
14041 hardcode_direct=$hardcode_direct
14043 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14044 # DIR into the resulting binary and the resulting library dependency is
14045 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14046 # library is relocated.
14047 hardcode_direct_absolute=$hardcode_direct_absolute
14049 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14050 # into the resulting binary.
14051 hardcode_minus_L=$hardcode_minus_L
14053 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14054 # into the resulting binary.
14055 hardcode_shlibpath_var=$hardcode_shlibpath_var
14057 # Set to "yes" if building a shared library automatically hardcodes DIR
14058 # into the library and all subsequent libraries and executables linked
14060 hardcode_automatic=$hardcode_automatic
14062 # Set to yes if linker adds runtime paths of dependent libraries
14063 # to runtime path list.
14064 inherit_rpath=$inherit_rpath
14066 # Whether libtool must link a program against all its dependency libraries.
14067 link_all_deplibs=$link_all_deplibs
14069 # Fix the shell variable \$srcfile for the compiler.
14070 fix_srcfile_path=$lt_fix_srcfile_path
14072 # Set to "yes" if exported symbols are required.
14073 always_export_symbols=$always_export_symbols
14075 # The commands to list exported symbols.
14076 export_symbols_cmds=$lt_export_symbols_cmds
14078 # Symbols that should not be listed in the preloaded symbols.
14079 exclude_expsyms=$lt_exclude_expsyms
14081 # Symbols that must always be exported.
14082 include_expsyms=$lt_include_expsyms
14084 # Commands necessary for linking programs (against libraries) with templates.
14085 prelink_cmds=$lt_prelink_cmds
14087 # Specify filename containing input files.
14088 file_list_spec=$lt_file_list_spec
14090 # How to hardcode a shared library path into an executable.
14091 hardcode_action=$hardcode_action
14093 # ### END LIBTOOL CONFIG
14099 cat <<\_LT_EOF >> "$cfgfile"
14100 # AIX sometimes has problems with the GCC collect2 program. For some
14101 # reason, if we set the COLLECT_NAMES environment variable, the problems
14102 # vanish in a puff of smoke.
14103 if test "X${COLLECT_NAMES+set}" != Xset; then
14105 export COLLECT_NAMES
14112 ltmain="$ac_aux_dir/ltmain.sh"
14115 # We use sed instead of cat because bash on DJGPP gets confused if
14116 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14117 # text mode, it properly converts lines to CR/LF. This bash problem
14118 # is reportedly fixed, but why not run on old versions too?
14119 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14120 || (rm -f "$cfgfile"; exit 1)
14124 cat << \_LT_EOF >> "$cfgfile"
14126 # func_dirname file append nondir_replacement
14127 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14128 # otherwise set result to NONDIR_REPLACEMENT.
14132 */*) func_dirname_result="${1%/*}${2}" ;;
14133 * ) func_dirname_result="${3}" ;;
14137 # func_basename file
14140 func_basename_result="${1##*/}"
14143 # func_dirname_and_basename file append nondir_replacement
14144 # perform func_basename and func_dirname in a single function
14146 # dirname: Compute the dirname of FILE. If nonempty,
14147 # add APPEND to the result, otherwise set result
14148 # to NONDIR_REPLACEMENT.
14149 # value returned in "$func_dirname_result"
14150 # basename: Compute filename of FILE.
14151 # value retuned in "$func_basename_result"
14152 # Implementation must be kept synchronized with func_dirname
14153 # and func_basename. For efficiency, we do not delegate to
14154 # those functions but instead duplicate the functionality here.
14155 func_dirname_and_basename ()
14158 */*) func_dirname_result="${1%/*}${2}" ;;
14159 * ) func_dirname_result="${3}" ;;
14161 func_basename_result="${1##*/}"
14164 # func_stripname prefix suffix name
14165 # strip PREFIX and SUFFIX off of NAME.
14166 # PREFIX and SUFFIX must not contain globbing or regex special
14167 # characters, hashes, percent signs, but SUFFIX may contain a leading
14168 # dot (in which case that matches only a dot).
14171 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14172 # positional parameters, so assign one to ordinary parameter first.
14173 func_stripname_result=${3}
14174 func_stripname_result=${func_stripname_result#"${1}"}
14175 func_stripname_result=${func_stripname_result%"${2}"}
14181 func_opt_split_opt=${1%%=*}
14182 func_opt_split_arg=${1#*=}
14189 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14190 *) func_lo2o_result=${1} ;;
14194 # func_xform libobj-or-source
14197 func_xform_result=${1%.*}.lo
14200 # func_arith arithmetic-term...
14203 func_arith_result=$(( $* ))
14207 # STRING may not start with a hyphen.
14210 func_len_result=${#1}
14215 *) # Bourne compatible functions.
14216 cat << \_LT_EOF >> "$cfgfile"
14218 # func_dirname file append nondir_replacement
14219 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14220 # otherwise set result to NONDIR_REPLACEMENT.
14223 # Extract subdirectory from the argument.
14224 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14225 if test "X$func_dirname_result" = "X${1}"; then
14226 func_dirname_result="${3}"
14228 func_dirname_result="$func_dirname_result${2}"
14232 # func_basename file
14235 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14239 # func_stripname prefix suffix name
14240 # strip PREFIX and SUFFIX off of NAME.
14241 # PREFIX and SUFFIX must not contain globbing or regex special
14242 # characters, hashes, percent signs, but SUFFIX may contain a leading
14243 # dot (in which case that matches only a dot).
14244 # func_strip_suffix prefix name
14248 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14249 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14254 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14255 my_sed_long_arg='1s/^-[^=]*=//'
14260 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14261 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14267 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14270 # func_xform libobj-or-source
14273 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14276 # func_arith arithmetic-term...
14279 func_arith_result=`expr "$@"`
14283 # STRING may not start with a hyphen.
14286 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14292 case $lt_shell_append in
14294 cat << \_LT_EOF >> "$cfgfile"
14296 # func_append var value
14297 # Append VALUE to the end of shell variable VAR.
14305 cat << \_LT_EOF >> "$cfgfile"
14307 # func_append var value
14308 # Append VALUE to the end of shell variable VAR.
14319 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14320 || (rm -f "$cfgfile"; exit 1)
14322 mv -f "$cfgfile" "$ofile" ||
14323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14328 # Only add multilib support code if we just rebuilt the top-level
14330 case " $CONFIG_FILES " in
14332 ac_file=Makefile . ${multi_basedir}/config-ml.in
14342 ac_clean_files=$ac_clean_files_save
14344 test $ac_write_fail = 0 ||
14345 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14348 # configure is writing to config.log, and then calls config.status.
14349 # config.status does its own redirection, appending to config.log.
14350 # Unfortunately, on DOS this fails, as config.log is still kept open
14351 # by configure, so config.status won't be able to write to it; its
14352 # output is simply discarded. So we exec the FD to /dev/null,
14353 # effectively closing config.log, so it can be properly (re)opened and
14354 # appended to by config.status. When coming back to configure, we
14355 # need to make the FD available again.
14356 if test "$no_create" != yes; then
14358 ac_config_status_args=
14359 test "$silent" = yes &&
14360 ac_config_status_args="$ac_config_status_args --quiet"
14362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14365 # would make configure fail if this is the last instruction.
14366 $ac_cs_success || as_fn_exit $?
14368 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14370 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}