2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LTO plugin for ld 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='LTO plugin for ld'
558 PACKAGE_TARNAME='lto-plugin'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='LTO plugin for ld 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
648 MAINTAINER_MODE_FALSE
658 INSTALL_STRIP_PROGRAM
708 program_transform_name
721 enable_option_checking
723 enable_maintainer_mode
724 enable_dependency_tracking
733 ac_precious_vars='build_alias
746 # Initialize some variables set by options.
748 ac_init_version=false
749 ac_unrecognized_opts=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name=s,x,x,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
862 eval enable_$ac_useropt=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=\$ac_optarg ;;
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
903 -help | --help | --hel | --he | -h)
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 htmldir=$ac_optarg ;;
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
933 -libdir | --libdir | --libdi | --libd)
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
945 -localedir | --localedir | --localedi | --localed | --locale)
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963 # Obsolete; use --without-fp.
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1024 -psdir | --psdir | --psdi | --psd | --ps)
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037 sbindir=$ac_optarg ;;
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048 sharedstatedir=$ac_optarg ;;
1050 -site | --site | --sit)
1052 -site=* | --site=* | --sit=*)
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval with_$ac_useropt=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval with_$ac_useropt=no ;;
1111 # Obsolete; use --with-x.
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1128 -*) as_fn_error "unrecognized option: \`$ac_option'
1129 Try \`$0 --help' for more information."
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error "missing argument to $ac_option"
1158 if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1161 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 # Check all directory arguments for consistency.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1179 # Be sure to have absolute directory names.
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208 test "$silent" = yes && exec 6>/dev/null
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error "working directory cannot be determined"
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error "pwd does not report name of working directory"
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1251 ac_srcdir_defaulted=no
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --enable-maintainer-mode enable make rules and dependencies not useful
1364 (and sometimes confusing) to the casual installer
1365 --disable-dependency-tracking speeds up one-time build
1366 --enable-dependency-tracking do not reject slow dependency extractors
1367 --disable-largefile omit support for large files
1368 --enable-shared[=PKGS] build shared libraries [default=yes]
1369 --enable-static[=PKGS] build static libraries [default=yes]
1370 --enable-fast-install[=PKGS]
1371 optimize for fast installation [default=yes]
1372 --disable-libtool-lock avoid locking (might break parallel builds)
1375 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1376 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1377 --with-build-libsubdir=DIR Directory where to find libraries for build system
1378 --with-pic try to use only PIC/non-PIC objects [default=use
1380 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 LIBELFLIBS How to link libelf
1391 LIBELFINC How to find libelf include files
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 Report bugs to the package provider.
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1427 .) # We are building in place.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1457 test -n "$ac_init_help" && exit $ac_status
1458 if $ac_init_version; then
1460 LTO plugin for ld configure 0.1
1461 generated by GNU Autoconf 2.64
1463 Copyright (C) 2009 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1470 ## ------------------------ ##
1471 ## Autoconf initialization. ##
1472 ## ------------------------ ##
1474 # ac_fn_c_try_compile LINENO
1475 # --------------------------
1476 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_c_try_compile ()
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 rm -f conftest.$ac_objext
1481 if { { ac_try="$ac_compile"
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 $as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_compile") 2>conftest.err
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && {
1497 test -z "$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510 } # ac_fn_c_try_compile
1512 # ac_fn_c_try_link LINENO
1513 # -----------------------
1514 # Try to link conftest.$ac_ext, and return whether this succeeded.
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext conftest$ac_exeext
1519 if { { ac_try="$ac_link"
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_link") 2>conftest.err
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest$ac_exeext && {
1538 test "$cross_compiling" = yes ||
1539 $as_test_x conftest$ac_exeext
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1548 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1549 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1550 # interfere with the next link command; also delete a directory that is
1551 # left behind by Apple's compiler. We do this before executing the actions.
1552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 } # ac_fn_c_try_link
1558 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1559 # -------------------------------------------------------
1560 # Tests whether HEADER exists and can be compiled using the include files in
1561 # INCLUDES, setting the cache variable VAR accordingly.
1562 ac_fn_c_check_header_compile ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1566 $as_echo_n "checking for $2... " >&6; }
1567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1568 $as_echo_n "(cached) " >&6
1570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1571 /* end confdefs.h. */
1575 if ac_fn_c_try_compile "$LINENO"; then :
1580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584 $as_echo "$ac_res" >&6; }
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 } # ac_fn_c_check_header_compile
1589 # ac_fn_c_try_cpp LINENO
1590 # ----------------------
1591 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_cpp conftest.$ac_ext"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } >/dev/null && {
1611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 # ac_fn_c_try_run LINENO
1627 # ----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1629 # that executables *can* be run.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_link"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>&5
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1644 { { case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_try") 2>&5
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; }; }; then :
1656 $as_echo "$as_me: program exited with status $ac_status" >&5
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1660 ac_retval=$ac_status
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 # ac_fn_c_check_func LINENO FUNC VAR
1669 # ----------------------------------
1670 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1671 ac_fn_c_check_func ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1683 #define $2 innocuous_$2
1685 /* System header to define __stub macros and hopefully few prototypes,
1686 which can conflict with char $2 (); below.
1687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1688 <limits.h> exists even on freestanding compilers. */
1691 # include <limits.h>
1693 # include <assert.h>
1698 /* Override any GCC internal prototype to avoid an error.
1699 Use char because int might match the return type of a GCC
1700 builtin and then its argument prototype would still apply. */
1705 /* The GNU C library defines this for functions which it implements
1706 to always fail with ENOSYS. Some functions are actually named
1707 something starting with __ and the normal name is an alias. */
1708 #if defined __stub_$2 || defined __stub___$2
1720 if ac_fn_c_try_link "$LINENO"; then :
1725 rm -f core conftest.err conftest.$ac_objext \
1726 conftest$ac_exeext conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 } # ac_fn_c_check_func
1735 # ac_fn_c_find_uintX_t LINENO BITS VAR
1736 # ------------------------------------
1737 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1739 ac_fn_c_find_uintX_t ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1743 $as_echo_n "checking for uint$2_t... " >&6; }
1744 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1748 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1749 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $ac_includes_default
1756 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1763 if ac_fn_c_try_compile "$LINENO"; then :
1768 eval "$3=\$ac_type" ;;
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 if test "x$as_val" = x""no; then :
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 } # ac_fn_c_find_uintX_t
1786 cat >config.log <<_ACEOF
1787 This file contains any messages produced by compilers while
1788 running configure, to aid debugging if configure makes a mistake.
1790 It was created by LTO plugin for ld $as_me 0.1, which was
1791 generated by GNU Autoconf 2.64. Invocation command line was
1803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1810 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1812 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1813 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1815 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1816 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1817 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1818 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 $as_echo "PATH: $as_dir"
1843 # Keep a trace of the command line.
1844 # Strip out --no-create and --no-recursion so they do not pile up.
1845 # Strip out --silent because we don't want to record it for future runs.
1846 # Also quote any args containing shell meta-characters.
1847 # Make two passes to allow for proper duplicate-argument suppression.
1851 ac_must_keep_next=false
1857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1859 | -silent | --silent | --silen | --sile | --sil)
1862 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1867 as_fn_append ac_configure_args1 " '$ac_arg'"
1868 if test $ac_must_keep_next = true; then
1869 ac_must_keep_next=false # Got value, back to normal.
1872 *=* | --config-cache | -C | -disable-* | --disable-* \
1873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1875 | -with-* | --with-* | -without-* | --without-* | --x)
1876 case "$ac_configure_args0 " in
1877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880 -* ) ac_must_keep_next=true ;;
1883 as_fn_append ac_configure_args " '$ac_arg'"
1888 { ac_configure_args0=; unset ac_configure_args0;}
1889 { ac_configure_args1=; unset ac_configure_args1;}
1891 # When interrupted or exit'd, cleanup temporary files, and complete
1892 # config.log. We remove comments because anyway the quotes in there
1893 # would cause problems or look ugly.
1894 # WARNING: Use '\'' to represent an apostrophe within the trap.
1895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1896 trap 'exit_status=$?
1897 # Save into config.log some information that might help in debugging.
1902 ## ---------------- ##
1903 ## Cache variables. ##
1904 ## ---------------- ##
1907 # The following way of writing the cache mishandles newlines in values,
1909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910 eval ac_val=\$$ac_var
1914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1918 _ | IFS | as_nl) ;; #(
1919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920 *) { eval $ac_var=; unset $ac_var;} ;;
1925 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926 *${as_nl}ac_space=\ *)
1928 "s/'\''/'\''\\\\'\'''\''/g;
1929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1940 ## ----------------- ##
1941 ## Output variables. ##
1942 ## ----------------- ##
1945 for ac_var in $ac_subst_vars
1947 eval ac_val=\$$ac_var
1949 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951 $as_echo "$ac_var='\''$ac_val'\''"
1955 if test -n "$ac_subst_files"; then
1957 ## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##
1962 for ac_var in $ac_subst_files
1964 eval ac_val=\$$ac_var
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1968 $as_echo "$ac_var='\''$ac_val'\''"
1973 if test -s confdefs.h; then
1983 test "$ac_signal" != 0 &&
1984 $as_echo "$as_me: caught signal $ac_signal"
1985 $as_echo "$as_me: exit $exit_status"
1987 rm -f core *.core core.conftest.* &&
1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991 for ac_signal in 1 2 13 15; do
1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1997 rm -f -r conftest* confdefs.h
1999 $as_echo "/* confdefs.h */" > confdefs.h
2001 # Predefined preprocessor variables.
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_STRING "$PACKAGE_STRING"
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_URL "$PACKAGE_URL"
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer an explicitly selected file to automatically selected ones.
2032 if test -n "$CONFIG_SITE"; then
2033 ac_site_file1=$CONFIG_SITE
2034 elif test "x$prefix" != xNONE; then
2035 ac_site_file1=$prefix/share/config.site
2036 ac_site_file2=$prefix/etc/config.site
2038 ac_site_file1=$ac_default_prefix/share/config.site
2039 ac_site_file2=$ac_default_prefix/etc/config.site
2041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2043 test "x$ac_site_file" = xNONE && continue
2044 if test -r "$ac_site_file"; then
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2047 sed 's/^/| /' "$ac_site_file" >&5
2052 if test -r "$cache_file"; then
2053 # Some versions of bash will fail to source /dev/null (special
2054 # files actually), so we avoid doing that.
2055 if test -f "$cache_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2057 $as_echo "$as_me: loading cache $cache_file" >&6;}
2059 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060 *) . "./$cache_file";;
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2065 $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 # Check that the precious variables saved in the cache have kept the same
2071 ac_cache_corrupted=false
2072 for ac_var in $ac_precious_vars; do
2073 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2074 eval ac_new_set=\$ac_env_${ac_var}_set
2075 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2076 eval ac_new_val=\$ac_env_${ac_var}_value
2077 case $ac_old_set,$ac_new_set in
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2088 if test "x$ac_old_val" != "x$ac_new_val"; then
2089 # differences in whitespace do not lead to failure.
2090 ac_old_val_w=`echo x $ac_old_val`
2091 ac_new_val_w=`echo x $ac_new_val`
2092 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2095 ac_cache_corrupted=:
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2099 eval $ac_var=\$ac_old_val
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2102 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2104 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2107 # Pass precious variables to config.status.
2108 if test "$ac_new_set" = set; then
2110 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2111 *) ac_arg=$ac_var=$ac_new_val ;;
2113 case " $ac_configure_args " in
2114 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2115 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2119 if $ac_cache_corrupted; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2124 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2126 ## -------------------- ##
2127 ## Main body of script. ##
2128 ## -------------------- ##
2131 ac_cpp='$CPP $CPPFLAGS'
2132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2141 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2142 for ac_t in install-sh install.sh shtool; do
2143 if test -f "$ac_dir/$ac_t"; then
2145 ac_install_sh="$ac_aux_dir/$ac_t -c"
2150 if test -z "$ac_aux_dir"; then
2151 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2154 # These three variables are undocumented and unsupported,
2155 # and are intended to be withdrawn in a future Autoconf release.
2156 # They can cause serious problems if a builder's source tree is in a directory
2157 # whose full name contains unusual characters.
2158 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2159 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2160 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2163 # Make sure we can run config.sub.
2164 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2165 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2168 $as_echo_n "checking build system type... " >&6; }
2169 if test "${ac_cv_build+set}" = set; then :
2170 $as_echo_n "(cached) " >&6
2172 ac_build_alias=$build_alias
2173 test "x$ac_build_alias" = x &&
2174 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2175 test "x$ac_build_alias" = x &&
2176 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2177 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2178 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2182 $as_echo "$ac_cv_build" >&6; }
2183 case $ac_cv_build in
2185 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2188 ac_save_IFS=$IFS; IFS='-'
2194 # Remember, the first character of IFS is used to create $*,
2195 # except with old shells:
2198 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2201 case ${build_alias} in
2202 "") build_noncanonical=${build} ;;
2203 *) build_noncanonical=${build_alias} ;;
2206 case ${host_alias} in
2207 "") host_noncanonical=${build_noncanonical} ;;
2208 *) host_noncanonical=${host_alias} ;;
2211 case ${target_alias} in
2212 "") target_noncanonical=${host_noncanonical} ;;
2213 *) target_noncanonical=${target_alias} ;;
2217 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2218 # have matching libraries, they should use host libraries: Makefile.tpl
2219 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2220 # However, they still use the build modules, because the corresponding
2221 # host modules (e.g. bison) are only built for the host when bootstrap
2223 # - build_subdir is where we find build modules, and never changes.
2224 # - build_libsubdir is where we find build libraries, and can be overridden.
2226 # Prefix 'build-' so this never conflicts with target_subdir.
2227 build_subdir="build-${build_noncanonical}"
2229 # Check whether --with-build-libsubdir was given.
2230 if test "${with_build_libsubdir+set}" = set; then :
2231 withval=$with_build_libsubdir; build_libsubdir="$withval"
2233 build_libsubdir="$build_subdir"
2236 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2237 if ( test $srcdir = . && test -d gcc ) \
2238 || test -d $srcdir/../host-${host_noncanonical}; then
2239 host_subdir="host-${host_noncanonical}"
2244 target_subdir=${target_noncanonical}
2246 am__api_version='1.11'
2248 # Find a good install program. We prefer a C program (faster),
2249 # so one script is as good as another. But avoid the broken or
2250 # incompatible versions:
2251 # SysV /etc/install, /usr/sbin/install
2252 # SunOS /usr/etc/install
2253 # IRIX /sbin/install
2255 # AmigaOS /C/install, which installs bootblocks on floppy discs
2256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259 # OS/2's system install, which has a completely different semantic
2260 # ./install, which can be erroneously created by make from ./install.sh.
2261 # Reject install programs that cannot install multiple files.
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2264 if test -z "$INSTALL"; then
2265 if test "${ac_cv_path_install+set}" = set; then :
2266 $as_echo_n "(cached) " >&6
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 # Account for people who put trailing slashes in PATH elements.
2274 case $as_dir/ in #((
2275 ./ | .// | /[cC]/* | \
2276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2277 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2280 # OSF1 and SCO ODT 3.0 have their own names for install.
2281 # Don't use installbsd from OSF since it installs stuff as root
2283 for ac_prog in ginstall scoinst install; do
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2286 if test $ac_prog = install &&
2287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2288 # AIX install. It has an incompatible calling convention.
2290 elif test $ac_prog = install &&
2291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2292 # program-specific install script used by HP pwplus--don't use.
2295 rm -rf conftest.one conftest.two conftest.dir
2296 echo one > conftest.one
2297 echo two > conftest.two
2299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2300 test -s conftest.one && test -s conftest.two &&
2301 test -s conftest.dir/conftest.one &&
2302 test -s conftest.dir/conftest.two
2304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317 rm -rf conftest.one conftest.two conftest.dir
2320 if test "${ac_cv_path_install+set}" = set; then
2321 INSTALL=$ac_cv_path_install
2323 # As a last resort, use the slow shell script. Don't cache a
2324 # value for INSTALL within a source directory, because that will
2325 # break other packages using the cache if that directory is
2326 # removed, or if the value is a relative name.
2327 INSTALL=$ac_install_sh
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2331 $as_echo "$INSTALL" >&6; }
2333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2334 # It thinks the first close brace ends the variable substitution.
2335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2339 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2342 $as_echo_n "checking whether build environment is sane... " >&6; }
2345 echo timestamp > conftest.file
2346 # Reject unsafe characters in $srcdir or the absolute working directory
2347 # name. Accept space and tab only in the latter.
2351 *[\\\"\#\$\&\'\`$am_lf]*)
2352 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2356 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2359 # Do `set' in a subshell so we don't clobber the current shell's
2360 # arguments. Must try -L first in case configure is actually a
2361 # symlink; some systems play weird games with the mod time of symlinks
2362 # (eg FreeBSD returns the mod time of the symlink's containing
2365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2366 if test "$*" = "X"; then
2368 set X `ls -t "$srcdir/configure" conftest.file`
2371 if test "$*" != "X $srcdir/configure conftest.file" \
2372 && test "$*" != "X conftest.file $srcdir/configure"; then
2374 # If neither matched, then we have a broken ls. This can happen
2375 # if, for instance, CONFIG_SHELL is bash and it inherits a
2376 # broken ls alias from the environment. This has actually
2377 # happened. Such a system could not be considered "sane".
2378 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" "$LINENO" 5
2382 test "$2" = conftest.file
2388 as_fn_error "newly created file is older than distributed files!
2389 Check your system clock" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2392 $as_echo "yes" >&6; }
2393 test "$program_prefix" != NONE &&
2394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2395 # Use a double $ so make ignores it.
2396 test "$program_suffix" != NONE &&
2397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2398 # Double any \ or $.
2399 # By default was `s,x,x', remove it if useless.
2400 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2401 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2403 # expand $ac_aux_dir to an absolute path
2404 am_aux_dir=`cd $ac_aux_dir && pwd`
2406 if test x"${MISSING+set}" != xset; then
2409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --run true"; then
2416 am_missing_run="$MISSING --run "
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2420 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2423 if test x"${install_sh}" != xset; then
2426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2428 install_sh="\${SHELL} $am_aux_dir/install-sh"
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'. However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2445 if test -n "$STRIP"; then
2446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2468 $as_echo "$STRIP" >&6; }
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471 $as_echo "no" >&6; }
2476 if test -z "$ac_cv_prog_STRIP"; then
2478 # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2483 $as_echo_n "(cached) " >&6
2485 if test -n "$ac_ct_STRIP"; then
2486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495 ac_cv_prog_ac_ct_STRIP="strip"
2496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2508 $as_echo "$ac_ct_STRIP" >&6; }
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2511 $as_echo "no" >&6; }
2514 if test "x$ac_ct_STRIP" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2526 STRIP="$ac_cv_prog_STRIP"
2530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2533 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2534 if test -z "$MKDIR_P"; then
2535 if test "${ac_cv_path_mkdir+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2542 test -z "$as_dir" && as_dir=.
2543 for ac_prog in mkdir gmkdir; do
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2547 'mkdir (GNU coreutils) '* | \
2548 'mkdir (coreutils) '* | \
2549 'mkdir (fileutils) '4.1*)
2550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2560 if test "${ac_cv_path_mkdir+set}" = set; then
2561 MKDIR_P="$ac_cv_path_mkdir -p"
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for MKDIR_P within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 test -d ./--version && rmdir ./--version
2568 MKDIR_P="$ac_install_sh -d"
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2572 $as_echo "$MKDIR_P" >&6; }
2576 [\\/$]* | ?:[\\/]*) ;;
2577 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2580 for ac_prog in gawk mawk nawk awk
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if test "${ac_cv_prog_AWK+set}" = set; then :
2587 $as_echo_n "(cached) " >&6
2589 if test -n "$AWK"; then
2590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_AWK="$ac_prog"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test -n "$AWK"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2612 $as_echo "$AWK" >&6; }
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2619 test -n "$AWK" && break
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2623 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2625 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2626 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2627 $as_echo_n "(cached) " >&6
2629 cat >conftest.make <<\_ACEOF
2632 @echo '@@@%%%=$(MAKE)=@@@%%%'
2634 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2635 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2637 eval ac_cv_prog_make_${ac_make}_set=yes;;
2639 eval ac_cv_prog_make_${ac_make}_set=no;;
2643 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2650 SET_MAKE="MAKE=${MAKE-make}"
2653 rm -rf .tst 2>/dev/null
2654 mkdir .tst 2>/dev/null
2655 if test -d .tst; then
2660 rmdir .tst 2>/dev/null
2662 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2663 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2664 # is not polluted with repeated "-I."
2665 am__isrc=' -I$(srcdir)'
2666 # test to see if srcdir already configured
2667 if test -f $srcdir/config.status; then
2668 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2672 # test whether we have cygpath
2673 if test -z "$CYGPATH_W"; then
2674 if (cygpath --version) >/dev/null 2>/dev/null; then
2675 CYGPATH_W='cygpath -w'
2682 # Define the identity of the package.
2683 PACKAGE='lto-plugin'
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE "$PACKAGE"
2692 cat >>confdefs.h <<_ACEOF
2693 #define VERSION "$VERSION"
2696 # Some tools Automake needs.
2698 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2701 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2704 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2707 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2710 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2712 # We need awk for the "check" target. The system "awk" is bad on
2714 # Always define AMTAR for backward compatibility.
2716 AMTAR=${AMTAR-"${am_missing_run}tar"}
2718 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2726 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2727 # Check whether --enable-maintainer-mode was given.
2728 if test "${enable_maintainer_mode+set}" = set; then :
2729 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2731 USE_MAINTAINER_MODE=no
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2735 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2736 if test $USE_MAINTAINER_MODE = yes; then
2737 MAINTAINER_MODE_TRUE=
2738 MAINTAINER_MODE_FALSE='#'
2740 MAINTAINER_MODE_TRUE='#'
2741 MAINTAINER_MODE_FALSE=
2744 MAINT=$MAINTAINER_MODE_TRUE
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2791 if test -z "$ac_cv_prog_CC"; then
2793 # Extract the first word of "gcc", so it can be a program name with args.
2794 set dummy gcc; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="gcc"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823 $as_echo "$ac_ct_CC" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2829 if test "x$ac_ct_CC" = x; then
2832 case $cross_compiling:$ac_tool_warned in
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836 ac_tool_warned=yes ;;
2844 if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}cc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2885 if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887 set dummy cc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 if test $ac_prog_rejected = yes; then
2917 # We found a bogon in the path, so make sure we never use it.
2918 set dummy $ac_cv_prog_CC
2920 if test $# != 0; then
2921 # We chose a different compiler from the bogus one.
2922 # However, it has the same basename, so the bogon will be chosen
2923 # first if we set CC to just the basename; use the full file name.
2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl.exe
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2982 test -n "$CC" && break
2985 if test -z "$CC"; then
2987 for ac_prog in cl.exe
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990 set dummy $ac_prog; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="$ac_prog"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3026 test -n "$ac_ct_CC" && break
3029 if test "x$ac_ct_CC" = x; then
3032 case $cross_compiling:$ac_tool_warned in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3045 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 as_fn_error "no acceptable C compiler found in \$PATH
3048 See \`config.log' for more details." "$LINENO" 5; }
3050 # Provide some information about the compiler.
3051 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3054 for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3064 if test -s conftest.err; then
3066 ... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3086 ac_clean_files_save=$ac_clean_files
3087 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3088 # Try to create an executable without -o first, disregard a.out.
3089 # It will help us diagnose broken compilers, and finding out an intuition
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092 $as_echo_n "checking for C compiler default output file name... " >&6; }
3093 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3095 # The possible output files:
3096 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099 for ac_file in $ac_files
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3108 if { { ac_try="$ac_link_default"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3122 # so that the user can short-circuit this test for compilers unknown to
3124 for ac_file in $ac_files ''
3126 test -f "$ac_file" || continue
3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3131 # We found the default executable, but exeext='' is most
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3149 test "$ac_cv_exeext" = no && ac_cv_exeext=
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 if test -z "$ac_file"; then :
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 { as_fn_set_status 77
3163 as_fn_error "C compiler cannot create executables
3164 See \`config.log' for more details." "$LINENO" 5; }; }
3166 ac_exeext=$ac_cv_exeext
3168 # Check that the compiler produces executables we can run. If not, either
3169 # the compiler is broken, or we cross compile.
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3171 $as_echo_n "checking whether the C compiler works... " >&6; }
3172 # If not cross compiling, check that we can run a simple program.
3173 if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
3187 if test "$cross_compiling" = maybe; then
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error "cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." "$LINENO" 5; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3201 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206 $as_echo_n "checking whether we are cross compiling... " >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208 $as_echo "$cross_compiling" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details." "$LINENO" 5; }
3242 rm -f conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250 $as_echo_n "checking for suffix of object files... " >&6; }
3251 if test "${ac_cv_objext+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3265 rm -f conftest.o conftest.obj
3266 if { { ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compile") 2>&5
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error "cannot compute suffix of object files: cannot compile
3292 See \`config.log' for more details." "$LINENO" 5; }
3294 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297 $as_echo "$ac_cv_objext" >&6; }
3298 OBJEXT=$ac_cv_objext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3301 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3319 if ac_fn_c_try_compile "$LINENO"; then :
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3329 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3330 if test $ac_compiler_gnu = yes; then
3335 ac_test_CFLAGS=${CFLAGS+set}
3336 ac_save_CFLAGS=$CFLAGS
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3338 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3339 if test "${ac_cv_prog_cc_g+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 ac_save_c_werror_flag=$ac_c_werror_flag
3343 ac_c_werror_flag=yes
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3357 if ac_fn_c_try_compile "$LINENO"; then :
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3372 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_c_werror_flag=$ac_save_c_werror_flag
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3388 if ac_fn_c_try_compile "$LINENO"; then :
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_c_werror_flag=$ac_save_c_werror_flag
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3399 $as_echo "$ac_cv_prog_cc_g" >&6; }
3400 if test "$ac_test_CFLAGS" = set; then
3401 CFLAGS=$ac_save_CFLAGS
3402 elif test $ac_cv_prog_cc_g = yes; then
3403 if test "$GCC" = yes; then
3409 if test "$GCC" = yes; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3416 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3417 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3420 ac_cv_prog_cc_c89=no
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3442 s = g (p, va_arg (v,int));
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 CC="$ac_save_CC $ac_arg"
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_c89=$ac_arg
3482 rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
3485 rm -f conftest.$ac_ext
3490 case "x$ac_cv_prog_cc_c89" in
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493 $as_echo "none needed" >&6; } ;;
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496 $as_echo "unsupported" >&6; } ;;
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3502 if test "x$ac_cv_prog_cc_c89" != xno; then :
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511 DEPDIR="${am__leading_dot}deps"
3513 ac_config_commands="$ac_config_commands depfiles"
3516 am_make=${MAKE-make}
3517 cat > confinc << 'END'
3519 @echo this is the am__doit target
3522 # If we don't find an include directive, just comment out the code.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3524 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3528 # First try GNU make style include.
3529 echo "include confinc" > confmf
3530 # Ignore all kinds of additional output from `make'.
3531 case `$am_make -s -f confmf 2> /dev/null` in #(
3532 *the\ am__doit\ target*)
3538 # Now try BSD make style include.
3539 if test "$am__include" = "#"; then
3540 echo '.include "confinc"' > confmf
3541 case `$am_make -s -f confmf 2> /dev/null` in #(
3542 *the\ am__doit\ target*)
3543 am__include=.include
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3552 $as_echo "$_am_result" >&6; }
3553 rm -f confinc confmf
3555 # Check whether --enable-dependency-tracking was given.
3556 if test "${enable_dependency_tracking+set}" = set; then :
3557 enableval=$enable_dependency_tracking;
3560 if test "x$enable_dependency_tracking" != xno; then
3561 am_depcomp="$ac_aux_dir/depcomp"
3564 if test "x$enable_dependency_tracking" != xno; then
3574 depcc="$CC" am_compiler_list=
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3577 $as_echo_n "checking dependency style of $depcc... " >&6; }
3578 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3582 # We make a subdir and do the tests there. Otherwise we can end up
3583 # making bogus files that we don't know about and never remove. For
3584 # instance it was reported that on HP-UX the gcc test will end up
3585 # making a dummy file named `D' -- because `-MD' means `put the output
3588 # Copy depcomp to subdir because otherwise we won't find it if we're
3589 # using a relative directory.
3590 cp "$am_depcomp" conftest.dir
3592 # We will build objects and dependencies in a subdirectory because
3593 # it helps to detect inapplicable dependency modes. For instance
3594 # both Tru64's cc and ICC support -MD to output dependencies as a
3595 # side effect of compilation, but ICC will put the dependencies in
3596 # the current directory while Tru64 will put them in the object
3600 am_cv_CC_dependencies_compiler_type=none
3601 if test "$am_compiler_list" = ""; then
3602 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3605 case " $depcc " in #(
3606 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3609 for depmode in $am_compiler_list; do
3610 # Setup a source with many dependencies, because some compilers
3611 # like to wrap large dependency lists on column 80 (with \), and
3612 # we should not choose a depcomp mode which is confused by this.
3614 # We need to recreate these files for each test, as the compiler may
3615 # overwrite some of them when testing with obscure command lines.
3616 # This happens at least with the AIX C compiler.
3618 for i in 1 2 3 4 5 6; do
3619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3620 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3621 # Solaris 8's {/usr,}/bin/sh.
3622 touch sub/conftst$i.h
3624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3626 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3627 # mode. It turns out that the SunPro C++ compiler does not properly
3628 # handle `-M -o', and we need to detect this. Also, some Intel
3629 # versions had trouble with output in subdirs
3630 am__obj=sub/conftest.${OBJEXT-o}
3631 am__minus_obj="-o $am__obj"
3634 # This depmode causes a compiler race in universal mode.
3635 test "$am__universal" = false || continue
3638 # after this tag, mechanisms are not by side-effect, so they'll
3639 # only be used when explicitly requested
3640 if test "x$enable_dependency_tracking" = xyes; then
3646 msvisualcpp | msvcmsys)
3647 # This compiler won't grok `-c -o', but also, the minuso test has
3648 # not run yet. These depmodes are late enough in the game, and
3649 # so weak that their functioning should not be impacted.
3650 am__obj=conftest.${OBJEXT-o}
3655 if depmode=$depmode \
3656 source=sub/conftest.c object=$am__obj \
3657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3659 >/dev/null 2>conftest.err &&
3660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3664 # icc doesn't choke on unknown options, it will just issue warnings
3665 # or remarks (even with -Werror). So we grep stderr for any message
3666 # that says an option was ignored or not supported.
3667 # When given -MP, icc 7.0 and 7.1 complain thusly:
3668 # icc: Command line warning: ignoring option '-M'; no argument required
3669 # The diagnosis changed in icc 8.0:
3670 # icc: Command line remark: option '-MP' not supported
3671 if (grep 'ignoring option' conftest.err ||
3672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3673 am_cv_CC_dependencies_compiler_type=$depmode
3682 am_cv_CC_dependencies_compiler_type=none
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3687 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3688 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3691 test "x$enable_dependency_tracking" != xno \
3692 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3694 am__fastdepCC_FALSE='#'
3696 am__fastdepCC_TRUE='#'
3697 am__fastdepCC_FALSE=
3702 # Check whether --enable-largefile was given.
3703 if test "${enable_largefile+set}" = set; then :
3704 enableval=$enable_largefile;
3707 if test "$enable_largefile" != no; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3710 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3711 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3714 ac_cv_sys_largefile_CC=no
3715 if test "$GCC" != yes; then
3718 # IRIX 6.2 and later do not support large files by default,
3719 # so use the C compiler's -n32 option if that helps.
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722 #include <sys/types.h>
3723 /* Check that off_t can represent 2**63 - 1 correctly.
3724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3725 since some C++ compilers masquerading as C compilers
3726 incorrectly reject 9223372036854775807. */
3727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3729 && LARGE_OFF_T % 2147483647 == 1)
3739 if ac_fn_c_try_compile "$LINENO"; then :
3742 rm -f core conftest.err conftest.$ac_objext
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_sys_largefile_CC=' -n32'; break
3747 rm -f core conftest.err conftest.$ac_objext
3751 rm -f conftest.$ac_ext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3755 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3756 if test "$ac_cv_sys_largefile_CC" != no; then
3757 CC=$CC$ac_cv_sys_largefile_CC
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3761 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3762 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <sys/types.h>
3769 /* Check that off_t can represent 2**63 - 1 correctly.
3770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3771 since some C++ compilers masquerading as C compilers
3772 incorrectly reject 9223372036854775807. */
3773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3775 && LARGE_OFF_T % 2147483647 == 1)
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_sys_file_offset_bits=no; break
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #define _FILE_OFFSET_BITS 64
3792 #include <sys/types.h>
3793 /* Check that off_t can represent 2**63 - 1 correctly.
3794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3795 since some C++ compilers masquerading as C compilers
3796 incorrectly reject 9223372036854775807. */
3797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3799 && LARGE_OFF_T % 2147483647 == 1)
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_sys_file_offset_bits=64; break
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_sys_file_offset_bits=unknown
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3818 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3819 case $ac_cv_sys_file_offset_bits in #(
3822 cat >>confdefs.h <<_ACEOF
3823 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3828 if test $ac_cv_sys_file_offset_bits = unknown; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3830 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3831 if test "${ac_cv_sys_large_files+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #include <sys/types.h>
3838 /* Check that off_t can represent 2**63 - 1 correctly.
3839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3840 since some C++ compilers masquerading as C compilers
3841 incorrectly reject 9223372036854775807. */
3842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3844 && LARGE_OFF_T % 2147483647 == 1)
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_cv_sys_large_files=no; break
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #define _LARGE_FILES 1
3861 #include <sys/types.h>
3862 /* Check that off_t can represent 2**63 - 1 correctly.
3863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3864 since some C++ compilers masquerading as C compilers
3865 incorrectly reject 9223372036854775807. */
3866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3868 && LARGE_OFF_T % 2147483647 == 1)
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_sys_large_files=1; break
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_sys_large_files=unknown
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3887 $as_echo "$ac_cv_sys_large_files" >&6; }
3888 case $ac_cv_sys_large_files in #(
3891 cat >>confdefs.h <<_ACEOF
3892 #define _LARGE_FILES $ac_cv_sys_large_files
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3905 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3910 macro_version='2.2.7a'
3911 macro_revision='1.3134'
3925 ltmain="$ac_aux_dir/ltmain.sh"
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3928 $as_echo_n "checking host system type... " >&6; }
3929 if test "${ac_cv_host+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3932 if test "x$host_alias" = x; then
3933 ac_cv_host=$ac_cv_build
3935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3936 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3941 $as_echo "$ac_cv_host" >&6; }
3944 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3947 ac_save_IFS=$IFS; IFS='-'
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3957 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3960 # Backslashify metacharacters that are still active within
3961 # double-quoted strings.
3962 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3964 # Same as above, but do not quote variable references.
3965 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3967 # Sed substitution to delay expansion of an escaped shell variable in a
3968 # double_quote_subst'ed string.
3969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3971 # Sed substitution to delay expansion of an escaped single quote.
3972 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3974 # Sed substitution to avoid accidental globbing in evaled expressions
3975 no_glob_subst='s/\*/\\\*/g'
3977 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3978 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3982 $as_echo_n "checking how to print strings... " >&6; }
3983 # Test print first, because it will be a builtin if present.
3984 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3985 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3987 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3990 # Use this function as a fallback that always works.
3991 func_fallback_echo ()
3993 eval 'cat <<_LTECHO_EOF
3997 ECHO='func_fallback_echo'
4000 # func_echo_all arg...
4001 # Invoke $ECHO with all args, space-separated.
4008 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4009 $as_echo "printf" >&6; } ;;
4010 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4011 $as_echo "print -r" >&6; } ;;
4012 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4013 $as_echo "cat" >&6; } ;;
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4030 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4031 if test "${ac_cv_path_SED+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4034 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4035 for ac_i in 1 2 3 4 5 6 7; do
4036 ac_script="$ac_script$as_nl$ac_script"
4038 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4039 { ac_script=; unset ac_script;}
4040 if test -z "$SED"; then
4041 ac_path_SED_found=false
4042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 test -z "$as_dir" && as_dir=.
4048 for ac_prog in sed gsed; do
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4051 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4052 # Check for GNU ac_path_SED and select it if it is found.
4053 # Check for GNU $ac_path_SED
4054 case `"$ac_path_SED" --version 2>&1` in
4056 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4059 $as_echo_n 0123456789 >"conftest.in"
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
4065 $as_echo '' >> "conftest.nl"
4066 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4068 as_fn_arith $ac_count + 1 && ac_count=$as_val
4069 if test $ac_count -gt ${ac_path_SED_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_SED="$ac_path_SED"
4072 ac_path_SED_max=$ac_count
4074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080 $ac_path_SED_found && break 3
4085 if test -z "$ac_cv_path_SED"; then
4086 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4094 $as_echo "$ac_cv_path_SED" >&6; }
4095 SED="$ac_cv_path_SED"
4098 test -z "$SED" && SED=sed
4099 Xsed="$SED -e 1s/^X//"
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4112 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4113 if test "${ac_cv_path_GREP+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4116 if test -z "$GREP"; then
4117 ac_path_GREP_found=false
4118 # Loop through the user's path and test for each of PROGNAME-LIST
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4123 test -z "$as_dir" && as_dir=.
4124 for ac_prog in grep ggrep; do
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4127 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4128 # Check for GNU ac_path_GREP and select it if it is found.
4129 # Check for GNU $ac_path_GREP
4130 case `"$ac_path_GREP" --version 2>&1` in
4132 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4135 $as_echo_n 0123456789 >"conftest.in"
4138 cat "conftest.in" "conftest.in" >"conftest.tmp"
4139 mv "conftest.tmp" "conftest.in"
4140 cp "conftest.in" "conftest.nl"
4141 $as_echo 'GREP' >> "conftest.nl"
4142 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4144 as_fn_arith $ac_count + 1 && ac_count=$as_val
4145 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4146 # Best one so far, save it but keep looking for a better one
4147 ac_cv_path_GREP="$ac_path_GREP"
4148 ac_path_GREP_max=$ac_count
4150 # 10*(2^10) chars as input seems more than enough
4151 test $ac_count -gt 10 && break
4153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4156 $ac_path_GREP_found && break 3
4161 if test -z "$ac_cv_path_GREP"; then
4162 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4165 ac_cv_path_GREP=$GREP
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4170 $as_echo "$ac_cv_path_GREP" >&6; }
4171 GREP="$ac_cv_path_GREP"
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4175 $as_echo_n "checking for egrep... " >&6; }
4176 if test "${ac_cv_path_EGREP+set}" = set; then :
4177 $as_echo_n "(cached) " >&6
4179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4180 then ac_cv_path_EGREP="$GREP -E"
4182 if test -z "$EGREP"; then
4183 ac_path_EGREP_found=false
4184 # Loop through the user's path and test for each of PROGNAME-LIST
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189 test -z "$as_dir" && as_dir=.
4190 for ac_prog in egrep; do
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4193 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4194 # Check for GNU ac_path_EGREP and select it if it is found.
4195 # Check for GNU $ac_path_EGREP
4196 case `"$ac_path_EGREP" --version 2>&1` in
4198 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4201 $as_echo_n 0123456789 >"conftest.in"
4204 cat "conftest.in" "conftest.in" >"conftest.tmp"
4205 mv "conftest.tmp" "conftest.in"
4206 cp "conftest.in" "conftest.nl"
4207 $as_echo 'EGREP' >> "conftest.nl"
4208 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4210 as_fn_arith $ac_count + 1 && ac_count=$as_val
4211 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4212 # Best one so far, save it but keep looking for a better one
4213 ac_cv_path_EGREP="$ac_path_EGREP"
4214 ac_path_EGREP_max=$ac_count
4216 # 10*(2^10) chars as input seems more than enough
4217 test $ac_count -gt 10 && break
4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222 $ac_path_EGREP_found && break 3
4227 if test -z "$ac_cv_path_EGREP"; then
4228 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4231 ac_cv_path_EGREP=$EGREP
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4237 $as_echo "$ac_cv_path_EGREP" >&6; }
4238 EGREP="$ac_cv_path_EGREP"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4242 $as_echo_n "checking for fgrep... " >&6; }
4243 if test "${ac_cv_path_FGREP+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4247 then ac_cv_path_FGREP="$GREP -F"
4249 if test -z "$FGREP"; then
4250 ac_path_FGREP_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in fgrep; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4261 # Check for GNU ac_path_FGREP and select it if it is found.
4262 # Check for GNU $ac_path_FGREP
4263 case `"$ac_path_FGREP" --version 2>&1` in
4265 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4268 $as_echo_n 0123456789 >"conftest.in"
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo 'FGREP' >> "conftest.nl"
4275 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 as_fn_arith $ac_count + 1 && ac_count=$as_val
4278 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_FGREP="$ac_path_FGREP"
4281 ac_path_FGREP_max=$ac_count
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 $ac_path_FGREP_found && break 3
4294 if test -z "$ac_cv_path_FGREP"; then
4295 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 ac_cv_path_FGREP=$FGREP
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4304 $as_echo "$ac_cv_path_FGREP" >&6; }
4305 FGREP="$ac_cv_path_FGREP"
4308 test -z "$GREP" && GREP=grep
4328 # Check whether --with-gnu-ld was given.
4329 if test "${with_gnu_ld+set}" = set; then :
4330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4336 if test "$GCC" = yes; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4339 $as_echo_n "checking for ld used by $CC... " >&6; }
4342 # gcc leaves a trailing carriage return which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4348 # Accept absolute paths.
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4356 test -z "$LD" && LD="$ac_prog"
4359 # If it fails, then pretend we aren't using GCC.
4363 # If it is relative, then search for the first ld in PATH.
4367 elif test "$with_gnu_ld" = yes; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4369 $as_echo_n "checking for GNU ld... " >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4372 $as_echo_n "checking for non-GNU ld... " >&6; }
4374 if test "${lt_cv_path_LD+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -z "$LD"; then
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH; do
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4383 lt_cv_path_LD="$ac_dir/$ac_prog"
4384 # Check to see if the program is GNU ld. I'd rather use --version,
4385 # but apparently some variants of GNU ld only accept -v.
4386 # Break only if it was the GNU/non-GNU ld that we prefer.
4387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 test "$with_gnu_ld" != no && break
4392 test "$with_gnu_ld" != yes && break
4399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4404 if test -n "$LD"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4406 $as_echo "$LD" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4411 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4414 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4418 case `$LD -v 2>&1 </dev/null` in
4419 *GNU* | *'with BFD'*)
4420 lt_cv_prog_gnu_ld=yes
4423 lt_cv_prog_gnu_ld=no
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4428 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4429 with_gnu_ld=$lt_cv_prog_gnu_ld
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4440 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4441 if test "${lt_cv_path_NM+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$NM"; then
4445 # Let the user override the test.
4448 lt_nm_to_check="${ac_tool_prefix}nm"
4449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4450 lt_nm_to_check="$lt_nm_to_check nm"
4452 for lt_tmp_nm in $lt_nm_to_check; do
4453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4456 test -z "$ac_dir" && ac_dir=.
4457 tmp_nm="$ac_dir/$lt_tmp_nm"
4458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4459 # Check to see if the nm accepts a BSD-compat flag.
4460 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4461 # nm: unknown option "B" ignored
4462 # Tru64's nm complains that /dev/null is an invalid object file
4463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4464 */dev/null* | *'Invalid file or object type'*)
4465 lt_cv_path_NM="$tmp_nm -B"
4469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4471 lt_cv_path_NM="$tmp_nm -p"
4475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4476 continue # so that we can try to find one that supports BSD flags
4485 : ${lt_cv_path_NM=no}
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4489 $as_echo "$lt_cv_path_NM" >&6; }
4490 if test "$lt_cv_path_NM" != "no"; then
4493 # Didn't find any BSD compatible name lister, look for dumpbin.
4494 if test -n "$DUMPBIN"; then :
4495 # Let the user override the test.
4497 if test -n "$ac_tool_prefix"; then
4498 for ac_prog in dumpbin "link -dump"
4500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -n "$DUMPBIN"; then
4508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 DUMPBIN=$ac_cv_prog_DUMPBIN
4528 if test -n "$DUMPBIN"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4530 $as_echo "$DUMPBIN" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$DUMPBIN" && break
4540 if test -z "$DUMPBIN"; then
4541 ac_ct_DUMPBIN=$DUMPBIN
4542 for ac_prog in dumpbin "link -dump"
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$ac_ct_DUMPBIN"; then
4552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4572 if test -n "$ac_ct_DUMPBIN"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4574 $as_echo "$ac_ct_DUMPBIN" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4581 test -n "$ac_ct_DUMPBIN" && break
4584 if test "x$ac_ct_DUMPBIN" = x; then
4587 case $cross_compiling:$ac_tool_warned in
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4591 ac_tool_warned=yes ;;
4593 DUMPBIN=$ac_ct_DUMPBIN
4597 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4599 DUMPBIN="$DUMPBIN -symbols"
4607 if test "$DUMPBIN" != ":"; then
4611 test -z "$NM" && NM=nm
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4619 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4620 if test "${lt_cv_nm_interface+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 lt_cv_nm_interface="BSD nm"
4624 echo "int some_variable = 0;" > conftest.$ac_ext
4625 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4626 (eval "$ac_compile" 2>conftest.err)
4627 cat conftest.err >&5
4628 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4630 cat conftest.err >&5
4631 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4632 cat conftest.out >&5
4633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4634 lt_cv_nm_interface="MS dumpbin"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4639 $as_echo "$lt_cv_nm_interface" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4642 $as_echo_n "checking whether ln -s works... " >&6; }
4644 if test "$LN_S" = "ln -s"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 $as_echo "yes" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4649 $as_echo "no, using $LN_S" >&6; }
4652 # find the maximum length of command line arguments
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4654 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4655 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4663 # On DJGPP, this test can blow up pretty badly due to problems in libc
4664 # (any single argument exceeding 2000 bytes causes a buffer overrun
4665 # during glob expansion). Even if it were fixed, the result of this
4666 # check would be larger than it should be.
4667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4671 # Under GNU Hurd, this test is not required because there is
4672 # no limit to the length of command line arguments.
4673 # Libtool will interpret -1 as no limit whatsoever
4674 lt_cv_sys_max_cmd_len=-1;
4677 cygwin* | mingw* | cegcc*)
4678 # On Win9x/ME, this test blows up -- it succeeds, but takes
4679 # about 5 minutes as the teststring grows exponentially.
4680 # Worse, since 9x/ME are not pre-emptively multitasking,
4681 # you end up with a "frozen" computer, even though with patience
4682 # the test eventually succeeds (with a max line length of 256k).
4683 # Instead, let's just punt: use the minimum linelength reported by
4684 # all of the supported platforms: 8192 (on NT/2K/XP).
4685 lt_cv_sys_max_cmd_len=8192;
4689 # On MiNT this can take a long time and run out of memory.
4690 lt_cv_sys_max_cmd_len=8192;
4694 # On AmigaOS with pdksh, this test takes hours, literally.
4695 # So we just punt and use a minimum line length of 8192.
4696 lt_cv_sys_max_cmd_len=8192;
4699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4700 # This has been around since 386BSD, at least. Likely further.
4701 if test -x /sbin/sysctl; then
4702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4703 elif test -x /usr/sbin/sysctl; then
4704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4708 # And add a safety zone
4709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4714 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4715 lt_cv_sys_max_cmd_len=196608
4719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4721 # nice to cause kernel panics so lets avoid the loop below.
4722 # First set a reasonable default.
4723 lt_cv_sys_max_cmd_len=16384
4725 if test -x /sbin/sysconfig; then
4726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4727 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4732 lt_cv_sys_max_cmd_len=102400
4734 sysv5* | sco5v6* | sysv4.2uw2*)
4735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4736 if test -n "$kargmax"; then
4737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4739 lt_cv_sys_max_cmd_len=32768
4743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4744 if test -n "$lt_cv_sys_max_cmd_len"; then
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4748 # Make teststring a little bigger before we do anything with it.
4749 # a 1K string should be a reasonable start.
4750 for i in 1 2 3 4 5 6 7 8 ; do
4751 teststring=$teststring$teststring
4753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4754 # If test is not a shell built-in, we'll probably end up computing a
4755 # maximum length that is only half of the actual maximum length, but
4757 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4759 test $i != 17 # 1/2 MB should be enough
4762 teststring=$teststring$teststring
4764 # Only check the string length outside the loop.
4765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4767 # Add a significant safety factor because C++ compilers can tack on
4768 # massive amounts of additional arguments before passing them to the
4769 # linker. It appears as though 1/2 is a usable value.
4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4777 if test -n $lt_cv_sys_max_cmd_len ; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4779 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4782 $as_echo "none" >&6; }
4784 max_cmd_len=$lt_cv_sys_max_cmd_len
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4796 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4797 # Try some XSI features
4800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4802 && eval 'test $(( 1 + 1 )) -eq 2 \
4803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4806 $as_echo "$xsi_shell" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4810 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4812 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4814 && lt_shell_append=yes
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4816 $as_echo "$lt_shell_append" >&6; }
4819 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4829 # test EBCDIC or ASCII
4830 case `echo X|tr X '\101'` in
4831 A) # ASCII based system
4832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4833 lt_SP2NL='tr \040 \012'
4834 lt_NL2SP='tr \015\012 \040\040'
4836 *) # EBCDIC based system
4837 lt_SP2NL='tr \100 \n'
4838 lt_NL2SP='tr \r\n \100\100'
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4851 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4852 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 lt_cv_ld_reload_flag='-r'
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4858 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4859 reload_flag=$lt_cv_ld_reload_flag
4860 case $reload_flag in
4862 *) reload_flag=" $reload_flag" ;;
4864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4867 if test "$GCC" = yes; then
4868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 if test -n "$OBJDUMP"; then
4892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 OBJDUMP=$ac_cv_prog_OBJDUMP
4912 if test -n "$OBJDUMP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4914 $as_echo "$OBJDUMP" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4922 if test -z "$ac_cv_prog_OBJDUMP"; then
4923 ac_ct_OBJDUMP=$OBJDUMP
4924 # Extract the first word of "objdump", so it can be a program name with args.
4925 set dummy objdump; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4931 if test -n "$ac_ct_OBJDUMP"; then
4932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4952 if test -n "$ac_ct_OBJDUMP"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4954 $as_echo "$ac_ct_OBJDUMP" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4960 if test "x$ac_ct_OBJDUMP" = x; then
4963 case $cross_compiling:$ac_tool_warned in
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4969 OBJDUMP=$ac_ct_OBJDUMP
4972 OBJDUMP="$ac_cv_prog_OBJDUMP"
4975 test -z "$OBJDUMP" && OBJDUMP=objdump
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4987 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4990 lt_cv_file_magic_cmd='$MAGIC_CMD'
4991 lt_cv_file_magic_test_file=
4992 lt_cv_deplibs_check_method='unknown'
4993 # Need to set the preceding variable on all platforms that support
4994 # interlibrary dependencies.
4995 # 'none' -- dependencies not supported.
4996 # `unknown' -- same as none, but documents that we really don't know.
4997 # 'pass_all' -- all dependencies passed with no checks.
4998 # 'test_compile' -- check by making test program.
4999 # 'file_magic [[regex]]' -- check by looking for files in library path
5000 # which responds to the $file_magic_cmd with a given extended regex.
5001 # If you have `file' or equivalent on your system and you're not sure
5002 # whether `pass_all' will *always* work, you probably want this one.
5006 lt_cv_deplibs_check_method=pass_all
5010 lt_cv_deplibs_check_method=pass_all
5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5015 lt_cv_file_magic_cmd='/usr/bin/file -L'
5016 lt_cv_file_magic_test_file=/shlib/libc.so
5020 # func_win32_libid is a shell function defined in ltmain.sh
5021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5022 lt_cv_file_magic_cmd='func_win32_libid'
5026 # Base MSYS/MinGW do not provide the 'file' command needed by
5027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5028 # unless we find 'file', for example because we are cross-compiling.
5029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032 lt_cv_file_magic_cmd='func_win32_libid'
5034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5035 lt_cv_file_magic_cmd='$OBJDUMP -f'
5040 # use the weaker test based on 'objdump'. See mingw*.
5041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5042 lt_cv_file_magic_cmd='$OBJDUMP -f'
5045 darwin* | rhapsody*)
5046 lt_cv_deplibs_check_method=pass_all
5049 freebsd* | dragonfly*)
5050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5053 # Not sure whether the presence of OpenBSD here was a mistake.
5054 # Let's accept both of them until this is cleared up.
5055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5056 lt_cv_file_magic_cmd=/usr/bin/file
5057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5061 lt_cv_deplibs_check_method=pass_all
5066 lt_cv_deplibs_check_method=pass_all
5070 lt_cv_deplibs_check_method=pass_all
5073 hpux10.20* | hpux11*)
5074 lt_cv_file_magic_cmd=/usr/bin/file
5077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5081 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]'
5082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5092 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5096 irix5* | irix6* | nonstopux*)
5098 *-32|*"-32 ") libmagic=32-bit;;
5099 *-n32|*"-n32 ") libmagic=N32;;
5100 *-64|*"-64 ") libmagic=64-bit;;
5101 *) libmagic=never-match;;
5103 lt_cv_deplibs_check_method=pass_all
5106 # This must be Linux ELF.
5107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5108 lt_cv_deplibs_check_method=pass_all
5112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5121 lt_cv_file_magic_cmd=/usr/bin/file
5122 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5126 lt_cv_deplibs_check_method=pass_all
5130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5137 osf3* | osf4* | osf5*)
5138 lt_cv_deplibs_check_method=pass_all
5142 lt_cv_deplibs_check_method=pass_all
5146 lt_cv_deplibs_check_method=pass_all
5149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5150 lt_cv_deplibs_check_method=pass_all
5154 case $host_vendor in
5156 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]'
5157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5160 lt_cv_deplibs_check_method=pass_all
5163 lt_cv_file_magic_cmd='/bin/file'
5164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5167 lt_cv_file_magic_cmd='/bin/file'
5168 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5169 lt_cv_file_magic_test_file=/lib/libc.so
5172 lt_cv_deplibs_check_method=pass_all
5175 lt_cv_deplibs_check_method=pass_all
5181 lt_cv_deplibs_check_method=pass_all
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5188 file_magic_cmd=$lt_cv_file_magic_cmd
5189 deplibs_check_method=$lt_cv_deplibs_check_method
5190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5203 if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5205 set dummy ${ac_tool_prefix}ar; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_AR+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5211 if test -n "$AR"; then
5212 ac_cv_prog_AR="$AR" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_AR="${ac_tool_prefix}ar"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 if test -n "$AR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5234 $as_echo "$AR" >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5242 if test -z "$ac_cv_prog_AR"; then
5244 # Extract the first word of "ar", so it can be a program name with args.
5245 set dummy ar; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5251 if test -n "$ac_ct_AR"; then
5252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_ac_ct_AR="ar"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5272 if test -n "$ac_ct_AR"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5274 $as_echo "$ac_ct_AR" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5280 if test "x$ac_ct_AR" = x; then
5283 case $cross_compiling:$ac_tool_warned in
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287 ac_tool_warned=yes ;;
5295 test -z "$AR" && AR=ar
5296 test -z "$AR_FLAGS" && AR_FLAGS=cru
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}strip; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_STRIP+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$STRIP"; then
5317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 STRIP=$ac_cv_prog_STRIP
5337 if test -n "$STRIP"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5339 $as_echo "$STRIP" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5347 if test -z "$ac_cv_prog_STRIP"; then
5349 # Extract the first word of "strip", so it can be a program name with args.
5350 set dummy strip; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5356 if test -n "$ac_ct_STRIP"; then
5357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_ac_ct_STRIP="strip"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5377 if test -n "$ac_ct_STRIP"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5379 $as_echo "$ac_ct_STRIP" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5385 if test "x$ac_ct_STRIP" = x; then
5388 case $cross_compiling:$ac_tool_warned in
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5397 STRIP="$ac_cv_prog_STRIP"
5400 test -z "$STRIP" && STRIP=:
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5415 if test -n "$RANLIB"; then
5416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 RANLIB=$ac_cv_prog_RANLIB
5436 if test -n "$RANLIB"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5438 $as_echo "$RANLIB" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5446 if test -z "$ac_cv_prog_RANLIB"; then
5447 ac_ct_RANLIB=$RANLIB
5448 # Extract the first word of "ranlib", so it can be a program name with args.
5449 set dummy ranlib; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5455 if test -n "$ac_ct_RANLIB"; then
5456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_ac_ct_RANLIB="ranlib"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5476 if test -n "$ac_ct_RANLIB"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5478 $as_echo "$ac_ct_RANLIB" >&6; }
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5484 if test "x$ac_ct_RANLIB" = x; then
5487 case $cross_compiling:$ac_tool_warned in
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491 ac_tool_warned=yes ;;
5493 RANLIB=$ac_ct_RANLIB
5496 RANLIB="$ac_cv_prog_RANLIB"
5499 test -z "$RANLIB" && RANLIB=:
5506 # Determine commands to create old-style static archives.
5507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5508 old_postinstall_cmds='chmod 644 $oldlib'
5509 old_postuninstall_cmds=
5511 if test -n "$RANLIB"; then
5514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5525 lock_old_archive_extraction=yes ;;
5527 lock_old_archive_extraction=no ;;
5568 # If no C compiler was specified, use CC.
5571 # If no C compiler flags were specified, use CFLAGS.
5572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5574 # Allow CC to be a program name with arguments.
5578 # Check for command to grab the raw symbol name followed by C symbol from nm.
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5585 # These are sane defaults that work on at least a few old systems.
5586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5588 # Character class describing NM global symbol codes.
5589 symcode='[BCDEGRST]'
5591 # Regexp to match symbols that can be accessed directly from C.
5592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5594 # Define system-specific variables.
5599 cygwin* | mingw* | pw32* | cegcc*)
5600 symcode='[ABCDGISTW]'
5603 if test "$host_cpu" = ia64; then
5604 symcode='[ABCDEGRST]'
5608 symcode='[BCDEGRST]'
5611 symcode='[BCDEGQRST]'
5622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5630 # If we're using GNU nm, then use its standard symbol codes.
5631 case `$NM -V 2>&1` in
5632 *GNU* | *'with BFD'*)
5633 symcode='[ABCDGIRSTW]' ;;
5636 # Transform an extracted symbol line into a proper C declaration.
5637 # Some systems (esp. on ia64) link data and code symbols differently,
5638 # so use this general approach.
5639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5641 # Transform an extracted symbol line into symbol name and symbol address
5642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5643 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'"
5645 # Handle CRLF in mingw tool chain
5649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5653 # Try without a prefix underscore, then with it.
5654 for ac_symprfx in "" "_"; do
5656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5657 symxfrm="\\1 $ac_symprfx\\2 \\2"
5659 # Write the raw and C identifiers.
5660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5661 # Fake it for dumpbin and say T for any non-static function
5662 # and D for any global variable.
5663 # Also find C++ and __fastcall symbols from MSVC++,
5664 # which start with @ or ?.
5665 lt_cv_sys_global_symbol_pipe="$AWK '"\
5666 " {last_section=section; section=\$ 3};"\
5667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5668 " \$ 0!~/External *\|/{next};"\
5669 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5670 " {if(hide[section]) next};"\
5671 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5672 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5673 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5674 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5675 " ' prfx=^$ac_symprfx"
5677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5680 # Check to see that the pipe works correctly.
5684 cat > conftest.$ac_ext <<_LT_EOF
5689 void nm_test_func(void);
5690 void nm_test_func(void){}
5694 int main(){nm_test_var='a';nm_test_func();return(0);}
5697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5698 (eval $ac_compile) 2>&5
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; then
5702 # Now try to grab the symbols.
5704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; } && test -s "$nlist"; then
5709 # Try sorting and uniquifying the output.
5710 if sort "$nlist" | uniq > "$nlist"T; then
5711 mv -f "$nlist"T "$nlist"
5716 # Make sure that we snagged all the symbols we need.
5717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5719 cat <<_LT_EOF > conftest.$ac_ext
5725 # Now generate the symbol file.
5726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5728 cat <<_LT_EOF >> conftest.$ac_ext
5730 /* The mapping between symbol names and symbols. */
5735 lt__PROGRAM__LTX_preloaded_symbols[] =
5737 { "@PROGRAM@", (void *) 0 },
5739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5740 cat <<\_LT_EOF >> conftest.$ac_ext
5744 /* This works around a problem in FreeBSD linker */
5745 #ifdef FREEBSD_WORKAROUND
5746 static const void *lt_preloaded_setup() {
5747 return lt__PROGRAM__LTX_preloaded_symbols;
5755 # Now try linking the two files.
5756 mv conftest.$ac_objext conftstm.$ac_objext
5757 lt_save_LIBS="$LIBS"
5758 lt_save_CFLAGS="$CFLAGS"
5759 LIBS="conftstm.$ac_objext"
5760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5762 (eval $ac_link) 2>&5
5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5768 LIBS="$lt_save_LIBS"
5769 CFLAGS="$lt_save_CFLAGS"
5771 echo "cannot find nm_test_func in $nlist" >&5
5774 echo "cannot find nm_test_var in $nlist" >&5
5777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5780 echo "$progname: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5783 rm -rf conftest* conftst*
5785 # Do not use the global_symbol_pipe unless it works.
5786 if test "$pipe_works" = yes; then
5789 lt_cv_sys_global_symbol_pipe=
5795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5796 lt_cv_sys_global_symbol_to_cdecl=
5798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5800 $as_echo "failed" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5803 $as_echo "ok" >&6; }
5827 # Check whether --enable-libtool-lock was given.
5828 if test "${enable_libtool_lock+set}" = set; then :
5829 enableval=$enable_libtool_lock;
5832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5834 # Some flags need to be propagated to the compiler or linker for good
5838 # Find out which ABI we are using.
5839 echo 'int i;' > conftest.$ac_ext
5840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5841 (eval $ac_compile) 2>&5
5843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5844 test $ac_status = 0; }; then
5845 case `/usr/bin/file conftest.$ac_objext` in
5857 # Find out which ABI we are using.
5858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5860 (eval $ac_compile) 2>&5
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; }; then
5864 if test "$lt_cv_prog_gnu_ld" = yes; then
5865 case `/usr/bin/file conftest.$ac_objext` in
5867 LD="${LD-ld} -melf32bsmip"
5870 LD="${LD-ld} -melf32bmipn32"
5873 LD="${LD-ld} -melf64bmip"
5877 case `/usr/bin/file conftest.$ac_objext` in
5893 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5894 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5895 # Find out which ABI we are using.
5896 echo 'int i;' > conftest.$ac_ext
5897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898 (eval $ac_compile) 2>&5
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }; then
5902 case `/usr/bin/file conftest.o` in
5905 x86_64-*kfreebsd*-gnu)
5906 LD="${LD-ld} -m elf_i386_fbsd"
5909 LD="${LD-ld} -m elf_i386"
5911 ppc64-*linux*|powerpc64-*linux*)
5912 LD="${LD-ld} -m elf32ppclinux"
5915 LD="${LD-ld} -m elf_s390"
5918 LD="${LD-ld} -m elf32_sparc"
5924 x86_64-*kfreebsd*-gnu)
5925 LD="${LD-ld} -m elf_x86_64_fbsd"
5928 LD="${LD-ld} -m elf_x86_64"
5930 ppc*-*linux*|powerpc*-*linux*)
5931 LD="${LD-ld} -m elf64ppc"
5933 s390*-*linux*|s390*-*tpf*)
5934 LD="${LD-ld} -m elf64_s390"
5937 LD="${LD-ld} -m elf64_sparc"
5947 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5948 SAVE_CFLAGS="$CFLAGS"
5949 CFLAGS="$CFLAGS -belf"
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5951 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5952 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5956 ac_cpp='$CPP $CPPFLAGS'
5957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5972 if ac_fn_c_try_link "$LINENO"; then :
5973 lt_cv_cc_needs_belf=yes
5975 lt_cv_cc_needs_belf=no
5977 rm -f core conftest.err conftest.$ac_objext \
5978 conftest$ac_exeext conftest.$ac_ext
5980 ac_cpp='$CPP $CPPFLAGS'
5981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5987 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5988 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5989 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5990 CFLAGS="$SAVE_CFLAGS"
5994 # Find out which ABI we are using.
5995 echo 'int i;' > conftest.$ac_ext
5996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5997 (eval $ac_compile) 2>&5
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }; then
6001 case `/usr/bin/file conftest.o` in
6003 case $lt_cv_prog_gnu_ld in
6004 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6006 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6018 need_locks="$enable_libtool_lock"
6022 rhapsody* | darwin*)
6023 if test -n "$ac_tool_prefix"; then
6024 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6025 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
6031 if test -n "$DSYMUTIL"; then
6032 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 test -z "$as_dir" && as_dir=.
6039 for ac_exec_ext in '' $ac_executable_extensions; do
6040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6052 if test -n "$DSYMUTIL"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6054 $as_echo "$DSYMUTIL" >&6; }
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6062 if test -z "$ac_cv_prog_DSYMUTIL"; then
6063 ac_ct_DSYMUTIL=$DSYMUTIL
6064 # Extract the first word of "dsymutil", so it can be a program name with args.
6065 set dummy dsymutil; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6069 $as_echo_n "(cached) " >&6
6071 if test -n "$ac_ct_DSYMUTIL"; then
6072 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6092 if test -n "$ac_ct_DSYMUTIL"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6094 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6100 if test "x$ac_ct_DSYMUTIL" = x; then
6103 case $cross_compiling:$ac_tool_warned in
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107 ac_tool_warned=yes ;;
6109 DSYMUTIL=$ac_ct_DSYMUTIL
6112 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6123 if test -n "$NMEDIT"; then
6124 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6143 NMEDIT=$ac_cv_prog_NMEDIT
6144 if test -n "$NMEDIT"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6146 $as_echo "$NMEDIT" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6154 if test -z "$ac_cv_prog_NMEDIT"; then
6155 ac_ct_NMEDIT=$NMEDIT
6156 # Extract the first word of "nmedit", so it can be a program name with args.
6157 set dummy nmedit; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6163 if test -n "$ac_ct_NMEDIT"; then
6164 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6173 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6184 if test -n "$ac_ct_NMEDIT"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6186 $as_echo "$ac_ct_NMEDIT" >&6; }
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6192 if test "x$ac_ct_NMEDIT" = x; then
6195 case $cross_compiling:$ac_tool_warned in
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6201 NMEDIT=$ac_ct_NMEDIT
6204 NMEDIT="$ac_cv_prog_NMEDIT"
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_LIPO+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$LIPO"; then
6216 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6235 LIPO=$ac_cv_prog_LIPO
6236 if test -n "$LIPO"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6238 $as_echo "$LIPO" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6246 if test -z "$ac_cv_prog_LIPO"; then
6248 # Extract the first word of "lipo", so it can be a program name with args.
6249 set dummy lipo; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6255 if test -n "$ac_ct_LIPO"; then
6256 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_LIPO="lipo"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6276 if test -n "$ac_ct_LIPO"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6278 $as_echo "$ac_ct_LIPO" >&6; }
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6284 if test "x$ac_ct_LIPO" = x; then
6287 case $cross_compiling:$ac_tool_warned in
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6296 LIPO="$ac_cv_prog_LIPO"
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}otool; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6307 if test -n "$OTOOL"; then
6308 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 OTOOL=$ac_cv_prog_OTOOL
6328 if test -n "$OTOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6330 $as_echo "$OTOOL" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_OTOOL"; then
6340 # Extract the first word of "otool", so it can be a program name with args.
6341 set dummy otool; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 if test -n "$ac_ct_OTOOL"; then
6348 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_ac_ct_OTOOL="otool"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6368 if test -n "$ac_ct_OTOOL"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6370 $as_echo "$ac_ct_OTOOL" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_OTOOL" = x; then
6379 case $cross_compiling:$ac_tool_warned in
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6388 OTOOL="$ac_cv_prog_OTOOL"
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6399 if test -n "$OTOOL64"; then
6400 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 OTOOL64=$ac_cv_prog_OTOOL64
6420 if test -n "$OTOOL64"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6422 $as_echo "$OTOOL64" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6430 if test -z "$ac_cv_prog_OTOOL64"; then
6431 ac_ct_OTOOL64=$OTOOL64
6432 # Extract the first word of "otool64", so it can be a program name with args.
6433 set dummy otool64; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6439 if test -n "$ac_ct_OTOOL64"; then
6440 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_OTOOL64="otool64"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6460 if test -n "$ac_ct_OTOOL64"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6462 $as_echo "$ac_ct_OTOOL64" >&6; }
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6468 if test "x$ac_ct_OTOOL64" = x; then
6471 case $cross_compiling:$ac_tool_warned in
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6477 OTOOL64=$ac_ct_OTOOL64
6480 OTOOL64="$ac_cv_prog_OTOOL64"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6510 $as_echo_n "checking for -single_module linker flag... " >&6; }
6511 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6514 lt_cv_apple_cc_single_mod=no
6515 if test -z "${LT_MULTI_MODULE}"; then
6516 # By default we will add the -single_module flag. You can override
6517 # by either setting the environment variable LT_MULTI_MODULE
6518 # non-empty at configure time, or by adding -multi_module to the
6520 rm -rf libconftest.dylib*
6521 echo "int foo(void){return 1;}" > conftest.c
6522 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6523 -dynamiclib -Wl,-single_module conftest.c" >&5
6524 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6525 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6527 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6528 lt_cv_apple_cc_single_mod=yes
6530 cat conftest.err >&5
6532 rm -rf libconftest.dylib*
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6537 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6539 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6540 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6541 $as_echo_n "(cached) " >&6
6543 lt_cv_ld_exported_symbols_list=no
6544 save_LDFLAGS=$LDFLAGS
6545 echo "_main" > conftest.sym
6546 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6558 if ac_fn_c_try_link "$LINENO"; then :
6559 lt_cv_ld_exported_symbols_list=yes
6561 lt_cv_ld_exported_symbols_list=no
6563 rm -f core conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565 LDFLAGS="$save_LDFLAGS"
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6569 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6571 $as_echo_n "checking for -force_load linker flag... " >&6; }
6572 if test "${lt_cv_ld_force_load+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6575 lt_cv_ld_force_load=no
6576 cat > conftest.c << _LT_EOF
6577 int forced_loaded() { return 2;}
6579 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6580 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6581 echo "$AR cru libconftest.a conftest.o" >&5
6582 $AR cru libconftest.a conftest.o 2>&5
6583 cat > conftest.c << _LT_EOF
6584 int main() { return 0;}
6586 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6587 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6589 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6590 lt_cv_ld_force_load=yes
6592 cat conftest.err >&5
6594 rm -f conftest.err libconftest.a conftest conftest.c
6595 rm -rf conftest.dSYM
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6599 $as_echo "$lt_cv_ld_force_load" >&6; }
6601 rhapsody* | darwin1.[012])
6602 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6604 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6605 darwin*) # darwin 5.x on
6606 # if running on 10.5 or later, the deployment target defaults
6607 # to the OS version, if on x86, and 10.4, the deployment
6608 # target defaults to 10.4. Don't you love it?
6609 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6610 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6611 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6615 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6619 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6620 _lt_dar_single_mod='$single_module'
6622 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6623 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6625 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6627 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6628 _lt_dsymutil='~$DSYMUTIL $lib || :'
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6641 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6642 # On Suns, sometimes $CPP names a directory.
6643 if test -n "$CPP" && test -d "$CPP"; then
6646 if test -z "$CPP"; then
6647 if test "${ac_cv_prog_CPP+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6650 # Double quotes because CPP needs to be expanded
6651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6654 for ac_c_preproc_warn_flag in '' yes
6656 # Use a header file that comes with gcc, so configuring glibc
6657 # with a fresh cross-compiler works.
6658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6659 # <limits.h> exists even on freestanding compilers.
6660 # On the NeXT, cc -E runs the code through the compiler's parser,
6661 # not just through cpp. "Syntax error" is here to catch this case.
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6665 # include <limits.h>
6667 # include <assert.h>
6671 if ac_fn_c_try_cpp "$LINENO"; then :
6674 # Broken: fails on valid input.
6677 rm -f conftest.err conftest.$ac_ext
6679 # OK, works on sane cases. Now check whether nonexistent headers
6680 # can be detected and how.
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 #include <ac_nonexistent.h>
6685 if ac_fn_c_try_cpp "$LINENO"; then :
6686 # Broken: success on invalid input.
6689 # Passes both tests.
6693 rm -f conftest.err conftest.$ac_ext
6696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697 rm -f conftest.err conftest.$ac_ext
6698 if $ac_preproc_ok; then :
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6711 $as_echo "$CPP" >&6; }
6713 for ac_c_preproc_warn_flag in '' yes
6715 # Use a header file that comes with gcc, so configuring glibc
6716 # with a fresh cross-compiler works.
6717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718 # <limits.h> exists even on freestanding compilers.
6719 # On the NeXT, cc -E runs the code through the compiler's parser,
6720 # not just through cpp. "Syntax error" is here to catch this case.
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6724 # include <limits.h>
6726 # include <assert.h>
6730 if ac_fn_c_try_cpp "$LINENO"; then :
6733 # Broken: fails on valid input.
6736 rm -f conftest.err conftest.$ac_ext
6738 # OK, works on sane cases. Now check whether nonexistent headers
6739 # can be detected and how.
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <ac_nonexistent.h>
6744 if ac_fn_c_try_cpp "$LINENO"; then :
6745 # Broken: success on invalid input.
6748 # Passes both tests.
6752 rm -f conftest.err conftest.$ac_ext
6755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756 rm -f conftest.err conftest.$ac_ext
6757 if $ac_preproc_ok; then :
6760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6762 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6763 See \`config.log' for more details." "$LINENO" 5; }
6767 ac_cpp='$CPP $CPPFLAGS'
6768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6774 $as_echo_n "checking for ANSI C header files... " >&6; }
6775 if test "${ac_cv_header_stdc+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794 ac_cv_header_stdc=yes
6796 ac_cv_header_stdc=no
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 if test $ac_cv_header_stdc = yes; then
6801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6808 $EGREP "memchr" >/dev/null 2>&1; then :
6811 ac_cv_header_stdc=no
6817 if test $ac_cv_header_stdc = yes; then
6818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6825 $EGREP "free" >/dev/null 2>&1; then :
6828 ac_cv_header_stdc=no
6834 if test $ac_cv_header_stdc = yes; then
6835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6836 if test "$cross_compiling" = yes; then :
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6843 #if ((' ' & 0x0FF) == 0x020)
6844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6847 # define ISLOWER(c) \
6848 (('a' <= (c) && (c) <= 'i') \
6849 || ('j' <= (c) && (c) <= 'r') \
6850 || ('s' <= (c) && (c) <= 'z'))
6851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6859 for (i = 0; i < 256; i++)
6860 if (XOR (islower (i), ISLOWER (i))
6861 || toupper (i) != TOUPPER (i))
6866 if ac_fn_c_try_run "$LINENO"; then :
6869 ac_cv_header_stdc=no
6871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6872 conftest.$ac_objext conftest.beam conftest.$ac_ext
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6878 $as_echo "$ac_cv_header_stdc" >&6; }
6879 if test $ac_cv_header_stdc = yes; then
6881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6886 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6887 inttypes.h stdint.h unistd.h
6889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6892 eval as_val=\$$as_ac_Header
6893 if test "x$as_val" = x""yes; then :
6894 cat >>confdefs.h <<_ACEOF
6895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6903 for ac_header in dlfcn.h
6905 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6907 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6908 cat >>confdefs.h <<_ACEOF
6909 #define HAVE_DLFCN_H 1
6930 # Check whether --enable-shared was given.
6931 if test "${enable_shared+set}" = set; then :
6932 enableval=$enable_shared; p=${PACKAGE-default}
6934 yes) enable_shared=yes ;;
6935 no) enable_shared=no ;;
6938 # Look at the argument we got. We use all the common list separators.
6939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6940 for pkg in $enableval; do
6942 if test "X$pkg" = "X$p"; then
6961 # Check whether --enable-static was given.
6962 if test "${enable_static+set}" = set; then :
6963 enableval=$enable_static; p=${PACKAGE-default}
6965 yes) enable_static=yes ;;
6966 no) enable_static=no ;;
6969 # Look at the argument we got. We use all the common list separators.
6970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6971 for pkg in $enableval; do
6973 if test "X$pkg" = "X$p"; then
6993 # Check whether --with-pic was given.
6994 if test "${with_pic+set}" = set; then :
6995 withval=$with_pic; pic_mode="$withval"
7001 test -z "$pic_mode" && pic_mode=default
7009 # Check whether --enable-fast-install was given.
7010 if test "${enable_fast_install+set}" = set; then :
7011 enableval=$enable_fast_install; p=${PACKAGE-default}
7013 yes) enable_fast_install=yes ;;
7014 no) enable_fast_install=no ;;
7016 enable_fast_install=no
7017 # Look at the argument we got. We use all the common list separators.
7018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7019 for pkg in $enableval; do
7021 if test "X$pkg" = "X$p"; then
7022 enable_fast_install=yes
7029 enable_fast_install=yes
7042 # This can be used to rebuild libtool when needed
7043 LIBTOOL_DEPS="$ltmain"
7045 # Always use our own libtool.
7046 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7073 test -z "$LN_S" && LN_S="ln -s"
7088 if test -n "${ZSH_VERSION+set}" ; then
7089 setopt NO_GLOB_SUBST
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7093 $as_echo_n "checking for objdir... " >&6; }
7094 if test "${lt_cv_objdir+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 rm -f .libs 2>/dev/null
7098 mkdir .libs 2>/dev/null
7099 if test -d .libs; then
7102 # MS-DOS does not allow filenames that begin with a dot.
7105 rmdir .libs 2>/dev/null
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7108 $as_echo "$lt_cv_objdir" >&6; }
7109 objdir=$lt_cv_objdir
7115 cat >>confdefs.h <<_ACEOF
7116 #define LT_OBJDIR "$lt_cv_objdir/"
7124 # AIX sometimes has problems with the GCC collect2 program. For some
7125 # reason, if we set the COLLECT_NAMES environment variable, the problems
7126 # vanish in a puff of smoke.
7127 if test "X${COLLECT_NAMES+set}" != Xset; then
7129 export COLLECT_NAMES
7136 can_build_shared=yes
7138 # All known linkers require a `.a' archive for static linking (except MSVC,
7139 # which needs '.lib').
7142 with_gnu_ld="$lt_cv_prog_gnu_ld"
7145 old_CFLAGS="$CFLAGS"
7147 # Set sane defaults for various variables
7148 test -z "$CC" && CC=cc
7149 test -z "$LTCC" && LTCC=$CC
7150 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7151 test -z "$LD" && LD=ld
7152 test -z "$ac_objext" && ac_objext=o
7154 for cc_temp in $compiler""; do
7156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7162 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7165 # Only perform the check for file, if the check method requires it
7166 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7167 case $deplibs_check_method in
7169 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7171 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7172 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7177 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7180 lt_save_MAGIC_CMD="$MAGIC_CMD"
7181 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7183 for ac_dir in $ac_dummy; do
7185 test -z "$ac_dir" && ac_dir=.
7186 if test -f $ac_dir/${ac_tool_prefix}file; then
7187 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7188 if test -n "$file_magic_test_file"; then
7189 case $deplibs_check_method in
7191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7194 $EGREP "$file_magic_regex" > /dev/null; then
7199 *** Warning: the command libtool uses to detect shared libraries,
7200 *** $file_magic_cmd, produces output that libtool cannot recognize.
7201 *** The result is that libtool may fail to recognize shared libraries
7202 *** as such. This will affect the creation of libtool libraries that
7203 *** depend on shared libraries, but programs linked with such libtool
7204 *** libraries will work regardless of this problem. Nevertheless, you
7205 *** may want to report the problem to your system manager and/or to
7206 *** bug-libtool@gnu.org
7216 MAGIC_CMD="$lt_save_MAGIC_CMD"
7221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7222 if test -n "$MAGIC_CMD"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7224 $as_echo "$MAGIC_CMD" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7234 if test -z "$lt_cv_path_MAGIC_CMD"; then
7235 if test -n "$ac_tool_prefix"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7237 $as_echo_n "checking for file... " >&6; }
7238 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7246 lt_save_MAGIC_CMD="$MAGIC_CMD"
7247 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7248 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7249 for ac_dir in $ac_dummy; do
7251 test -z "$ac_dir" && ac_dir=.
7252 if test -f $ac_dir/file; then
7253 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7254 if test -n "$file_magic_test_file"; then
7255 case $deplibs_check_method in
7257 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7260 $EGREP "$file_magic_regex" > /dev/null; then
7265 *** Warning: the command libtool uses to detect shared libraries,
7266 *** $file_magic_cmd, produces output that libtool cannot recognize.
7267 *** The result is that libtool may fail to recognize shared libraries
7268 *** as such. This will affect the creation of libtool libraries that
7269 *** depend on shared libraries, but programs linked with such libtool
7270 *** libraries will work regardless of this problem. Nevertheless, you
7271 *** may want to report the problem to your system manager and/or to
7272 *** bug-libtool@gnu.org
7282 MAGIC_CMD="$lt_save_MAGIC_CMD"
7287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288 if test -n "$MAGIC_CMD"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7290 $as_echo "$MAGIC_CMD" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7306 # Use C for the default configuration in the libtool script
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 # Source file extension for C test sources.
7319 # Object file extension for compiled C test sources.
7323 # Code to be used in simple compile tests
7324 lt_simple_compile_test_code="int some_variable = 0;"
7326 # Code to be used in simple link tests
7327 lt_simple_link_test_code='int main(){return(0);}'
7335 # If no C compiler was specified, use CC.
7338 # If no C compiler flags were specified, use CFLAGS.
7339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7341 # Allow CC to be a program name with arguments.
7344 # Save the default compiler, since it gets overwritten when the other
7345 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7346 compiler_DEFAULT=$CC
7348 # save warnings/boilerplate of simple test code
7349 ac_outfile=conftest.$ac_objext
7350 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7351 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7352 _lt_compiler_boilerplate=`cat conftest.err`
7355 ac_outfile=conftest.$ac_objext
7356 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7357 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7358 _lt_linker_boilerplate=`cat conftest.err`
7363 ## There is no encapsulation within the following macros, do not change
7364 ## the running order or otherwise move them around unless you know exactly
7365 ## what you are doing...
7366 if test -n "$compiler"; then
7368 lt_prog_compiler_no_builtin_flag=
7370 if test "$GCC" = yes; then
7371 case $cc_basename in
7373 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7375 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7379 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7380 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7383 lt_cv_prog_compiler_rtti_exceptions=no
7384 ac_outfile=conftest.$ac_objext
7385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7386 lt_compiler_flag="-fno-rtti -fno-exceptions"
7387 # Insert the option either (1) after the last *FLAGS variable, or
7388 # (2) before a word containing "conftest.", or (3) at the end.
7389 # Note that $ac_compile itself does not contain backslashes and begins
7390 # with a dollar sign (not a hyphen), so the echo should work correctly.
7391 # The option is referenced via a variable to avoid confusing sed.
7392 lt_compile=`echo "$ac_compile" | $SED \
7393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7395 -e 's:$: $lt_compiler_flag:'`
7396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7397 (eval "$lt_compile" 2>conftest.err)
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 if (exit $ac_status) && test -s "$ac_outfile"; then
7402 # The compiler can only warn and ignore the option if not recognized
7403 # So say no if there are warnings other than the usual output.
7404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7407 lt_cv_prog_compiler_rtti_exceptions=yes
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7414 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7416 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7417 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7429 lt_prog_compiler_wl=
7430 lt_prog_compiler_pic=
7431 lt_prog_compiler_static=
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7434 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7436 if test "$GCC" = yes; then
7437 lt_prog_compiler_wl='-Wl,'
7438 lt_prog_compiler_static='-static'
7442 # All AIX code is PIC.
7443 if test "$host_cpu" = ia64; then
7444 # AIX 5 now supports IA64 processor
7445 lt_prog_compiler_static='-Bstatic'
7452 # see comment about AmigaOS4 .so support
7453 lt_prog_compiler_pic='-fPIC'
7456 # FIXME: we need at least 68020 code to build shared libraries, but
7457 # adding the `-m68020' flag to GCC prevents building anything better,
7459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7465 # PIC is the default for these OSes.
7468 mingw* | cygwin* | pw32* | os2* | cegcc*)
7469 # This hack is so that the source file can tell whether it is being
7470 # built for inclusion in a dll (and should export symbols for example).
7471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7472 # (--disable-auto-import) libraries
7473 lt_prog_compiler_pic='-DDLL_EXPORT'
7476 darwin* | rhapsody*)
7477 # PIC is the default on this platform
7478 # Common symbols not allowed in MH_DYLIB files
7479 lt_prog_compiler_pic='-fno-common'
7483 # PIC is the default for Haiku.
7484 # The "-static" flag exists, but is broken.
7485 lt_prog_compiler_static=
7489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7491 # sets the default TLS model and affects inlining.
7497 lt_prog_compiler_pic='-fPIC'
7503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7504 # Instead, we relocate shared libraries at runtime.
7508 # Just because we use GCC doesn't mean we suddenly get shared libraries
7509 # on systems that don't support them.
7510 lt_prog_compiler_can_build_shared=no
7515 # QNX uses GNU C++, but need to define -shared option too, otherwise
7517 lt_prog_compiler_pic='-fPIC -shared'
7521 if test -d /usr/nec; then
7522 lt_prog_compiler_pic=-Kconform_pic
7527 lt_prog_compiler_pic='-fPIC'
7531 case $cc_basename in
7532 nvcc*) # Cuda Compiler Driver 2.2
7533 lt_prog_compiler_wl='-Xlinker '
7534 lt_prog_compiler_pic='-Xcompiler -fPIC'
7538 # PORTME Check for flag to pass linker flags through the system compiler.
7541 lt_prog_compiler_wl='-Wl,'
7542 if test "$host_cpu" = ia64; then
7543 # AIX 5 now supports IA64 processor
7544 lt_prog_compiler_static='-Bstatic'
7546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7550 mingw* | cygwin* | pw32* | os2* | cegcc*)
7551 # This hack is so that the source file can tell whether it is being
7552 # built for inclusion in a dll (and should export symbols for example).
7553 lt_prog_compiler_pic='-DDLL_EXPORT'
7556 hpux9* | hpux10* | hpux11*)
7557 lt_prog_compiler_wl='-Wl,'
7558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7565 lt_prog_compiler_pic='+Z'
7568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7569 lt_prog_compiler_static='${wl}-a ${wl}archive'
7572 irix5* | irix6* | nonstopux*)
7573 lt_prog_compiler_wl='-Wl,'
7574 # PIC (with -KPIC) is the default.
7575 lt_prog_compiler_static='-non_shared'
7578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7579 case $cc_basename in
7580 # old Intel for x86_64 which still supported -KPIC.
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_pic='-KPIC'
7584 lt_prog_compiler_static='-static'
7586 # icc used to be incompatible with GCC.
7587 # ICC 10 doesn't accept -KPIC any more.
7589 lt_prog_compiler_wl='-Wl,'
7590 lt_prog_compiler_pic='-fPIC'
7591 lt_prog_compiler_static='-static'
7593 # Lahey Fortran 8.1.
7595 lt_prog_compiler_wl='-Wl,'
7596 lt_prog_compiler_pic='--shared'
7597 lt_prog_compiler_static='--static'
7599 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7600 # Portland Group compilers (*not* the Pentium gcc compiler,
7601 # which looks to be a dead project)
7602 lt_prog_compiler_wl='-Wl,'
7603 lt_prog_compiler_pic='-fpic'
7604 lt_prog_compiler_static='-Bstatic'
7607 lt_prog_compiler_wl='-Wl,'
7608 # All Alpha code is PIC.
7609 lt_prog_compiler_static='-non_shared'
7611 xl* | bgxl* | bgf* | mpixl*)
7612 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7613 lt_prog_compiler_wl='-Wl,'
7614 lt_prog_compiler_pic='-qpic'
7615 lt_prog_compiler_static='-qstaticlink'
7618 case `$CC -V 2>&1 | sed 5q` in
7619 *Sun\ F* | *Sun*Fortran*)
7620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7621 lt_prog_compiler_pic='-KPIC'
7622 lt_prog_compiler_static='-Bstatic'
7623 lt_prog_compiler_wl=''
7627 lt_prog_compiler_pic='-KPIC'
7628 lt_prog_compiler_static='-Bstatic'
7629 lt_prog_compiler_wl='-Wl,'
7637 lt_prog_compiler_pic='-KPIC'
7638 lt_prog_compiler_static='-Bstatic'
7642 # QNX uses GNU C++, but need to define -shared option too, otherwise
7644 lt_prog_compiler_pic='-fPIC -shared'
7647 osf3* | osf4* | osf5*)
7648 lt_prog_compiler_wl='-Wl,'
7649 # All OSF/1 code is PIC.
7650 lt_prog_compiler_static='-non_shared'
7654 lt_prog_compiler_static='-non_shared'
7658 lt_prog_compiler_pic='-KPIC'
7659 lt_prog_compiler_static='-Bstatic'
7660 case $cc_basename in
7662 lt_prog_compiler_wl='-Qoption ld ';;
7664 lt_prog_compiler_wl='-Wl,';;
7669 lt_prog_compiler_wl='-Qoption ld '
7670 lt_prog_compiler_pic='-PIC'
7671 lt_prog_compiler_static='-Bstatic'
7674 sysv4 | sysv4.2uw2* | sysv4.3*)
7675 lt_prog_compiler_wl='-Wl,'
7676 lt_prog_compiler_pic='-KPIC'
7677 lt_prog_compiler_static='-Bstatic'
7681 if test -d /usr/nec ;then
7682 lt_prog_compiler_pic='-Kconform_pic'
7683 lt_prog_compiler_static='-Bstatic'
7687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7694 lt_prog_compiler_wl='-Wl,'
7695 lt_prog_compiler_can_build_shared=no
7699 lt_prog_compiler_pic='-pic'
7700 lt_prog_compiler_static='-Bstatic'
7704 lt_prog_compiler_can_build_shared=no
7710 # For platforms which do not support PIC, -DPIC is meaningless:
7712 lt_prog_compiler_pic=
7715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7719 $as_echo "$lt_prog_compiler_pic" >&6; }
7727 # Check to make sure the PIC flag actually works.
7729 if test -n "$lt_prog_compiler_pic"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7732 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7733 $as_echo_n "(cached) " >&6
7735 lt_cv_prog_compiler_pic_works=no
7736 ac_outfile=conftest.$ac_objext
7737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7739 # Insert the option either (1) after the last *FLAGS variable, or
7740 # (2) before a word containing "conftest.", or (3) at the end.
7741 # Note that $ac_compile itself does not contain backslashes and begins
7742 # with a dollar sign (not a hyphen), so the echo should work correctly.
7743 # The option is referenced via a variable to avoid confusing sed.
7744 lt_compile=`echo "$ac_compile" | $SED \
7745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7747 -e 's:$: $lt_compiler_flag:'`
7748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7749 (eval "$lt_compile" 2>conftest.err)
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 if (exit $ac_status) && test -s "$ac_outfile"; then
7754 # The compiler can only warn and ignore the option if not recognized
7755 # So say no if there are warnings other than the usual output.
7756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7759 lt_cv_prog_compiler_pic_works=yes
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7769 case $lt_prog_compiler_pic in
7771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7774 lt_prog_compiler_pic=
7775 lt_prog_compiler_can_build_shared=no
7786 # Check to make sure the static flag actually works.
7788 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7791 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
7794 lt_cv_prog_compiler_static_works=no
7795 save_LDFLAGS="$LDFLAGS"
7796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7799 # The linker can only warn and ignore the option if not recognized
7800 # So say no if there are warnings
7801 if test -s conftest.err; then
7802 # Append any errors to the config.log.
7803 cat conftest.err 1>&5
7804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7806 if diff conftest.exp conftest.er2 >/dev/null; then
7807 lt_cv_prog_compiler_static_works=yes
7810 lt_cv_prog_compiler_static_works=yes
7814 LDFLAGS="$save_LDFLAGS"
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7818 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7820 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7823 lt_prog_compiler_static=
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7834 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 lt_cv_prog_compiler_c_o=no
7838 $RM -r conftest 2>/dev/null
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844 lt_compiler_flag="-o out/conftest2.$ac_objext"
7845 # Insert the option either (1) after the last *FLAGS variable, or
7846 # (2) before a word containing "conftest.", or (3) at the end.
7847 # Note that $ac_compile itself does not contain backslashes and begins
7848 # with a dollar sign (not a hyphen), so the echo should work correctly.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
7853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7854 (eval "$lt_compile" 2>out/conftest.err)
7856 cat out/conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7860 # The compiler can only warn and ignore the option if not recognized
7861 # So say no if there are warnings
7862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7865 lt_cv_prog_compiler_c_o=yes
7870 # SGI C++ compiler will create directory out/ii_files/ for
7871 # template instantiation
7872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7873 $RM out/* && rmdir out
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7892 lt_cv_prog_compiler_c_o=no
7893 $RM -r conftest 2>/dev/null
7897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899 lt_compiler_flag="-o out/conftest2.$ac_objext"
7900 # Insert the option either (1) after the last *FLAGS variable, or
7901 # (2) before a word containing "conftest.", or (3) at the end.
7902 # Note that $ac_compile itself does not contain backslashes and begins
7903 # with a dollar sign (not a hyphen), so the echo should work correctly.
7904 lt_compile=`echo "$ac_compile" | $SED \
7905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7907 -e 's:$: $lt_compiler_flag:'`
7908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7909 (eval "$lt_compile" 2>out/conftest.err)
7911 cat out/conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7915 # The compiler can only warn and ignore the option if not recognized
7916 # So say no if there are warnings
7917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7920 lt_cv_prog_compiler_c_o=yes
7925 # SGI C++ compiler will create directory out/ii_files/ for
7926 # template instantiation
7927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7928 $RM out/* && rmdir out
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7940 hard_links="nottested"
7941 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7942 # do not overwrite the value of need_locks provided by the user
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7944 $as_echo_n "checking if we can lock with hard links... " >&6; }
7947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7949 ln conftest.a conftest.b 2>&5 || hard_links=no
7950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7952 $as_echo "$hard_links" >&6; }
7953 if test "$hard_links" = no; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7955 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7971 allow_undefined_flag=
7972 always_export_symbols=no
7974 archive_expsym_cmds=
7975 compiler_needs_object=no
7976 enable_shared_with_static_runtimes=no
7977 export_dynamic_flag_spec=
7978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7979 hardcode_automatic=no
7981 hardcode_direct_absolute=no
7982 hardcode_libdir_flag_spec=
7983 hardcode_libdir_flag_spec_ld=
7984 hardcode_libdir_separator=
7986 hardcode_shlibpath_var=unsupported
7988 link_all_deplibs=unknown
7991 old_archive_from_new_cmds=
7992 old_archive_from_expsyms_cmds=
7993 thread_safe_flag_spec=
7994 whole_archive_flag_spec=
7995 # include_expsyms should be a list of space-separated symbols to be *always*
7996 # included in the symbol list
7998 # exclude_expsyms can be an extended regexp of symbols to exclude
7999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8001 # as well as any symbol that contains `d'.
8002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8004 # platforms (ab)use it in PIC code, but their linkers get confused if
8005 # the symbol is explicitly referenced. Since portable code cannot
8006 # rely on this symbol name, it's probably fine to never include it in
8007 # preloaded symbol tables.
8008 # Exclude shared library initialization/finalization symbols.
8009 extract_expsyms_cmds=
8012 cygwin* | mingw* | pw32* | cegcc*)
8013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8014 # When not using gcc, we currently assume that we are using
8015 # Microsoft Visual C++.
8016 if test "$GCC" != yes; then
8021 # we just hope/assume this is gcc and not c89 (= MSVC++)
8031 # On some targets, GNU ld is compatible enough with the native linker
8032 # that we're better off using the native interface for both.
8033 lt_use_gnu_ld_interface=no
8034 if test "$with_gnu_ld" = yes; then
8037 # The AIX port of GNU ld has always aspired to compatibility
8038 # with the native linker. However, as the warning in the GNU ld
8039 # block says, versions before 2.19.5* couldn't really create working
8040 # shared libraries, regardless of the interface used.
8041 case `$LD -v 2>&1` in
8042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8046 lt_use_gnu_ld_interface=yes
8051 lt_use_gnu_ld_interface=yes
8056 if test "$lt_use_gnu_ld_interface" = yes; then
8057 # If archive_cmds runs LD, not CC, wlarc should be empty
8060 # Set some defaults for GNU ld with shared library support. These
8061 # are reset later if shared libraries are not supported. Putting them
8062 # here allows them to be overridden if necessary.
8063 runpath_var=LD_RUN_PATH
8064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8065 export_dynamic_flag_spec='${wl}--export-dynamic'
8066 # ancient GNU ld didn't support --whole-archive et. al.
8067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8070 whole_archive_flag_spec=
8072 supports_anon_versioning=no
8073 case `$LD -v 2>&1` in
8074 *GNU\ gold*) supports_anon_versioning=yes ;;
8075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8078 *\ 2.11.*) ;; # other 2.11 versions
8079 *) supports_anon_versioning=yes ;;
8082 # See if GNU ld supports shared libraries.
8085 # On AIX/PPC, the GNU linker is very broken
8086 if test "$host_cpu" != ia64; then
8090 *** Warning: the GNU linker, at least up to release 2.19, is reported
8091 *** to be unable to reliably create shared libraries on AIX.
8092 *** Therefore, libtool is disabling shared libraries support. If you
8093 *** really care for shared libraries, you may want to install binutils
8094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8095 *** You will then need to restart the configuration process.
8104 # see comment about AmigaOS4 .so support
8105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8106 archive_expsym_cmds=''
8109 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)'
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 hardcode_minus_L=yes
8117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8118 allow_undefined_flag=unsupported
8119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8120 # support --undefined. This deserves some investigation. FIXME
8121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8127 cygwin* | mingw* | pw32* | cegcc*)
8128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8129 # as there is no search path for DLLs.
8130 hardcode_libdir_flag_spec='-L$libdir'
8131 export_dynamic_flag_spec='${wl}--export-all-symbols'
8132 allow_undefined_flag=unsupported
8133 always_export_symbols=no
8134 enable_shared_with_static_runtimes=yes
8135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8139 # If the export-symbols file already is a .def file (1st line
8140 # is EXPORTS), use it as is; otherwise, prepend...
8141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8142 cp $export_symbols $output_objdir/$soname.def;
8144 echo EXPORTS > $output_objdir/$soname.def;
8145 cat $export_symbols >> $output_objdir/$soname.def;
8147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 link_all_deplibs=yes
8160 hardcode_shlibpath_var=no
8161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8162 export_dynamic_flag_spec='${wl}-E'
8163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8164 # Instead, shared libraries are loaded at an image base (0x10000000 by
8165 # default) and relocated if they conflict, which is a slow very memory
8166 # consuming and fragmenting process. To avoid this, we pick a random,
8167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8170 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'
8173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8175 if test "$host_os" = linux-dietlibc; then
8176 case $cc_basename in
8177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8181 && test "$tmp_diet" = no
8184 tmp_sharedflag='-shared'
8185 case $cc_basename,$host_cpu in
8186 pgcc*) # Portland Group C compiler
8187 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'
8188 tmp_addflag=' $pic_flag'
8190 pgf77* | pgf90* | pgf95* | pgfortran*)
8191 # Portland Group f77 and f90 compilers
8192 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'
8193 tmp_addflag=' $pic_flag -Mnomain' ;;
8194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8195 tmp_addflag=' -i_dynamic' ;;
8196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8197 tmp_addflag=' -i_dynamic -nofor_main' ;;
8198 ifc* | ifort*) # Intel Fortran compiler
8199 tmp_addflag=' -nofor_main' ;;
8200 lf95*) # Lahey Fortran 8.1
8201 whole_archive_flag_spec=
8202 tmp_sharedflag='--shared' ;;
8203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8204 tmp_sharedflag='-qmkshrobj'
8206 nvcc*) # Cuda Compiler Driver 2.2
8207 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'
8208 compiler_needs_object=yes
8211 case `$CC -V 2>&1 | sed 5q` in
8212 *Sun\ C*) # Sun C 5.9
8213 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'
8214 compiler_needs_object=yes
8215 tmp_sharedflag='-G' ;;
8216 *Sun\ F*) # Sun Fortran 8.3
8217 tmp_sharedflag='-G' ;;
8219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 if test "x$supports_anon_versioning" = xyes; then
8222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8224 echo "local: *; };" >> $output_objdir/$libname.ver~
8225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8228 case $cc_basename in
8229 xlf* | bgf* | bgxlf* | mpixlf*)
8230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8231 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8232 hardcode_libdir_flag_spec=
8233 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8234 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8235 if test "x$supports_anon_versioning" = xyes; then
8236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8238 echo "local: *; };" >> $output_objdir/$libname.ver~
8239 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8264 *** create shared libraries on Solaris systems. Therefore, libtool
8265 *** is disabling shared libraries support. We urge you to upgrade GNU
8266 *** binutils to release 2.9.1 or newer. Another option is to modify
8267 *** your PATH or compiler configuration so that the native linker is
8268 *** used, and then restart.
8271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8280 case `$LD -v 2>&1` in
8281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8286 *** reliably create shared libraries on SCO systems. Therefore, libtool
8287 *** is disabling shared libraries support. We urge you to upgrade GNU
8288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8289 *** your PATH or compiler configuration so that the native linker is
8290 *** used, and then restart.
8295 # For security reasons, it is highly recommended that you always
8296 # use absolute paths for naming shared libraries, and exclude the
8297 # DT_RUNPATH tag from executables and libraries. But doing so
8298 # requires that you compile everything twice, which is a pain.
8299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8314 hardcode_shlibpath_var=no
8318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8327 if test "$ld_shlibs" = no; then
8329 hardcode_libdir_flag_spec=
8330 export_dynamic_flag_spec=
8331 whole_archive_flag_spec=
8334 # PORTME fill in a description of your system's linker (not GNU ld)
8337 allow_undefined_flag=unsupported
8338 always_export_symbols=yes
8339 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'
8340 # Note: this linker hardcodes the directories in LIBPATH if there
8341 # are no directories specified by -L.
8342 hardcode_minus_L=yes
8343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8344 # Neither direct hardcoding nor static linking is supported with a
8346 hardcode_direct=unsupported
8351 if test "$host_cpu" = ia64; then
8352 # On IA64, the linker does run time linking by default, so we don't
8353 # have to do anything special.
8354 aix_use_runtimelinking=no
8355 exp_sym_flag='-Bexport'
8358 # If we're using GNU nm, then we don't want the "-C" option.
8359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8360 # Also, AIX nm treats weak defined symbols like other global
8361 # defined symbols, whereas GNU nm marks them as "W".
8362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8363 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'
8365 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'
8367 aix_use_runtimelinking=no
8369 # Test if we are trying to use run time linking or normal
8370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8371 # need to do runtime linking.
8372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8373 for ld_flag in $LDFLAGS; do
8374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8375 aix_use_runtimelinking=yes
8382 exp_sym_flag='-bexport'
8383 no_entry_flag='-bnoentry'
8386 # When large executables or shared objects are built, AIX ld can
8387 # have problems creating the table of contents. If linking a library
8388 # or program results in "error TOC overflow" add -mminimal-toc to
8389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8394 hardcode_direct_absolute=yes
8395 hardcode_libdir_separator=':'
8396 link_all_deplibs=yes
8397 file_list_spec='${wl}-f,'
8399 if test "$GCC" = yes; then
8400 case $host_os in aix4.[012]|aix4.[012].*)
8401 # We only want to do this on AIX 4.2 and lower, the check
8402 # below for broken collect2 doesn't work under 4.3+
8403 collect2name=`${CC} -print-prog-name=collect2`
8404 if test -f "$collect2name" &&
8405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8407 # We have reworked collect2
8410 # We have old collect2
8411 hardcode_direct=unsupported
8412 # It fails to find uninstalled libraries when the uninstalled
8413 # path is not listed in the libpath. Setting hardcode_minus_L
8414 # to unsupported forces relinking
8415 hardcode_minus_L=yes
8416 hardcode_libdir_flag_spec='-L$libdir'
8417 hardcode_libdir_separator=
8421 shared_flag='-shared'
8422 if test "$aix_use_runtimelinking" = yes; then
8423 shared_flag="$shared_flag "'${wl}-G'
8427 if test "$host_cpu" = ia64; then
8428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8429 # chokes on -Wl,-G. The following line is correct:
8432 if test "$aix_use_runtimelinking" = yes; then
8433 shared_flag='${wl}-G'
8435 shared_flag='${wl}-bM:SRE'
8440 export_dynamic_flag_spec='${wl}-bexpall'
8441 # It seems that -bexpall does not export symbols beginning with
8442 # underscore (_), so it is better to generate a list of symbols to export.
8443 always_export_symbols=yes
8444 if test "$aix_use_runtimelinking" = yes; then
8445 # Warning - without using the other runtime loading flags (-brtl),
8446 # -berok will link without error, but may produce a broken library.
8447 allow_undefined_flag='-berok'
8448 # Determine the default libpath from the value encoded in an
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8461 if ac_fn_c_try_link "$LINENO"; then :
8463 lt_aix_libpath_sed='
8464 /Import File Strings/,/^$/ {
8470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8471 # Check for a 64-bit object if we didn't find anything.
8472 if test -z "$aix_libpath"; then
8473 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476 rm -f core conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8481 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"
8483 if test "$host_cpu" = ia64; then
8484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8485 allow_undefined_flag="-z nodefs"
8486 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"
8488 # Determine the default libpath from the value encoded in an
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8501 if ac_fn_c_try_link "$LINENO"; then :
8503 lt_aix_libpath_sed='
8504 /Import File Strings/,/^$/ {
8510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8511 # Check for a 64-bit object if we didn't find anything.
8512 if test -z "$aix_libpath"; then
8513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8521 # Warning - without using the other run time loading flags,
8522 # -berok will link without error, but may produce a broken library.
8523 no_undefined_flag=' ${wl}-bernotok'
8524 allow_undefined_flag=' ${wl}-berok'
8525 if test "$with_gnu_ld" = yes; then
8526 # We only use this code for GNU lds that support --whole-archive.
8527 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8529 # Exported symbols can be pulled into shared objects from archives
8530 whole_archive_flag_spec='$convenience'
8532 archive_cmds_need_lc=yes
8533 # This is similar to how AIX traditionally builds its shared libraries.
8534 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'
8542 # see comment about AmigaOS4 .so support
8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 archive_expsym_cmds=''
8547 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)'
8548 hardcode_libdir_flag_spec='-L$libdir'
8549 hardcode_minus_L=yes
8555 export_dynamic_flag_spec=-rdynamic
8558 cygwin* | mingw* | pw32* | cegcc*)
8559 # When not using gcc, we currently assume that we are using
8560 # Microsoft Visual C++.
8561 # hardcode_libdir_flag_spec is actually meaningless, as there is
8562 # no search path for DLLs.
8563 hardcode_libdir_flag_spec=' '
8564 allow_undefined_flag=unsupported
8565 # Tell ltmain to make .lib files, not .a files.
8567 # Tell ltmain to make .dll files, not .so files.
8569 # FIXME: Setting linknames here is a bad hack.
8570 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8571 # The linker will automatically build a .lib file if we build a DLL.
8572 old_archive_from_new_cmds='true'
8573 # FIXME: Should let the user specify the lib program.
8574 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8575 fix_srcfile_path='`cygpath -w "$srcfile"`'
8576 enable_shared_with_static_runtimes=yes
8579 darwin* | rhapsody*)
8582 archive_cmds_need_lc=no
8584 hardcode_automatic=yes
8585 hardcode_shlibpath_var=unsupported
8586 if test "$lt_cv_ld_force_load" = "yes"; then
8587 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\"`'
8589 whole_archive_flag_spec=''
8591 link_all_deplibs=yes
8592 allow_undefined_flag="$_lt_dar_allow_undefined"
8593 case $cc_basename in
8594 ifort*) _lt_dar_can_shared=yes ;;
8595 *) _lt_dar_can_shared=$GCC ;;
8597 if test "$_lt_dar_can_shared" = "yes"; then
8598 output_verbose_link_cmd=func_echo_all
8599 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8600 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8601 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}"
8602 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}"
8611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612 hardcode_libdir_flag_spec='-L$libdir'
8613 hardcode_shlibpath_var=no
8620 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8621 # support. Future versions do this automatically, but an explicit c++rt0.o
8622 # does not break anything, and helps significantly (at the cost of a little
8625 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8626 hardcode_libdir_flag_spec='-R$libdir'
8628 hardcode_shlibpath_var=no
8631 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_minus_L=yes
8636 hardcode_shlibpath_var=no
8639 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8640 freebsd* | dragonfly*)
8641 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8642 hardcode_libdir_flag_spec='-R$libdir'
8644 hardcode_shlibpath_var=no
8648 if test "$GCC" = yes; then
8649 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'
8651 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'
8653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8654 hardcode_libdir_separator=:
8657 # hardcode_minus_L: Not really in the search PATH,
8658 # but as the default location of the library.
8659 hardcode_minus_L=yes
8660 export_dynamic_flag_spec='${wl}-E'
8664 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8667 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8669 if test "$with_gnu_ld" = no; then
8670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8671 hardcode_libdir_flag_spec_ld='+b $libdir'
8672 hardcode_libdir_separator=:
8674 hardcode_direct_absolute=yes
8675 export_dynamic_flag_spec='${wl}-E'
8676 # hardcode_minus_L: Not really in the search PATH,
8677 # but as the default location of the library.
8678 hardcode_minus_L=yes
8683 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8686 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8705 # Older versions of the 11.00 compiler do not understand -b yet
8706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8708 $as_echo_n "checking if $CC understands -b... " >&6; }
8709 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8712 lt_cv_prog_compiler__b=no
8713 save_LDFLAGS="$LDFLAGS"
8714 LDFLAGS="$LDFLAGS -b"
8715 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8717 # The linker can only warn and ignore the option if not recognized
8718 # So say no if there are warnings
8719 if test -s conftest.err; then
8720 # Append any errors to the config.log.
8721 cat conftest.err 1>&5
8722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if diff conftest.exp conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler__b=yes
8728 lt_cv_prog_compiler__b=yes
8732 LDFLAGS="$save_LDFLAGS"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8736 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8738 if test x"$lt_cv_prog_compiler__b" = xyes; then
8739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8747 if test "$with_gnu_ld" = no; then
8748 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8749 hardcode_libdir_separator=:
8754 hardcode_shlibpath_var=no
8758 hardcode_direct_absolute=yes
8759 export_dynamic_flag_spec='${wl}-E'
8761 # hardcode_minus_L: Not really in the search PATH,
8762 # but as the default location of the library.
8763 hardcode_minus_L=yes
8769 irix5* | irix6* | nonstopux*)
8770 if test "$GCC" = yes; then
8771 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'
8772 # Try to use the -exported_symbol ld option, if it does not
8773 # work, assume that -exports_file does not work either and
8774 # implicitly export all symbols.
8775 save_LDFLAGS="$LDFLAGS"
8776 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8781 if ac_fn_c_try_link "$LINENO"; then :
8782 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'
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 LDFLAGS="$save_LDFLAGS"
8789 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'
8790 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'
8792 archive_cmds_need_lc='no'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8796 link_all_deplibs=yes
8800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8805 hardcode_libdir_flag_spec='-R$libdir'
8807 hardcode_shlibpath_var=no
8811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8814 hardcode_libdir_separator=:
8815 hardcode_shlibpath_var=no
8822 if test -f /usr/libexec/ld.so; then
8824 hardcode_shlibpath_var=no
8825 hardcode_direct_absolute=yes
8826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8827 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8830 export_dynamic_flag_spec='${wl}-E'
8833 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_libdir_flag_spec='-R$libdir'
8838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8839 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8849 hardcode_libdir_flag_spec='-L$libdir'
8850 hardcode_minus_L=yes
8851 allow_undefined_flag=unsupported
8852 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'
8853 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8857 if test "$GCC" = yes; then
8858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8859 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'
8861 allow_undefined_flag=' -expect_unresolved \*'
8862 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'
8864 archive_cmds_need_lc='no'
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 hardcode_libdir_separator=:
8869 osf4* | osf5*) # as osf3* with the addition of -msym flag
8870 if test "$GCC" = yes; then
8871 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8872 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'
8873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875 allow_undefined_flag=' -expect_unresolved \*'
8876 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'
8877 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~
8878 $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'
8880 # Both c and cxx compiler support -rpath directly
8881 hardcode_libdir_flag_spec='-rpath $libdir'
8883 archive_cmds_need_lc='no'
8884 hardcode_libdir_separator=:
8888 no_undefined_flag=' -z defs'
8889 if test "$GCC" = yes; then
8891 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8893 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8895 case `$CC -V 2>&1` in
8898 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8904 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8906 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8910 hardcode_libdir_flag_spec='-R$libdir'
8911 hardcode_shlibpath_var=no
8913 solaris2.[0-5] | solaris2.[0-5].*) ;;
8915 # The compiler driver will combine and reorder linker options,
8916 # but understands `-z linker_flag'. GCC discards it without `$wl',
8917 # but is careful enough not to reorder.
8918 # Supported since Solaris 2.6 (maybe 2.5.1?)
8919 if test "$GCC" = yes; then
8920 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8926 link_all_deplibs=yes
8930 if test "x$host_vendor" = xsequent; then
8931 # Use $CC to link under sequent, because it throws in some extra .o
8932 # files that make .init and .fini sections work.
8933 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8937 hardcode_libdir_flag_spec='-L$libdir'
8939 hardcode_minus_L=yes
8940 hardcode_shlibpath_var=no
8944 case $host_vendor in
8946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947 hardcode_direct=yes # is this really true???
8950 ## LD is ld it makes a PLAMLIB
8951 ## CC just makes a GrossModule.
8952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8953 reload_cmds='$CC -r -o $output$reload_objs'
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8961 runpath_var='LD_RUN_PATH'
8962 hardcode_shlibpath_var=no
8966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8967 hardcode_shlibpath_var=no
8968 export_dynamic_flag_spec='-Bexport'
8972 if test -d /usr/nec; then
8973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974 hardcode_shlibpath_var=no
8975 runpath_var=LD_RUN_PATH
8976 hardcode_runpath_var=yes
8981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8982 no_undefined_flag='${wl}-z,text'
8983 archive_cmds_need_lc=no
8984 hardcode_shlibpath_var=no
8985 runpath_var='LD_RUN_PATH'
8987 if test "$GCC" = yes; then
8988 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8996 sysv5* | sco3.2v5* | sco5v6*)
8997 # Note: We can NOT use -z defs as we might desire, because we do not
8998 # link with -lc, and that would cause any symbols used from libc to
8999 # always be unresolved, which means just about no library would
9000 # ever link correctly. If we're not using GNU ld we use -z text
9001 # though, which does catch some bad symbols but isn't as heavy-handed
9003 no_undefined_flag='${wl}-z,text'
9004 allow_undefined_flag='${wl}-z,nodefs'
9005 archive_cmds_need_lc=no
9006 hardcode_shlibpath_var=no
9007 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9008 hardcode_libdir_separator=':'
9009 link_all_deplibs=yes
9010 export_dynamic_flag_spec='${wl}-Bexport'
9011 runpath_var='LD_RUN_PATH'
9013 if test "$GCC" = yes; then
9014 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_shlibpath_var=no
9033 if test x$host_vendor = xsni; then
9035 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9036 export_dynamic_flag_spec='${wl}-Blargedynsym'
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9043 $as_echo "$ld_shlibs" >&6; }
9044 test "$ld_shlibs" = no && can_build_shared=no
9046 with_gnu_ld=$with_gnu_ld
9063 # Do we need to explicitly link libc?
9065 case "x$archive_cmds_need_lc" in
9067 # Assume -lc should be added
9068 archive_cmds_need_lc=yes
9070 if test "$enable_shared" = yes && test "$GCC" = yes; then
9071 case $archive_cmds in
9073 # FIXME: we may have to deal with multi-command sequences.
9076 # Test whether the compiler implicitly links with -lc since on some
9077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9078 # to ld, don't add -lc before -lgcc.
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9081 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9082 $as_echo_n "(cached) " >&6
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9088 (eval $ac_compile) 2>&5
9090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9091 test $ac_status = 0; } 2>conftest.err; then
9094 libobjs=conftest.$ac_objext
9096 wl=$lt_prog_compiler_wl
9097 pic_flag=$lt_prog_compiler_pic
9103 lt_save_allow_undefined_flag=$allow_undefined_flag
9104 allow_undefined_flag=
9105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9109 test $ac_status = 0; }
9111 lt_cv_archive_cmds_need_lc=no
9113 lt_cv_archive_cmds_need_lc=yes
9115 allow_undefined_flag=$lt_save_allow_undefined_flag
9117 cat conftest.err 1>&5
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9123 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9124 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9290 if test "$GCC" = yes; then
9292 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9293 *) lt_awk_arg="/^libraries:/" ;;
9296 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9297 *) lt_sed_strip_eq="s,=/,/,g" ;;
9299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9300 case $lt_search_path_spec in
9302 # if the path contains ";" then we assume it to be the separator
9303 # otherwise default to the standard path separator (i.e. ":") - it is
9304 # assumed that no part of a normal pathname contains ";" but that should
9305 # okay in the real world where ";" in dirpaths is itself problematic.
9306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9312 # Ok, now we have the path, separated by spaces, we can step through it
9313 # and add multilib dir if necessary.
9314 lt_tmp_lt_search_path_spec=
9315 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9316 for lt_sys_path in $lt_search_path_spec; do
9317 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9318 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9320 test -d "$lt_sys_path" && \
9321 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9324 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9325 BEGIN {RS=" "; FS="/|\n";} {
9328 for (lt_i = NF; lt_i > 0; lt_i--) {
9329 if ($lt_i != "" && $lt_i != ".") {
9330 if ($lt_i == "..") {
9333 if (lt_count == 0) {
9334 lt_foo="/" $lt_i lt_foo;
9341 if (lt_foo != "") { lt_freq[lt_foo]++; }
9342 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9344 # AWK program above erroneously prepends '/' to C:/dos/paths
9347 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9348 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9350 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9355 libname_spec='lib$name'
9363 shlibpath_overrides_runpath=unknown
9365 dynamic_linker="$host_os ld.so"
9366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9367 need_lib_prefix=unknown
9368 hardcode_into_libs=no
9370 # when you set need_version to no, make sure it does not cause -set_version
9371 # flags to be left without arguments
9372 need_version=unknown
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9378 shlibpath_var=LIBPATH
9380 # AIX 3 has no versioning support, so we append a major version to the name.
9381 soname_spec='${libname}${release}${shared_ext}$major'
9388 hardcode_into_libs=yes
9389 if test "$host_cpu" = ia64; then
9390 # AIX 5 supports IA64
9391 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9392 shlibpath_var=LD_LIBRARY_PATH
9394 # With GCC up to 2.95.x, collect2 would create an import file
9395 # for dependence libraries. The import file would start with
9396 # the line `#! .'. This would cause the generated library to
9397 # depend on `.', always an invalid library. This was fixed in
9398 # development snapshots of GCC prior to 3.0.
9400 aix4 | aix4.[01] | aix4.[01].*)
9401 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9403 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9410 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9411 # soname into executable. Probably we can add versioning support to
9412 # collect2, so additional links can be useful in future.
9413 if test "$aix_use_runtimelinking" = yes; then
9414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9415 # instead of lib<name>.a to let people know that these are not
9416 # typical AIX shared libraries.
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 # We preserve .a as extension for shared libraries through AIX4.2
9420 # and later when we are not doing run time linking.
9421 library_names_spec='${libname}${release}.a $libname.a'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9424 shlibpath_var=LIBPATH
9431 # Since July 2007 AmigaOS4 officially supports .so libraries.
9432 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 library_names_spec='$libname.ixlibrary $libname.a'
9437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9438 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'
9444 library_names_spec='${libname}${shared_ext}'
9445 dynamic_linker="$host_os ld.so"
9446 shlibpath_var=LIBRARY_PATH
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9458 # the default ld.so.conf also contains /usr/contrib/lib and
9459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9460 # libtool to hard-code these into programs
9463 cygwin* | mingw* | pw32* | cegcc*)
9464 version_type=windows
9469 case $GCC,$host_os in
9470 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9471 library_names_spec='$libname.dll.a'
9472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9473 postinstall_cmds='base_file=`basename \${file}`~
9474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9475 dldir=$destdir/`dirname \$dlpath`~
9476 test -d \$dldir || mkdir -p \$dldir~
9477 $install_prog $dir/$dlname \$dldir/$dlname~
9478 chmod a+x \$dldir/$dlname~
9479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9483 dlpath=$dir/\$dldll~
9485 shlibpath_overrides_runpath=yes
9489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9495 # MinGW DLLs use traditional 'lib' prefix
9496 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9499 # pw32 DLLs use 'pw' prefix rather than 'lib'
9500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9509 dynamic_linker='Win32 ld.exe'
9510 # FIXME: first we should search . and the directory the executable is in
9514 darwin* | rhapsody*)
9515 dynamic_linker="$host_os dyld"
9519 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9520 soname_spec='${libname}${release}${major}$shared_ext'
9521 shlibpath_overrides_runpath=yes
9522 shlibpath_var=DYLD_LIBRARY_PATH
9523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 shlibpath_var=LD_LIBRARY_PATH
9542 freebsd* | dragonfly*)
9543 # DragonFly does not have aout. When/if they implement a new
9544 # versioning mechanism, adjust this.
9545 if test -x /usr/bin/objformat; then
9546 objformat=`/usr/bin/objformat`
9549 freebsd[123]*) objformat=aout ;;
9553 version_type=freebsd-$objformat
9554 case $version_type in
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9565 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=yes
9570 freebsd3.[01]* | freebsdelf3.[01]*)
9571 shlibpath_overrides_runpath=yes
9572 hardcode_into_libs=yes
9574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9576 shlibpath_overrides_runpath=no
9577 hardcode_into_libs=yes
9579 *) # from 4.6 on, and DragonFly
9580 shlibpath_overrides_runpath=yes
9581 hardcode_into_libs=yes
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 hardcode_into_libs=yes
9600 dynamic_linker="$host_os runtime_loader"
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9606 hardcode_into_libs=yes
9609 hpux9* | hpux10* | hpux11*)
9610 # Give a soname corresponding to the major version so that dld.sl refuses to
9611 # link against other versions.
9618 hardcode_into_libs=yes
9619 dynamic_linker="$host_os dld.so"
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
9625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9633 hardcode_into_libs=yes
9634 dynamic_linker="$host_os dld.sl"
9635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9644 dynamic_linker="$host_os dld.sl"
9645 shlibpath_var=SHLIB_PATH
9646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 soname_spec='${libname}${release}${shared_ext}$major'
9651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9652 postinstall_cmds='chmod 555 $lib'
9653 # or fails outright, so override atomically:
9654 install_override_mode=555
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9664 shlibpath_var=LD_LIBRARY_PATH
9665 shlibpath_overrides_runpath=no
9666 hardcode_into_libs=yes
9669 irix5* | irix6* | nonstopux*)
9671 nonstopux*) version_type=nonstopux ;;
9673 if test "$lt_cv_prog_gnu_ld" = yes; then
9681 soname_spec='${libname}${release}${shared_ext}$major'
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9684 irix5* | nonstopux*)
9688 case $LD in # libtool.m4 will add one of these switches to LD
9689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9690 libsuff= shlibsuff= libmagic=32-bit;;
9691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9692 libsuff=32 shlibsuff=N32 libmagic=N32;;
9693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9695 *) libsuff= shlibsuff= libmagic=never-match;;
9699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9700 shlibpath_overrides_runpath=no
9701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9703 hardcode_into_libs=yes
9706 # No shared lib support for Linux oldld, aout, or coff.
9707 linux*oldld* | linux*aout* | linux*coff*)
9711 # This must be Linux ELF.
9712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9719 shlibpath_var=LD_LIBRARY_PATH
9720 shlibpath_overrides_runpath=no
9722 # Some binutils ld are patched to set DT_RUNPATH
9723 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9726 lt_cv_shlibpath_overrides_runpath=no
9727 save_LDFLAGS=$LDFLAGS
9729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9742 if ac_fn_c_try_link "$LINENO"; then :
9743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9744 lt_cv_shlibpath_overrides_runpath=yes
9747 rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LDFLAGS=$save_LDFLAGS
9754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9756 # This implies no fast_install, which is unacceptable.
9757 # Some rework will be needed to allow for fast_install
9758 # before this can be enabled.
9759 hardcode_into_libs=yes
9761 # Append ld.so.conf contents to the search path
9762 if test -f /etc/ld.so.conf; then
9763 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' ' '`
9764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9767 # We used to test for /lib/ld.so.1 and disable shared libraries on
9768 # powerpc, because MkLinux only supported shared libraries with the
9769 # GNU dynamic linker. Since this was broken with cross compilers,
9770 # most powerpc-linux boxes support dynamic linking these days and
9771 # people can always --disable-shared, the test was removed, and we
9772 # assume the GNU/Linux dynamic linker is in use.
9773 dynamic_linker='GNU/Linux ld.so'
9780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9783 dynamic_linker='NetBSD (a.out) ld.so'
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 dynamic_linker='NetBSD ld.elf_so'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=yes
9791 hardcode_into_libs=yes
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=yes
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 shlibpath_var=LD_LIBRARY_PATH
9808 shlibpath_overrides_runpath=no
9809 hardcode_into_libs=yes
9810 dynamic_linker='ldqnx.so'
9815 sys_lib_dlsearch_path_spec="/usr/lib"
9817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9820 *) need_version=no ;;
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9827 openbsd2.[89] | openbsd2.[89].*)
9828 shlibpath_overrides_runpath=no
9831 shlibpath_overrides_runpath=yes
9835 shlibpath_overrides_runpath=yes
9840 libname_spec='$name'
9843 library_names_spec='$libname${shared_ext} $libname.a'
9844 dynamic_linker='OS/2 ld.exe'
9845 shlibpath_var=LIBPATH
9848 osf3* | osf4* | osf5*)
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 soname_spec='${libname}${release}${shared_ext}$major'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 shlibpath_overrides_runpath=yes
9871 hardcode_into_libs=yes
9872 # ldd complains unless libraries are executable
9873 postinstall_cmds='chmod +x $lib'
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 shlibpath_overrides_runpath=yes
9882 if test "$with_gnu_ld" = yes; then
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 case $host_vendor in
9895 shlibpath_overrides_runpath=no
9897 runpath_var=LD_RUN_PATH
9905 shlibpath_overrides_runpath=no
9906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9912 if test -d /usr/nec ;then
9914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9915 soname_spec='$libname${shared_ext}.$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9921 version_type=freebsd-elf
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 hardcode_into_libs=yes
9929 if test "$with_gnu_ld" = yes; then
9930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9939 sys_lib_dlsearch_path_spec='/usr/lib'
9943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 shlibpath_overrides_runpath=no
9950 hardcode_into_libs=yes
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 shlibpath_var=LD_LIBRARY_PATH
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9965 $as_echo "$dynamic_linker" >&6; }
9966 test "$dynamic_linker" = no && can_build_shared=no
9968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9969 if test "$GCC" = yes; then
9970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10074 if test -n "$hardcode_libdir_flag_spec" ||
10075 test -n "$runpath_var" ||
10076 test "X$hardcode_automatic" = "Xyes" ; then
10078 # We can hardcode non-existent directories.
10079 if test "$hardcode_direct" != no &&
10080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10081 # have to relink, otherwise we might link with an installed library
10082 # when we should be linking with a yet-to-be-installed one
10083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10084 test "$hardcode_minus_L" != no; then
10085 # Linking always hardcodes the temporary library directory.
10086 hardcode_action=relink
10088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10089 hardcode_action=immediate
10092 # We cannot hardcode anything, or else we can only hardcode existing
10094 hardcode_action=unsupported
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10097 $as_echo "$hardcode_action" >&6; }
10099 if test "$hardcode_action" = relink ||
10100 test "$inherit_rpath" = yes; then
10101 # Fast installation is not supported
10102 enable_fast_install=no
10103 elif test "$shlibpath_overrides_runpath" = yes ||
10104 test "$enable_shared" = no; then
10105 # Fast installation is not necessary
10106 enable_fast_install=needless
10114 if test "x$enable_dlopen" != xyes; then
10115 enable_dlopen=unknown
10116 enable_dlopen_self=unknown
10117 enable_dlopen_self_static=unknown
10124 lt_cv_dlopen="load_add_on"
10126 lt_cv_dlopen_self=yes
10129 mingw* | pw32* | cegcc*)
10130 lt_cv_dlopen="LoadLibrary"
10135 lt_cv_dlopen="dlopen"
10140 # if libdl is installed we need to link against it
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10146 ac_check_lib_save_LIBS=$LIBS
10148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10166 if ac_fn_c_try_link "$LINENO"; then :
10167 ac_cv_lib_dl_dlopen=yes
10169 ac_cv_lib_dl_dlopen=no
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 LIBS=$ac_check_lib_save_LIBS
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10177 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10181 lt_cv_dlopen="dyld"
10183 lt_cv_dlopen_self=yes
10190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10191 if test "x$ac_cv_func_shl_load" = x""yes; then :
10192 lt_cv_dlopen="shl_load"
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10196 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10199 ac_check_lib_save_LIBS=$LIBS
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10214 return shl_load ();
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_dld_shl_load=yes
10222 ac_cv_lib_dld_shl_load=no
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10230 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10234 if test "x$ac_cv_func_dlopen" = x""yes; then :
10235 lt_cv_dlopen="dlopen"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10240 $as_echo_n "(cached) " >&6
10242 ac_check_lib_save_LIBS=$LIBS
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10247 /* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 ac_cv_lib_dl_dlopen=yes
10265 ac_cv_lib_dl_dlopen=no
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10273 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10278 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10281 ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-lsvld $LIBS"
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10286 /* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 ac_cv_lib_svld_dlopen=yes
10304 ac_cv_lib_svld_dlopen=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10312 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10320 ac_check_lib_save_LIBS=$LIBS
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10335 return dld_link ();
10340 if ac_fn_c_try_link "$LINENO"; then :
10341 ac_cv_lib_dld_dld_link=yes
10343 ac_cv_lib_dld_dld_link=no
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10351 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10373 if test "x$lt_cv_dlopen" != xno; then
10379 case $lt_cv_dlopen in
10381 save_CPPFLAGS="$CPPFLAGS"
10382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10384 save_LDFLAGS="$LDFLAGS"
10385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10388 LIBS="$lt_cv_dlopen_libs $LIBS"
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10392 if test "${lt_cv_dlopen_self+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
10395 if test "$cross_compiling" = yes; then :
10396 lt_cv_dlopen_self=cross
10398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10399 lt_status=$lt_dlunknown
10400 cat > conftest.$ac_ext <<_LT_EOF
10401 #line 10401 "configure"
10402 #include "confdefs.h"
10411 # define LT_DLGLOBAL RTLD_GLOBAL
10414 # define LT_DLGLOBAL DL_GLOBAL
10416 # define LT_DLGLOBAL 0
10420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10421 find out it does not work in some platform. */
10422 #ifndef LT_DLLAZY_OR_NOW
10424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10427 # define LT_DLLAZY_OR_NOW DL_LAZY
10430 # define LT_DLLAZY_OR_NOW RTLD_NOW
10433 # define LT_DLLAZY_OR_NOW DL_NOW
10435 # define LT_DLLAZY_OR_NOW 0
10442 /* When -fvisbility=hidden is used, assume the code has been annotated
10443 correspondingly for the symbols needed. */
10444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10445 void fnord () __attribute__((visibility("default")));
10448 void fnord () { int i=42; }
10451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10452 int status = $lt_dlunknown;
10456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10460 else puts (dlerror ());
10462 /* dlclose (self); */
10470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10471 (eval $ac_link) 2>&5
10473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10475 (./conftest; exit; ) >&5 2>/dev/null
10477 case x$lt_status in
10478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10483 # compilation failed
10484 lt_cv_dlopen_self=no
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10492 $as_echo "$lt_cv_dlopen_self" >&6; }
10494 if test "x$lt_cv_dlopen_self" = xyes; then
10495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10498 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10499 $as_echo_n "(cached) " >&6
10501 if test "$cross_compiling" = yes; then :
10502 lt_cv_dlopen_self_static=cross
10504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10505 lt_status=$lt_dlunknown
10506 cat > conftest.$ac_ext <<_LT_EOF
10507 #line 10507 "configure"
10508 #include "confdefs.h"
10517 # define LT_DLGLOBAL RTLD_GLOBAL
10520 # define LT_DLGLOBAL DL_GLOBAL
10522 # define LT_DLGLOBAL 0
10526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10527 find out it does not work in some platform. */
10528 #ifndef LT_DLLAZY_OR_NOW
10530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10533 # define LT_DLLAZY_OR_NOW DL_LAZY
10536 # define LT_DLLAZY_OR_NOW RTLD_NOW
10539 # define LT_DLLAZY_OR_NOW DL_NOW
10541 # define LT_DLLAZY_OR_NOW 0
10548 /* When -fvisbility=hidden is used, assume the code has been annotated
10549 correspondingly for the symbols needed. */
10550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10551 void fnord () __attribute__((visibility("default")));
10554 void fnord () { int i=42; }
10557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10558 int status = $lt_dlunknown;
10562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10566 else puts (dlerror ());
10568 /* dlclose (self); */
10576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10577 (eval $ac_link) 2>&5
10579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10581 (./conftest; exit; ) >&5 2>/dev/null
10583 case x$lt_status in
10584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10589 # compilation failed
10590 lt_cv_dlopen_self_static=no
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10601 CPPFLAGS="$save_CPPFLAGS"
10602 LDFLAGS="$save_LDFLAGS"
10607 case $lt_cv_dlopen_self in
10608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10609 *) enable_dlopen_self=unknown ;;
10612 case $lt_cv_dlopen_self_static in
10613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10614 *) enable_dlopen_self_static=unknown ;;
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10642 $as_echo "yes" >&6; }
10644 # FIXME - insert some real tests, host_os isn't really good enough
10647 if test -n "$STRIP" ; then
10648 striplib="$STRIP -x"
10649 old_striplib="$STRIP -S"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; }
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10654 $as_echo "no" >&6; }
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 $as_echo "no" >&6; }
10675 # Report which library types will actually be built
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10679 $as_echo "$can_build_shared" >&6; }
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10682 $as_echo_n "checking whether to build shared libraries... " >&6; }
10683 test "$can_build_shared" = "no" && enable_shared=no
10685 # On AIX, shared libraries and static libraries use the same namespace, and
10686 # are all built from PIC.
10689 test "$enable_shared" = yes && enable_static=no
10690 if test -n "$RANLIB"; then
10691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10692 postinstall_cmds='$RANLIB $lib'
10697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10698 test "$enable_shared" = yes && enable_static=no
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10703 $as_echo "$enable_shared" >&6; }
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10706 $as_echo_n "checking whether to build static libraries... " >&6; }
10707 # Make sure either enable_shared or enable_static is yes.
10708 test "$enable_shared" = yes || enable_static=yes
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10710 $as_echo "$enable_static" >&6; }
10717 ac_cpp='$CPP $CPPFLAGS'
10718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736 ac_config_commands="$ac_config_commands libtool"
10741 # Only expand once:
10745 . ${srcdir}/../gcc/config.gcc
10746 case ${lto_binary_reader} in
10747 *coff*) LTO_FORMAT=coff ;;
10748 *elf*) LTO_FORMAT=elf ;;
10749 *) as_fn_error "LTO plugin is not supported on this target." "$LINENO" 5 ;;
10753 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10754 case $ac_cv_c_uint64_t in #(
10758 $as_echo "#define _UINT64_T 1" >>confdefs.h
10761 cat >>confdefs.h <<_ACEOF
10762 #define uint64_t $ac_cv_c_uint64_t
10767 ac_config_files="$ac_config_files Makefile"
10769 cat >confcache <<\_ACEOF
10770 # This file is a shell script that caches the results of configure
10771 # tests run on this system so they can be shared between configure
10772 # scripts and configure runs, see configure's option --config-cache.
10773 # It is not useful on other systems. If it contains results you don't
10774 # want to keep, you may remove or edit it.
10776 # config.status only pays attention to the cache file if you give it
10777 # the --recheck option to rerun configure.
10779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10781 # following values.
10785 # The following way of writing the cache mishandles newlines in values,
10786 # but we know of no workaround that is simple, portable, and efficient.
10787 # So, we kill variables containing newlines.
10788 # Ultrix sh set writes to stderr and can't be redirected directly,
10789 # and sets the high bit in the cache file unless we assign to the vars.
10791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10792 eval ac_val=\$$ac_var
10796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10800 _ | IFS | as_nl) ;; #(
10801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10802 *) { eval $ac_var=; unset $ac_var;} ;;
10808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10809 *${as_nl}ac_space=\ *)
10810 # `set' does not quote correctly, so add quotes: double-quote
10811 # substitution turns \\\\ into \\, and sed turns \\ into \.
10814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10817 # `set' quotes correctly as required by POSIX, so do not add quotes.
10818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10832 if test -w "$cache_file"; then
10833 test "x$cache_file" != "x/dev/null" &&
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10835 $as_echo "$as_me: updating cache $cache_file" >&6;}
10836 cat confcache >$cache_file
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10839 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10845 # Let make expand exec_prefix.
10846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10848 # Transform confdefs.h into DEFS.
10849 # Protect against shell expansion while executing Makefile rules.
10850 # Protect against Makefile macro expansion.
10852 # If the first sed substitution is executed (which looks for macros that
10853 # take arguments), then branch to the quote section. Otherwise,
10854 # look for a macro that doesn't take arguments.
10864 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10866 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10870 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10883 DEFS=`sed -n "$ac_script" confdefs.h`
10888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10889 # 1. Remove the extension, and $U if already installed.
10890 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10891 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10892 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10893 # will be set to the directory where LIBOBJS objects are built.
10894 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10895 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10897 LIBOBJS=$ac_libobjs
10899 LTLIBOBJS=$ac_ltlibobjs
10902 if test -n "$EXEEXT"; then
10904 am__EXEEXT_FALSE='#'
10906 am__EXEEXT_TRUE='#'
10910 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10911 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10915 as_fn_error "conditional \"AMDEP\" was never defined.
10916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10919 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10923 : ${CONFIG_STATUS=./config.status}
10925 ac_clean_files_save=$ac_clean_files
10926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10932 # Generated by $as_me.
10933 # Run this file to recreate the current configuration.
10934 # Compiler output produced by configure, useful for debugging
10935 # configure, is in config.log if it exists.
10938 ac_cs_recheck=false
10941 SHELL=\${CONFIG_SHELL-$SHELL}
10944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10945 ## -------------------- ##
10946 ## M4sh Initialization. ##
10947 ## -------------------- ##
10949 # Be more Bourne compatible
10950 DUALCASE=1; export DUALCASE # for MKS sh
10951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10954 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10955 # is contrary to our usage. Disable this feature.
10956 alias -g '${1+"$@"}'='"$@"'
10957 setopt NO_GLOB_SUBST
10959 case `(set -o) 2>/dev/null` in #(
10971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10975 # Prefer a ksh shell builtin over an external printf program on Solaris,
10976 # but without wasting forks for bash or zsh.
10977 if test -z "$BASH_VERSION$ZSH_VERSION" \
10978 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10979 as_echo='print -r --'
10980 as_echo_n='print -rn --'
10981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10982 as_echo='printf %s\n'
10983 as_echo_n='printf %s'
10985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10987 as_echo_n='/usr/ucb/echo -n'
10989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10990 as_echo_n_body='eval
10994 expr "X$arg" : "X\\(.*\\)$as_nl";
10995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10999 export as_echo_n_body
11000 as_echo_n='sh -c $as_echo_n_body as_echo'
11002 export as_echo_body
11003 as_echo='sh -c $as_echo_body as_echo'
11006 # The user is always right.
11007 if test "${PATH_SEPARATOR+set}" != set; then
11009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11017 # We need space, tab and new line, in precisely that order. Quoting is
11018 # there to prevent editors from complaining about space-tab.
11019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11020 # splitting by setting IFS to empty value.)
11023 # Find who we are. Look in the path if we contain no directory separator.
11025 *[\\/]* ) as_myself=$0 ;;
11026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11030 test -z "$as_dir" && as_dir=.
11031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11037 # We did not find ourselves, most probably we were run as `sh COMMAND'
11038 # in which case we are not to be found in the path.
11039 if test "x$as_myself" = x; then
11042 if test ! -f "$as_myself"; then
11043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11047 # Unset variables that we do not need and which cause bugs (e.g. in
11048 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11049 # suppresses any "Segmentation fault" message there. '((' could
11050 # trigger a bug in pdksh 5.2.14.
11051 for as_var in BASH_ENV ENV MAIL MAILPATH
11052 do eval test x\${$as_var+set} = xset \
11053 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11066 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11069 # as_fn_error ERROR [LINENO LOG_FD]
11070 # ---------------------------------
11071 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11072 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11073 # script with status $?, using 1 if that was 0.
11076 as_status=$?; test $as_status -eq 0 && as_status=1
11078 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11081 $as_echo "$as_me: error: $1" >&2
11082 as_fn_exit $as_status
11086 # as_fn_set_status STATUS
11087 # -----------------------
11088 # Set $? to STATUS, without forking.
11089 as_fn_set_status ()
11092 } # as_fn_set_status
11094 # as_fn_exit STATUS
11095 # -----------------
11096 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11100 as_fn_set_status $1
11106 # Portably unset VAR.
11109 { eval $1=; unset $1;}
11111 as_unset=as_fn_unset
11112 # as_fn_append VAR VALUE
11113 # ----------------------
11114 # Append the text in VALUE to the end of the definition contained in VAR. Take
11115 # advantage of any shell optimizations that allow amortized linear growth over
11116 # repeated appends, instead of the typical quadratic growth present in naive
11118 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11119 eval 'as_fn_append ()
11130 # as_fn_arith ARG...
11131 # ------------------
11132 # Perform arithmetic evaluation on the ARGs, and store the result in the
11133 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11134 # must be portable across $(()) and expr.
11135 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11136 eval 'as_fn_arith ()
11143 as_val=`expr "$@" || test $? -eq 1`
11148 if expr a : '\(a\)' >/dev/null 2>&1 &&
11149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11156 as_basename=basename
11161 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11167 as_me=`$as_basename -- "$0" ||
11168 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11169 X"$0" : 'X\(//\)$' \| \
11170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11172 sed '/^.*\/\([^/][^/]*\)\/*$/{
11186 # Avoid depending upon Character Ranges.
11187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11190 as_cr_digits='0123456789'
11191 as_cr_alnum=$as_cr_Letters$as_cr_digits
11193 ECHO_C= ECHO_N= ECHO_T=
11194 case `echo -n x` in #(((((
11196 case `echo 'xy\c'` in
11197 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11199 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11206 rm -f conf$$ conf$$.exe conf$$.file
11207 if test -d conf$$.dir; then
11208 rm -f conf$$.dir/conf$$.file
11211 mkdir conf$$.dir 2>/dev/null
11213 if (echo >conf$$.file) 2>/dev/null; then
11214 if ln -s conf$$.file conf$$ 2>/dev/null; then
11216 # ... but there are two gotchas:
11217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11219 # In both cases, we have to default to `cp -p'.
11220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11222 elif ln conf$$.file conf$$ 2>/dev/null; then
11230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11231 rmdir conf$$.dir 2>/dev/null
11236 # Create "$as_dir" as a directory, including parents if necessary.
11241 -*) as_dir=./$as_dir;;
11243 test -d "$as_dir" || eval $as_mkdir_p || {
11247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11248 *) as_qdir=$as_dir;;
11250 as_dirs="'$as_qdir' $as_dirs"
11251 as_dir=`$as_dirname -- "$as_dir" ||
11252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11253 X"$as_dir" : 'X\(//\)[^/]' \| \
11254 X"$as_dir" : 'X\(//\)$' \| \
11255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11256 $as_echo X"$as_dir" |
11257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11261 /^X\(\/\/\)[^/].*/{
11274 test -d "$as_dir" && break
11276 test -z "$as_dirs" || eval "mkdir $as_dirs"
11277 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11281 if mkdir -p . 2>/dev/null; then
11282 as_mkdir_p='mkdir -p "$as_dir"'
11284 test -d ./-p && rmdir ./-p
11288 if test -x / >/dev/null 2>&1; then
11289 as_test_x='test -x'
11291 if ls -dL / >/dev/null 2>&1; then
11298 if test -d "$1"; then
11304 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11305 ???[sx]*):;;*)false;;esac;fi
11309 as_executable_p=$as_test_x
11311 # Sed expression to map a string onto a valid CPP name.
11312 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11314 # Sed expression to map a string onto a valid variable name.
11315 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11319 ## ----------------------------------- ##
11320 ## Main body of $CONFIG_STATUS script. ##
11321 ## ----------------------------------- ##
11323 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11326 # Save the log message, to keep $0 and so on meaningful, and to
11327 # report actual input values of CONFIG_FILES etc. instead of their
11328 # values after options handling.
11330 This file was extended by LTO plugin for ld $as_me 0.1, which was
11331 generated by GNU Autoconf 2.64. Invocation command line was
11333 CONFIG_FILES = $CONFIG_FILES
11334 CONFIG_HEADERS = $CONFIG_HEADERS
11335 CONFIG_LINKS = $CONFIG_LINKS
11336 CONFIG_COMMANDS = $CONFIG_COMMANDS
11339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11344 case $ac_config_files in *"
11345 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11351 # Files that config.status was made for.
11352 config_files="$ac_config_files"
11353 config_commands="$ac_config_commands"
11357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11359 \`$as_me' instantiates files and other configuration actions
11360 from templates according to the current configuration. Unless the files
11361 and actions are specified as TAGs, all are instantiated by default.
11363 Usage: $0 [OPTION]... [TAG]...
11365 -h, --help print this help, then exit
11366 -V, --version print version number and configuration settings, then exit
11367 -q, --quiet, --silent
11368 do not print progress messages
11369 -d, --debug don't remove temporary files
11370 --recheck update $as_me by reconfiguring in the same conditions
11371 --file=FILE[:TEMPLATE]
11372 instantiate the configuration file FILE
11374 Configuration files:
11377 Configuration commands:
11380 Report bugs to the package provider."
11383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11385 LTO plugin for ld config.status 0.1
11386 configured by $0, generated by GNU Autoconf 2.64,
11387 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11389 Copyright (C) 2009 Free Software Foundation, Inc.
11390 This config.status script is free software; the Free Software Foundation
11391 gives unlimited permission to copy, distribute and modify it."
11398 test -n "\$AWK" || AWK=awk
11401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11402 # The default lists apply if the user does not specify any file.
11408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11409 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11420 # Handling of the options.
11421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11424 $as_echo "$ac_cs_version"; exit ;;
11425 --debug | --debu | --deb | --de | --d | -d )
11427 --file | --fil | --fi | --f )
11430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11432 as_fn_append CONFIG_FILES " '$ac_optarg'"
11433 ac_need_defaults=false;;
11434 --he | --h | --help | --hel | -h )
11435 $as_echo "$ac_cs_usage"; exit ;;
11436 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11437 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11440 # This is an error.
11441 -*) as_fn_error "unrecognized option: \`$1'
11442 Try \`$0 --help' for more information." ;;
11444 *) as_fn_append ac_config_targets " $1"
11445 ac_need_defaults=false ;;
11451 ac_configure_extra_args=
11453 if $ac_cs_silent; then
11455 ac_configure_extra_args="$ac_configure_extra_args --silent"
11459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11460 if \$ac_cs_recheck; then
11461 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11464 CONFIG_SHELL='$SHELL'
11465 export CONFIG_SHELL
11470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11475 ## Running $as_me. ##
11481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11485 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11488 # The HP-UX ksh and POSIX shell print the target directory to stdout
11489 # if CDPATH is set.
11490 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11492 sed_quote_subst='$sed_quote_subst'
11493 double_quote_subst='$double_quote_subst'
11494 delay_variable_subst='$delay_variable_subst'
11495 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11496 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11497 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11498 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11499 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11500 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11501 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11502 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11503 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11504 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11505 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11506 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11507 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11508 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11509 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11510 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11511 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11512 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11513 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11514 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11515 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11516 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11517 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11518 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11519 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11520 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11521 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11522 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11523 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11524 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11525 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11526 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11527 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11528 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11529 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11530 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11531 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11532 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11533 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11534 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11535 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11536 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11537 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11538 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11539 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11540 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11541 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11542 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11543 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"`'
11544 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11545 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11546 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11547 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11548 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11549 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11550 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11551 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11552 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11553 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11554 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11555 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11556 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11557 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11558 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11559 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11560 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11561 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11562 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11563 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11564 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11565 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11566 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11567 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11568 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11569 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11570 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11571 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11572 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11573 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11574 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11575 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11576 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11577 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11578 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11579 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11580 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11581 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11582 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11583 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11584 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11585 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11586 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11587 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11588 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11589 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11590 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11591 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11592 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11593 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11594 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11595 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11596 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11597 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11598 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11599 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11600 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11601 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11602 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11603 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11604 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11605 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11606 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11607 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11608 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11609 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11610 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11611 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11612 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11613 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11614 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11617 LTCFLAGS='$LTCFLAGS'
11618 compiler='$compiler_DEFAULT'
11620 # A function that is used when there is no print builtin or printf.
11621 func_fallback_echo ()
11623 eval 'cat <<_LTECHO_EOF
11628 # Quote evaled strings.
11642 deplibs_check_method \
11651 lt_cv_sys_global_symbol_pipe \
11652 lt_cv_sys_global_symbol_to_cdecl \
11653 lt_cv_sys_global_symbol_to_c_name_address \
11654 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11655 lt_prog_compiler_no_builtin_flag \
11656 lt_prog_compiler_wl \
11657 lt_prog_compiler_pic \
11658 lt_prog_compiler_static \
11659 lt_cv_prog_compiler_c_o \
11667 export_dynamic_flag_spec \
11668 whole_archive_flag_spec \
11669 compiler_needs_object \
11671 allow_undefined_flag \
11672 no_undefined_flag \
11673 hardcode_libdir_flag_spec \
11674 hardcode_libdir_flag_spec_ld \
11675 hardcode_libdir_separator \
11680 variables_saved_for_relink \
11682 library_names_spec \
11684 install_override_mode \
11688 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11689 *[\\\\\\\`\\"\\\$]*)
11690 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11693 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11698 # Double-quote double-evaled strings.
11699 for var in reload_cmds \
11700 old_postinstall_cmds \
11701 old_postuninstall_cmds \
11703 extract_expsyms_cmds \
11704 old_archive_from_new_cmds \
11705 old_archive_from_expsyms_cmds \
11707 archive_expsym_cmds \
11709 module_expsym_cmds \
11710 export_symbols_cmds \
11713 postuninstall_cmds \
11715 sys_lib_search_path_spec \
11716 sys_lib_dlsearch_path_spec; do
11717 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11718 *[\\\\\\\`\\"\\\$]*)
11719 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11722 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11727 ac_aux_dir='$ac_aux_dir'
11728 xsi_shell='$xsi_shell'
11729 lt_shell_append='$lt_shell_append'
11731 # See if we are running on zsh, and set the options which allow our
11732 # commands through without removal of \ escapes INIT.
11733 if test -n "\${ZSH_VERSION+set}" ; then
11734 setopt NO_GLOB_SUBST
11740 TIMESTAMP='$TIMESTAMP'
11749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11751 # Handling of arguments.
11752 for ac_config_target in $ac_config_targets
11754 case $ac_config_target in
11755 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11756 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11757 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11759 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11764 # If the user did not use the arguments to specify the items to instantiate,
11765 # then the envvar interface is used. Set only those that are not.
11766 # We use the long form for the default assignment because of an extremely
11767 # bizarre bug on SunOS 4.1.3.
11768 if $ac_need_defaults; then
11769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11773 # Have a temporary directory for convenience. Make it in the build tree
11774 # simply because there is no reason against having it here, and in addition,
11775 # creating and moving files from /tmp can sometimes cause problems.
11776 # Hook for its removal unless debugging.
11777 # Note that there is a small window in which the directory will not be cleaned:
11778 # after its creation but before its name has been assigned to `$tmp'.
11782 trap 'exit_status=$?
11783 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11785 trap 'as_fn_exit 1' 1 2 13 15
11787 # Create a (secure) tmp directory for tmp files.
11790 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11791 test -n "$tmp" && test -d "$tmp"
11794 tmp=./conf$$-$RANDOM
11795 (umask 077 && mkdir "$tmp")
11796 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11798 # Set up the scripts for CONFIG_FILES section.
11799 # No need to generate them if there are no CONFIG_FILES.
11800 # This happens for instance with `./config.status config.h'.
11801 if test -n "$CONFIG_FILES"; then
11804 ac_cr=`echo X | tr X '\015'`
11805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11806 # But we know of no other shell where ac_cr would be empty at this
11807 # point, so we can use a bashism as a fallback.
11808 if test "x$ac_cr" = x; then
11809 eval ac_cr=\$\'\\r\'
11811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11815 ac_cs_awk_cr=$ac_cr
11818 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11823 echo "cat >conf$$subs.awk <<_ACEOF" &&
11824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11826 } >conf$$subs.sh ||
11827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11828 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11830 for ac_last_try in false false false false false :; do
11831 . ./conf$$subs.sh ||
11832 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11835 if test $ac_delim_n = $ac_delim_num; then
11837 elif $ac_last_try; then
11838 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11843 rm -f conf$$subs.sh
11845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11846 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11850 s/^/S["/; s/!.*/"]=/
11860 s/\(.\{148\}\).*/\1/
11862 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11874 s/\(.\{148\}\).*/\1/
11876 s/["\\]/\\&/g; s/^/"/; s/$/"/
11880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11885 ' <conf$$subs.awk | sed '
11890 ' >>$CONFIG_STATUS || ac_write_fail=1
11891 rm -f conf$$subs.awk
11892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11894 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11895 for (key in S) S_is_set[key] = 1
11901 nfields = split(line, field, "@")
11903 len = length(field[1])
11904 for (i = 2; i < nfields; i++) {
11906 keylen = length(key)
11907 if (S_is_set[key]) {
11909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11910 len += length(value) + length(field[++i])
11921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11922 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11926 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11927 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11930 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11931 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11932 # trailing colons and then remove the whole line if VPATH becomes empty
11933 # (actually we leave an empty line to preserve line numbers).
11934 if test "x$srcdir" = x.; then
11935 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11936 s/:*\$(srcdir):*/:/
11937 s/:*\${srcdir}:*/:/
11939 s/^\([^=]*=[ ]*\):*/\1/
11945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11946 fi # test -n "$CONFIG_FILES"
11949 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11954 :[FHLC]) ac_mode=$ac_tag; continue;;
11956 case $ac_mode$ac_tag in
11958 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11959 :[FH]-) ac_tag=-:-;;
11960 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11977 -) ac_f="$tmp/stdin";;
11978 *) # Look for the file first in the build tree, then in the source tree
11979 # (if the path is not absolute). The absolute path cannot be DOS-style,
11980 # because $ac_f cannot contain `:'.
11984 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11986 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11988 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11989 as_fn_append ac_file_inputs " '$ac_f'"
11992 # Let's still pretend it is `configure' which instantiates (i.e., don't
11993 # use $as_me), people would be surprised to read:
11994 # /* config.h. Generated by config.status. */
11995 configure_input='Generated from '`
11996 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11998 if test x"$ac_file" != x-; then
11999 configure_input="$ac_file. $configure_input"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12001 $as_echo "$as_me: creating $ac_file" >&6;}
12003 # Neutralize special characters interpreted by sed in replacement strings.
12004 case $configure_input in #(
12005 *\&* | *\|* | *\\* )
12006 ac_sed_conf_input=`$as_echo "$configure_input" |
12007 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12008 *) ac_sed_conf_input=$configure_input;;
12012 *:-:* | *:-) cat >"$tmp/stdin" \
12013 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12018 ac_dir=`$as_dirname -- "$ac_file" ||
12019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12020 X"$ac_file" : 'X\(//\)[^/]' \| \
12021 X"$ac_file" : 'X\(//\)$' \| \
12022 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12023 $as_echo X"$ac_file" |
12024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12028 /^X\(\/\/\)[^/].*/{
12041 as_dir="$ac_dir"; as_fn_mkdir_p
12045 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12047 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12048 # A ".." for each directory in $ac_dir_suffix.
12049 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12050 case $ac_top_builddir_sub in
12051 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12052 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12055 ac_abs_top_builddir=$ac_pwd
12056 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12057 # for backward compatibility:
12058 ac_top_builddir=$ac_top_build_prefix
12061 .) # We are building in place.
12063 ac_top_srcdir=$ac_top_builddir_sub
12064 ac_abs_top_srcdir=$ac_pwd ;;
12065 [\\/]* | ?:[\\/]* ) # Absolute name.
12066 ac_srcdir=$srcdir$ac_dir_suffix;
12067 ac_top_srcdir=$srcdir
12068 ac_abs_top_srcdir=$srcdir ;;
12069 *) # Relative name.
12070 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12071 ac_top_srcdir=$ac_top_build_prefix$srcdir
12072 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12074 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12084 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12085 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12087 ac_MKDIR_P=$MKDIR_P
12089 [\\/$]* | ?:[\\/]* ) ;;
12090 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095 # If the template does not know about datarootdir, expand it.
12096 # FIXME: This hack should be removed a few years after 2.60.
12097 ac_datarootdir_hack=; ac_datarootdir_seen=
12108 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12109 *datarootdir*) ac_datarootdir_seen=yes;;
12110 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12112 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12115 ac_datarootdir_hack='
12116 s&@datadir@&$datadir&g
12117 s&@docdir@&$docdir&g
12118 s&@infodir@&$infodir&g
12119 s&@localedir@&$localedir&g
12120 s&@mandir@&$mandir&g
12121 s&\\\${datarootdir}&$datarootdir&g' ;;
12125 # Neutralize VPATH when `$srcdir' = `.'.
12126 # Shell code in configure.ac might set extrasub.
12127 # FIXME: do we really want to maintain this feature?
12128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12129 ac_sed_extra="$ac_vpsub
12132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12135 s|@configure_input@|$ac_sed_conf_input|;t t
12136 s&@top_builddir@&$ac_top_builddir_sub&;t t
12137 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12138 s&@srcdir@&$ac_srcdir&;t t
12139 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12140 s&@top_srcdir@&$ac_top_srcdir&;t t
12141 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12142 s&@builddir@&$ac_builddir&;t t
12143 s&@abs_builddir@&$ac_abs_builddir&;t t
12144 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12145 s&@INSTALL@&$ac_INSTALL&;t t
12146 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12147 $ac_datarootdir_hack
12149 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12150 || as_fn_error "could not create $ac_file" "$LINENO" 5
12152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12153 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12156 which seems to be undefined. Please make sure it is defined." >&5
12157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12158 which seems to be undefined. Please make sure it is defined." >&2;}
12162 -) cat "$tmp/out" && rm -f "$tmp/out";;
12163 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12165 || as_fn_error "could not create $ac_file" "$LINENO" 5
12169 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12170 $as_echo "$as_me: executing $ac_file commands" >&6;}
12175 case $ac_file$ac_mode in
12176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12177 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12178 # are listed without --file. Let's play safe and only enable the eval
12179 # if we detect the quoting.
12180 case $CONFIG_FILES in
12181 *\'*) eval set x "$CONFIG_FILES" ;;
12182 *) set x $CONFIG_FILES ;;
12187 # Strip MF so we end up with the name of the file.
12188 mf=`echo "$mf" | sed -e 's/:.*$//'`
12189 # Check whether this is an Automake generated Makefile or not.
12190 # We used to match only the files named `Makefile.in', but
12191 # some people rename them; so instead we look at the file content.
12192 # Grep'ing the first line is not enough: some people post-process
12193 # each Makefile.in and add a new line on top of each file to say so.
12194 # Grep'ing the whole file is not good either: AIX grep has a line
12195 # limit of 2048, but all sed's we know have understand at least 4000.
12196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12197 dirpart=`$as_dirname -- "$mf" ||
12198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12199 X"$mf" : 'X\(//\)[^/]' \| \
12200 X"$mf" : 'X\(//\)$' \| \
12201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12207 /^X\(\/\/\)[^/].*/{
12223 # Extract the definition of DEPDIR, am__include, and am__quote
12224 # from the Makefile without running `make'.
12225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12226 test -z "$DEPDIR" && continue
12227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12228 test -z "am__include" && continue
12229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12230 # When using ansi2knr, U may be empty or an underscore; expand it
12231 U=`sed -n 's/^U = //p' < "$mf"`
12232 # Find all dependency output files, they are included files with
12233 # $(DEPDIR) in their names. We invoke sed twice because it is the
12234 # simplest approach to changing $(DEPDIR) to its actual value in the
12236 for file in `sed -n "
12237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12239 # Make sure the directory exists.
12240 test -f "$dirpart/$file" && continue
12241 fdir=`$as_dirname -- "$file" ||
12242 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12243 X"$file" : 'X\(//\)[^/]' \| \
12244 X"$file" : 'X\(//\)$' \| \
12245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12246 $as_echo X"$file" |
12247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12251 /^X\(\/\/\)[^/].*/{
12264 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12265 # echo "creating $dirpart/$file"
12266 echo '# dummy' > "$dirpart/$file"
12273 # See if we are running on zsh, and set the options which allow our
12274 # commands through without removal of \ escapes.
12275 if test -n "${ZSH_VERSION+set}" ; then
12276 setopt NO_GLOB_SUBST
12279 cfgfile="${ofile}T"
12280 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12283 cat <<_LT_EOF >> "$cfgfile"
12286 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12287 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12288 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12289 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12291 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12292 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12293 # Written by Gordon Matzigkeit, 1996
12295 # This file is part of GNU Libtool.
12297 # GNU Libtool is free software; you can redistribute it and/or
12298 # modify it under the terms of the GNU General Public License as
12299 # published by the Free Software Foundation; either version 2 of
12300 # the License, or (at your option) any later version.
12302 # As a special exception to the GNU General Public License,
12303 # if you distribute this file as part of a program or library that
12304 # is built using GNU Libtool, you may include this file under the
12305 # same distribution terms that you use for the rest of that program.
12307 # GNU Libtool is distributed in the hope that it will be useful,
12308 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12309 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12310 # GNU General Public License for more details.
12312 # You should have received a copy of the GNU General Public License
12313 # along with GNU Libtool; see the file COPYING. If not, a copy
12314 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12315 # obtained by writing to the Free Software Foundation, Inc.,
12316 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12319 # The names of the tagged configurations supported by this script.
12322 # ### BEGIN LIBTOOL CONFIG
12324 # Which release of libtool.m4 was used?
12325 macro_version=$macro_version
12326 macro_revision=$macro_revision
12328 # Whether or not to build shared libraries.
12329 build_libtool_libs=$enable_shared
12331 # Whether or not to build static libraries.
12332 build_old_libs=$enable_static
12334 # What type of objects to build.
12337 # Whether or not to optimize for fast installation.
12338 fast_install=$enable_fast_install
12340 # Shell to use when invoking shell scripts.
12343 # An echo program that protects backslashes.
12347 host_alias=$host_alias
12351 # The build system.
12352 build_alias=$build_alias
12356 # A sed program that does not truncate output.
12359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12360 Xsed="\$SED -e 1s/^X//"
12362 # A grep program that handles long lines.
12368 # A literal string matcher.
12371 # A BSD- or MS-compatible name lister.
12374 # Whether we need soft or hard links.
12377 # What is the maximum length of a command?
12378 max_cmd_len=$max_cmd_len
12380 # Object file suffix (normally "o").
12383 # Executable file suffix (normally "").
12386 # whether the shell understands "unset".
12389 # turn spaces into newlines.
12392 # turn newlines into spaces.
12395 # An object symbol dumper.
12396 OBJDUMP=$lt_OBJDUMP
12398 # Method to check whether dependent libraries are shared objects.
12399 deplibs_check_method=$lt_deplibs_check_method
12401 # Command to use when deplibs_check_method == "file_magic".
12402 file_magic_cmd=$lt_file_magic_cmd
12406 AR_FLAGS=$lt_AR_FLAGS
12408 # A symbol stripping program.
12411 # Commands used to install an old-style archive.
12413 old_postinstall_cmds=$lt_old_postinstall_cmds
12414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12416 # Whether to use a lock for old archive extraction.
12417 lock_old_archive_extraction=$lock_old_archive_extraction
12422 # LTCC compiler flags.
12423 LTCFLAGS=$lt_CFLAGS
12425 # Take the output of nm and produce a listing of raw symbols and C names.
12426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12428 # Transform the output of nm in a proper C declaration.
12429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12431 # Transform the output of nm in a C name address pair.
12432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12434 # Transform the output of nm in a C name address pair when lib prefix is needed.
12435 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12437 # The name of the directory that contains temporary libtool files.
12440 # Used to examine libraries when file_magic_cmd begins with "file".
12441 MAGIC_CMD=$MAGIC_CMD
12443 # Must we lock files when doing compilation?
12444 need_locks=$lt_need_locks
12446 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12447 DSYMUTIL=$lt_DSYMUTIL
12449 # Tool to change global to local symbols on Mac OS X.
12452 # Tool to manipulate fat objects and archives on Mac OS X.
12455 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12458 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12459 OTOOL64=$lt_OTOOL64
12461 # Old archive suffix (normally "a").
12464 # Shared library suffix (normally ".so").
12465 shrext_cmds=$lt_shrext_cmds
12467 # The commands to extract the exported symbol list from a shared archive.
12468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12470 # Variables whose values should be saved in libtool wrapper scripts and
12471 # restored at link time.
12472 variables_saved_for_relink=$lt_variables_saved_for_relink
12474 # Do we need the "lib" prefix for modules?
12475 need_lib_prefix=$need_lib_prefix
12477 # Do we need a version for libraries?
12478 need_version=$need_version
12480 # Library versioning type.
12481 version_type=$version_type
12483 # Shared library runtime path variable.
12484 runpath_var=$runpath_var
12486 # Shared library path variable.
12487 shlibpath_var=$shlibpath_var
12489 # Is shlibpath searched before the hard-coded library search path?
12490 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12492 # Format of library name prefix.
12493 libname_spec=$lt_libname_spec
12495 # List of archive names. First name is the real one, the rest are links.
12496 # The last name is the one that the linker finds with -lNAME
12497 library_names_spec=$lt_library_names_spec
12499 # The coded name of the library, if different from the real name.
12500 soname_spec=$lt_soname_spec
12502 # Permission mode override for installation of shared libraries.
12503 install_override_mode=$lt_install_override_mode
12505 # Command to use after installation of a shared archive.
12506 postinstall_cmds=$lt_postinstall_cmds
12508 # Command to use after uninstallation of a shared archive.
12509 postuninstall_cmds=$lt_postuninstall_cmds
12511 # Commands used to finish a libtool library installation in a directory.
12512 finish_cmds=$lt_finish_cmds
12514 # As "finish_cmds", except a single script fragment to be evaled but
12516 finish_eval=$lt_finish_eval
12518 # Whether we should hardcode library paths into libraries.
12519 hardcode_into_libs=$hardcode_into_libs
12521 # Compile-time system search path for libraries.
12522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12524 # Run-time system search path for libraries.
12525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12527 # Whether dlopen is supported.
12528 dlopen_support=$enable_dlopen
12530 # Whether dlopen of programs is supported.
12531 dlopen_self=$enable_dlopen_self
12533 # Whether dlopen of statically linked programs is supported.
12534 dlopen_self_static=$enable_dlopen_self_static
12536 # Commands to strip libraries.
12537 old_striplib=$lt_old_striplib
12538 striplib=$lt_striplib
12541 # The linker used to build libraries.
12544 # How to create reloadable object files.
12545 reload_flag=$lt_reload_flag
12546 reload_cmds=$lt_reload_cmds
12548 # Commands used to build an old-style archive.
12549 old_archive_cmds=$lt_old_archive_cmds
12551 # A language specific compiler.
12554 # Is the compiler the GNU compiler?
12557 # Compiler flag to turn off builtin functions.
12558 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12560 # How to pass a linker flag through the compiler.
12561 wl=$lt_lt_prog_compiler_wl
12563 # Additional compiler flags for building library objects.
12564 pic_flag=$lt_lt_prog_compiler_pic
12566 # Compiler flag to prevent dynamic linking.
12567 link_static_flag=$lt_lt_prog_compiler_static
12569 # Does compiler simultaneously support -c and -o options?
12570 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12572 # Whether or not to add -lc for building shared libraries.
12573 build_libtool_need_lc=$archive_cmds_need_lc
12575 # Whether or not to disallow shared libs when runtime libs are static.
12576 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12578 # Compiler flag to allow reflexive dlopens.
12579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12581 # Compiler flag to generate shared objects directly from archives.
12582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12584 # Whether the compiler copes with passing no objects directly.
12585 compiler_needs_object=$lt_compiler_needs_object
12587 # Create an old-style archive from a shared archive.
12588 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12590 # Create a temporary old-style archive to link instead of a shared archive.
12591 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12593 # Commands used to build a shared archive.
12594 archive_cmds=$lt_archive_cmds
12595 archive_expsym_cmds=$lt_archive_expsym_cmds
12597 # Commands used to build a loadable module if different from building
12598 # a shared archive.
12599 module_cmds=$lt_module_cmds
12600 module_expsym_cmds=$lt_module_expsym_cmds
12602 # Whether we are building with GNU ld or not.
12603 with_gnu_ld=$lt_with_gnu_ld
12605 # Flag that allows shared libraries with undefined symbols to be built.
12606 allow_undefined_flag=$lt_allow_undefined_flag
12608 # Flag that enforces no undefined symbols.
12609 no_undefined_flag=$lt_no_undefined_flag
12611 # Flag to hardcode \$libdir into a binary during linking.
12612 # This must work even if \$libdir does not exist
12613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12615 # If ld is used when linking, flag to hardcode \$libdir into a binary
12616 # during linking. This must work even if \$libdir does not exist.
12617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12619 # Whether we need a single "-rpath" flag with a separated argument.
12620 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12623 # DIR into the resulting binary.
12624 hardcode_direct=$hardcode_direct
12626 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12627 # DIR into the resulting binary and the resulting library dependency is
12628 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12629 # library is relocated.
12630 hardcode_direct_absolute=$hardcode_direct_absolute
12632 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12633 # into the resulting binary.
12634 hardcode_minus_L=$hardcode_minus_L
12636 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12637 # into the resulting binary.
12638 hardcode_shlibpath_var=$hardcode_shlibpath_var
12640 # Set to "yes" if building a shared library automatically hardcodes DIR
12641 # into the library and all subsequent libraries and executables linked
12643 hardcode_automatic=$hardcode_automatic
12645 # Set to yes if linker adds runtime paths of dependent libraries
12646 # to runtime path list.
12647 inherit_rpath=$inherit_rpath
12649 # Whether libtool must link a program against all its dependency libraries.
12650 link_all_deplibs=$link_all_deplibs
12652 # Fix the shell variable \$srcfile for the compiler.
12653 fix_srcfile_path=$lt_fix_srcfile_path
12655 # Set to "yes" if exported symbols are required.
12656 always_export_symbols=$always_export_symbols
12658 # The commands to list exported symbols.
12659 export_symbols_cmds=$lt_export_symbols_cmds
12661 # Symbols that should not be listed in the preloaded symbols.
12662 exclude_expsyms=$lt_exclude_expsyms
12664 # Symbols that must always be exported.
12665 include_expsyms=$lt_include_expsyms
12667 # Commands necessary for linking programs (against libraries) with templates.
12668 prelink_cmds=$lt_prelink_cmds
12670 # Specify filename containing input files.
12671 file_list_spec=$lt_file_list_spec
12673 # How to hardcode a shared library path into an executable.
12674 hardcode_action=$hardcode_action
12676 # ### END LIBTOOL CONFIG
12682 cat <<\_LT_EOF >> "$cfgfile"
12683 # AIX sometimes has problems with the GCC collect2 program. For some
12684 # reason, if we set the COLLECT_NAMES environment variable, the problems
12685 # vanish in a puff of smoke.
12686 if test "X${COLLECT_NAMES+set}" != Xset; then
12688 export COLLECT_NAMES
12695 ltmain="$ac_aux_dir/ltmain.sh"
12698 # We use sed instead of cat because bash on DJGPP gets confused if
12699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12700 # text mode, it properly converts lines to CR/LF. This bash problem
12701 # is reportedly fixed, but why not run on old versions too?
12702 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12703 || (rm -f "$cfgfile"; exit 1)
12707 cat << \_LT_EOF >> "$cfgfile"
12709 # func_dirname file append nondir_replacement
12710 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12711 # otherwise set result to NONDIR_REPLACEMENT.
12715 */*) func_dirname_result="${1%/*}${2}" ;;
12716 * ) func_dirname_result="${3}" ;;
12720 # func_basename file
12723 func_basename_result="${1##*/}"
12726 # func_dirname_and_basename file append nondir_replacement
12727 # perform func_basename and func_dirname in a single function
12729 # dirname: Compute the dirname of FILE. If nonempty,
12730 # add APPEND to the result, otherwise set result
12731 # to NONDIR_REPLACEMENT.
12732 # value returned in "$func_dirname_result"
12733 # basename: Compute filename of FILE.
12734 # value retuned in "$func_basename_result"
12735 # Implementation must be kept synchronized with func_dirname
12736 # and func_basename. For efficiency, we do not delegate to
12737 # those functions but instead duplicate the functionality here.
12738 func_dirname_and_basename ()
12741 */*) func_dirname_result="${1%/*}${2}" ;;
12742 * ) func_dirname_result="${3}" ;;
12744 func_basename_result="${1##*/}"
12747 # func_stripname prefix suffix name
12748 # strip PREFIX and SUFFIX off of NAME.
12749 # PREFIX and SUFFIX must not contain globbing or regex special
12750 # characters, hashes, percent signs, but SUFFIX may contain a leading
12751 # dot (in which case that matches only a dot).
12754 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12755 # positional parameters, so assign one to ordinary parameter first.
12756 func_stripname_result=${3}
12757 func_stripname_result=${func_stripname_result#"${1}"}
12758 func_stripname_result=${func_stripname_result%"${2}"}
12764 func_opt_split_opt=${1%%=*}
12765 func_opt_split_arg=${1#*=}
12772 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12773 *) func_lo2o_result=${1} ;;
12777 # func_xform libobj-or-source
12780 func_xform_result=${1%.*}.lo
12783 # func_arith arithmetic-term...
12786 func_arith_result=$(( $* ))
12790 # STRING may not start with a hyphen.
12793 func_len_result=${#1}
12798 *) # Bourne compatible functions.
12799 cat << \_LT_EOF >> "$cfgfile"
12801 # func_dirname file append nondir_replacement
12802 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12803 # otherwise set result to NONDIR_REPLACEMENT.
12806 # Extract subdirectory from the argument.
12807 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12808 if test "X$func_dirname_result" = "X${1}"; then
12809 func_dirname_result="${3}"
12811 func_dirname_result="$func_dirname_result${2}"
12815 # func_basename file
12818 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12822 # func_stripname prefix suffix name
12823 # strip PREFIX and SUFFIX off of NAME.
12824 # PREFIX and SUFFIX must not contain globbing or regex special
12825 # characters, hashes, percent signs, but SUFFIX may contain a leading
12826 # dot (in which case that matches only a dot).
12827 # func_strip_suffix prefix name
12831 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12832 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12837 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12838 my_sed_long_arg='1s/^-[^=]*=//'
12843 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12844 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12850 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12853 # func_xform libobj-or-source
12856 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12859 # func_arith arithmetic-term...
12862 func_arith_result=`expr "$@"`
12866 # STRING may not start with a hyphen.
12869 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12875 case $lt_shell_append in
12877 cat << \_LT_EOF >> "$cfgfile"
12879 # func_append var value
12880 # Append VALUE to the end of shell variable VAR.
12888 cat << \_LT_EOF >> "$cfgfile"
12890 # func_append var value
12891 # Append VALUE to the end of shell variable VAR.
12902 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12903 || (rm -f "$cfgfile"; exit 1)
12905 mv -f "$cfgfile" "$ofile" ||
12906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12917 ac_clean_files=$ac_clean_files_save
12919 test $ac_write_fail = 0 ||
12920 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12923 # configure is writing to config.log, and then calls config.status.
12924 # config.status does its own redirection, appending to config.log.
12925 # Unfortunately, on DOS this fails, as config.log is still kept open
12926 # by configure, so config.status won't be able to write to it; its
12927 # output is simply discarded. So we exec the FD to /dev/null,
12928 # effectively closing config.log, so it can be properly (re)opened and
12929 # appended to by config.status. When coming back to configure, we
12930 # need to make the FD available again.
12931 if test "$no_create" != yes; then
12933 ac_config_status_args=
12934 test "$silent" = yes &&
12935 ac_config_status_args="$ac_config_status_args --quiet"
12937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12940 # would make configure fail if this is the last instruction.
12941 $ac_cs_success || as_fn_exit $?
12943 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12945 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}