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
641 MAINTAINER_MODE_FALSE
651 INSTALL_STRIP_PROGRAM
709 program_transform_name
722 enable_option_checking
724 enable_maintainer_mode
725 enable_dependency_tracking
734 ac_precious_vars='build_alias
745 # Initialize some variables set by options.
747 ac_init_version=false
748 ac_unrecognized_opts=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
759 program_transform_name=s,x,x,
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
805 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
815 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
820 -build | --build | --buil | --bui | --bu)
821 ac_prev=build_alias ;;
822 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823 build_alias=$ac_optarg ;;
825 -cache-file | --cache-file | --cache-fil | --cache-fi \
826 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827 ac_prev=cache_file ;;
828 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830 cache_file=$ac_optarg ;;
833 cache_file=config.cache ;;
835 -datadir | --datadir | --datadi | --datad)
837 -datadir=* | --datadir=* | --datadi=* | --datad=*)
838 datadir=$ac_optarg ;;
840 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841 | --dataroo | --dataro | --datar)
842 ac_prev=datarootdir ;;
843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845 datarootdir=$ac_optarg ;;
847 -disable-* | --disable-*)
848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851 as_fn_error "invalid feature name: $ac_useropt"
852 ac_useropt_orig=$ac_useropt
853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
861 eval enable_$ac_useropt=no ;;
863 -docdir | --docdir | --docdi | --doc | --do)
865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
868 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
873 -enable-* | --enable-*)
874 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877 as_fn_error "invalid feature name: $ac_useropt"
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
887 eval enable_$ac_useropt=\$ac_optarg ;;
889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891 | --exec | --exe | --ex)
892 ac_prev=exec_prefix ;;
893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895 | --exec=* | --exe=* | --ex=*)
896 exec_prefix=$ac_optarg ;;
898 -gas | --gas | --ga | --g)
899 # Obsolete; use --with-gas.
902 -help | --help | --hel | --he | -h)
904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905 ac_init_help=recursive ;;
906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907 ac_init_help=short ;;
909 -host | --host | --hos | --ho)
910 ac_prev=host_alias ;;
911 -host=* | --host=* | --hos=* | --ho=*)
912 host_alias=$ac_optarg ;;
914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 htmldir=$ac_optarg ;;
920 -includedir | --includedir | --includedi | --included | --include \
921 | --includ | --inclu | --incl | --inc)
922 ac_prev=includedir ;;
923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924 | --includ=* | --inclu=* | --incl=* | --inc=*)
925 includedir=$ac_optarg ;;
927 -infodir | --infodir | --infodi | --infod | --info | --inf)
929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930 infodir=$ac_optarg ;;
932 -libdir | --libdir | --libdi | --libd)
934 -libdir=* | --libdir=* | --libdi=* | --libd=*)
937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938 | --libexe | --libex | --libe)
939 ac_prev=libexecdir ;;
940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941 | --libexe=* | --libex=* | --libe=*)
942 libexecdir=$ac_optarg ;;
944 -localedir | --localedir | --localedi | --localed | --locale)
946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947 localedir=$ac_optarg ;;
949 -localstatedir | --localstatedir | --localstatedi | --localstated \
950 | --localstate | --localstat | --localsta | --localst | --locals)
951 ac_prev=localstatedir ;;
952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954 localstatedir=$ac_optarg ;;
956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962 # Obsolete; use --without-fp.
965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966 | --no-cr | --no-c | -n)
969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975 | --oldin | --oldi | --old | --ol | --o)
976 ac_prev=oldincludedir ;;
977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980 oldincludedir=$ac_optarg ;;
982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
987 -program-prefix | --program-prefix | --program-prefi | --program-pref \
988 | --program-pre | --program-pr | --program-p)
989 ac_prev=program_prefix ;;
990 -program-prefix=* | --program-prefix=* | --program-prefi=* \
991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992 program_prefix=$ac_optarg ;;
994 -program-suffix | --program-suffix | --program-suffi | --program-suff \
995 | --program-suf | --program-su | --program-s)
996 ac_prev=program_suffix ;;
997 -program-suffix=* | --program-suffix=* | --program-suffi=* \
998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999 program_suffix=$ac_optarg ;;
1001 -program-transform-name | --program-transform-name \
1002 | --program-transform-nam | --program-transform-na \
1003 | --program-transform-n | --program-transform- \
1004 | --program-transform | --program-transfor \
1005 | --program-transfo | --program-transf \
1006 | --program-trans | --program-tran \
1007 | --progr-tra | --program-tr | --program-t)
1008 ac_prev=program_transform_name ;;
1009 -program-transform-name=* | --program-transform-name=* \
1010 | --program-transform-nam=* | --program-transform-na=* \
1011 | --program-transform-n=* | --program-transform-=* \
1012 | --program-transform=* | --program-transfor=* \
1013 | --program-transfo=* | --program-transf=* \
1014 | --program-trans=* | --program-tran=* \
1015 | --progr-tra=* | --program-tr=* | --program-t=*)
1016 program_transform_name=$ac_optarg ;;
1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021 pdfdir=$ac_optarg ;;
1023 -psdir | --psdir | --psdi | --psd | --ps)
1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 sbindir=$ac_optarg ;;
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 sharedstatedir=$ac_optarg ;;
1049 -site | --site | --sit)
1051 -site=* | --site=* | --sit=*)
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid package name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1091 eval with_$ac_useropt=\$ac_optarg ;;
1093 -without-* | --without-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid package name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1107 eval with_$ac_useropt=no ;;
1110 # Obsolete; use --with-x.
1113 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114 | --x-incl | --x-inc | --x-in | --x-i)
1115 ac_prev=x_includes ;;
1116 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118 x_includes=$ac_optarg ;;
1120 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122 ac_prev=x_libraries ;;
1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125 x_libraries=$ac_optarg ;;
1127 -*) as_fn_error "unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information."
1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133 # Reject names that are not valid shell variable names.
1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1136 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 eval $ac_envvar=\$ac_optarg
1139 export $ac_envvar ;;
1142 # FIXME: should be removed in autoconf 3.0.
1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152 if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 as_fn_error "missing argument to $ac_option"
1157 if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1160 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1165 # Check all directory arguments for consistency.
1166 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1178 # Be sure to have absolute directory names.
1180 [\\/$]* | ?:[\\/]* ) continue;;
1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1191 target=$target_alias
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used." >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 as_fn_error "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 as_fn_error "pwd does not report name of working directory"
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220 ac_srcdir_defaulted=yes
1221 # Try the directory containing this script, then the parent directory.
1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1225 X"$as_myself" : 'X\(//\)$' \| \
1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1250 ac_srcdir_defaulted=no
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 for ac_var in $ac_precious_vars; do
1271 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_env_${ac_var}_value=\$${ac_var}
1273 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 # Report the --help message.
1280 if test "$ac_init_help" = "long"; then
1281 # Omit some internal or obsolete options to make the list less imposing.
1282 # This message is too long to be a string in the A/UX 3.1 sh.
1284 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE. See below for descriptions of some of the useful variables.
1291 Defaults for the options are specified in brackets.
1294 -h, --help display this help and exit
1295 --help=short display options specific to this package
1296 --help=recursive display the short help of all the included packages
1297 -V, --version display version information and exit
1298 -q, --quiet, --silent do not print \`checking...' messages
1299 --cache-file=FILE cache test results in FILE [disabled]
1300 -C, --config-cache alias for \`--cache-file=config.cache'
1301 -n, --no-create do not create output files
1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1304 Installation directories:
1305 --prefix=PREFIX install architecture-independent files in PREFIX
1306 [$ac_default_prefix]
1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1315 For better control, use the options below.
1317 Fine tuning of the installation directories:
1318 --bindir=DIR user executables [EPREFIX/bin]
1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324 --libdir=DIR object code libraries [EPREFIX/lib]
1325 --includedir=DIR C header files [PREFIX/include]
1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1332 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1333 --htmldir=DIR html documentation [DOCDIR]
1334 --dvidir=DIR dvi documentation [DOCDIR]
1335 --pdfdir=DIR pdf documentation [DOCDIR]
1336 --psdir=DIR ps documentation [DOCDIR]
1342 --program-prefix=PREFIX prepend PREFIX to installed program names
1343 --program-suffix=SUFFIX append SUFFIX to installed program names
1344 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1347 --build=BUILD configure for building on BUILD [guessed]
1348 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1349 --target=TARGET configure for building compilers for TARGET [HOST]
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>
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1395 Report bugs to the package provider.
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" ||
1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1425 .) # We are building in place.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1458 LTO plugin for ld configure 0.1
1459 generated by GNU Autoconf 2.64
1461 Copyright (C) 2009 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.$ac_objext; then :
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1508 } # ac_fn_c_try_compile
1510 # ac_fn_c_try_link LINENO
1511 # -----------------------
1512 # Try to link conftest.$ac_ext, and return whether this succeeded.
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext conftest$ac_exeext
1517 if { { ac_try="$ac_link"
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_link") 2>conftest.err
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest$ac_exeext && {
1536 test "$cross_compiling" = yes ||
1537 $as_test_x conftest$ac_exeext
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1546 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1547 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1548 # interfere with the next link command; also delete a directory that is
1549 # left behind by Apple's compiler. We do this before executing the actions.
1550 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 } # ac_fn_c_try_link
1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists and can be compiled using the include files in
1559 # INCLUDES, setting the cache variable VAR accordingly.
1560 ac_fn_c_check_header_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564 $as_echo_n "checking for $2... " >&6; }
1565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1566 $as_echo_n "(cached) " >&6
1568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1573 if ac_fn_c_try_compile "$LINENO"; then :
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585 } # ac_fn_c_check_header_compile
1587 # ac_fn_c_try_cpp LINENO
1588 # ----------------------
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 if { { ac_try="$ac_cpp conftest.$ac_ext"
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } >/dev/null && {
1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_link"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>&5
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642 { { case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_try") 2>&5
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; }; }; then :
1654 $as_echo "$as_me: program exited with status $ac_status" >&5
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=$ac_status
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 # ac_fn_c_check_func LINENO FUNC VAR
1667 # ----------------------------------
1668 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1669 ac_fn_c_check_func ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675 $as_echo_n "(cached) " >&6
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1681 #define $2 innocuous_$2
1683 /* System header to define __stub macros and hopefully few prototypes,
1684 which can conflict with char $2 (); below.
1685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1686 <limits.h> exists even on freestanding compilers. */
1689 # include <limits.h>
1691 # include <assert.h>
1696 /* Override any GCC internal prototype to avoid an error.
1697 Use char because int might match the return type of a GCC
1698 builtin and then its argument prototype would still apply. */
1703 /* The GNU C library defines this for functions which it implements
1704 to always fail with ENOSYS. Some functions are actually named
1705 something starting with __ and the normal name is an alias. */
1706 #if defined __stub_$2 || defined __stub___$2
1718 if ac_fn_c_try_link "$LINENO"; then :
1723 rm -f core conftest.err conftest.$ac_objext \
1724 conftest$ac_exeext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_check_func
1733 # ac_fn_c_find_uintX_t LINENO BITS VAR
1734 # ------------------------------------
1735 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1737 ac_fn_c_find_uintX_t ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1741 $as_echo_n "checking for uint$2_t... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743 $as_echo_n "(cached) " >&6
1746 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1747 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 $ac_includes_default
1754 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1761 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=\$ac_type" ;;
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771 if test "x$as_val" = x""no; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 } # ac_fn_c_find_uintX_t
1784 cat >config.log <<_ACEOF
1785 This file contains any messages produced by compilers while
1786 running configure, to aid debugging if configure makes a mistake.
1788 It was created by LTO plugin for ld $as_me 0.1, which was
1789 generated by GNU Autoconf 2.64. Invocation command line was
1801 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1802 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1803 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1804 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1805 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1808 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1810 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1811 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1812 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1813 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1814 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1815 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1816 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 $as_echo "PATH: $as_dir"
1841 # Keep a trace of the command line.
1842 # Strip out --no-create and --no-recursion so they do not pile up.
1843 # Strip out --silent because we don't want to record it for future runs.
1844 # Also quote any args containing shell meta-characters.
1845 # Make two passes to allow for proper duplicate-argument suppression.
1849 ac_must_keep_next=false
1855 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857 | -silent | --silent | --silen | --sile | --sil)
1860 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1865 as_fn_append ac_configure_args1 " '$ac_arg'"
1866 if test $ac_must_keep_next = true; then
1867 ac_must_keep_next=false # Got value, back to normal.
1870 *=* | --config-cache | -C | -disable-* | --disable-* \
1871 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1872 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1873 | -with-* | --with-* | -without-* | --without-* | --x)
1874 case "$ac_configure_args0 " in
1875 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1878 -* ) ac_must_keep_next=true ;;
1881 as_fn_append ac_configure_args " '$ac_arg'"
1886 { ac_configure_args0=; unset ac_configure_args0;}
1887 { ac_configure_args1=; unset ac_configure_args1;}
1889 # When interrupted or exit'd, cleanup temporary files, and complete
1890 # config.log. We remove comments because anyway the quotes in there
1891 # would cause problems or look ugly.
1892 # WARNING: Use '\'' to represent an apostrophe within the trap.
1893 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1894 trap 'exit_status=$?
1895 # Save into config.log some information that might help in debugging.
1900 ## ---------------- ##
1901 ## Cache variables. ##
1902 ## ---------------- ##
1905 # The following way of writing the cache mishandles newlines in values,
1907 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908 eval ac_val=\$$ac_var
1912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1916 _ | IFS | as_nl) ;; #(
1917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918 *) { eval $ac_var=; unset $ac_var;} ;;
1923 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924 *${as_nl}ac_space=\ *)
1926 "s/'\''/'\''\\\\'\'''\''/g;
1927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1938 ## ----------------- ##
1939 ## Output variables. ##
1940 ## ----------------- ##
1943 for ac_var in $ac_subst_vars
1945 eval ac_val=\$$ac_var
1947 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949 $as_echo "$ac_var='\''$ac_val'\''"
1953 if test -n "$ac_subst_files"; then
1955 ## ------------------- ##
1956 ## File substitutions. ##
1957 ## ------------------- ##
1960 for ac_var in $ac_subst_files
1962 eval ac_val=\$$ac_var
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 $as_echo "$ac_var='\''$ac_val'\''"
1971 if test -s confdefs.h; then
1981 test "$ac_signal" != 0 &&
1982 $as_echo "$as_me: caught signal $ac_signal"
1983 $as_echo "$as_me: exit $exit_status"
1985 rm -f core *.core core.conftest.* &&
1986 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989 for ac_signal in 1 2 13 15; do
1990 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1995 rm -f -r conftest* confdefs.h
1997 $as_echo "/* confdefs.h */" > confdefs.h
1999 # Predefined preprocessor variables.
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_NAME "$PACKAGE_NAME"
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_STRING "$PACKAGE_STRING"
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_URL "$PACKAGE_URL"
2026 # Let the site file select an alternate cache file if it wants to.
2027 # Prefer an explicitly selected file to automatically selected ones.
2030 if test -n "$CONFIG_SITE"; then
2031 ac_site_file1=$CONFIG_SITE
2032 elif test "x$prefix" != xNONE; then
2033 ac_site_file1=$prefix/share/config.site
2034 ac_site_file2=$prefix/etc/config.site
2036 ac_site_file1=$ac_default_prefix/share/config.site
2037 ac_site_file2=$ac_default_prefix/etc/config.site
2039 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041 test "x$ac_site_file" = xNONE && continue
2042 if test -r "$ac_site_file"; then
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2044 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2045 sed 's/^/| /' "$ac_site_file" >&5
2050 if test -r "$cache_file"; then
2051 # Some versions of bash will fail to source /dev/null (special
2052 # files actually), so we avoid doing that.
2053 if test -f "$cache_file"; then
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2055 $as_echo "$as_me: loading cache $cache_file" >&6;}
2057 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2058 *) . "./$cache_file";;
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2063 $as_echo "$as_me: creating cache $cache_file" >&6;}
2067 # Check that the precious variables saved in the cache have kept the same
2069 ac_cache_corrupted=false
2070 for ac_var in $ac_precious_vars; do
2071 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2072 eval ac_new_set=\$ac_env_${ac_var}_set
2073 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2074 eval ac_new_val=\$ac_env_${ac_var}_value
2075 case $ac_old_set,$ac_new_set in
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2078 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2079 ac_cache_corrupted=: ;;
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2082 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2083 ac_cache_corrupted=: ;;
2086 if test "x$ac_old_val" != "x$ac_new_val"; then
2087 # differences in whitespace do not lead to failure.
2088 ac_old_val_w=`echo x $ac_old_val`
2089 ac_new_val_w=`echo x $ac_new_val`
2090 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2092 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2093 ac_cache_corrupted=:
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2096 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2097 eval $ac_var=\$ac_old_val
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2100 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2102 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2105 # Pass precious variables to config.status.
2106 if test "$ac_new_set" = set; then
2108 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2109 *) ac_arg=$ac_var=$ac_new_val ;;
2111 case " $ac_configure_args " in
2112 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2113 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2117 if $ac_cache_corrupted; then
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2121 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2122 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2124 ## -------------------- ##
2125 ## Main body of script. ##
2126 ## -------------------- ##
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2140 for ac_t in install-sh install.sh shtool; do
2141 if test -f "$ac_dir/$ac_t"; then
2143 ac_install_sh="$ac_aux_dir/$ac_t -c"
2148 if test -z "$ac_aux_dir"; then
2149 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2152 # These three variables are undocumented and unsupported,
2153 # and are intended to be withdrawn in a future Autoconf release.
2154 # They can cause serious problems if a builder's source tree is in a directory
2155 # whose full name contains unusual characters.
2156 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2157 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2158 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2161 # Make sure we can run config.sub.
2162 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2163 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2166 $as_echo_n "checking build system type... " >&6; }
2167 if test "${ac_cv_build+set}" = set; then :
2168 $as_echo_n "(cached) " >&6
2170 ac_build_alias=$build_alias
2171 test "x$ac_build_alias" = x &&
2172 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2173 test "x$ac_build_alias" = x &&
2174 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2175 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2176 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2180 $as_echo "$ac_cv_build" >&6; }
2181 case $ac_cv_build in
2183 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2200 $as_echo_n "checking host system type... " >&6; }
2201 if test "${ac_cv_host+set}" = set; then :
2202 $as_echo_n "(cached) " >&6
2204 if test "x$host_alias" = x; then
2205 ac_cv_host=$ac_cv_build
2207 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2208 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2213 $as_echo "$ac_cv_host" >&6; }
2216 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2219 ac_save_IFS=$IFS; IFS='-'
2225 # Remember, the first character of IFS is used to create $*,
2226 # except with old shells:
2229 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2233 $as_echo_n "checking target system type... " >&6; }
2234 if test "${ac_cv_target+set}" = set; then :
2235 $as_echo_n "(cached) " >&6
2237 if test "x$target_alias" = x; then
2238 ac_cv_target=$ac_cv_host
2240 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2241 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2249 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2251 target=$ac_cv_target
2252 ac_save_IFS=$IFS; IFS='-'
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2262 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2265 # The aliases save the names the user supplied, while $host etc.
2266 # will get canonicalized.
2267 test -n "$target_alias" &&
2268 test "$program_prefix$program_suffix$program_transform_name" = \
2270 program_prefix=${target_alias}-
2272 case ${build_alias} in
2273 "") build_noncanonical=${build} ;;
2274 *) build_noncanonical=${build_alias} ;;
2277 case ${host_alias} in
2278 "") host_noncanonical=${build_noncanonical} ;;
2279 *) host_noncanonical=${host_alias} ;;
2282 case ${target_alias} in
2283 "") target_noncanonical=${host_noncanonical} ;;
2284 *) target_noncanonical=${target_alias} ;;
2288 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2289 # have matching libraries, they should use host libraries: Makefile.tpl
2290 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2291 # However, they still use the build modules, because the corresponding
2292 # host modules (e.g. bison) are only built for the host when bootstrap
2294 # - build_subdir is where we find build modules, and never changes.
2295 # - build_libsubdir is where we find build libraries, and can be overridden.
2297 # Prefix 'build-' so this never conflicts with target_subdir.
2298 build_subdir="build-${build_noncanonical}"
2300 # Check whether --with-build-libsubdir was given.
2301 if test "${with_build_libsubdir+set}" = set; then :
2302 withval=$with_build_libsubdir; build_libsubdir="$withval"
2304 build_libsubdir="$build_subdir"
2307 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2308 if ( test $srcdir = . && test -d gcc ) \
2309 || test -d $srcdir/../host-${host_noncanonical}; then
2310 host_subdir="host-${host_noncanonical}"
2315 target_subdir=${target_noncanonical}
2317 am__api_version='1.11'
2319 # Find a good install program. We prefer a C program (faster),
2320 # so one script is as good as another. But avoid the broken or
2321 # incompatible versions:
2322 # SysV /etc/install, /usr/sbin/install
2323 # SunOS /usr/etc/install
2324 # IRIX /sbin/install
2326 # AmigaOS /C/install, which installs bootblocks on floppy discs
2327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2330 # OS/2's system install, which has a completely different semantic
2331 # ./install, which can be erroneously created by make from ./install.sh.
2332 # Reject install programs that cannot install multiple files.
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2334 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2335 if test -z "$INSTALL"; then
2336 if test "${ac_cv_path_install+set}" = set; then :
2337 $as_echo_n "(cached) " >&6
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 # Account for people who put trailing slashes in PATH elements.
2345 case $as_dir/ in #((
2346 ./ | .// | /[cC]/* | \
2347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2348 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351 # OSF1 and SCO ODT 3.0 have their own names for install.
2352 # Don't use installbsd from OSF since it installs stuff as root
2354 for ac_prog in ginstall scoinst install; do
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2357 if test $ac_prog = install &&
2358 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359 # AIX install. It has an incompatible calling convention.
2361 elif test $ac_prog = install &&
2362 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2363 # program-specific install script used by HP pwplus--don't use.
2366 rm -rf conftest.one conftest.two conftest.dir
2367 echo one > conftest.one
2368 echo two > conftest.two
2370 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2371 test -s conftest.one && test -s conftest.two &&
2372 test -s conftest.dir/conftest.one &&
2373 test -s conftest.dir/conftest.two
2375 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2388 rm -rf conftest.one conftest.two conftest.dir
2391 if test "${ac_cv_path_install+set}" = set; then
2392 INSTALL=$ac_cv_path_install
2394 # As a last resort, use the slow shell script. Don't cache a
2395 # value for INSTALL within a source directory, because that will
2396 # break other packages using the cache if that directory is
2397 # removed, or if the value is a relative name.
2398 INSTALL=$ac_install_sh
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2402 $as_echo "$INSTALL" >&6; }
2404 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2405 # It thinks the first close brace ends the variable substitution.
2406 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2410 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2413 $as_echo_n "checking whether build environment is sane... " >&6; }
2416 echo timestamp > conftest.file
2417 # Reject unsafe characters in $srcdir or the absolute working directory
2418 # name. Accept space and tab only in the latter.
2422 *[\\\"\#\$\&\'\`$am_lf]*)
2423 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2426 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2427 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2430 # Do `set' in a subshell so we don't clobber the current shell's
2431 # arguments. Must try -L first in case configure is actually a
2432 # symlink; some systems play weird games with the mod time of symlinks
2433 # (eg FreeBSD returns the mod time of the symlink's containing
2436 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2437 if test "$*" = "X"; then
2439 set X `ls -t "$srcdir/configure" conftest.file`
2442 if test "$*" != "X $srcdir/configure conftest.file" \
2443 && test "$*" != "X conftest.file $srcdir/configure"; then
2445 # If neither matched, then we have a broken ls. This can happen
2446 # if, for instance, CONFIG_SHELL is bash and it inherits a
2447 # broken ls alias from the environment. This has actually
2448 # happened. Such a system could not be considered "sane".
2449 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2450 alias in your environment" "$LINENO" 5
2453 test "$2" = conftest.file
2459 as_fn_error "newly created file is older than distributed files!
2460 Check your system clock" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2463 $as_echo "yes" >&6; }
2464 test "$program_prefix" != NONE &&
2465 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2466 # Use a double $ so make ignores it.
2467 test "$program_suffix" != NONE &&
2468 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2469 # Double any \ or $.
2470 # By default was `s,x,x', remove it if useless.
2471 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2472 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2474 # expand $ac_aux_dir to an absolute path
2475 am_aux_dir=`cd $ac_aux_dir && pwd`
2477 if test x"${MISSING+set}" != xset; then
2480 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2482 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485 # Use eval to expand $SHELL
2486 if eval "$MISSING --run true"; then
2487 am_missing_run="$MISSING --run "
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2491 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2494 if test x"${install_sh}" != xset; then
2497 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2499 install_sh="\${SHELL} $am_aux_dir/install-sh"
2503 # Installed binaries are usually stripped using `strip' when the user
2504 # run `make install-strip'. However `strip' might not be the right
2505 # tool to use in cross-compilation environments, therefore Automake
2506 # will honor the `STRIP' environment variable to overrule this program.
2507 if test "$cross_compiling" != no; then
2508 if test -n "$ac_tool_prefix"; then
2509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}strip; ac_word=$2
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if test "${ac_cv_prog_STRIP+set}" = set; then :
2514 $as_echo_n "(cached) " >&6
2516 if test -n "$STRIP"; then
2517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 STRIP=$ac_cv_prog_STRIP
2537 if test -n "$STRIP"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2539 $as_echo "$STRIP" >&6; }
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542 $as_echo "no" >&6; }
2547 if test -z "$ac_cv_prog_STRIP"; then
2549 # Extract the first word of "strip", so it can be a program name with args.
2550 set dummy strip; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2554 $as_echo_n "(cached) " >&6
2556 if test -n "$ac_ct_STRIP"; then
2557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_ac_ct_STRIP="strip"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2577 if test -n "$ac_ct_STRIP"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2579 $as_echo "$ac_ct_STRIP" >&6; }
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2585 if test "x$ac_ct_STRIP" = x; then
2588 case $cross_compiling:$ac_tool_warned in
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592 ac_tool_warned=yes ;;
2597 STRIP="$ac_cv_prog_STRIP"
2601 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2604 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2605 if test -z "$MKDIR_P"; then
2606 if test "${ac_cv_path_mkdir+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613 test -z "$as_dir" && as_dir=.
2614 for ac_prog in mkdir gmkdir; do
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2617 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2618 'mkdir (GNU coreutils) '* | \
2619 'mkdir (coreutils) '* | \
2620 'mkdir (fileutils) '4.1*)
2621 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2631 if test "${ac_cv_path_mkdir+set}" = set; then
2632 MKDIR_P="$ac_cv_path_mkdir -p"
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for MKDIR_P within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 test -d ./--version && rmdir ./--version
2639 MKDIR_P="$ac_install_sh -d"
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2643 $as_echo "$MKDIR_P" >&6; }
2647 [\\/$]* | ?:[\\/]*) ;;
2648 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2651 for ac_prog in gawk mawk nawk awk
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_AWK+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2660 if test -n "$AWK"; then
2661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_AWK="$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 if test -n "$AWK"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683 $as_echo "$AWK" >&6; }
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2690 test -n "$AWK" && break
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2694 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2696 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2697 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2698 $as_echo_n "(cached) " >&6
2700 cat >conftest.make <<\_ACEOF
2703 @echo '@@@%%%=$(MAKE)=@@@%%%'
2705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2706 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2708 eval ac_cv_prog_make_${ac_make}_set=yes;;
2710 eval ac_cv_prog_make_${ac_make}_set=no;;
2714 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716 $as_echo "yes" >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 SET_MAKE="MAKE=${MAKE-make}"
2724 rm -rf .tst 2>/dev/null
2725 mkdir .tst 2>/dev/null
2726 if test -d .tst; then
2731 rmdir .tst 2>/dev/null
2733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2734 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2735 # is not polluted with repeated "-I."
2736 am__isrc=' -I$(srcdir)'
2737 # test to see if srcdir already configured
2738 if test -f $srcdir/config.status; then
2739 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2743 # test whether we have cygpath
2744 if test -z "$CYGPATH_W"; then
2745 if (cygpath --version) >/dev/null 2>/dev/null; then
2746 CYGPATH_W='cygpath -w'
2753 # Define the identity of the package.
2754 PACKAGE='lto-plugin'
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE "$PACKAGE"
2763 cat >>confdefs.h <<_ACEOF
2764 #define VERSION "$VERSION"
2767 # Some tools Automake needs.
2769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2783 # We need awk for the "check" target. The system "awk" is bad on
2785 # Always define AMTAR for backward compatibility.
2787 AMTAR=${AMTAR-"${am_missing_run}tar"}
2789 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2797 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2798 # Check whether --enable-maintainer-mode was given.
2799 if test "${enable_maintainer_mode+set}" = set; then :
2800 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2802 USE_MAINTAINER_MODE=no
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2806 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2807 if test $USE_MAINTAINER_MODE = yes; then
2808 MAINTAINER_MODE_TRUE=
2809 MAINTAINER_MODE_FALSE='#'
2811 MAINTAINER_MODE_TRUE='#'
2812 MAINTAINER_MODE_FALSE=
2815 MAINT=$MAINTAINER_MODE_TRUE
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then :
2829 $as_echo_n "(cached) " >&6
2831 if test -n "$CC"; then
2832 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 if test -n "$CC"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2862 if test -z "$ac_cv_prog_CC"; then
2864 # Extract the first word of "gcc", so it can be a program name with args.
2865 set dummy gcc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$ac_ct_CC"; then
2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_ac_ct_CC="gcc"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2894 $as_echo "$ac_ct_CC" >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2900 if test "x$ac_ct_CC" = x; then
2903 case $cross_compiling:$ac_tool_warned in
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907 ac_tool_warned=yes ;;
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC="$CC" # Let the user override the test.
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC="${ac_tool_prefix}cc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2956 if test -z "$CC"; then
2957 # Extract the first word of "cc", so it can be a program name with args.
2958 set dummy cc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2976 ac_prog_rejected=yes
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 if test $ac_prog_rejected = yes; then
2988 # We found a bogon in the path, so make sure we never use it.
2989 set dummy $ac_cv_prog_CC
2991 if test $# != 0; then
2992 # We chose a different compiler from the bogus one.
2993 # However, it has the same basename, so the bogon will be chosen
2994 # first if we set CC to just the basename; use the full file name.
2996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3012 if test -z "$CC"; then
3013 if test -n "$ac_tool_prefix"; then
3014 for ac_prog in cl.exe
3016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test -n "$CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3053 test -n "$CC" && break
3056 if test -z "$CC"; then
3058 for ac_prog in cl.exe
3060 # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_ac_ct_CC="$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090 $as_echo "$ac_ct_CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3097 test -n "$ac_ct_CC" && break
3100 if test "x$ac_ct_CC" = x; then
3103 case $cross_compiling:$ac_tool_warned in
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3107 ac_tool_warned=yes ;;
3116 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error "no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." "$LINENO" 5; }
3121 # Provide some information about the compiler.
3122 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3125 for ac_option in --version -v -V -qversion; do
3126 { { ac_try="$ac_compiler $ac_option >&5"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3135 if test -s conftest.err; then
3137 ... rest of stderr output deleted ...
3138 10q' conftest.err >conftest.er1
3139 cat conftest.er1 >&5
3140 rm -f conftest.er1 conftest.err
3142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h. */
3157 ac_clean_files_save=$ac_clean_files
3158 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3159 # Try to create an executable without -o first, disregard a.out.
3160 # It will help us diagnose broken compilers, and finding out an intuition
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3163 $as_echo_n "checking for C compiler default output file name... " >&6; }
3164 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3166 # The possible output files:
3167 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3170 for ac_file in $ac_files
3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3174 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3179 if { { ac_try="$ac_link_default"
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_link_default") 2>&5
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }; then :
3190 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3191 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3192 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3193 # so that the user can short-circuit this test for compilers unknown to
3195 for ac_file in $ac_files ''
3197 test -f "$ac_file" || continue
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3202 # We found the default executable, but exeext='' is most
3206 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3208 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210 # We set ac_cv_exeext here because the later test for it is not
3211 # safe: cross compilers may not add the suffix if given an `-o'
3212 # argument, so we may need to know it at that point already.
3213 # Even if this section looks crufty: it has the advantage of
3220 test "$ac_cv_exeext" = no && ac_cv_exeext=
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3226 $as_echo "$ac_file" >&6; }
3227 if test -z "$ac_file"; then :
3228 $as_echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { as_fn_set_status 77
3234 as_fn_error "C compiler cannot create executables
3235 See \`config.log' for more details." "$LINENO" 5; }; }
3237 ac_exeext=$ac_cv_exeext
3239 # Check that the compiler produces executables we can run. If not, either
3240 # the compiler is broken, or we cross compile.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245 if { ac_try='./$ac_file'
3246 { { case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_try") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; }; then
3258 if test "$cross_compiling" = maybe; then
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error "cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." "$LINENO" 5; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3272 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3273 ac_clean_files=$ac_clean_files_save
3274 # Check that the compiler produces executables we can run. If not, either
3275 # the compiler is broken, or we cross compile.
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3277 $as_echo_n "checking whether we are cross compiling... " >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279 $as_echo "$cross_compiling" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3282 $as_echo_n "checking for suffix of executables... " >&6; }
3283 if { { ac_try="$ac_link"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link") 2>&5
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; then :
3294 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3298 for ac_file in conftest.exe conftest conftest.*; do
3299 test -f "$ac_file" || continue
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error "cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." "$LINENO" 5; }
3313 rm -f conftest$ac_cv_exeext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3315 $as_echo "$ac_cv_exeext" >&6; }
3317 rm -f conftest.$ac_ext
3318 EXEEXT=$ac_cv_exeext
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321 $as_echo_n "checking for suffix of object files... " >&6; }
3322 if test "${ac_cv_objext+set}" = set; then :
3323 $as_echo_n "(cached) " >&6
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3336 rm -f conftest.o conftest.obj
3337 if { { ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_compile") 2>&5
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; then :
3348 for ac_file in conftest.o conftest.obj conftest.*; do
3349 test -f "$ac_file" || continue;
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error "cannot compute suffix of object files: cannot compile
3363 See \`config.log' for more details." "$LINENO" 5; }
3365 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368 $as_echo "$ac_cv_objext" >&6; }
3369 OBJEXT=$ac_cv_objext
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3390 if ac_fn_c_try_compile "$LINENO"; then :
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401 if test $ac_compiler_gnu = yes; then
3406 ac_test_CFLAGS=${CFLAGS+set}
3407 ac_save_CFLAGS=$CFLAGS
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3410 if test "${ac_cv_prog_cc_g+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3413 ac_save_c_werror_flag=$ac_c_werror_flag
3414 ac_c_werror_flag=yes
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3446 ac_c_werror_flag=$ac_save_c_werror_flag
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470 $as_echo "$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3480 if test "$GCC" = yes; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3491 ac_cv_prog_cc_c89=no
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 #include <sys/types.h>
3498 #include <sys/stat.h>
3499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3500 struct buf { int x; };
3501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502 static char *e (p, i)
3508 static char *f (char * (*g) (char **, int), char **p, ...)
3513 s = g (p, va_arg (v,int));
3518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3519 function prototypes and stuff, but not '\xHH' hex character constants.
3520 These don't provoke an error unfortunately, instead are silently treated
3521 as 'x'. The following induces an error, until -std is added to get
3522 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3523 array size at least. It's necessary to write '\x00'==0 to get something
3524 that's true only with -std. */
3525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528 inside strings and character constants. */
3530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3532 int test (int i, double x);
3533 struct s1 {int (*f) (int a);};
3534 struct s2 {int (*f) (double a);};
3535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3541 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3549 CC="$ac_save_CC $ac_arg"
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_cv_prog_cc_c89=$ac_arg
3553 rm -f core conftest.err conftest.$ac_objext
3554 test "x$ac_cv_prog_cc_c89" != "xno" && break
3556 rm -f conftest.$ac_ext
3561 case "x$ac_cv_prog_cc_c89" in
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3564 $as_echo "none needed" >&6; } ;;
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3567 $as_echo "unsupported" >&6; } ;;
3569 CC="$CC $ac_cv_prog_cc_c89"
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3571 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3573 if test "x$ac_cv_prog_cc_c89" != xno; then :
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 DEPDIR="${am__leading_dot}deps"
3584 ac_config_commands="$ac_config_commands depfiles"
3587 am_make=${MAKE-make}
3588 cat > confinc << 'END'
3590 @echo this is the am__doit target
3593 # If we don't find an include directive, just comment out the code.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3595 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3599 # First try GNU make style include.
3600 echo "include confinc" > confmf
3601 # Ignore all kinds of additional output from `make'.
3602 case `$am_make -s -f confmf 2> /dev/null` in #(
3603 *the\ am__doit\ target*)
3609 # Now try BSD make style include.
3610 if test "$am__include" = "#"; then
3611 echo '.include "confinc"' > confmf
3612 case `$am_make -s -f confmf 2> /dev/null` in #(
3613 *the\ am__doit\ target*)
3614 am__include=.include
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3623 $as_echo "$_am_result" >&6; }
3624 rm -f confinc confmf
3626 # Check whether --enable-dependency-tracking was given.
3627 if test "${enable_dependency_tracking+set}" = set; then :
3628 enableval=$enable_dependency_tracking;
3631 if test "x$enable_dependency_tracking" != xno; then
3632 am_depcomp="$ac_aux_dir/depcomp"
3635 if test "x$enable_dependency_tracking" != xno; then
3645 depcc="$CC" am_compiler_list=
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3648 $as_echo_n "checking dependency style of $depcc... " >&6; }
3649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3653 # We make a subdir and do the tests there. Otherwise we can end up
3654 # making bogus files that we don't know about and never remove. For
3655 # instance it was reported that on HP-UX the gcc test will end up
3656 # making a dummy file named `D' -- because `-MD' means `put the output
3659 # Copy depcomp to subdir because otherwise we won't find it if we're
3660 # using a relative directory.
3661 cp "$am_depcomp" conftest.dir
3663 # We will build objects and dependencies in a subdirectory because
3664 # it helps to detect inapplicable dependency modes. For instance
3665 # both Tru64's cc and ICC support -MD to output dependencies as a
3666 # side effect of compilation, but ICC will put the dependencies in
3667 # the current directory while Tru64 will put them in the object
3671 am_cv_CC_dependencies_compiler_type=none
3672 if test "$am_compiler_list" = ""; then
3673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3676 case " $depcc " in #(
3677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3680 for depmode in $am_compiler_list; do
3681 # Setup a source with many dependencies, because some compilers
3682 # like to wrap large dependency lists on column 80 (with \), and
3683 # we should not choose a depcomp mode which is confused by this.
3685 # We need to recreate these files for each test, as the compiler may
3686 # overwrite some of them when testing with obscure command lines.
3687 # This happens at least with the AIX C compiler.
3689 for i in 1 2 3 4 5 6; do
3690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3692 # Solaris 8's {/usr,}/bin/sh.
3693 touch sub/conftst$i.h
3695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3698 # mode. It turns out that the SunPro C++ compiler does not properly
3699 # handle `-M -o', and we need to detect this. Also, some Intel
3700 # versions had trouble with output in subdirs
3701 am__obj=sub/conftest.${OBJEXT-o}
3702 am__minus_obj="-o $am__obj"
3705 # This depmode causes a compiler race in universal mode.
3706 test "$am__universal" = false || continue
3709 # after this tag, mechanisms are not by side-effect, so they'll
3710 # only be used when explicitly requested
3711 if test "x$enable_dependency_tracking" = xyes; then
3717 msvisualcpp | msvcmsys)
3718 # This compiler won't grok `-c -o', but also, the minuso test has
3719 # not run yet. These depmodes are late enough in the game, and
3720 # so weak that their functioning should not be impacted.
3721 am__obj=conftest.${OBJEXT-o}
3726 if depmode=$depmode \
3727 source=sub/conftest.c object=$am__obj \
3728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3730 >/dev/null 2>conftest.err &&
3731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3735 # icc doesn't choke on unknown options, it will just issue warnings
3736 # or remarks (even with -Werror). So we grep stderr for any message
3737 # that says an option was ignored or not supported.
3738 # When given -MP, icc 7.0 and 7.1 complain thusly:
3739 # icc: Command line warning: ignoring option '-M'; no argument required
3740 # The diagnosis changed in icc 8.0:
3741 # icc: Command line remark: option '-MP' not supported
3742 if (grep 'ignoring option' conftest.err ||
3743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3744 am_cv_CC_dependencies_compiler_type=$depmode
3753 am_cv_CC_dependencies_compiler_type=none
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3762 test "x$enable_dependency_tracking" != xno \
3763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3765 am__fastdepCC_FALSE='#'
3767 am__fastdepCC_TRUE='#'
3768 am__fastdepCC_FALSE=
3773 # Check whether --enable-largefile was given.
3774 if test "${enable_largefile+set}" = set; then :
3775 enableval=$enable_largefile;
3778 if test "$enable_largefile" != no; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3781 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3782 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3785 ac_cv_sys_largefile_CC=no
3786 if test "$GCC" != yes; then
3789 # IRIX 6.2 and later do not support large files by default,
3790 # so use the C compiler's -n32 option if that helps.
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793 #include <sys/types.h>
3794 /* Check that off_t can represent 2**63 - 1 correctly.
3795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3796 since some C++ compilers masquerading as C compilers
3797 incorrectly reject 9223372036854775807. */
3798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3800 && LARGE_OFF_T % 2147483647 == 1)
3810 if ac_fn_c_try_compile "$LINENO"; then :
3813 rm -f core conftest.err conftest.$ac_objext
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_cv_sys_largefile_CC=' -n32'; break
3818 rm -f core conftest.err conftest.$ac_objext
3822 rm -f conftest.$ac_ext
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3826 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3827 if test "$ac_cv_sys_largefile_CC" != no; then
3828 CC=$CC$ac_cv_sys_largefile_CC
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3832 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3833 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3834 $as_echo_n "(cached) " >&6
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <sys/types.h>
3840 /* Check that off_t can represent 2**63 - 1 correctly.
3841 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3842 since some C++ compilers masquerading as C compilers
3843 incorrectly reject 9223372036854775807. */
3844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3845 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3846 && LARGE_OFF_T % 2147483647 == 1)
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_cv_sys_file_offset_bits=no; break
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #define _FILE_OFFSET_BITS 64
3863 #include <sys/types.h>
3864 /* Check that off_t can represent 2**63 - 1 correctly.
3865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3866 since some C++ compilers masquerading as C compilers
3867 incorrectly reject 9223372036854775807. */
3868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3870 && LARGE_OFF_T % 2147483647 == 1)
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_sys_file_offset_bits=64; break
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_cv_sys_file_offset_bits=unknown
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3889 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3890 case $ac_cv_sys_file_offset_bits in #(
3893 cat >>confdefs.h <<_ACEOF
3894 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3899 if test $ac_cv_sys_file_offset_bits = unknown; then
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3901 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3902 if test "${ac_cv_sys_large_files+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908 #include <sys/types.h>
3909 /* Check that off_t can represent 2**63 - 1 correctly.
3910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3911 since some C++ compilers masquerading as C compilers
3912 incorrectly reject 9223372036854775807. */
3913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3915 && LARGE_OFF_T % 2147483647 == 1)
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926 ac_cv_sys_large_files=no; break
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931 #define _LARGE_FILES 1
3932 #include <sys/types.h>
3933 /* Check that off_t can represent 2**63 - 1 correctly.
3934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3935 since some C++ compilers masquerading as C compilers
3936 incorrectly reject 9223372036854775807. */
3937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3939 && LARGE_OFF_T % 2147483647 == 1)
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_cv_sys_large_files=1; break
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 ac_cv_sys_large_files=unknown
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3958 $as_echo "$ac_cv_sys_large_files" >&6; }
3959 case $ac_cv_sys_large_files in #(
3962 cat >>confdefs.h <<_ACEOF
3963 #define _LARGE_FILES $ac_cv_sys_large_files
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3974 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3979 macro_version='2.2.7a'
3980 macro_revision='1.3134'
3994 ltmain="$ac_aux_dir/ltmain.sh"
3996 # Backslashify metacharacters that are still active within
3997 # double-quoted strings.
3998 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4000 # Same as above, but do not quote variable references.
4001 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4003 # Sed substitution to delay expansion of an escaped shell variable in a
4004 # double_quote_subst'ed string.
4005 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4007 # Sed substitution to delay expansion of an escaped single quote.
4008 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4010 # Sed substitution to avoid accidental globbing in evaled expressions
4011 no_glob_subst='s/\*/\\\*/g'
4013 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4015 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4018 $as_echo_n "checking how to print strings... " >&6; }
4019 # Test print first, because it will be a builtin if present.
4020 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4021 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4023 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4026 # Use this function as a fallback that always works.
4027 func_fallback_echo ()
4029 eval 'cat <<_LTECHO_EOF
4033 ECHO='func_fallback_echo'
4036 # func_echo_all arg...
4037 # Invoke $ECHO with all args, space-separated.
4044 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4045 $as_echo "printf" >&6; } ;;
4046 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4047 $as_echo "print -r" >&6; } ;;
4048 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4049 $as_echo "cat" >&6; } ;;
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4066 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4067 if test "${ac_cv_path_SED+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4070 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4071 for ac_i in 1 2 3 4 5 6 7; do
4072 ac_script="$ac_script$as_nl$ac_script"
4074 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4075 { ac_script=; unset ac_script;}
4076 if test -z "$SED"; then
4077 ac_path_SED_found=false
4078 # Loop through the user's path and test for each of PROGNAME-LIST
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 test -z "$as_dir" && as_dir=.
4084 for ac_prog in sed gsed; do
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4087 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4088 # Check for GNU ac_path_SED and select it if it is found.
4089 # Check for GNU $ac_path_SED
4090 case `"$ac_path_SED" --version 2>&1` in
4092 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4095 $as_echo_n 0123456789 >"conftest.in"
4098 cat "conftest.in" "conftest.in" >"conftest.tmp"
4099 mv "conftest.tmp" "conftest.in"
4100 cp "conftest.in" "conftest.nl"
4101 $as_echo '' >> "conftest.nl"
4102 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104 as_fn_arith $ac_count + 1 && ac_count=$as_val
4105 if test $ac_count -gt ${ac_path_SED_max-0}; then
4106 # Best one so far, save it but keep looking for a better one
4107 ac_cv_path_SED="$ac_path_SED"
4108 ac_path_SED_max=$ac_count
4110 # 10*(2^10) chars as input seems more than enough
4111 test $ac_count -gt 10 && break
4113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116 $ac_path_SED_found && break 3
4121 if test -z "$ac_cv_path_SED"; then
4122 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4130 $as_echo "$ac_cv_path_SED" >&6; }
4131 SED="$ac_cv_path_SED"
4134 test -z "$SED" && SED=sed
4135 Xsed="$SED -e 1s/^X//"
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4149 if test "${ac_cv_path_GREP+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4152 if test -z "$GREP"; then
4153 ac_path_GREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in grep ggrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4164 # Check for GNU ac_path_GREP and select it if it is found.
4165 # Check for GNU $ac_path_GREP
4166 case `"$ac_path_GREP" --version 2>&1` in
4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4171 $as_echo_n 0123456789 >"conftest.in"
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'GREP' >> "conftest.nl"
4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_GREP="$ac_path_GREP"
4184 ac_path_GREP_max=$ac_count
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4192 $ac_path_GREP_found && break 3
4197 if test -z "$ac_cv_path_GREP"; then
4198 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 ac_cv_path_GREP=$GREP
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4206 $as_echo "$ac_cv_path_GREP" >&6; }
4207 GREP="$ac_cv_path_GREP"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4211 $as_echo_n "checking for egrep... " >&6; }
4212 if test "${ac_cv_path_EGREP+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4216 then ac_cv_path_EGREP="$GREP -E"
4218 if test -z "$EGREP"; then
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4237 $as_echo_n 0123456789 >"conftest.in"
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4258 $ac_path_EGREP_found && break 3
4263 if test -z "$ac_cv_path_EGREP"; then
4264 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267 ac_cv_path_EGREP=$EGREP
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4273 $as_echo "$ac_cv_path_EGREP" >&6; }
4274 EGREP="$ac_cv_path_EGREP"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4278 $as_echo_n "checking for fgrep... " >&6; }
4279 if test "${ac_cv_path_FGREP+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4282 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4283 then ac_cv_path_FGREP="$GREP -F"
4285 if test -z "$FGREP"; then
4286 ac_path_FGREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in fgrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4297 # Check for GNU ac_path_FGREP and select it if it is found.
4298 # Check for GNU $ac_path_FGREP
4299 case `"$ac_path_FGREP" --version 2>&1` in
4301 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4304 $as_echo_n 0123456789 >"conftest.in"
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'FGREP' >> "conftest.nl"
4311 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 as_fn_arith $ac_count + 1 && ac_count=$as_val
4314 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_FGREP="$ac_path_FGREP"
4317 ac_path_FGREP_max=$ac_count
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325 $ac_path_FGREP_found && break 3
4330 if test -z "$ac_cv_path_FGREP"; then
4331 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4334 ac_cv_path_FGREP=$FGREP
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4340 $as_echo "$ac_cv_path_FGREP" >&6; }
4341 FGREP="$ac_cv_path_FGREP"
4344 test -z "$GREP" && GREP=grep
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then :
4366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4372 if test "$GCC" = yes; then
4373 # Check if gcc -print-prog-name=ld gives a path.
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4375 $as_echo_n "checking for ld used by $CC... " >&6; }
4378 # gcc leaves a trailing carriage return which upsets mingw
4379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4384 # Accept absolute paths.
4386 re_direlt='/[^/][^/]*/\.\./'
4387 # Canonicalize the pathname of ld
4388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4392 test -z "$LD" && LD="$ac_prog"
4395 # If it fails, then pretend we aren't using GCC.
4399 # If it is relative, then search for the first ld in PATH.
4403 elif test "$with_gnu_ld" = yes; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4405 $as_echo_n "checking for GNU ld... " >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4408 $as_echo_n "checking for non-GNU ld... " >&6; }
4410 if test "${lt_cv_path_LD+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 if test -z "$LD"; then
4414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415 for ac_dir in $PATH; do
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419 lt_cv_path_LD="$ac_dir/$ac_prog"
4420 # Check to see if the program is GNU ld. I'd rather use --version,
4421 # but apparently some variants of GNU ld only accept -v.
4422 # Break only if it was the GNU/non-GNU ld that we prefer.
4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424 *GNU* | *'with BFD'*)
4425 test "$with_gnu_ld" != no && break
4428 test "$with_gnu_ld" != yes && break
4435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4440 if test -n "$LD"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4442 $as_echo "$LD" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4447 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4449 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4450 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4454 case `$LD -v 2>&1 </dev/null` in
4455 *GNU* | *'with BFD'*)
4456 lt_cv_prog_gnu_ld=yes
4459 lt_cv_prog_gnu_ld=no
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4464 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4465 with_gnu_ld=$lt_cv_prog_gnu_ld
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4476 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4477 if test "${lt_cv_path_NM+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4480 if test -n "$NM"; then
4481 # Let the user override the test.
4484 lt_nm_to_check="${ac_tool_prefix}nm"
4485 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4486 lt_nm_to_check="$lt_nm_to_check nm"
4488 for lt_tmp_nm in $lt_nm_to_check; do
4489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4490 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4492 test -z "$ac_dir" && ac_dir=.
4493 tmp_nm="$ac_dir/$lt_tmp_nm"
4494 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4495 # Check to see if the nm accepts a BSD-compat flag.
4496 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4497 # nm: unknown option "B" ignored
4498 # Tru64's nm complains that /dev/null is an invalid object file
4499 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4500 */dev/null* | *'Invalid file or object type'*)
4501 lt_cv_path_NM="$tmp_nm -B"
4505 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4507 lt_cv_path_NM="$tmp_nm -p"
4511 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4512 continue # so that we can try to find one that supports BSD flags
4521 : ${lt_cv_path_NM=no}
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4525 $as_echo "$lt_cv_path_NM" >&6; }
4526 if test "$lt_cv_path_NM" != "no"; then
4529 # Didn't find any BSD compatible name lister, look for dumpbin.
4530 if test -n "$DUMPBIN"; then :
4531 # Let the user override the test.
4533 if test -n "$ac_tool_prefix"; then
4534 for ac_prog in dumpbin "link -dump"
4536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4543 if test -n "$DUMPBIN"; then
4544 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 DUMPBIN=$ac_cv_prog_DUMPBIN
4564 if test -n "$DUMPBIN"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4566 $as_echo "$DUMPBIN" >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4573 test -n "$DUMPBIN" && break
4576 if test -z "$DUMPBIN"; then
4577 ac_ct_DUMPBIN=$DUMPBIN
4578 for ac_prog in dumpbin "link -dump"
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$ac_ct_DUMPBIN"; then
4588 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4608 if test -n "$ac_ct_DUMPBIN"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4610 $as_echo "$ac_ct_DUMPBIN" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$ac_ct_DUMPBIN" && break
4620 if test "x$ac_ct_DUMPBIN" = x; then
4623 case $cross_compiling:$ac_tool_warned in
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4629 DUMPBIN=$ac_ct_DUMPBIN
4633 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4635 DUMPBIN="$DUMPBIN -symbols"
4643 if test "$DUMPBIN" != ":"; then
4647 test -z "$NM" && NM=nm
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4655 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4656 if test "${lt_cv_nm_interface+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4659 lt_cv_nm_interface="BSD nm"
4660 echo "int some_variable = 0;" > conftest.$ac_ext
4661 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4662 (eval "$ac_compile" 2>conftest.err)
4663 cat conftest.err >&5
4664 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4665 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4666 cat conftest.err >&5
4667 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4668 cat conftest.out >&5
4669 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4670 lt_cv_nm_interface="MS dumpbin"
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4675 $as_echo "$lt_cv_nm_interface" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4678 $as_echo_n "checking whether ln -s works... " >&6; }
4680 if test "$LN_S" = "ln -s"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4682 $as_echo "yes" >&6; }
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4685 $as_echo "no, using $LN_S" >&6; }
4688 # find the maximum length of command line arguments
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4690 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4691 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4699 # On DJGPP, this test can blow up pretty badly due to problems in libc
4700 # (any single argument exceeding 2000 bytes causes a buffer overrun
4701 # during glob expansion). Even if it were fixed, the result of this
4702 # check would be larger than it should be.
4703 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4707 # Under GNU Hurd, this test is not required because there is
4708 # no limit to the length of command line arguments.
4709 # Libtool will interpret -1 as no limit whatsoever
4710 lt_cv_sys_max_cmd_len=-1;
4713 cygwin* | mingw* | cegcc*)
4714 # On Win9x/ME, this test blows up -- it succeeds, but takes
4715 # about 5 minutes as the teststring grows exponentially.
4716 # Worse, since 9x/ME are not pre-emptively multitasking,
4717 # you end up with a "frozen" computer, even though with patience
4718 # the test eventually succeeds (with a max line length of 256k).
4719 # Instead, let's just punt: use the minimum linelength reported by
4720 # all of the supported platforms: 8192 (on NT/2K/XP).
4721 lt_cv_sys_max_cmd_len=8192;
4725 # On MiNT this can take a long time and run out of memory.
4726 lt_cv_sys_max_cmd_len=8192;
4730 # On AmigaOS with pdksh, this test takes hours, literally.
4731 # So we just punt and use a minimum line length of 8192.
4732 lt_cv_sys_max_cmd_len=8192;
4735 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4736 # This has been around since 386BSD, at least. Likely further.
4737 if test -x /sbin/sysctl; then
4738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4739 elif test -x /usr/sbin/sysctl; then
4740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4744 # And add a safety zone
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`
4750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4751 lt_cv_sys_max_cmd_len=196608
4755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4757 # nice to cause kernel panics so lets avoid the loop below.
4758 # First set a reasonable default.
4759 lt_cv_sys_max_cmd_len=16384
4761 if test -x /sbin/sysconfig; then
4762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4768 lt_cv_sys_max_cmd_len=102400
4770 sysv5* | sco5v6* | sysv4.2uw2*)
4771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4772 if test -n "$kargmax"; then
4773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4775 lt_cv_sys_max_cmd_len=32768
4779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4780 if test -n "$lt_cv_sys_max_cmd_len"; then
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4784 # Make teststring a little bigger before we do anything with it.
4785 # a 1K string should be a reasonable start.
4786 for i in 1 2 3 4 5 6 7 8 ; do
4787 teststring=$teststring$teststring
4789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4790 # If test is not a shell built-in, we'll probably end up computing a
4791 # maximum length that is only half of the actual maximum length, but
4793 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4795 test $i != 17 # 1/2 MB should be enough
4798 teststring=$teststring$teststring
4800 # Only check the string length outside the loop.
4801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4803 # Add a significant safety factor because C++ compilers can tack on
4804 # massive amounts of additional arguments before passing them to the
4805 # linker. It appears as though 1/2 is a usable value.
4806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4813 if test -n $lt_cv_sys_max_cmd_len ; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4815 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4818 $as_echo "none" >&6; }
4820 max_cmd_len=$lt_cv_sys_max_cmd_len
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4832 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4833 # Try some XSI features
4836 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4838 && eval 'test $(( 1 + 1 )) -eq 2 \
4839 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4842 $as_echo "$xsi_shell" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4846 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4848 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4850 && lt_shell_append=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4852 $as_echo "$lt_shell_append" >&6; }
4855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4865 # test EBCDIC or ASCII
4866 case `echo X|tr X '\101'` in
4867 A) # ASCII based system
4868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4869 lt_SP2NL='tr \040 \012'
4870 lt_NL2SP='tr \015\012 \040\040'
4872 *) # EBCDIC based system
4873 lt_SP2NL='tr \100 \n'
4874 lt_NL2SP='tr \r\n \100\100'
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4887 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4888 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 lt_cv_ld_reload_flag='-r'
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4894 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4895 reload_flag=$lt_cv_ld_reload_flag
4896 case $reload_flag in
4898 *) reload_flag=" $reload_flag" ;;
4900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4903 if test "$GCC" = yes; then
4904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4919 if test -n "$ac_tool_prefix"; then
4920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 if test -n "$OBJDUMP"; then
4928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 OBJDUMP=$ac_cv_prog_OBJDUMP
4948 if test -n "$OBJDUMP"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4950 $as_echo "$OBJDUMP" >&6; }
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4958 if test -z "$ac_cv_prog_OBJDUMP"; then
4959 ac_ct_OBJDUMP=$OBJDUMP
4960 # Extract the first word of "objdump", so it can be a program name with args.
4961 set dummy objdump; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4967 if test -n "$ac_ct_OBJDUMP"; then
4968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4988 if test -n "$ac_ct_OBJDUMP"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4990 $as_echo "$ac_ct_OBJDUMP" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4996 if test "x$ac_ct_OBJDUMP" = x; then
4999 case $cross_compiling:$ac_tool_warned in
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5005 OBJDUMP=$ac_ct_OBJDUMP
5008 OBJDUMP="$ac_cv_prog_OBJDUMP"
5011 test -z "$OBJDUMP" && OBJDUMP=objdump
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5022 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5023 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5026 lt_cv_file_magic_cmd='$MAGIC_CMD'
5027 lt_cv_file_magic_test_file=
5028 lt_cv_deplibs_check_method='unknown'
5029 # Need to set the preceding variable on all platforms that support
5030 # interlibrary dependencies.
5031 # 'none' -- dependencies not supported.
5032 # `unknown' -- same as none, but documents that we really don't know.
5033 # 'pass_all' -- all dependencies passed with no checks.
5034 # 'test_compile' -- check by making test program.
5035 # 'file_magic [[regex]]' -- check by looking for files in library path
5036 # which responds to the $file_magic_cmd with a given extended regex.
5037 # If you have `file' or equivalent on your system and you're not sure
5038 # whether `pass_all' will *always* work, you probably want this one.
5042 lt_cv_deplibs_check_method=pass_all
5046 lt_cv_deplibs_check_method=pass_all
5050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5051 lt_cv_file_magic_cmd='/usr/bin/file -L'
5052 lt_cv_file_magic_test_file=/shlib/libc.so
5056 # func_win32_libid is a shell function defined in ltmain.sh
5057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5058 lt_cv_file_magic_cmd='func_win32_libid'
5062 # Base MSYS/MinGW do not provide the 'file' command needed by
5063 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5064 # unless we find 'file', for example because we are cross-compiling.
5065 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5066 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5068 lt_cv_file_magic_cmd='func_win32_libid'
5070 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5071 lt_cv_file_magic_cmd='$OBJDUMP -f'
5076 # use the weaker test based on 'objdump'. See mingw*.
5077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5078 lt_cv_file_magic_cmd='$OBJDUMP -f'
5081 darwin* | rhapsody*)
5082 lt_cv_deplibs_check_method=pass_all
5085 freebsd* | dragonfly*)
5086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5089 # Not sure whether the presence of OpenBSD here was a mistake.
5090 # Let's accept both of them until this is cleared up.
5091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5092 lt_cv_file_magic_cmd=/usr/bin/file
5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5097 lt_cv_deplibs_check_method=pass_all
5102 lt_cv_deplibs_check_method=pass_all
5106 lt_cv_deplibs_check_method=pass_all
5109 hpux10.20* | hpux11*)
5110 lt_cv_file_magic_cmd=/usr/bin/file
5113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5117 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]'
5118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5132 irix5* | irix6* | nonstopux*)
5134 *-32|*"-32 ") libmagic=32-bit;;
5135 *-n32|*"-n32 ") libmagic=N32;;
5136 *-64|*"-64 ") libmagic=64-bit;;
5137 *) libmagic=never-match;;
5139 lt_cv_deplibs_check_method=pass_all
5142 # This must be Linux ELF.
5143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5144 lt_cv_deplibs_check_method=pass_all
5148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5157 lt_cv_file_magic_cmd=/usr/bin/file
5158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5162 lt_cv_deplibs_check_method=pass_all
5166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5173 osf3* | osf4* | osf5*)
5174 lt_cv_deplibs_check_method=pass_all
5178 lt_cv_deplibs_check_method=pass_all
5182 lt_cv_deplibs_check_method=pass_all
5185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5186 lt_cv_deplibs_check_method=pass_all
5190 case $host_vendor in
5192 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]'
5193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5196 lt_cv_deplibs_check_method=pass_all
5199 lt_cv_file_magic_cmd='/bin/file'
5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5203 lt_cv_file_magic_cmd='/bin/file'
5204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5205 lt_cv_file_magic_test_file=/lib/libc.so
5208 lt_cv_deplibs_check_method=pass_all
5211 lt_cv_deplibs_check_method=pass_all
5217 lt_cv_deplibs_check_method=pass_all
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5223 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5224 file_magic_cmd=$lt_cv_file_magic_cmd
5225 deplibs_check_method=$lt_cv_deplibs_check_method
5226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_AR+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5247 if test -n "$AR"; then
5248 ac_cv_prog_AR="$AR" # Let the user override the test.
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_AR="${ac_tool_prefix}ar"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 if test -n "$AR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5270 $as_echo "$AR" >&6; }
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5278 if test -z "$ac_cv_prog_AR"; then
5280 # Extract the first word of "ar", so it can be a program name with args.
5281 set dummy ar; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 if test -n "$ac_ct_AR"; then
5288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_ac_ct_AR="ar"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5308 if test -n "$ac_ct_AR"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5310 $as_echo "$ac_ct_AR" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5316 if test "x$ac_ct_AR" = x; then
5319 case $cross_compiling:$ac_tool_warned in
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5331 test -z "$AR" && AR=ar
5332 test -z "$AR_FLAGS" && AR_FLAGS=cru
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}strip; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_STRIP+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$STRIP"; then
5353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 STRIP=$ac_cv_prog_STRIP
5373 if test -n "$STRIP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5375 $as_echo "$STRIP" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$ac_cv_prog_STRIP"; then
5385 # Extract the first word of "strip", so it can be a program name with args.
5386 set dummy strip; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$ac_ct_STRIP"; then
5393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_STRIP="strip"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5413 if test -n "$ac_ct_STRIP"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5415 $as_echo "$ac_ct_STRIP" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5421 if test "x$ac_ct_STRIP" = x; then
5424 case $cross_compiling:$ac_tool_warned in
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5433 STRIP="$ac_cv_prog_STRIP"
5436 test -z "$STRIP" && STRIP=:
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5451 if test -n "$RANLIB"; then
5452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 RANLIB=$ac_cv_prog_RANLIB
5472 if test -n "$RANLIB"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5474 $as_echo "$RANLIB" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5482 if test -z "$ac_cv_prog_RANLIB"; then
5483 ac_ct_RANLIB=$RANLIB
5484 # Extract the first word of "ranlib", so it can be a program name with args.
5485 set dummy ranlib; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5491 if test -n "$ac_ct_RANLIB"; then
5492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_ac_ct_RANLIB="ranlib"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5512 if test -n "$ac_ct_RANLIB"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5514 $as_echo "$ac_ct_RANLIB" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_ct_RANLIB" = x; then
5523 case $cross_compiling:$ac_tool_warned in
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5529 RANLIB=$ac_ct_RANLIB
5532 RANLIB="$ac_cv_prog_RANLIB"
5535 test -z "$RANLIB" && RANLIB=:
5542 # Determine commands to create old-style static archives.
5543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5544 old_postinstall_cmds='chmod 644 $oldlib'
5545 old_postuninstall_cmds=
5547 if test -n "$RANLIB"; then
5550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5561 lock_old_archive_extraction=yes ;;
5563 lock_old_archive_extraction=no ;;
5604 # If no C compiler was specified, use CC.
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5610 # Allow CC to be a program name with arguments.
5614 # Check for command to grab the raw symbol name followed by C symbol from nm.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5616 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5621 # These are sane defaults that work on at least a few old systems.
5622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5624 # Character class describing NM global symbol codes.
5625 symcode='[BCDEGRST]'
5627 # Regexp to match symbols that can be accessed directly from C.
5628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5630 # Define system-specific variables.
5635 cygwin* | mingw* | pw32* | cegcc*)
5636 symcode='[ABCDGISTW]'
5639 if test "$host_cpu" = ia64; then
5640 symcode='[ABCDEGRST]'
5644 symcode='[BCDEGRST]'
5647 symcode='[BCDEGQRST]'
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5666 # If we're using GNU nm, then use its standard symbol codes.
5667 case `$NM -V 2>&1` in
5668 *GNU* | *'with BFD'*)
5669 symcode='[ABCDGIRSTW]' ;;
5672 # Transform an extracted symbol line into a proper C declaration.
5673 # Some systems (esp. on ia64) link data and code symbols differently,
5674 # so use this general approach.
5675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5677 # Transform an extracted symbol line into symbol name and symbol address
5678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5679 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'"
5681 # Handle CRLF in mingw tool chain
5685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5689 # Try without a prefix underscore, then with it.
5690 for ac_symprfx in "" "_"; do
5692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5693 symxfrm="\\1 $ac_symprfx\\2 \\2"
5695 # Write the raw and C identifiers.
5696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5697 # Fake it for dumpbin and say T for any non-static function
5698 # and D for any global variable.
5699 # Also find C++ and __fastcall symbols from MSVC++,
5700 # which start with @ or ?.
5701 lt_cv_sys_global_symbol_pipe="$AWK '"\
5702 " {last_section=section; section=\$ 3};"\
5703 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5704 " \$ 0!~/External *\|/{next};"\
5705 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5706 " {if(hide[section]) next};"\
5707 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5708 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5709 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5710 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5711 " ' prfx=^$ac_symprfx"
5713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5716 # Check to see that the pipe works correctly.
5720 cat > conftest.$ac_ext <<_LT_EOF
5725 void nm_test_func(void);
5726 void nm_test_func(void){}
5730 int main(){nm_test_var='a';nm_test_func();return(0);}
5733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5734 (eval $ac_compile) 2>&5
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; }; then
5738 # Now try to grab the symbols.
5740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5741 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; } && test -s "$nlist"; then
5745 # Try sorting and uniquifying the output.
5746 if sort "$nlist" | uniq > "$nlist"T; then
5747 mv -f "$nlist"T "$nlist"
5752 # Make sure that we snagged all the symbols we need.
5753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5755 cat <<_LT_EOF > conftest.$ac_ext
5761 # Now generate the symbol file.
5762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5764 cat <<_LT_EOF >> conftest.$ac_ext
5766 /* The mapping between symbol names and symbols. */
5771 lt__PROGRAM__LTX_preloaded_symbols[] =
5773 { "@PROGRAM@", (void *) 0 },
5775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5776 cat <<\_LT_EOF >> conftest.$ac_ext
5780 /* This works around a problem in FreeBSD linker */
5781 #ifdef FREEBSD_WORKAROUND
5782 static const void *lt_preloaded_setup() {
5783 return lt__PROGRAM__LTX_preloaded_symbols;
5791 # Now try linking the two files.
5792 mv conftest.$ac_objext conftstm.$ac_objext
5793 lt_save_LIBS="$LIBS"
5794 lt_save_CFLAGS="$CFLAGS"
5795 LIBS="conftstm.$ac_objext"
5796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5798 (eval $ac_link) 2>&5
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5804 LIBS="$lt_save_LIBS"
5805 CFLAGS="$lt_save_CFLAGS"
5807 echo "cannot find nm_test_func in $nlist" >&5
5810 echo "cannot find nm_test_var in $nlist" >&5
5813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5816 echo "$progname: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5819 rm -rf conftest* conftst*
5821 # Do not use the global_symbol_pipe unless it works.
5822 if test "$pipe_works" = yes; then
5825 lt_cv_sys_global_symbol_pipe=
5831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5832 lt_cv_sys_global_symbol_to_cdecl=
5834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5836 $as_echo "failed" >&6; }
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5839 $as_echo "ok" >&6; }
5863 # Check whether --enable-libtool-lock was given.
5864 if test "${enable_libtool_lock+set}" = set; then :
5865 enableval=$enable_libtool_lock;
5868 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5870 # Some flags need to be propagated to the compiler or linker for good
5874 # Find out which ABI we are using.
5875 echo 'int i;' > conftest.$ac_ext
5876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5877 (eval $ac_compile) 2>&5
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }; then
5881 case `/usr/bin/file conftest.$ac_objext` in
5893 # Find out which ABI we are using.
5894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5896 (eval $ac_compile) 2>&5
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; }; then
5900 if test "$lt_cv_prog_gnu_ld" = yes; then
5901 case `/usr/bin/file conftest.$ac_objext` in
5903 LD="${LD-ld} -melf32bsmip"
5906 LD="${LD-ld} -melf32bmipn32"
5909 LD="${LD-ld} -melf64bmip"
5913 case `/usr/bin/file conftest.$ac_objext` in
5929 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5930 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5931 # Find out which ABI we are using.
5932 echo 'int i;' > conftest.$ac_ext
5933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934 (eval $ac_compile) 2>&5
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; then
5938 case `/usr/bin/file conftest.o` in
5941 x86_64-*kfreebsd*-gnu)
5942 LD="${LD-ld} -m elf_i386_fbsd"
5945 LD="${LD-ld} -m elf_i386"
5947 ppc64-*linux*|powerpc64-*linux*)
5948 LD="${LD-ld} -m elf32ppclinux"
5951 LD="${LD-ld} -m elf_s390"
5954 LD="${LD-ld} -m elf32_sparc"
5960 x86_64-*kfreebsd*-gnu)
5961 LD="${LD-ld} -m elf_x86_64_fbsd"
5964 LD="${LD-ld} -m elf_x86_64"
5966 ppc*-*linux*|powerpc*-*linux*)
5967 LD="${LD-ld} -m elf64ppc"
5969 s390*-*linux*|s390*-*tpf*)
5970 LD="${LD-ld} -m elf64_s390"
5973 LD="${LD-ld} -m elf64_sparc"
5983 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5984 SAVE_CFLAGS="$CFLAGS"
5985 CFLAGS="$CFLAGS -belf"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5987 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5988 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6008 if ac_fn_c_try_link "$LINENO"; then :
6009 lt_cv_cc_needs_belf=yes
6011 lt_cv_cc_needs_belf=no
6013 rm -f core conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6016 ac_cpp='$CPP $CPPFLAGS'
6017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6023 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6026 CFLAGS="$SAVE_CFLAGS"
6030 # Find out which ABI we are using.
6031 echo 'int i;' > conftest.$ac_ext
6032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6033 (eval $ac_compile) 2>&5
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }; then
6037 case `/usr/bin/file conftest.o` in
6039 case $lt_cv_prog_gnu_ld in
6040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6042 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6054 need_locks="$enable_libtool_lock"
6058 rhapsody* | darwin*)
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6067 if test -n "$DSYMUTIL"; then
6068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6088 if test -n "$DSYMUTIL"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6090 $as_echo "$DSYMUTIL" >&6; }
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6098 if test -z "$ac_cv_prog_DSYMUTIL"; then
6099 ac_ct_DSYMUTIL=$DSYMUTIL
6100 # Extract the first word of "dsymutil", so it can be a program name with args.
6101 set dummy dsymutil; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6107 if test -n "$ac_ct_DSYMUTIL"; then
6108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6128 if test -n "$ac_ct_DSYMUTIL"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6130 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6136 if test "x$ac_ct_DSYMUTIL" = x; then
6139 case $cross_compiling:$ac_tool_warned in
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6145 DSYMUTIL=$ac_ct_DSYMUTIL
6148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$NMEDIT"; then
6160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 NMEDIT=$ac_cv_prog_NMEDIT
6180 if test -n "$NMEDIT"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6182 $as_echo "$NMEDIT" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6190 if test -z "$ac_cv_prog_NMEDIT"; then
6191 ac_ct_NMEDIT=$NMEDIT
6192 # Extract the first word of "nmedit", so it can be a program name with args.
6193 set dummy nmedit; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6199 if test -n "$ac_ct_NMEDIT"; then
6200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6220 if test -n "$ac_ct_NMEDIT"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6222 $as_echo "$ac_ct_NMEDIT" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6228 if test "x$ac_ct_NMEDIT" = x; then
6231 case $cross_compiling:$ac_tool_warned in
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6237 NMEDIT=$ac_ct_NMEDIT
6240 NMEDIT="$ac_cv_prog_NMEDIT"
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_LIPO+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$LIPO"; then
6252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 LIPO=$ac_cv_prog_LIPO
6272 if test -n "$LIPO"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6274 $as_echo "$LIPO" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6282 if test -z "$ac_cv_prog_LIPO"; then
6284 # Extract the first word of "lipo", so it can be a program name with args.
6285 set dummy lipo; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
6291 if test -n "$ac_ct_LIPO"; then
6292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_LIPO="lipo"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6312 if test -n "$ac_ct_LIPO"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6314 $as_echo "$ac_ct_LIPO" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6320 if test "x$ac_ct_LIPO" = x; then
6323 case $cross_compiling:$ac_tool_warned in
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6332 LIPO="$ac_cv_prog_LIPO"
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}otool; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$OTOOL"; then
6344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 OTOOL=$ac_cv_prog_OTOOL
6364 if test -n "$OTOOL"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6366 $as_echo "$OTOOL" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6374 if test -z "$ac_cv_prog_OTOOL"; then
6376 # Extract the first word of "otool", so it can be a program name with args.
6377 set dummy otool; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$ac_ct_OTOOL"; then
6384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_ac_ct_OTOOL="otool"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6404 if test -n "$ac_ct_OTOOL"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6406 $as_echo "$ac_ct_OTOOL" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6412 if test "x$ac_ct_OTOOL" = x; then
6415 case $cross_compiling:$ac_tool_warned in
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6424 OTOOL="$ac_cv_prog_OTOOL"
6427 if test -n "$ac_tool_prefix"; then
6428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$OTOOL64"; then
6436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 OTOOL64=$ac_cv_prog_OTOOL64
6456 if test -n "$OTOOL64"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6458 $as_echo "$OTOOL64" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6466 if test -z "$ac_cv_prog_OTOOL64"; then
6467 ac_ct_OTOOL64=$OTOOL64
6468 # Extract the first word of "otool64", so it can be a program name with args.
6469 set dummy otool64; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6473 $as_echo_n "(cached) " >&6
6475 if test -n "$ac_ct_OTOOL64"; then
6476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_ac_ct_OTOOL64="otool64"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6496 if test -n "$ac_ct_OTOOL64"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6498 $as_echo "$ac_ct_OTOOL64" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6504 if test "x$ac_ct_OTOOL64" = x; then
6507 case $cross_compiling:$ac_tool_warned in
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6513 OTOOL64=$ac_ct_OTOOL64
6516 OTOOL64="$ac_cv_prog_OTOOL64"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6546 $as_echo_n "checking for -single_module linker flag... " >&6; }
6547 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6550 lt_cv_apple_cc_single_mod=no
6551 if test -z "${LT_MULTI_MODULE}"; then
6552 # By default we will add the -single_module flag. You can override
6553 # by either setting the environment variable LT_MULTI_MODULE
6554 # non-empty at configure time, or by adding -multi_module to the
6556 rm -rf libconftest.dylib*
6557 echo "int foo(void){return 1;}" > conftest.c
6558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6559 -dynamiclib -Wl,-single_module conftest.c" >&5
6560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6563 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6564 lt_cv_apple_cc_single_mod=yes
6566 cat conftest.err >&5
6568 rm -rf libconftest.dylib*
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6573 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6575 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6576 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6579 lt_cv_ld_exported_symbols_list=no
6580 save_LDFLAGS=$LDFLAGS
6581 echo "_main" > conftest.sym
6582 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6594 if ac_fn_c_try_link "$LINENO"; then :
6595 lt_cv_ld_exported_symbols_list=yes
6597 lt_cv_ld_exported_symbols_list=no
6599 rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601 LDFLAGS="$save_LDFLAGS"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6605 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6607 $as_echo_n "checking for -force_load linker flag... " >&6; }
6608 if test "${lt_cv_ld_force_load+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6611 lt_cv_ld_force_load=no
6612 cat > conftest.c << _LT_EOF
6613 int forced_loaded() { return 2;}
6615 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6617 echo "$AR cru libconftest.a conftest.o" >&5
6618 $AR cru libconftest.a conftest.o 2>&5
6619 cat > conftest.c << _LT_EOF
6620 int main() { return 0;}
6622 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6623 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6625 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6626 lt_cv_ld_force_load=yes
6628 cat conftest.err >&5
6630 rm -f conftest.err libconftest.a conftest conftest.c
6631 rm -rf conftest.dSYM
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6635 $as_echo "$lt_cv_ld_force_load" >&6; }
6637 rhapsody* | darwin1.[012])
6638 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6641 darwin*) # darwin 5.x on
6642 # if running on 10.5 or later, the deployment target defaults
6643 # to the OS version, if on x86, and 10.4, the deployment
6644 # target defaults to 10.4. Don't you love it?
6645 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6646 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6656 _lt_dar_single_mod='$single_module'
6658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6659 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6661 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6663 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6664 _lt_dsymutil='~$DSYMUTIL $lib || :'
6672 ac_cpp='$CPP $CPPFLAGS'
6673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6677 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6678 # On Suns, sometimes $CPP names a directory.
6679 if test -n "$CPP" && test -d "$CPP"; then
6682 if test -z "$CPP"; then
6683 if test "${ac_cv_prog_CPP+set}" = set; then :
6684 $as_echo_n "(cached) " >&6
6686 # Double quotes because CPP needs to be expanded
6687 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6690 for ac_c_preproc_warn_flag in '' yes
6692 # Use a header file that comes with gcc, so configuring glibc
6693 # with a fresh cross-compiler works.
6694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6695 # <limits.h> exists even on freestanding compilers.
6696 # On the NeXT, cc -E runs the code through the compiler's parser,
6697 # not just through cpp. "Syntax error" is here to catch this case.
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6701 # include <limits.h>
6703 # include <assert.h>
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6710 # Broken: fails on valid input.
6713 rm -f conftest.err conftest.$ac_ext
6715 # OK, works on sane cases. Now check whether nonexistent headers
6716 # can be detected and how.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <ac_nonexistent.h>
6721 if ac_fn_c_try_cpp "$LINENO"; then :
6722 # Broken: success on invalid input.
6725 # Passes both tests.
6729 rm -f conftest.err conftest.$ac_ext
6732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6733 rm -f conftest.err conftest.$ac_ext
6734 if $ac_preproc_ok; then :
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6747 $as_echo "$CPP" >&6; }
6749 for ac_c_preproc_warn_flag in '' yes
6751 # Use a header file that comes with gcc, so configuring glibc
6752 # with a fresh cross-compiler works.
6753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6754 # <limits.h> exists even on freestanding compilers.
6755 # On the NeXT, cc -E runs the code through the compiler's parser,
6756 # not just through cpp. "Syntax error" is here to catch this case.
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6760 # include <limits.h>
6762 # include <assert.h>
6766 if ac_fn_c_try_cpp "$LINENO"; then :
6769 # Broken: fails on valid input.
6772 rm -f conftest.err conftest.$ac_ext
6774 # OK, works on sane cases. Now check whether nonexistent headers
6775 # can be detected and how.
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 #include <ac_nonexistent.h>
6780 if ac_fn_c_try_cpp "$LINENO"; then :
6781 # Broken: success on invalid input.
6784 # Passes both tests.
6788 rm -f conftest.err conftest.$ac_ext
6791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6792 rm -f conftest.err conftest.$ac_ext
6793 if $ac_preproc_ok; then :
6796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6798 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6799 See \`config.log' for more details." "$LINENO" 5; }
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6810 $as_echo_n "checking for ANSI C header files... " >&6; }
6811 if test "${ac_cv_header_stdc+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 ac_cv_header_stdc=yes
6832 ac_cv_header_stdc=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 if test $ac_cv_header_stdc = yes; then
6837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 $EGREP "memchr" >/dev/null 2>&1; then :
6847 ac_cv_header_stdc=no
6853 if test $ac_cv_header_stdc = yes; then
6854 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6861 $EGREP "free" >/dev/null 2>&1; then :
6864 ac_cv_header_stdc=no
6870 if test $ac_cv_header_stdc = yes; then
6871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6872 if test "$cross_compiling" = yes; then :
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6879 #if ((' ' & 0x0FF) == 0x020)
6880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6883 # define ISLOWER(c) \
6884 (('a' <= (c) && (c) <= 'i') \
6885 || ('j' <= (c) && (c) <= 'r') \
6886 || ('s' <= (c) && (c) <= 'z'))
6887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6895 for (i = 0; i < 256; i++)
6896 if (XOR (islower (i), ISLOWER (i))
6897 || toupper (i) != TOUPPER (i))
6902 if ac_fn_c_try_run "$LINENO"; then :
6905 ac_cv_header_stdc=no
6907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6908 conftest.$ac_objext conftest.beam conftest.$ac_ext
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6914 $as_echo "$ac_cv_header_stdc" >&6; }
6915 if test $ac_cv_header_stdc = yes; then
6917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6922 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6923 inttypes.h stdint.h unistd.h
6925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6926 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6928 eval as_val=\$$as_ac_Header
6929 if test "x$as_val" = x""yes; then :
6930 cat >>confdefs.h <<_ACEOF
6931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6939 for ac_header in dlfcn.h
6941 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6943 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6944 cat >>confdefs.h <<_ACEOF
6945 #define HAVE_DLFCN_H 1
6966 # Check whether --enable-shared was given.
6967 if test "${enable_shared+set}" = set; then :
6968 enableval=$enable_shared; p=${PACKAGE-default}
6970 yes) enable_shared=yes ;;
6971 no) enable_shared=no ;;
6974 # Look at the argument we got. We use all the common list separators.
6975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6976 for pkg in $enableval; do
6978 if test "X$pkg" = "X$p"; then
6997 # Check whether --enable-static was given.
6998 if test "${enable_static+set}" = set; then :
6999 enableval=$enable_static; p=${PACKAGE-default}
7001 yes) enable_static=yes ;;
7002 no) enable_static=no ;;
7005 # Look at the argument we got. We use all the common list separators.
7006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7007 for pkg in $enableval; do
7009 if test "X$pkg" = "X$p"; then
7029 # Check whether --with-pic was given.
7030 if test "${with_pic+set}" = set; then :
7031 withval=$with_pic; pic_mode="$withval"
7037 test -z "$pic_mode" && pic_mode=default
7045 # Check whether --enable-fast-install was given.
7046 if test "${enable_fast_install+set}" = set; then :
7047 enableval=$enable_fast_install; p=${PACKAGE-default}
7049 yes) enable_fast_install=yes ;;
7050 no) enable_fast_install=no ;;
7052 enable_fast_install=no
7053 # Look at the argument we got. We use all the common list separators.
7054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7055 for pkg in $enableval; do
7057 if test "X$pkg" = "X$p"; then
7058 enable_fast_install=yes
7065 enable_fast_install=yes
7078 # This can be used to rebuild libtool when needed
7079 LIBTOOL_DEPS="$ltmain"
7081 # Always use our own libtool.
7082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7109 test -z "$LN_S" && LN_S="ln -s"
7124 if test -n "${ZSH_VERSION+set}" ; then
7125 setopt NO_GLOB_SUBST
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7129 $as_echo_n "checking for objdir... " >&6; }
7130 if test "${lt_cv_objdir+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7133 rm -f .libs 2>/dev/null
7134 mkdir .libs 2>/dev/null
7135 if test -d .libs; then
7138 # MS-DOS does not allow filenames that begin with a dot.
7141 rmdir .libs 2>/dev/null
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7144 $as_echo "$lt_cv_objdir" >&6; }
7145 objdir=$lt_cv_objdir
7151 cat >>confdefs.h <<_ACEOF
7152 #define LT_OBJDIR "$lt_cv_objdir/"
7160 # AIX sometimes has problems with the GCC collect2 program. For some
7161 # reason, if we set the COLLECT_NAMES environment variable, the problems
7162 # vanish in a puff of smoke.
7163 if test "X${COLLECT_NAMES+set}" != Xset; then
7165 export COLLECT_NAMES
7172 can_build_shared=yes
7174 # All known linkers require a `.a' archive for static linking (except MSVC,
7175 # which needs '.lib').
7178 with_gnu_ld="$lt_cv_prog_gnu_ld"
7181 old_CFLAGS="$CFLAGS"
7183 # Set sane defaults for various variables
7184 test -z "$CC" && CC=cc
7185 test -z "$LTCC" && LTCC=$CC
7186 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7187 test -z "$LD" && LD=ld
7188 test -z "$ac_objext" && ac_objext=o
7190 for cc_temp in $compiler""; do
7192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7198 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7201 # Only perform the check for file, if the check method requires it
7202 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7203 case $deplibs_check_method in
7205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7207 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7208 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7216 lt_save_MAGIC_CMD="$MAGIC_CMD"
7217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7219 for ac_dir in $ac_dummy; do
7221 test -z "$ac_dir" && ac_dir=.
7222 if test -f $ac_dir/${ac_tool_prefix}file; then
7223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7224 if test -n "$file_magic_test_file"; then
7225 case $deplibs_check_method in
7227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7230 $EGREP "$file_magic_regex" > /dev/null; then
7235 *** Warning: the command libtool uses to detect shared libraries,
7236 *** $file_magic_cmd, produces output that libtool cannot recognize.
7237 *** The result is that libtool may fail to recognize shared libraries
7238 *** as such. This will affect the creation of libtool libraries that
7239 *** depend on shared libraries, but programs linked with such libtool
7240 *** libraries will work regardless of this problem. Nevertheless, you
7241 *** may want to report the problem to your system manager and/or to
7242 *** bug-libtool@gnu.org
7252 MAGIC_CMD="$lt_save_MAGIC_CMD"
7257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258 if test -n "$MAGIC_CMD"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7260 $as_echo "$MAGIC_CMD" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7270 if test -z "$lt_cv_path_MAGIC_CMD"; then
7271 if test -n "$ac_tool_prefix"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7273 $as_echo_n "checking for file... " >&6; }
7274 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7282 lt_save_MAGIC_CMD="$MAGIC_CMD"
7283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7285 for ac_dir in $ac_dummy; do
7287 test -z "$ac_dir" && ac_dir=.
7288 if test -f $ac_dir/file; then
7289 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7290 if test -n "$file_magic_test_file"; then
7291 case $deplibs_check_method in
7293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7296 $EGREP "$file_magic_regex" > /dev/null; then
7301 *** Warning: the command libtool uses to detect shared libraries,
7302 *** $file_magic_cmd, produces output that libtool cannot recognize.
7303 *** The result is that libtool may fail to recognize shared libraries
7304 *** as such. This will affect the creation of libtool libraries that
7305 *** depend on shared libraries, but programs linked with such libtool
7306 *** libraries will work regardless of this problem. Nevertheless, you
7307 *** may want to report the problem to your system manager and/or to
7308 *** bug-libtool@gnu.org
7318 MAGIC_CMD="$lt_save_MAGIC_CMD"
7323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7324 if test -n "$MAGIC_CMD"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7326 $as_echo "$MAGIC_CMD" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7342 # Use C for the default configuration in the libtool script
7346 ac_cpp='$CPP $CPPFLAGS'
7347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352 # Source file extension for C test sources.
7355 # Object file extension for compiled C test sources.
7359 # Code to be used in simple compile tests
7360 lt_simple_compile_test_code="int some_variable = 0;"
7362 # Code to be used in simple link tests
7363 lt_simple_link_test_code='int main(){return(0);}'
7371 # If no C compiler was specified, use CC.
7374 # If no C compiler flags were specified, use CFLAGS.
7375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7377 # Allow CC to be a program name with arguments.
7380 # Save the default compiler, since it gets overwritten when the other
7381 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7382 compiler_DEFAULT=$CC
7384 # save warnings/boilerplate of simple test code
7385 ac_outfile=conftest.$ac_objext
7386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7388 _lt_compiler_boilerplate=`cat conftest.err`
7391 ac_outfile=conftest.$ac_objext
7392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7394 _lt_linker_boilerplate=`cat conftest.err`
7399 ## There is no encapsulation within the following macros, do not change
7400 ## the running order or otherwise move them around unless you know exactly
7401 ## what you are doing...
7402 if test -n "$compiler"; then
7404 lt_prog_compiler_no_builtin_flag=
7406 if test "$GCC" = yes; then
7407 case $cc_basename in
7409 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7411 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7415 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7416 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 lt_cv_prog_compiler_rtti_exceptions=no
7420 ac_outfile=conftest.$ac_objext
7421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422 lt_compiler_flag="-fno-rtti -fno-exceptions"
7423 # Insert the option either (1) after the last *FLAGS variable, or
7424 # (2) before a word containing "conftest.", or (3) at the end.
7425 # Note that $ac_compile itself does not contain backslashes and begins
7426 # with a dollar sign (not a hyphen), so the echo should work correctly.
7427 # The option is referenced via a variable to avoid confusing sed.
7428 lt_compile=`echo "$ac_compile" | $SED \
7429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431 -e 's:$: $lt_compiler_flag:'`
7432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7433 (eval "$lt_compile" 2>conftest.err)
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 if (exit $ac_status) && test -s "$ac_outfile"; then
7438 # The compiler can only warn and ignore the option if not recognized
7439 # So say no if there are warnings other than the usual output.
7440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7443 lt_cv_prog_compiler_rtti_exceptions=yes
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7450 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7453 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7465 lt_prog_compiler_wl=
7466 lt_prog_compiler_pic=
7467 lt_prog_compiler_static=
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7472 if test "$GCC" = yes; then
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_static='-static'
7478 # All AIX code is PIC.
7479 if test "$host_cpu" = ia64; then
7480 # AIX 5 now supports IA64 processor
7481 lt_prog_compiler_static='-Bstatic'
7488 # see comment about AmigaOS4 .so support
7489 lt_prog_compiler_pic='-fPIC'
7492 # FIXME: we need at least 68020 code to build shared libraries, but
7493 # adding the `-m68020' flag to GCC prevents building anything better,
7495 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7500 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7501 # PIC is the default for these OSes.
7504 mingw* | cygwin* | pw32* | os2* | cegcc*)
7505 # This hack is so that the source file can tell whether it is being
7506 # built for inclusion in a dll (and should export symbols for example).
7507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7508 # (--disable-auto-import) libraries
7509 lt_prog_compiler_pic='-DDLL_EXPORT'
7512 darwin* | rhapsody*)
7513 # PIC is the default on this platform
7514 # Common symbols not allowed in MH_DYLIB files
7515 lt_prog_compiler_pic='-fno-common'
7519 # PIC is the default for Haiku.
7520 # The "-static" flag exists, but is broken.
7521 lt_prog_compiler_static=
7525 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7526 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7527 # sets the default TLS model and affects inlining.
7533 lt_prog_compiler_pic='-fPIC'
7539 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7540 # Instead, we relocate shared libraries at runtime.
7544 # Just because we use GCC doesn't mean we suddenly get shared libraries
7545 # on systems that don't support them.
7546 lt_prog_compiler_can_build_shared=no
7551 # QNX uses GNU C++, but need to define -shared option too, otherwise
7553 lt_prog_compiler_pic='-fPIC -shared'
7557 if test -d /usr/nec; then
7558 lt_prog_compiler_pic=-Kconform_pic
7563 lt_prog_compiler_pic='-fPIC'
7567 case $cc_basename in
7568 nvcc*) # Cuda Compiler Driver 2.2
7569 lt_prog_compiler_wl='-Xlinker '
7570 lt_prog_compiler_pic='-Xcompiler -fPIC'
7574 # PORTME Check for flag to pass linker flags through the system compiler.
7577 lt_prog_compiler_wl='-Wl,'
7578 if test "$host_cpu" = ia64; then
7579 # AIX 5 now supports IA64 processor
7580 lt_prog_compiler_static='-Bstatic'
7582 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7586 mingw* | cygwin* | pw32* | os2* | cegcc*)
7587 # This hack is so that the source file can tell whether it is being
7588 # built for inclusion in a dll (and should export symbols for example).
7589 lt_prog_compiler_pic='-DDLL_EXPORT'
7592 hpux9* | hpux10* | hpux11*)
7593 lt_prog_compiler_wl='-Wl,'
7594 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7601 lt_prog_compiler_pic='+Z'
7604 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7605 lt_prog_compiler_static='${wl}-a ${wl}archive'
7608 irix5* | irix6* | nonstopux*)
7609 lt_prog_compiler_wl='-Wl,'
7610 # PIC (with -KPIC) is the default.
7611 lt_prog_compiler_static='-non_shared'
7614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7615 case $cc_basename in
7616 # old Intel for x86_64 which still supported -KPIC.
7618 lt_prog_compiler_wl='-Wl,'
7619 lt_prog_compiler_pic='-KPIC'
7620 lt_prog_compiler_static='-static'
7622 # icc used to be incompatible with GCC.
7623 # ICC 10 doesn't accept -KPIC any more.
7625 lt_prog_compiler_wl='-Wl,'
7626 lt_prog_compiler_pic='-fPIC'
7627 lt_prog_compiler_static='-static'
7629 # Lahey Fortran 8.1.
7631 lt_prog_compiler_wl='-Wl,'
7632 lt_prog_compiler_pic='--shared'
7633 lt_prog_compiler_static='--static'
7635 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7636 # Portland Group compilers (*not* the Pentium gcc compiler,
7637 # which looks to be a dead project)
7638 lt_prog_compiler_wl='-Wl,'
7639 lt_prog_compiler_pic='-fpic'
7640 lt_prog_compiler_static='-Bstatic'
7643 lt_prog_compiler_wl='-Wl,'
7644 # All Alpha code is PIC.
7645 lt_prog_compiler_static='-non_shared'
7647 xl* | bgxl* | bgf* | mpixl*)
7648 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7649 lt_prog_compiler_wl='-Wl,'
7650 lt_prog_compiler_pic='-qpic'
7651 lt_prog_compiler_static='-qstaticlink'
7654 case `$CC -V 2>&1 | sed 5q` in
7655 *Sun\ F* | *Sun*Fortran*)
7656 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7657 lt_prog_compiler_pic='-KPIC'
7658 lt_prog_compiler_static='-Bstatic'
7659 lt_prog_compiler_wl=''
7663 lt_prog_compiler_pic='-KPIC'
7664 lt_prog_compiler_static='-Bstatic'
7665 lt_prog_compiler_wl='-Wl,'
7673 lt_prog_compiler_pic='-KPIC'
7674 lt_prog_compiler_static='-Bstatic'
7678 # QNX uses GNU C++, but need to define -shared option too, otherwise
7680 lt_prog_compiler_pic='-fPIC -shared'
7683 osf3* | osf4* | osf5*)
7684 lt_prog_compiler_wl='-Wl,'
7685 # All OSF/1 code is PIC.
7686 lt_prog_compiler_static='-non_shared'
7690 lt_prog_compiler_static='-non_shared'
7694 lt_prog_compiler_pic='-KPIC'
7695 lt_prog_compiler_static='-Bstatic'
7696 case $cc_basename in
7698 lt_prog_compiler_wl='-Qoption ld ';;
7700 lt_prog_compiler_wl='-Wl,';;
7705 lt_prog_compiler_wl='-Qoption ld '
7706 lt_prog_compiler_pic='-PIC'
7707 lt_prog_compiler_static='-Bstatic'
7710 sysv4 | sysv4.2uw2* | sysv4.3*)
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-Bstatic'
7717 if test -d /usr/nec ;then
7718 lt_prog_compiler_pic='-Kconform_pic'
7719 lt_prog_compiler_static='-Bstatic'
7723 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7724 lt_prog_compiler_wl='-Wl,'
7725 lt_prog_compiler_pic='-KPIC'
7726 lt_prog_compiler_static='-Bstatic'
7730 lt_prog_compiler_wl='-Wl,'
7731 lt_prog_compiler_can_build_shared=no
7735 lt_prog_compiler_pic='-pic'
7736 lt_prog_compiler_static='-Bstatic'
7740 lt_prog_compiler_can_build_shared=no
7746 # For platforms which do not support PIC, -DPIC is meaningless:
7748 lt_prog_compiler_pic=
7751 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7755 $as_echo "$lt_prog_compiler_pic" >&6; }
7763 # Check to make sure the PIC flag actually works.
7765 if test -n "$lt_prog_compiler_pic"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7767 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7768 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7771 lt_cv_prog_compiler_pic_works=no
7772 ac_outfile=conftest.$ac_objext
7773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7775 # Insert the option either (1) after the last *FLAGS variable, or
7776 # (2) before a word containing "conftest.", or (3) at the end.
7777 # Note that $ac_compile itself does not contain backslashes and begins
7778 # with a dollar sign (not a hyphen), so the echo should work correctly.
7779 # The option is referenced via a variable to avoid confusing sed.
7780 lt_compile=`echo "$ac_compile" | $SED \
7781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783 -e 's:$: $lt_compiler_flag:'`
7784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7785 (eval "$lt_compile" 2>conftest.err)
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 if (exit $ac_status) && test -s "$ac_outfile"; then
7790 # The compiler can only warn and ignore the option if not recognized
7791 # So say no if there are warnings other than the usual output.
7792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795 lt_cv_prog_compiler_pic_works=yes
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7802 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7804 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7805 case $lt_prog_compiler_pic in
7807 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7810 lt_prog_compiler_pic=
7811 lt_prog_compiler_can_build_shared=no
7822 # Check to make sure the static flag actually works.
7824 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7826 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7827 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7830 lt_cv_prog_compiler_static_works=no
7831 save_LDFLAGS="$LDFLAGS"
7832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7833 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7835 # The linker can only warn and ignore the option if not recognized
7836 # So say no if there are warnings
7837 if test -s conftest.err; then
7838 # Append any errors to the config.log.
7839 cat conftest.err 1>&5
7840 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7842 if diff conftest.exp conftest.er2 >/dev/null; then
7843 lt_cv_prog_compiler_static_works=yes
7846 lt_cv_prog_compiler_static_works=yes
7850 LDFLAGS="$save_LDFLAGS"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7854 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7856 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7859 lt_prog_compiler_static=
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7869 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7870 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7873 lt_cv_prog_compiler_c_o=no
7874 $RM -r conftest 2>/dev/null
7878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7880 lt_compiler_flag="-o out/conftest2.$ac_objext"
7881 # Insert the option either (1) after the last *FLAGS variable, or
7882 # (2) before a word containing "conftest.", or (3) at the end.
7883 # Note that $ac_compile itself does not contain backslashes and begins
7884 # with a dollar sign (not a hyphen), so the echo should work correctly.
7885 lt_compile=`echo "$ac_compile" | $SED \
7886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888 -e 's:$: $lt_compiler_flag:'`
7889 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7890 (eval "$lt_compile" 2>out/conftest.err)
7892 cat out/conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7896 # The compiler can only warn and ignore the option if not recognized
7897 # So say no if there are warnings
7898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7899 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7900 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7901 lt_cv_prog_compiler_c_o=yes
7906 # SGI C++ compiler will create directory out/ii_files/ for
7907 # template instantiation
7908 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7909 $RM out/* && rmdir out
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7916 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7924 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7925 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7928 lt_cv_prog_compiler_c_o=no
7929 $RM -r conftest 2>/dev/null
7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7935 lt_compiler_flag="-o out/conftest2.$ac_objext"
7936 # Insert the option either (1) after the last *FLAGS variable, or
7937 # (2) before a word containing "conftest.", or (3) at the end.
7938 # Note that $ac_compile itself does not contain backslashes and begins
7939 # with a dollar sign (not a hyphen), so the echo should work correctly.
7940 lt_compile=`echo "$ac_compile" | $SED \
7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943 -e 's:$: $lt_compiler_flag:'`
7944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7945 (eval "$lt_compile" 2>out/conftest.err)
7947 cat out/conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7951 # The compiler can only warn and ignore the option if not recognized
7952 # So say no if there are warnings
7953 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7954 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7955 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7956 lt_cv_prog_compiler_c_o=yes
7961 # SGI C++ compiler will create directory out/ii_files/ for
7962 # template instantiation
7963 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7964 $RM out/* && rmdir out
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7971 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7976 hard_links="nottested"
7977 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7978 # do not overwrite the value of need_locks provided by the user
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7980 $as_echo_n "checking if we can lock with hard links... " >&6; }
7983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7985 ln conftest.a conftest.b 2>&5 || hard_links=no
7986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7988 $as_echo "$hard_links" >&6; }
7989 if test "$hard_links" = no; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7991 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8004 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8007 allow_undefined_flag=
8008 always_export_symbols=no
8010 archive_expsym_cmds=
8011 compiler_needs_object=no
8012 enable_shared_with_static_runtimes=no
8013 export_dynamic_flag_spec=
8014 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8015 hardcode_automatic=no
8017 hardcode_direct_absolute=no
8018 hardcode_libdir_flag_spec=
8019 hardcode_libdir_flag_spec_ld=
8020 hardcode_libdir_separator=
8022 hardcode_shlibpath_var=unsupported
8024 link_all_deplibs=unknown
8027 old_archive_from_new_cmds=
8028 old_archive_from_expsyms_cmds=
8029 thread_safe_flag_spec=
8030 whole_archive_flag_spec=
8031 # include_expsyms should be a list of space-separated symbols to be *always*
8032 # included in the symbol list
8034 # exclude_expsyms can be an extended regexp of symbols to exclude
8035 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8036 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8037 # as well as any symbol that contains `d'.
8038 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8039 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8040 # platforms (ab)use it in PIC code, but their linkers get confused if
8041 # the symbol is explicitly referenced. Since portable code cannot
8042 # rely on this symbol name, it's probably fine to never include it in
8043 # preloaded symbol tables.
8044 # Exclude shared library initialization/finalization symbols.
8045 extract_expsyms_cmds=
8048 cygwin* | mingw* | pw32* | cegcc*)
8049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8050 # When not using gcc, we currently assume that we are using
8051 # Microsoft Visual C++.
8052 if test "$GCC" != yes; then
8057 # we just hope/assume this is gcc and not c89 (= MSVC++)
8067 # On some targets, GNU ld is compatible enough with the native linker
8068 # that we're better off using the native interface for both.
8069 lt_use_gnu_ld_interface=no
8070 if test "$with_gnu_ld" = yes; then
8073 # The AIX port of GNU ld has always aspired to compatibility
8074 # with the native linker. However, as the warning in the GNU ld
8075 # block says, versions before 2.19.5* couldn't really create working
8076 # shared libraries, regardless of the interface used.
8077 case `$LD -v 2>&1` in
8078 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8079 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8080 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8082 lt_use_gnu_ld_interface=yes
8087 lt_use_gnu_ld_interface=yes
8092 if test "$lt_use_gnu_ld_interface" = yes; then
8093 # If archive_cmds runs LD, not CC, wlarc should be empty
8096 # Set some defaults for GNU ld with shared library support. These
8097 # are reset later if shared libraries are not supported. Putting them
8098 # here allows them to be overridden if necessary.
8099 runpath_var=LD_RUN_PATH
8100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8101 export_dynamic_flag_spec='${wl}--export-dynamic'
8102 # ancient GNU ld didn't support --whole-archive et. al.
8103 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8104 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8106 whole_archive_flag_spec=
8108 supports_anon_versioning=no
8109 case `$LD -v 2>&1` in
8110 *GNU\ gold*) supports_anon_versioning=yes ;;
8111 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8112 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8113 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8114 *\ 2.11.*) ;; # other 2.11 versions
8115 *) supports_anon_versioning=yes ;;
8118 # See if GNU ld supports shared libraries.
8121 # On AIX/PPC, the GNU linker is very broken
8122 if test "$host_cpu" != ia64; then
8126 *** Warning: the GNU linker, at least up to release 2.19, is reported
8127 *** to be unable to reliably create shared libraries on AIX.
8128 *** Therefore, libtool is disabling shared libraries support. If you
8129 *** really care for shared libraries, you may want to install binutils
8130 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8131 *** You will then need to restart the configuration process.
8140 # see comment about AmigaOS4 .so support
8141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8142 archive_expsym_cmds=''
8145 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)'
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_minus_L=yes
8153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154 allow_undefined_flag=unsupported
8155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8156 # support --undefined. This deserves some investigation. FIXME
8157 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163 cygwin* | mingw* | pw32* | cegcc*)
8164 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8165 # as there is no search path for DLLs.
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 export_dynamic_flag_spec='${wl}--export-all-symbols'
8168 allow_undefined_flag=unsupported
8169 always_export_symbols=no
8170 enable_shared_with_static_runtimes=yes
8171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8173 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 # If the export-symbols file already is a .def file (1st line
8176 # is EXPORTS), use it as is; otherwise, prepend...
8177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8178 cp $export_symbols $output_objdir/$soname.def;
8180 echo EXPORTS > $output_objdir/$soname.def;
8181 cat $export_symbols >> $output_objdir/$soname.def;
8183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8191 link_all_deplibs=yes
8196 hardcode_shlibpath_var=no
8197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198 export_dynamic_flag_spec='${wl}-E'
8199 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8200 # Instead, shared libraries are loaded at an image base (0x10000000 by
8201 # default) and relocated if they conflict, which is a slow very memory
8202 # consuming and fragmenting process. To avoid this, we pick a random,
8203 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8204 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8206 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'
8209 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8211 if test "$host_os" = linux-dietlibc; then
8212 case $cc_basename in
8213 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8216 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8217 && test "$tmp_diet" = no
8220 tmp_sharedflag='-shared'
8221 case $cc_basename,$host_cpu in
8222 pgcc*) # Portland Group C compiler
8223 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'
8224 tmp_addflag=' $pic_flag'
8226 pgf77* | pgf90* | pgf95* | pgfortran*)
8227 # Portland Group f77 and f90 compilers
8228 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'
8229 tmp_addflag=' $pic_flag -Mnomain' ;;
8230 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8231 tmp_addflag=' -i_dynamic' ;;
8232 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8233 tmp_addflag=' -i_dynamic -nofor_main' ;;
8234 ifc* | ifort*) # Intel Fortran compiler
8235 tmp_addflag=' -nofor_main' ;;
8236 lf95*) # Lahey Fortran 8.1
8237 whole_archive_flag_spec=
8238 tmp_sharedflag='--shared' ;;
8239 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8240 tmp_sharedflag='-qmkshrobj'
8242 nvcc*) # Cuda Compiler Driver 2.2
8243 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'
8244 compiler_needs_object=yes
8247 case `$CC -V 2>&1 | sed 5q` in
8248 *Sun\ C*) # Sun C 5.9
8249 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'
8250 compiler_needs_object=yes
8251 tmp_sharedflag='-G' ;;
8252 *Sun\ F*) # Sun Fortran 8.3
8253 tmp_sharedflag='-G' ;;
8255 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8257 if test "x$supports_anon_versioning" = xyes; then
8258 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8260 echo "local: *; };" >> $output_objdir/$libname.ver~
8261 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8264 case $cc_basename in
8265 xlf* | bgf* | bgxlf* | mpixlf*)
8266 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8267 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8268 hardcode_libdir_flag_spec=
8269 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8270 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8271 if test "x$supports_anon_versioning" = xyes; then
8272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8274 echo "local: *; };" >> $output_objdir/$libname.ver~
8275 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8286 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8300 *** create shared libraries on Solaris systems. Therefore, libtool
8301 *** is disabling shared libraries support. We urge you to upgrade GNU
8302 *** binutils to release 2.9.1 or newer. Another option is to modify
8303 *** your PATH or compiler configuration so that the native linker is
8304 *** used, and then restart.
8307 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8316 case `$LD -v 2>&1` in
8317 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8321 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8322 *** reliably create shared libraries on SCO systems. Therefore, libtool
8323 *** is disabling shared libraries support. We urge you to upgrade GNU
8324 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8325 *** your PATH or compiler configuration so that the native linker is
8326 *** used, and then restart.
8331 # For security reasons, it is highly recommended that you always
8332 # use absolute paths for naming shared libraries, and exclude the
8333 # DT_RUNPATH tag from executables and libraries. But doing so
8334 # requires that you compile everything twice, which is a pain.
8335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8347 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8350 hardcode_shlibpath_var=no
8354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8363 if test "$ld_shlibs" = no; then
8365 hardcode_libdir_flag_spec=
8366 export_dynamic_flag_spec=
8367 whole_archive_flag_spec=
8370 # PORTME fill in a description of your system's linker (not GNU ld)
8373 allow_undefined_flag=unsupported
8374 always_export_symbols=yes
8375 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'
8376 # Note: this linker hardcodes the directories in LIBPATH if there
8377 # are no directories specified by -L.
8378 hardcode_minus_L=yes
8379 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380 # Neither direct hardcoding nor static linking is supported with a
8382 hardcode_direct=unsupported
8387 if test "$host_cpu" = ia64; then
8388 # On IA64, the linker does run time linking by default, so we don't
8389 # have to do anything special.
8390 aix_use_runtimelinking=no
8391 exp_sym_flag='-Bexport'
8394 # If we're using GNU nm, then we don't want the "-C" option.
8395 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8396 # Also, AIX nm treats weak defined symbols like other global
8397 # defined symbols, whereas GNU nm marks them as "W".
8398 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8399 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'
8401 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'
8403 aix_use_runtimelinking=no
8405 # Test if we are trying to use run time linking or normal
8406 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407 # need to do runtime linking.
8408 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8409 for ld_flag in $LDFLAGS; do
8410 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411 aix_use_runtimelinking=yes
8418 exp_sym_flag='-bexport'
8419 no_entry_flag='-bnoentry'
8422 # When large executables or shared objects are built, AIX ld can
8423 # have problems creating the table of contents. If linking a library
8424 # or program results in "error TOC overflow" add -mminimal-toc to
8425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8430 hardcode_direct_absolute=yes
8431 hardcode_libdir_separator=':'
8432 link_all_deplibs=yes
8433 file_list_spec='${wl}-f,'
8435 if test "$GCC" = yes; then
8436 case $host_os in aix4.[012]|aix4.[012].*)
8437 # We only want to do this on AIX 4.2 and lower, the check
8438 # below for broken collect2 doesn't work under 4.3+
8439 collect2name=`${CC} -print-prog-name=collect2`
8440 if test -f "$collect2name" &&
8441 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8443 # We have reworked collect2
8446 # We have old collect2
8447 hardcode_direct=unsupported
8448 # It fails to find uninstalled libraries when the uninstalled
8449 # path is not listed in the libpath. Setting hardcode_minus_L
8450 # to unsupported forces relinking
8451 hardcode_minus_L=yes
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_libdir_separator=
8457 shared_flag='-shared'
8458 if test "$aix_use_runtimelinking" = yes; then
8459 shared_flag="$shared_flag "'${wl}-G'
8463 if test "$host_cpu" = ia64; then
8464 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8465 # chokes on -Wl,-G. The following line is correct:
8468 if test "$aix_use_runtimelinking" = yes; then
8469 shared_flag='${wl}-G'
8471 shared_flag='${wl}-bM:SRE'
8476 export_dynamic_flag_spec='${wl}-bexpall'
8477 # It seems that -bexpall does not export symbols beginning with
8478 # underscore (_), so it is better to generate a list of symbols to export.
8479 always_export_symbols=yes
8480 if test "$aix_use_runtimelinking" = yes; then
8481 # Warning - without using the other runtime loading flags (-brtl),
8482 # -berok will link without error, but may produce a broken library.
8483 allow_undefined_flag='-berok'
8484 # Determine the default libpath from the value encoded in an
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8497 if ac_fn_c_try_link "$LINENO"; then :
8499 lt_aix_libpath_sed='
8500 /Import File Strings/,/^$/ {
8506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8507 # Check for a 64-bit object if we didn't find anything.
8508 if test -z "$aix_libpath"; then
8509 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8517 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"
8519 if test "$host_cpu" = ia64; then
8520 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8521 allow_undefined_flag="-z nodefs"
8522 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"
8524 # Determine the default libpath from the value encoded in an
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8537 if ac_fn_c_try_link "$LINENO"; then :
8539 lt_aix_libpath_sed='
8540 /Import File Strings/,/^$/ {
8546 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8547 # Check for a 64-bit object if we didn't find anything.
8548 if test -z "$aix_libpath"; then
8549 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8556 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8557 # Warning - without using the other run time loading flags,
8558 # -berok will link without error, but may produce a broken library.
8559 no_undefined_flag=' ${wl}-bernotok'
8560 allow_undefined_flag=' ${wl}-berok'
8561 if test "$with_gnu_ld" = yes; then
8562 # We only use this code for GNU lds that support --whole-archive.
8563 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8565 # Exported symbols can be pulled into shared objects from archives
8566 whole_archive_flag_spec='$convenience'
8568 archive_cmds_need_lc=yes
8569 # This is similar to how AIX traditionally builds its shared libraries.
8570 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'
8578 # see comment about AmigaOS4 .so support
8579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580 archive_expsym_cmds=''
8583 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)'
8584 hardcode_libdir_flag_spec='-L$libdir'
8585 hardcode_minus_L=yes
8591 export_dynamic_flag_spec=-rdynamic
8594 cygwin* | mingw* | pw32* | cegcc*)
8595 # When not using gcc, we currently assume that we are using
8596 # Microsoft Visual C++.
8597 # hardcode_libdir_flag_spec is actually meaningless, as there is
8598 # no search path for DLLs.
8599 hardcode_libdir_flag_spec=' '
8600 allow_undefined_flag=unsupported
8601 # Tell ltmain to make .lib files, not .a files.
8603 # Tell ltmain to make .dll files, not .so files.
8605 # FIXME: Setting linknames here is a bad hack.
8606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8607 # The linker will automatically build a .lib file if we build a DLL.
8608 old_archive_from_new_cmds='true'
8609 # FIXME: Should let the user specify the lib program.
8610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8611 fix_srcfile_path='`cygpath -w "$srcfile"`'
8612 enable_shared_with_static_runtimes=yes
8615 darwin* | rhapsody*)
8618 archive_cmds_need_lc=no
8620 hardcode_automatic=yes
8621 hardcode_shlibpath_var=unsupported
8622 if test "$lt_cv_ld_force_load" = "yes"; then
8623 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\"`'
8625 whole_archive_flag_spec=''
8627 link_all_deplibs=yes
8628 allow_undefined_flag="$_lt_dar_allow_undefined"
8629 case $cc_basename in
8630 ifort*) _lt_dar_can_shared=yes ;;
8631 *) _lt_dar_can_shared=$GCC ;;
8633 if test "$_lt_dar_can_shared" = "yes"; then
8634 output_verbose_link_cmd=func_echo_all
8635 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8636 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8637 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}"
8638 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}"
8647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8648 hardcode_libdir_flag_spec='-L$libdir'
8649 hardcode_shlibpath_var=no
8656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8657 # support. Future versions do this automatically, but an explicit c++rt0.o
8658 # does not break anything, and helps significantly (at the cost of a little
8661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8662 hardcode_libdir_flag_spec='-R$libdir'
8664 hardcode_shlibpath_var=no
8667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_minus_L=yes
8672 hardcode_shlibpath_var=no
8675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8676 freebsd* | dragonfly*)
8677 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8678 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_shlibpath_var=no
8684 if test "$GCC" = yes; then
8685 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'
8687 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'
8689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8690 hardcode_libdir_separator=:
8693 # hardcode_minus_L: Not really in the search PATH,
8694 # but as the default location of the library.
8695 hardcode_minus_L=yes
8696 export_dynamic_flag_spec='${wl}-E'
8700 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8705 if test "$with_gnu_ld" = no; then
8706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8707 hardcode_libdir_flag_spec_ld='+b $libdir'
8708 hardcode_libdir_separator=:
8710 hardcode_direct_absolute=yes
8711 export_dynamic_flag_spec='${wl}-E'
8712 # hardcode_minus_L: Not really in the search PATH,
8713 # but as the default location of the library.
8714 hardcode_minus_L=yes
8719 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8722 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8741 # Older versions of the 11.00 compiler do not understand -b yet
8742 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8744 $as_echo_n "checking if $CC understands -b... " >&6; }
8745 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8746 $as_echo_n "(cached) " >&6
8748 lt_cv_prog_compiler__b=no
8749 save_LDFLAGS="$LDFLAGS"
8750 LDFLAGS="$LDFLAGS -b"
8751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8753 # The linker can only warn and ignore the option if not recognized
8754 # So say no if there are warnings
8755 if test -s conftest.err; then
8756 # Append any errors to the config.log.
8757 cat conftest.err 1>&5
8758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler__b=yes
8764 lt_cv_prog_compiler__b=yes
8768 LDFLAGS="$save_LDFLAGS"
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8772 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8774 if test x"$lt_cv_prog_compiler__b" = xyes; then
8775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8783 if test "$with_gnu_ld" = no; then
8784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8785 hardcode_libdir_separator=:
8790 hardcode_shlibpath_var=no
8794 hardcode_direct_absolute=yes
8795 export_dynamic_flag_spec='${wl}-E'
8797 # hardcode_minus_L: Not really in the search PATH,
8798 # but as the default location of the library.
8799 hardcode_minus_L=yes
8805 irix5* | irix6* | nonstopux*)
8806 if test "$GCC" = yes; then
8807 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'
8808 # Try to use the -exported_symbol ld option, if it does not
8809 # work, assume that -exports_file does not work either and
8810 # implicitly export all symbols.
8811 save_LDFLAGS="$LDFLAGS"
8812 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8817 if ac_fn_c_try_link "$LINENO"; then :
8818 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'
8821 rm -f core conftest.err conftest.$ac_objext \
8822 conftest$ac_exeext conftest.$ac_ext
8823 LDFLAGS="$save_LDFLAGS"
8825 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'
8826 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'
8828 archive_cmds_need_lc='no'
8829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830 hardcode_libdir_separator=:
8832 link_all_deplibs=yes
8836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8841 hardcode_libdir_flag_spec='-R$libdir'
8843 hardcode_shlibpath_var=no
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850 hardcode_libdir_separator=:
8851 hardcode_shlibpath_var=no
8858 if test -f /usr/libexec/ld.so; then
8860 hardcode_shlibpath_var=no
8861 hardcode_direct_absolute=yes
8862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866 export_dynamic_flag_spec='${wl}-E'
8869 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871 hardcode_libdir_flag_spec='-R$libdir'
8874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 hardcode_minus_L=yes
8887 allow_undefined_flag=unsupported
8888 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'
8889 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893 if test "$GCC" = yes; then
8894 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895 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'
8897 allow_undefined_flag=' -expect_unresolved \*'
8898 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'
8900 archive_cmds_need_lc='no'
8901 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902 hardcode_libdir_separator=:
8905 osf4* | osf5*) # as osf3* with the addition of -msym flag
8906 if test "$GCC" = yes; then
8907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8908 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'
8909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8911 allow_undefined_flag=' -expect_unresolved \*'
8912 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'
8913 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~
8914 $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'
8916 # Both c and cxx compiler support -rpath directly
8917 hardcode_libdir_flag_spec='-rpath $libdir'
8919 archive_cmds_need_lc='no'
8920 hardcode_libdir_separator=:
8924 no_undefined_flag=' -z defs'
8925 if test "$GCC" = yes; then
8927 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8929 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8931 case `$CC -V 2>&1` in
8934 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8936 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8940 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8942 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8946 hardcode_libdir_flag_spec='-R$libdir'
8947 hardcode_shlibpath_var=no
8949 solaris2.[0-5] | solaris2.[0-5].*) ;;
8951 # The compiler driver will combine and reorder linker options,
8952 # but understands `-z linker_flag'. GCC discards it without `$wl',
8953 # but is careful enough not to reorder.
8954 # Supported since Solaris 2.6 (maybe 2.5.1?)
8955 if test "$GCC" = yes; then
8956 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8958 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8962 link_all_deplibs=yes
8966 if test "x$host_vendor" = xsequent; then
8967 # Use $CC to link under sequent, because it throws in some extra .o
8968 # files that make .init and .fini sections work.
8969 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8971 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8973 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_minus_L=yes
8976 hardcode_shlibpath_var=no
8980 case $host_vendor in
8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_direct=yes # is this really true???
8986 ## LD is ld it makes a PLAMLIB
8987 ## CC just makes a GrossModule.
8988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8989 reload_cmds='$CC -r -o $output$reload_objs'
8993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8997 runpath_var='LD_RUN_PATH'
8998 hardcode_shlibpath_var=no
9002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003 hardcode_shlibpath_var=no
9004 export_dynamic_flag_spec='-Bexport'
9008 if test -d /usr/nec; then
9009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_shlibpath_var=no
9011 runpath_var=LD_RUN_PATH
9012 hardcode_runpath_var=yes
9017 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9018 no_undefined_flag='${wl}-z,text'
9019 archive_cmds_need_lc=no
9020 hardcode_shlibpath_var=no
9021 runpath_var='LD_RUN_PATH'
9023 if test "$GCC" = yes; then
9024 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9025 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9027 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 sysv5* | sco3.2v5* | sco5v6*)
9033 # Note: We can NOT use -z defs as we might desire, because we do not
9034 # link with -lc, and that would cause any symbols used from libc to
9035 # always be unresolved, which means just about no library would
9036 # ever link correctly. If we're not using GNU ld we use -z text
9037 # though, which does catch some bad symbols but isn't as heavy-handed
9039 no_undefined_flag='${wl}-z,text'
9040 allow_undefined_flag='${wl}-z,nodefs'
9041 archive_cmds_need_lc=no
9042 hardcode_shlibpath_var=no
9043 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9044 hardcode_libdir_separator=':'
9045 link_all_deplibs=yes
9046 export_dynamic_flag_spec='${wl}-Bexport'
9047 runpath_var='LD_RUN_PATH'
9049 if test "$GCC" = yes; then
9050 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_shlibpath_var=no
9069 if test x$host_vendor = xsni; then
9071 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9072 export_dynamic_flag_spec='${wl}-Blargedynsym'
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9079 $as_echo "$ld_shlibs" >&6; }
9080 test "$ld_shlibs" = no && can_build_shared=no
9082 with_gnu_ld=$with_gnu_ld
9099 # Do we need to explicitly link libc?
9101 case "x$archive_cmds_need_lc" in
9103 # Assume -lc should be added
9104 archive_cmds_need_lc=yes
9106 if test "$enable_shared" = yes && test "$GCC" = yes; then
9107 case $archive_cmds in
9109 # FIXME: we may have to deal with multi-command sequences.
9112 # Test whether the compiler implicitly links with -lc since on some
9113 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9114 # to ld, don't add -lc before -lgcc.
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9116 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9117 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9124 (eval $ac_compile) 2>&5
9126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9127 test $ac_status = 0; } 2>conftest.err; then
9130 libobjs=conftest.$ac_objext
9132 wl=$lt_prog_compiler_wl
9133 pic_flag=$lt_prog_compiler_pic
9139 lt_save_allow_undefined_flag=$allow_undefined_flag
9140 allow_undefined_flag=
9141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9142 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9145 test $ac_status = 0; }
9147 lt_cv_archive_cmds_need_lc=no
9149 lt_cv_archive_cmds_need_lc=yes
9151 allow_undefined_flag=$lt_save_allow_undefined_flag
9153 cat conftest.err 1>&5
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9159 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9160 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9326 if test "$GCC" = yes; then
9328 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9329 *) lt_awk_arg="/^libraries:/" ;;
9332 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9333 *) lt_sed_strip_eq="s,=/,/,g" ;;
9335 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9336 case $lt_search_path_spec in
9338 # if the path contains ";" then we assume it to be the separator
9339 # otherwise default to the standard path separator (i.e. ":") - it is
9340 # assumed that no part of a normal pathname contains ";" but that should
9341 # okay in the real world where ";" in dirpaths is itself problematic.
9342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9348 # Ok, now we have the path, separated by spaces, we can step through it
9349 # and add multilib dir if necessary.
9350 lt_tmp_lt_search_path_spec=
9351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9352 for lt_sys_path in $lt_search_path_spec; do
9353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9356 test -d "$lt_sys_path" && \
9357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9360 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9361 BEGIN {RS=" "; FS="/|\n";} {
9364 for (lt_i = NF; lt_i > 0; lt_i--) {
9365 if ($lt_i != "" && $lt_i != ".") {
9366 if ($lt_i == "..") {
9369 if (lt_count == 0) {
9370 lt_foo="/" $lt_i lt_foo;
9377 if (lt_foo != "") { lt_freq[lt_foo]++; }
9378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9380 # AWK program above erroneously prepends '/' to C:/dos/paths
9383 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9384 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9386 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9388 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9391 libname_spec='lib$name'
9399 shlibpath_overrides_runpath=unknown
9401 dynamic_linker="$host_os ld.so"
9402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9403 need_lib_prefix=unknown
9404 hardcode_into_libs=no
9406 # when you set need_version to no, make sure it does not cause -set_version
9407 # flags to be left without arguments
9408 need_version=unknown
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9414 shlibpath_var=LIBPATH
9416 # AIX 3 has no versioning support, so we append a major version to the name.
9417 soname_spec='${libname}${release}${shared_ext}$major'
9424 hardcode_into_libs=yes
9425 if test "$host_cpu" = ia64; then
9426 # AIX 5 supports IA64
9427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9428 shlibpath_var=LD_LIBRARY_PATH
9430 # With GCC up to 2.95.x, collect2 would create an import file
9431 # for dependence libraries. The import file would start with
9432 # the line `#! .'. This would cause the generated library to
9433 # depend on `.', always an invalid library. This was fixed in
9434 # development snapshots of GCC prior to 3.0.
9436 aix4 | aix4.[01] | aix4.[01].*)
9437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9439 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9447 # soname into executable. Probably we can add versioning support to
9448 # collect2, so additional links can be useful in future.
9449 if test "$aix_use_runtimelinking" = yes; then
9450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9451 # instead of lib<name>.a to let people know that these are not
9452 # typical AIX shared libraries.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 # We preserve .a as extension for shared libraries through AIX4.2
9456 # and later when we are not doing run time linking.
9457 library_names_spec='${libname}${release}.a $libname.a'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9460 shlibpath_var=LIBPATH
9467 # Since July 2007 AmigaOS4 officially supports .so libraries.
9468 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9472 library_names_spec='$libname.ixlibrary $libname.a'
9473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474 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'
9480 library_names_spec='${libname}${shared_ext}'
9481 dynamic_linker="$host_os ld.so"
9482 shlibpath_var=LIBRARY_PATH
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9491 shlibpath_var=LD_LIBRARY_PATH
9492 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9493 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9494 # the default ld.so.conf also contains /usr/contrib/lib and
9495 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9496 # libtool to hard-code these into programs
9499 cygwin* | mingw* | pw32* | cegcc*)
9500 version_type=windows
9505 case $GCC,$host_os in
9506 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9507 library_names_spec='$libname.dll.a'
9508 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9509 postinstall_cmds='base_file=`basename \${file}`~
9510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9511 dldir=$destdir/`dirname \$dlpath`~
9512 test -d \$dldir || mkdir -p \$dldir~
9513 $install_prog $dir/$dlname \$dldir/$dlname~
9514 chmod a+x \$dldir/$dlname~
9515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9519 dlpath=$dir/\$dldll~
9521 shlibpath_overrides_runpath=yes
9525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9531 # MinGW DLLs use traditional 'lib' prefix
9532 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9535 # pw32 DLLs use 'pw' prefix rather than 'lib'
9536 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9545 dynamic_linker='Win32 ld.exe'
9546 # FIXME: first we should search . and the directory the executable is in
9550 darwin* | rhapsody*)
9551 dynamic_linker="$host_os dyld"
9555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9556 soname_spec='${libname}${release}${major}$shared_ext'
9557 shlibpath_overrides_runpath=yes
9558 shlibpath_var=DYLD_LIBRARY_PATH
9559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 shlibpath_var=LD_LIBRARY_PATH
9578 freebsd* | dragonfly*)
9579 # DragonFly does not have aout. When/if they implement a new
9580 # versioning mechanism, adjust this.
9581 if test -x /usr/bin/objformat; then
9582 objformat=`/usr/bin/objformat`
9585 freebsd[123]*) objformat=aout ;;
9589 version_type=freebsd-$objformat
9590 case $version_type in
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9601 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9606 freebsd3.[01]* | freebsdelf3.[01]*)
9607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9612 shlibpath_overrides_runpath=no
9613 hardcode_into_libs=yes
9615 *) # from 4.6 on, and DragonFly
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 hardcode_into_libs=yes
9636 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
9640 shlibpath_overrides_runpath=yes
9641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9642 hardcode_into_libs=yes
9645 hpux9* | hpux10* | hpux11*)
9646 # Give a soname corresponding to the major version so that dld.sl refuses to
9647 # link against other versions.
9654 hardcode_into_libs=yes
9655 dynamic_linker="$host_os dld.so"
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 if test "X$HPUX_IA64_MODE" = X32; then
9661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669 hardcode_into_libs=yes
9670 dynamic_linker="$host_os dld.sl"
9671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9680 dynamic_linker="$host_os dld.sl"
9681 shlibpath_var=SHLIB_PATH
9682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9688 postinstall_cmds='chmod 555 $lib'
9689 # or fails outright, so override atomically:
9690 install_override_mode=555
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 shlibpath_overrides_runpath=no
9702 hardcode_into_libs=yes
9705 irix5* | irix6* | nonstopux*)
9707 nonstopux*) version_type=nonstopux ;;
9709 if test "$lt_cv_prog_gnu_ld" = yes; then
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9720 irix5* | nonstopux*)
9724 case $LD in # libtool.m4 will add one of these switches to LD
9725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9726 libsuff= shlibsuff= libmagic=32-bit;;
9727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9728 libsuff=32 shlibsuff=N32 libmagic=N32;;
9729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9731 *) libsuff= shlibsuff= libmagic=never-match;;
9735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9736 shlibpath_overrides_runpath=no
9737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9739 hardcode_into_libs=yes
9742 # No shared lib support for Linux oldld, aout, or coff.
9743 linux*oldld* | linux*aout* | linux*coff*)
9747 # This must be Linux ELF.
9748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=no
9758 # Some binutils ld are patched to set DT_RUNPATH
9759 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9762 lt_cv_shlibpath_overrides_runpath=no
9763 save_LDFLAGS=$LDFLAGS
9765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9778 if ac_fn_c_try_link "$LINENO"; then :
9779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9780 lt_cv_shlibpath_overrides_runpath=yes
9783 rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LDFLAGS=$save_LDFLAGS
9790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9792 # This implies no fast_install, which is unacceptable.
9793 # Some rework will be needed to allow for fast_install
9794 # before this can be enabled.
9795 hardcode_into_libs=yes
9797 # Append ld.so.conf contents to the search path
9798 if test -f /etc/ld.so.conf; then
9799 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' ' '`
9800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9803 # We used to test for /lib/ld.so.1 and disable shared libraries on
9804 # powerpc, because MkLinux only supported shared libraries with the
9805 # GNU dynamic linker. Since this was broken with cross compilers,
9806 # most powerpc-linux boxes support dynamic linking these days and
9807 # people can always --disable-shared, the test was removed, and we
9808 # assume the GNU/Linux dynamic linker is in use.
9809 dynamic_linker='GNU/Linux ld.so'
9816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9819 dynamic_linker='NetBSD (a.out) ld.so'
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 dynamic_linker='NetBSD ld.elf_so'
9825 shlibpath_var=LD_LIBRARY_PATH
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=yes
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=no
9845 hardcode_into_libs=yes
9846 dynamic_linker='ldqnx.so'
9851 sys_lib_dlsearch_path_spec="/usr/lib"
9853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9856 *) need_version=no ;;
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9863 openbsd2.[89] | openbsd2.[89].*)
9864 shlibpath_overrides_runpath=no
9867 shlibpath_overrides_runpath=yes
9871 shlibpath_overrides_runpath=yes
9876 libname_spec='$name'
9879 library_names_spec='$libname${shared_ext} $libname.a'
9880 dynamic_linker='OS/2 ld.exe'
9881 shlibpath_var=LIBPATH
9884 osf3* | osf4* | osf5*)
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=yes
9907 hardcode_into_libs=yes
9908 # ldd complains unless libraries are executable
9909 postinstall_cmds='chmod +x $lib'
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 if test "$with_gnu_ld" = yes; then
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 case $host_vendor in
9931 shlibpath_overrides_runpath=no
9933 runpath_var=LD_RUN_PATH
9941 shlibpath_overrides_runpath=no
9942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9948 if test -d /usr/nec ;then
9950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9951 soname_spec='$libname${shared_ext}.$major'
9952 shlibpath_var=LD_LIBRARY_PATH
9956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9957 version_type=freebsd-elf
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=yes
9964 hardcode_into_libs=yes
9965 if test "$with_gnu_ld" = yes; then
9966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LD_LIBRARY_PATH
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10001 $as_echo "$dynamic_linker" >&6; }
10002 test "$dynamic_linker" = no && can_build_shared=no
10004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10005 if test "$GCC" = yes; then
10006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10110 if test -n "$hardcode_libdir_flag_spec" ||
10111 test -n "$runpath_var" ||
10112 test "X$hardcode_automatic" = "Xyes" ; then
10114 # We can hardcode non-existent directories.
10115 if test "$hardcode_direct" != no &&
10116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10117 # have to relink, otherwise we might link with an installed library
10118 # when we should be linking with a yet-to-be-installed one
10119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10120 test "$hardcode_minus_L" != no; then
10121 # Linking always hardcodes the temporary library directory.
10122 hardcode_action=relink
10124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10125 hardcode_action=immediate
10128 # We cannot hardcode anything, or else we can only hardcode existing
10130 hardcode_action=unsupported
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10133 $as_echo "$hardcode_action" >&6; }
10135 if test "$hardcode_action" = relink ||
10136 test "$inherit_rpath" = yes; then
10137 # Fast installation is not supported
10138 enable_fast_install=no
10139 elif test "$shlibpath_overrides_runpath" = yes ||
10140 test "$enable_shared" = no; then
10141 # Fast installation is not necessary
10142 enable_fast_install=needless
10150 if test "x$enable_dlopen" != xyes; then
10151 enable_dlopen=unknown
10152 enable_dlopen_self=unknown
10153 enable_dlopen_self_static=unknown
10160 lt_cv_dlopen="load_add_on"
10162 lt_cv_dlopen_self=yes
10165 mingw* | pw32* | cegcc*)
10166 lt_cv_dlopen="LoadLibrary"
10171 lt_cv_dlopen="dlopen"
10176 # if libdl is installed we need to link against it
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10182 ac_check_lib_save_LIBS=$LIBS
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 ac_cv_lib_dl_dlopen=yes
10205 ac_cv_lib_dl_dlopen=no
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10217 lt_cv_dlopen="dyld"
10219 lt_cv_dlopen_self=yes
10226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10227 if test "x$ac_cv_func_shl_load" = x""yes; then :
10228 lt_cv_dlopen="shl_load"
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10235 ac_check_lib_save_LIBS=$LIBS
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10250 return shl_load ();
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 ac_cv_lib_dld_shl_load=yes
10258 ac_cv_lib_dld_shl_load=no
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10270 if test "x$ac_cv_func_dlopen" = x""yes; then :
10271 lt_cv_dlopen="dlopen"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10276 $as_echo_n "(cached) " >&6
10278 ac_check_lib_save_LIBS=$LIBS
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10283 /* Override any GCC internal prototype to avoid an error.
10284 Use char because int might match the return type of a GCC
10285 builtin and then its argument prototype would still apply. */
10298 if ac_fn_c_try_link "$LINENO"; then :
10299 ac_cv_lib_dl_dlopen=yes
10301 ac_cv_lib_dl_dlopen=no
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lsvld $LIBS"
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10337 if ac_fn_c_try_link "$LINENO"; then :
10338 ac_cv_lib_svld_dlopen=yes
10340 ac_cv_lib_svld_dlopen=no
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10354 $as_echo_n "(cached) " >&6
10356 ac_check_lib_save_LIBS=$LIBS
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10371 return dld_link ();
10376 if ac_fn_c_try_link "$LINENO"; then :
10377 ac_cv_lib_dld_dld_link=yes
10379 ac_cv_lib_dld_dld_link=no
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_lib_save_LIBS
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10409 if test "x$lt_cv_dlopen" != xno; then
10415 case $lt_cv_dlopen in
10417 save_CPPFLAGS="$CPPFLAGS"
10418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10420 save_LDFLAGS="$LDFLAGS"
10421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10424 LIBS="$lt_cv_dlopen_libs $LIBS"
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10428 if test "${lt_cv_dlopen_self+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10431 if test "$cross_compiling" = yes; then :
10432 lt_cv_dlopen_self=cross
10434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10435 lt_status=$lt_dlunknown
10436 cat > conftest.$ac_ext <<_LT_EOF
10437 #line 10437 "configure"
10438 #include "confdefs.h"
10447 # define LT_DLGLOBAL RTLD_GLOBAL
10450 # define LT_DLGLOBAL DL_GLOBAL
10452 # define LT_DLGLOBAL 0
10456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10457 find out it does not work in some platform. */
10458 #ifndef LT_DLLAZY_OR_NOW
10460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10463 # define LT_DLLAZY_OR_NOW DL_LAZY
10466 # define LT_DLLAZY_OR_NOW RTLD_NOW
10469 # define LT_DLLAZY_OR_NOW DL_NOW
10471 # define LT_DLLAZY_OR_NOW 0
10478 /* When -fvisbility=hidden is used, assume the code has been annotated
10479 correspondingly for the symbols needed. */
10480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10481 void fnord () __attribute__((visibility("default")));
10484 void fnord () { int i=42; }
10487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10488 int status = $lt_dlunknown;
10492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10496 else puts (dlerror ());
10498 /* dlclose (self); */
10506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10507 (eval $ac_link) 2>&5
10509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10511 (./conftest; exit; ) >&5 2>/dev/null
10513 case x$lt_status in
10514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10519 # compilation failed
10520 lt_cv_dlopen_self=no
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10528 $as_echo "$lt_cv_dlopen_self" >&6; }
10530 if test "x$lt_cv_dlopen_self" = xyes; then
10531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10534 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10537 if test "$cross_compiling" = yes; then :
10538 lt_cv_dlopen_self_static=cross
10540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10541 lt_status=$lt_dlunknown
10542 cat > conftest.$ac_ext <<_LT_EOF
10543 #line 10543 "configure"
10544 #include "confdefs.h"
10553 # define LT_DLGLOBAL RTLD_GLOBAL
10556 # define LT_DLGLOBAL DL_GLOBAL
10558 # define LT_DLGLOBAL 0
10562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10563 find out it does not work in some platform. */
10564 #ifndef LT_DLLAZY_OR_NOW
10566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10569 # define LT_DLLAZY_OR_NOW DL_LAZY
10572 # define LT_DLLAZY_OR_NOW RTLD_NOW
10575 # define LT_DLLAZY_OR_NOW DL_NOW
10577 # define LT_DLLAZY_OR_NOW 0
10584 /* When -fvisbility=hidden is used, assume the code has been annotated
10585 correspondingly for the symbols needed. */
10586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10587 void fnord () __attribute__((visibility("default")));
10590 void fnord () { int i=42; }
10593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10594 int status = $lt_dlunknown;
10598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602 else puts (dlerror ());
10604 /* dlclose (self); */
10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10613 (eval $ac_link) 2>&5
10615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10617 (./conftest; exit; ) >&5 2>/dev/null
10619 case x$lt_status in
10620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10625 # compilation failed
10626 lt_cv_dlopen_self_static=no
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10637 CPPFLAGS="$save_CPPFLAGS"
10638 LDFLAGS="$save_LDFLAGS"
10643 case $lt_cv_dlopen_self in
10644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10645 *) enable_dlopen_self=unknown ;;
10648 case $lt_cv_dlopen_self_static in
10649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10650 *) enable_dlopen_self_static=unknown ;;
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10680 # FIXME - insert some real tests, host_os isn't really good enough
10683 if test -n "$STRIP" ; then
10684 striplib="$STRIP -x"
10685 old_striplib="$STRIP -S"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10711 # Report which library types will actually be built
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10715 $as_echo "$can_build_shared" >&6; }
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10718 $as_echo_n "checking whether to build shared libraries... " >&6; }
10719 test "$can_build_shared" = "no" && enable_shared=no
10721 # On AIX, shared libraries and static libraries use the same namespace, and
10722 # are all built from PIC.
10725 test "$enable_shared" = yes && enable_static=no
10726 if test -n "$RANLIB"; then
10727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10728 postinstall_cmds='$RANLIB $lib'
10733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10734 test "$enable_shared" = yes && enable_static=no
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10739 $as_echo "$enable_shared" >&6; }
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10742 $as_echo_n "checking whether to build static libraries... " >&6; }
10743 # Make sure either enable_shared or enable_static is yes.
10744 test "$enable_shared" = yes || enable_static=yes
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10746 $as_echo "$enable_static" >&6; }
10753 ac_cpp='$CPP $CPPFLAGS'
10754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772 ac_config_commands="$ac_config_commands libtool"
10777 # Only expand once:
10781 # Trying to get this information from gcc's config is tricky.
10785 $as_echo "#define SYM_STYLE ss_none" >>confdefs.h
10788 *-cygwin* | i?86*-mingw* )
10790 $as_echo "#define SYM_STYLE ss_win32" >>confdefs.h
10795 $as_echo "#define SYM_STYLE ss_none" >>confdefs.h
10799 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10800 case $ac_cv_c_uint64_t in #(
10804 $as_echo "#define _UINT64_T 1" >>confdefs.h
10807 cat >>confdefs.h <<_ACEOF
10808 #define uint64_t $ac_cv_c_uint64_t
10813 ac_config_files="$ac_config_files Makefile"
10815 ac_config_headers="$ac_config_headers config.h"
10817 cat >confcache <<\_ACEOF
10818 # This file is a shell script that caches the results of configure
10819 # tests run on this system so they can be shared between configure
10820 # scripts and configure runs, see configure's option --config-cache.
10821 # It is not useful on other systems. If it contains results you don't
10822 # want to keep, you may remove or edit it.
10824 # config.status only pays attention to the cache file if you give it
10825 # the --recheck option to rerun configure.
10827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10829 # following values.
10833 # The following way of writing the cache mishandles newlines in values,
10834 # but we know of no workaround that is simple, portable, and efficient.
10835 # So, we kill variables containing newlines.
10836 # Ultrix sh set writes to stderr and can't be redirected directly,
10837 # and sets the high bit in the cache file unless we assign to the vars.
10839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10840 eval ac_val=\$$ac_var
10844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10848 _ | IFS | as_nl) ;; #(
10849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10850 *) { eval $ac_var=; unset $ac_var;} ;;
10856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10857 *${as_nl}ac_space=\ *)
10858 # `set' does not quote correctly, so add quotes: double-quote
10859 # substitution turns \\\\ into \\, and sed turns \\ into \.
10862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10865 # `set' quotes correctly as required by POSIX, so do not add quotes.
10866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10880 if test -w "$cache_file"; then
10881 test "x$cache_file" != "x/dev/null" &&
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10883 $as_echo "$as_me: updating cache $cache_file" >&6;}
10884 cat confcache >$cache_file
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10893 # Let make expand exec_prefix.
10894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10896 DEFS=-DHAVE_CONFIG_H
10900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10901 # 1. Remove the extension, and $U if already installed.
10902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10903 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10905 # will be set to the directory where LIBOBJS objects are built.
10906 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10907 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10909 LIBOBJS=$ac_libobjs
10911 LTLIBOBJS=$ac_ltlibobjs
10914 if test -n "$EXEEXT"; then
10916 am__EXEEXT_FALSE='#'
10918 am__EXEEXT_TRUE='#'
10922 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10923 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10926 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10927 as_fn_error "conditional \"AMDEP\" was never defined.
10928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10931 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10935 : ${CONFIG_STATUS=./config.status}
10937 ac_clean_files_save=$ac_clean_files
10938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10944 # Generated by $as_me.
10945 # Run this file to recreate the current configuration.
10946 # Compiler output produced by configure, useful for debugging
10947 # configure, is in config.log if it exists.
10950 ac_cs_recheck=false
10953 SHELL=\${CONFIG_SHELL-$SHELL}
10956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10957 ## -------------------- ##
10958 ## M4sh Initialization. ##
10959 ## -------------------- ##
10961 # Be more Bourne compatible
10962 DUALCASE=1; export DUALCASE # for MKS sh
10963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10966 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10967 # is contrary to our usage. Disable this feature.
10968 alias -g '${1+"$@"}'='"$@"'
10969 setopt NO_GLOB_SUBST
10971 case `(set -o) 2>/dev/null` in #(
10983 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10987 # Prefer a ksh shell builtin over an external printf program on Solaris,
10988 # but without wasting forks for bash or zsh.
10989 if test -z "$BASH_VERSION$ZSH_VERSION" \
10990 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10991 as_echo='print -r --'
10992 as_echo_n='print -rn --'
10993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10994 as_echo='printf %s\n'
10995 as_echo_n='printf %s'
10997 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10998 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10999 as_echo_n='/usr/ucb/echo -n'
11001 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11002 as_echo_n_body='eval
11006 expr "X$arg" : "X\\(.*\\)$as_nl";
11007 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11009 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11011 export as_echo_n_body
11012 as_echo_n='sh -c $as_echo_n_body as_echo'
11014 export as_echo_body
11015 as_echo='sh -c $as_echo_body as_echo'
11018 # The user is always right.
11019 if test "${PATH_SEPARATOR+set}" != set; then
11021 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11022 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11029 # We need space, tab and new line, in precisely that order. Quoting is
11030 # there to prevent editors from complaining about space-tab.
11031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11032 # splitting by setting IFS to empty value.)
11035 # Find who we are. Look in the path if we contain no directory separator.
11037 *[\\/]* ) as_myself=$0 ;;
11038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11042 test -z "$as_dir" && as_dir=.
11043 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11049 # We did not find ourselves, most probably we were run as `sh COMMAND'
11050 # in which case we are not to be found in the path.
11051 if test "x$as_myself" = x; then
11054 if test ! -f "$as_myself"; then
11055 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11059 # Unset variables that we do not need and which cause bugs (e.g. in
11060 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11061 # suppresses any "Segmentation fault" message there. '((' could
11062 # trigger a bug in pdksh 5.2.14.
11063 for as_var in BASH_ENV ENV MAIL MAILPATH
11064 do eval test x\${$as_var+set} = xset \
11065 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11081 # as_fn_error ERROR [LINENO LOG_FD]
11082 # ---------------------------------
11083 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11084 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11085 # script with status $?, using 1 if that was 0.
11088 as_status=$?; test $as_status -eq 0 && as_status=1
11090 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11091 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11093 $as_echo "$as_me: error: $1" >&2
11094 as_fn_exit $as_status
11098 # as_fn_set_status STATUS
11099 # -----------------------
11100 # Set $? to STATUS, without forking.
11101 as_fn_set_status ()
11104 } # as_fn_set_status
11106 # as_fn_exit STATUS
11107 # -----------------
11108 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11112 as_fn_set_status $1
11118 # Portably unset VAR.
11121 { eval $1=; unset $1;}
11123 as_unset=as_fn_unset
11124 # as_fn_append VAR VALUE
11125 # ----------------------
11126 # Append the text in VALUE to the end of the definition contained in VAR. Take
11127 # advantage of any shell optimizations that allow amortized linear growth over
11128 # repeated appends, instead of the typical quadratic growth present in naive
11130 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11131 eval 'as_fn_append ()
11142 # as_fn_arith ARG...
11143 # ------------------
11144 # Perform arithmetic evaluation on the ARGs, and store the result in the
11145 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11146 # must be portable across $(()) and expr.
11147 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11148 eval 'as_fn_arith ()
11155 as_val=`expr "$@" || test $? -eq 1`
11160 if expr a : '\(a\)' >/dev/null 2>&1 &&
11161 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11168 as_basename=basename
11173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11179 as_me=`$as_basename -- "$0" ||
11180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11181 X"$0" : 'X\(//\)$' \| \
11182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11184 sed '/^.*\/\([^/][^/]*\)\/*$/{
11198 # Avoid depending upon Character Ranges.
11199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11202 as_cr_digits='0123456789'
11203 as_cr_alnum=$as_cr_Letters$as_cr_digits
11205 ECHO_C= ECHO_N= ECHO_T=
11206 case `echo -n x` in #(((((
11208 case `echo 'xy\c'` in
11209 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11211 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11218 rm -f conf$$ conf$$.exe conf$$.file
11219 if test -d conf$$.dir; then
11220 rm -f conf$$.dir/conf$$.file
11223 mkdir conf$$.dir 2>/dev/null
11225 if (echo >conf$$.file) 2>/dev/null; then
11226 if ln -s conf$$.file conf$$ 2>/dev/null; then
11228 # ... but there are two gotchas:
11229 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11230 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11231 # In both cases, we have to default to `cp -p'.
11232 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11234 elif ln conf$$.file conf$$ 2>/dev/null; then
11242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11243 rmdir conf$$.dir 2>/dev/null
11248 # Create "$as_dir" as a directory, including parents if necessary.
11253 -*) as_dir=./$as_dir;;
11255 test -d "$as_dir" || eval $as_mkdir_p || {
11259 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11260 *) as_qdir=$as_dir;;
11262 as_dirs="'$as_qdir' $as_dirs"
11263 as_dir=`$as_dirname -- "$as_dir" ||
11264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11265 X"$as_dir" : 'X\(//\)[^/]' \| \
11266 X"$as_dir" : 'X\(//\)$' \| \
11267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11268 $as_echo X"$as_dir" |
11269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11273 /^X\(\/\/\)[^/].*/{
11286 test -d "$as_dir" && break
11288 test -z "$as_dirs" || eval "mkdir $as_dirs"
11289 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11293 if mkdir -p . 2>/dev/null; then
11294 as_mkdir_p='mkdir -p "$as_dir"'
11296 test -d ./-p && rmdir ./-p
11300 if test -x / >/dev/null 2>&1; then
11301 as_test_x='test -x'
11303 if ls -dL / >/dev/null 2>&1; then
11310 if test -d "$1"; then
11316 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11317 ???[sx]*):;;*)false;;esac;fi
11321 as_executable_p=$as_test_x
11323 # Sed expression to map a string onto a valid CPP name.
11324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11326 # Sed expression to map a string onto a valid variable name.
11327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11331 ## ----------------------------------- ##
11332 ## Main body of $CONFIG_STATUS script. ##
11333 ## ----------------------------------- ##
11335 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11338 # Save the log message, to keep $0 and so on meaningful, and to
11339 # report actual input values of CONFIG_FILES etc. instead of their
11340 # values after options handling.
11342 This file was extended by LTO plugin for ld $as_me 0.1, which was
11343 generated by GNU Autoconf 2.64. Invocation command line was
11345 CONFIG_FILES = $CONFIG_FILES
11346 CONFIG_HEADERS = $CONFIG_HEADERS
11347 CONFIG_LINKS = $CONFIG_LINKS
11348 CONFIG_COMMANDS = $CONFIG_COMMANDS
11351 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11356 case $ac_config_files in *"
11357 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11360 case $ac_config_headers in *"
11361 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11366 # Files that config.status was made for.
11367 config_files="$ac_config_files"
11368 config_headers="$ac_config_headers"
11369 config_commands="$ac_config_commands"
11373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375 \`$as_me' instantiates files and other configuration actions
11376 from templates according to the current configuration. Unless the files
11377 and actions are specified as TAGs, all are instantiated by default.
11379 Usage: $0 [OPTION]... [TAG]...
11381 -h, --help print this help, then exit
11382 -V, --version print version number and configuration settings, then exit
11383 -q, --quiet, --silent
11384 do not print progress messages
11385 -d, --debug don't remove temporary files
11386 --recheck update $as_me by reconfiguring in the same conditions
11387 --file=FILE[:TEMPLATE]
11388 instantiate the configuration file FILE
11389 --header=FILE[:TEMPLATE]
11390 instantiate the configuration header FILE
11392 Configuration files:
11395 Configuration headers:
11398 Configuration commands:
11401 Report bugs to the package provider."
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11406 LTO plugin for ld config.status 0.1
11407 configured by $0, generated by GNU Autoconf 2.64,
11408 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11410 Copyright (C) 2009 Free Software Foundation, Inc.
11411 This config.status script is free software; the Free Software Foundation
11412 gives unlimited permission to copy, distribute and modify it."
11419 test -n "\$AWK" || AWK=awk
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11423 # The default lists apply if the user does not specify any file.
11429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11441 # Handling of the options.
11442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11445 $as_echo "$ac_cs_version"; exit ;;
11446 --debug | --debu | --deb | --de | --d | -d )
11448 --file | --fil | --fi | --f )
11451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11453 as_fn_append CONFIG_FILES " '$ac_optarg'"
11454 ac_need_defaults=false;;
11455 --header | --heade | --head | --hea )
11458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11461 ac_need_defaults=false;;
11463 # Conflict between --help and --header
11464 as_fn_error "ambiguous option: \`$1'
11465 Try \`$0 --help' for more information.";;
11466 --help | --hel | -h )
11467 $as_echo "$ac_cs_usage"; exit ;;
11468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11472 # This is an error.
11473 -*) as_fn_error "unrecognized option: \`$1'
11474 Try \`$0 --help' for more information." ;;
11476 *) as_fn_append ac_config_targets " $1"
11477 ac_need_defaults=false ;;
11483 ac_configure_extra_args=
11485 if $ac_cs_silent; then
11487 ac_configure_extra_args="$ac_configure_extra_args --silent"
11491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11492 if \$ac_cs_recheck; then
11493 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11496 CONFIG_SHELL='$SHELL'
11497 export CONFIG_SHELL
11502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11507 ## Running $as_me. ##
11513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11517 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11520 # The HP-UX ksh and POSIX shell print the target directory to stdout
11521 # if CDPATH is set.
11522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11524 sed_quote_subst='$sed_quote_subst'
11525 double_quote_subst='$double_quote_subst'
11526 delay_variable_subst='$delay_variable_subst'
11527 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11528 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11529 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11530 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11531 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11532 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11533 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11534 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11535 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11536 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11537 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11538 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11539 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11540 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11541 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11542 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11543 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11544 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11545 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11546 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11547 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11548 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11549 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11550 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11551 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11552 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11553 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11554 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11555 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11556 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11557 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11558 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11559 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11560 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11561 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11562 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11563 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11564 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11565 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11566 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11567 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11568 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11569 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11570 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11571 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11572 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11573 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11574 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11575 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"`'
11576 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11577 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11578 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11579 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11580 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11581 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11582 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11583 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11584 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11585 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11586 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11587 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11588 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11589 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11590 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11591 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11592 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11593 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11594 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11595 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11596 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11597 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11598 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11599 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11600 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11601 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11602 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11603 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11604 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11605 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11606 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11607 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11608 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11609 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11610 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11611 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11612 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11613 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11614 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11615 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11616 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11617 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11618 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11619 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11620 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11621 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11622 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11623 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11624 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11625 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11626 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11627 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11628 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11629 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11630 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11631 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11632 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11633 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11634 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11635 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11636 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11637 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11638 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11639 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11640 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11641 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11642 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11643 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11644 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11645 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11646 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11649 LTCFLAGS='$LTCFLAGS'
11650 compiler='$compiler_DEFAULT'
11652 # A function that is used when there is no print builtin or printf.
11653 func_fallback_echo ()
11655 eval 'cat <<_LTECHO_EOF
11660 # Quote evaled strings.
11674 deplibs_check_method \
11683 lt_cv_sys_global_symbol_pipe \
11684 lt_cv_sys_global_symbol_to_cdecl \
11685 lt_cv_sys_global_symbol_to_c_name_address \
11686 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11687 lt_prog_compiler_no_builtin_flag \
11688 lt_prog_compiler_wl \
11689 lt_prog_compiler_pic \
11690 lt_prog_compiler_static \
11691 lt_cv_prog_compiler_c_o \
11699 export_dynamic_flag_spec \
11700 whole_archive_flag_spec \
11701 compiler_needs_object \
11703 allow_undefined_flag \
11704 no_undefined_flag \
11705 hardcode_libdir_flag_spec \
11706 hardcode_libdir_flag_spec_ld \
11707 hardcode_libdir_separator \
11712 variables_saved_for_relink \
11714 library_names_spec \
11716 install_override_mode \
11720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11721 *[\\\\\\\`\\"\\\$]*)
11722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11730 # Double-quote double-evaled strings.
11731 for var in reload_cmds \
11732 old_postinstall_cmds \
11733 old_postuninstall_cmds \
11735 extract_expsyms_cmds \
11736 old_archive_from_new_cmds \
11737 old_archive_from_expsyms_cmds \
11739 archive_expsym_cmds \
11741 module_expsym_cmds \
11742 export_symbols_cmds \
11745 postuninstall_cmds \
11747 sys_lib_search_path_spec \
11748 sys_lib_dlsearch_path_spec; do
11749 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11750 *[\\\\\\\`\\"\\\$]*)
11751 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11754 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11759 ac_aux_dir='$ac_aux_dir'
11760 xsi_shell='$xsi_shell'
11761 lt_shell_append='$lt_shell_append'
11763 # See if we are running on zsh, and set the options which allow our
11764 # commands through without removal of \ escapes INIT.
11765 if test -n "\${ZSH_VERSION+set}" ; then
11766 setopt NO_GLOB_SUBST
11772 TIMESTAMP='$TIMESTAMP'
11781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783 # Handling of arguments.
11784 for ac_config_target in $ac_config_targets
11786 case $ac_config_target in
11787 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11788 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11790 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11792 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11797 # If the user did not use the arguments to specify the items to instantiate,
11798 # then the envvar interface is used. Set only those that are not.
11799 # We use the long form for the default assignment because of an extremely
11800 # bizarre bug on SunOS 4.1.3.
11801 if $ac_need_defaults; then
11802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11807 # Have a temporary directory for convenience. Make it in the build tree
11808 # simply because there is no reason against having it here, and in addition,
11809 # creating and moving files from /tmp can sometimes cause problems.
11810 # Hook for its removal unless debugging.
11811 # Note that there is a small window in which the directory will not be cleaned:
11812 # after its creation but before its name has been assigned to `$tmp'.
11816 trap 'exit_status=$?
11817 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11819 trap 'as_fn_exit 1' 1 2 13 15
11821 # Create a (secure) tmp directory for tmp files.
11824 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11825 test -n "$tmp" && test -d "$tmp"
11828 tmp=./conf$$-$RANDOM
11829 (umask 077 && mkdir "$tmp")
11830 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11832 # Set up the scripts for CONFIG_FILES section.
11833 # No need to generate them if there are no CONFIG_FILES.
11834 # This happens for instance with `./config.status config.h'.
11835 if test -n "$CONFIG_FILES"; then
11838 ac_cr=`echo X | tr X '\015'`
11839 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11840 # But we know of no other shell where ac_cr would be empty at this
11841 # point, so we can use a bashism as a fallback.
11842 if test "x$ac_cr" = x; then
11843 eval ac_cr=\$\'\\r\'
11845 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11846 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11849 ac_cs_awk_cr=$ac_cr
11852 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11857 echo "cat >conf$$subs.awk <<_ACEOF" &&
11858 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11860 } >conf$$subs.sh ||
11861 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11864 for ac_last_try in false false false false false :; do
11865 . ./conf$$subs.sh ||
11866 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11869 if test $ac_delim_n = $ac_delim_num; then
11871 elif $ac_last_try; then
11872 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11877 rm -f conf$$subs.sh
11879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11880 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11884 s/^/S["/; s/!.*/"]=/
11894 s/\(.\{148\}\).*/\1/
11896 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11908 s/\(.\{148\}\).*/\1/
11910 s/["\\]/\\&/g; s/^/"/; s/$/"/
11914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11919 ' <conf$$subs.awk | sed '
11924 ' >>$CONFIG_STATUS || ac_write_fail=1
11925 rm -f conf$$subs.awk
11926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11928 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11929 for (key in S) S_is_set[key] = 1
11935 nfields = split(line, field, "@")
11937 len = length(field[1])
11938 for (i = 2; i < nfields; i++) {
11940 keylen = length(key)
11941 if (S_is_set[key]) {
11943 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11944 len += length(value) + length(field[++i])
11955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11956 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11957 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11960 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11961 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11964 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11965 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11966 # trailing colons and then remove the whole line if VPATH becomes empty
11967 # (actually we leave an empty line to preserve line numbers).
11968 if test "x$srcdir" = x.; then
11969 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11970 s/:*\$(srcdir):*/:/
11971 s/:*\${srcdir}:*/:/
11973 s/^\([^=]*=[ ]*\):*/\1/
11979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11980 fi # test -n "$CONFIG_FILES"
11982 # Set up the scripts for CONFIG_HEADERS section.
11983 # No need to generate them if there are no CONFIG_HEADERS.
11984 # This happens for instance with `./config.status Makefile'.
11985 if test -n "$CONFIG_HEADERS"; then
11986 cat >"$tmp/defines.awk" <<\_ACAWK ||
11990 # Transform confdefs.h into an awk script `defines.awk', embedded as
11991 # here-document in config.status, that substitutes the proper values into
11992 # config.h.in to produce config.h.
11994 # Create a delimiter string that does not exist in confdefs.h, to ease
11995 # handling of long lines.
11997 for ac_last_try in false false :; do
11998 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11999 if test -z "$ac_t"; then
12001 elif $ac_last_try; then
12002 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12008 # For the awk script, D is an array of macro values keyed by name,
12009 # likewise P contains macro parameters if any. Preserve backslash
12010 # newline sequences.
12012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12014 s/.\{148\}/&'"$ac_delim"'/g
12017 s/^[ ]*#[ ]*define[ ][ ]*/ /
12024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12031 D["\1"]=" \3\\\\\\n"\\/p
12033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12038 s/.\{148\}/&'"$ac_delim"'/g
12043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12048 ' <confdefs.h | sed '
12049 s/'"$ac_delim"'/"\\\
12050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12053 for (key in D) D_is_set[key] = 1
12056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12058 split(line, arg, " ")
12059 if (arg[1] == "#") {
12063 defundef = substr(arg[1], 2)
12066 split(mac1, mac2, "(") #)
12068 prefix = substr(line, 1, index(line, defundef) - 1)
12069 if (D_is_set[macro]) {
12070 # Preserve the white space surrounding the "#".
12071 print prefix "define", macro P[macro] D[macro]
12074 # Replace #undef with comments. This is necessary, for example,
12075 # in the case of _POSIX_SOURCE, which is predefined and required
12076 # on some systems where configure will not decide to define it.
12077 if (defundef == "undef") {
12078 print "/*", prefix defundef, macro, "*/"
12086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12087 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12088 fi # test -n "$CONFIG_HEADERS"
12091 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12096 :[FHLC]) ac_mode=$ac_tag; continue;;
12098 case $ac_mode$ac_tag in
12100 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12101 :[FH]-) ac_tag=-:-;;
12102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12119 -) ac_f="$tmp/stdin";;
12120 *) # Look for the file first in the build tree, then in the source tree
12121 # (if the path is not absolute). The absolute path cannot be DOS-style,
12122 # because $ac_f cannot contain `:'.
12126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12128 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12130 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12131 as_fn_append ac_file_inputs " '$ac_f'"
12134 # Let's still pretend it is `configure' which instantiates (i.e., don't
12135 # use $as_me), people would be surprised to read:
12136 # /* config.h. Generated by config.status. */
12137 configure_input='Generated from '`
12138 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12140 if test x"$ac_file" != x-; then
12141 configure_input="$ac_file. $configure_input"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12143 $as_echo "$as_me: creating $ac_file" >&6;}
12145 # Neutralize special characters interpreted by sed in replacement strings.
12146 case $configure_input in #(
12147 *\&* | *\|* | *\\* )
12148 ac_sed_conf_input=`$as_echo "$configure_input" |
12149 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12150 *) ac_sed_conf_input=$configure_input;;
12154 *:-:* | *:-) cat >"$tmp/stdin" \
12155 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12160 ac_dir=`$as_dirname -- "$ac_file" ||
12161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12162 X"$ac_file" : 'X\(//\)[^/]' \| \
12163 X"$ac_file" : 'X\(//\)$' \| \
12164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12165 $as_echo X"$ac_file" |
12166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12170 /^X\(\/\/\)[^/].*/{
12183 as_dir="$ac_dir"; as_fn_mkdir_p
12187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12189 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12190 # A ".." for each directory in $ac_dir_suffix.
12191 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12192 case $ac_top_builddir_sub in
12193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12197 ac_abs_top_builddir=$ac_pwd
12198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12199 # for backward compatibility:
12200 ac_top_builddir=$ac_top_build_prefix
12203 .) # We are building in place.
12205 ac_top_srcdir=$ac_top_builddir_sub
12206 ac_abs_top_srcdir=$ac_pwd ;;
12207 [\\/]* | ?:[\\/]* ) # Absolute name.
12208 ac_srcdir=$srcdir$ac_dir_suffix;
12209 ac_top_srcdir=$srcdir
12210 ac_abs_top_srcdir=$srcdir ;;
12211 *) # Relative name.
12212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12213 ac_top_srcdir=$ac_top_build_prefix$srcdir
12214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12229 ac_MKDIR_P=$MKDIR_P
12231 [\\/$]* | ?:[\\/]* ) ;;
12232 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12237 # If the template does not know about datarootdir, expand it.
12238 # FIXME: This hack should be removed a few years after 2.60.
12239 ac_datarootdir_hack=; ac_datarootdir_seen=
12250 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12251 *datarootdir*) ac_datarootdir_seen=yes;;
12252 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12254 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257 ac_datarootdir_hack='
12258 s&@datadir@&$datadir&g
12259 s&@docdir@&$docdir&g
12260 s&@infodir@&$infodir&g
12261 s&@localedir@&$localedir&g
12262 s&@mandir@&$mandir&g
12263 s&\\\${datarootdir}&$datarootdir&g' ;;
12267 # Neutralize VPATH when `$srcdir' = `.'.
12268 # Shell code in configure.ac might set extrasub.
12269 # FIXME: do we really want to maintain this feature?
12270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12271 ac_sed_extra="$ac_vpsub
12274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12277 s|@configure_input@|$ac_sed_conf_input|;t t
12278 s&@top_builddir@&$ac_top_builddir_sub&;t t
12279 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12280 s&@srcdir@&$ac_srcdir&;t t
12281 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12282 s&@top_srcdir@&$ac_top_srcdir&;t t
12283 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12284 s&@builddir@&$ac_builddir&;t t
12285 s&@abs_builddir@&$ac_abs_builddir&;t t
12286 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12287 s&@INSTALL@&$ac_INSTALL&;t t
12288 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12289 $ac_datarootdir_hack
12291 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12292 || as_fn_error "could not create $ac_file" "$LINENO" 5
12294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12295 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12298 which seems to be undefined. Please make sure it is defined." >&5
12299 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12300 which seems to be undefined. Please make sure it is defined." >&2;}
12304 -) cat "$tmp/out" && rm -f "$tmp/out";;
12305 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12307 || as_fn_error "could not create $ac_file" "$LINENO" 5
12313 if test x"$ac_file" != x-; then
12315 $as_echo "/* $configure_input */" \
12316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12317 } >"$tmp/config.h" \
12318 || as_fn_error "could not create $ac_file" "$LINENO" 5
12319 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12321 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12324 mv "$tmp/config.h" "$ac_file" \
12325 || as_fn_error "could not create $ac_file" "$LINENO" 5
12328 $as_echo "/* $configure_input */" \
12329 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12330 || as_fn_error "could not create -" "$LINENO" 5
12332 # Compute "$ac_file"'s index in $config_headers.
12335 for _am_header in $config_headers :; do
12336 case $_am_header in
12337 $_am_arg | $_am_arg:* )
12340 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12343 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12344 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12345 X"$_am_arg" : 'X\(//\)[^/]' \| \
12346 X"$_am_arg" : 'X\(//\)$' \| \
12347 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12348 $as_echo X"$_am_arg" |
12349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12353 /^X\(\/\/\)[^/].*/{
12365 s/.*/./; q'`/stamp-h$_am_stamp_count
12368 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12369 $as_echo "$as_me: executing $ac_file commands" >&6;}
12374 case $ac_file$ac_mode in
12375 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12376 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12377 # are listed without --file. Let's play safe and only enable the eval
12378 # if we detect the quoting.
12379 case $CONFIG_FILES in
12380 *\'*) eval set x "$CONFIG_FILES" ;;
12381 *) set x $CONFIG_FILES ;;
12386 # Strip MF so we end up with the name of the file.
12387 mf=`echo "$mf" | sed -e 's/:.*$//'`
12388 # Check whether this is an Automake generated Makefile or not.
12389 # We used to match only the files named `Makefile.in', but
12390 # some people rename them; so instead we look at the file content.
12391 # Grep'ing the first line is not enough: some people post-process
12392 # each Makefile.in and add a new line on top of each file to say so.
12393 # Grep'ing the whole file is not good either: AIX grep has a line
12394 # limit of 2048, but all sed's we know have understand at least 4000.
12395 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12396 dirpart=`$as_dirname -- "$mf" ||
12397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12398 X"$mf" : 'X\(//\)[^/]' \| \
12399 X"$mf" : 'X\(//\)$' \| \
12400 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12406 /^X\(\/\/\)[^/].*/{
12422 # Extract the definition of DEPDIR, am__include, and am__quote
12423 # from the Makefile without running `make'.
12424 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12425 test -z "$DEPDIR" && continue
12426 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12427 test -z "am__include" && continue
12428 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12429 # When using ansi2knr, U may be empty or an underscore; expand it
12430 U=`sed -n 's/^U = //p' < "$mf"`
12431 # Find all dependency output files, they are included files with
12432 # $(DEPDIR) in their names. We invoke sed twice because it is the
12433 # simplest approach to changing $(DEPDIR) to its actual value in the
12435 for file in `sed -n "
12436 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12437 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12438 # Make sure the directory exists.
12439 test -f "$dirpart/$file" && continue
12440 fdir=`$as_dirname -- "$file" ||
12441 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12442 X"$file" : 'X\(//\)[^/]' \| \
12443 X"$file" : 'X\(//\)$' \| \
12444 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12445 $as_echo X"$file" |
12446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12450 /^X\(\/\/\)[^/].*/{
12463 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12464 # echo "creating $dirpart/$file"
12465 echo '# dummy' > "$dirpart/$file"
12472 # See if we are running on zsh, and set the options which allow our
12473 # commands through without removal of \ escapes.
12474 if test -n "${ZSH_VERSION+set}" ; then
12475 setopt NO_GLOB_SUBST
12478 cfgfile="${ofile}T"
12479 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12482 cat <<_LT_EOF >> "$cfgfile"
12485 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12486 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12488 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12490 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12491 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12492 # Written by Gordon Matzigkeit, 1996
12494 # This file is part of GNU Libtool.
12496 # GNU Libtool is free software; you can redistribute it and/or
12497 # modify it under the terms of the GNU General Public License as
12498 # published by the Free Software Foundation; either version 2 of
12499 # the License, or (at your option) any later version.
12501 # As a special exception to the GNU General Public License,
12502 # if you distribute this file as part of a program or library that
12503 # is built using GNU Libtool, you may include this file under the
12504 # same distribution terms that you use for the rest of that program.
12506 # GNU Libtool is distributed in the hope that it will be useful,
12507 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12509 # GNU General Public License for more details.
12511 # You should have received a copy of the GNU General Public License
12512 # along with GNU Libtool; see the file COPYING. If not, a copy
12513 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12514 # obtained by writing to the Free Software Foundation, Inc.,
12515 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12518 # The names of the tagged configurations supported by this script.
12521 # ### BEGIN LIBTOOL CONFIG
12523 # Which release of libtool.m4 was used?
12524 macro_version=$macro_version
12525 macro_revision=$macro_revision
12527 # Whether or not to build shared libraries.
12528 build_libtool_libs=$enable_shared
12530 # Whether or not to build static libraries.
12531 build_old_libs=$enable_static
12533 # What type of objects to build.
12536 # Whether or not to optimize for fast installation.
12537 fast_install=$enable_fast_install
12539 # Shell to use when invoking shell scripts.
12542 # An echo program that protects backslashes.
12546 host_alias=$host_alias
12550 # The build system.
12551 build_alias=$build_alias
12555 # A sed program that does not truncate output.
12558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12559 Xsed="\$SED -e 1s/^X//"
12561 # A grep program that handles long lines.
12567 # A literal string matcher.
12570 # A BSD- or MS-compatible name lister.
12573 # Whether we need soft or hard links.
12576 # What is the maximum length of a command?
12577 max_cmd_len=$max_cmd_len
12579 # Object file suffix (normally "o").
12582 # Executable file suffix (normally "").
12585 # whether the shell understands "unset".
12588 # turn spaces into newlines.
12591 # turn newlines into spaces.
12594 # An object symbol dumper.
12595 OBJDUMP=$lt_OBJDUMP
12597 # Method to check whether dependent libraries are shared objects.
12598 deplibs_check_method=$lt_deplibs_check_method
12600 # Command to use when deplibs_check_method == "file_magic".
12601 file_magic_cmd=$lt_file_magic_cmd
12605 AR_FLAGS=$lt_AR_FLAGS
12607 # A symbol stripping program.
12610 # Commands used to install an old-style archive.
12612 old_postinstall_cmds=$lt_old_postinstall_cmds
12613 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12615 # Whether to use a lock for old archive extraction.
12616 lock_old_archive_extraction=$lock_old_archive_extraction
12621 # LTCC compiler flags.
12622 LTCFLAGS=$lt_CFLAGS
12624 # Take the output of nm and produce a listing of raw symbols and C names.
12625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12627 # Transform the output of nm in a proper C declaration.
12628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12630 # Transform the output of nm in a C name address pair.
12631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12633 # Transform the output of nm in a C name address pair when lib prefix is needed.
12634 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12636 # The name of the directory that contains temporary libtool files.
12639 # Used to examine libraries when file_magic_cmd begins with "file".
12640 MAGIC_CMD=$MAGIC_CMD
12642 # Must we lock files when doing compilation?
12643 need_locks=$lt_need_locks
12645 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12646 DSYMUTIL=$lt_DSYMUTIL
12648 # Tool to change global to local symbols on Mac OS X.
12651 # Tool to manipulate fat objects and archives on Mac OS X.
12654 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12657 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12658 OTOOL64=$lt_OTOOL64
12660 # Old archive suffix (normally "a").
12663 # Shared library suffix (normally ".so").
12664 shrext_cmds=$lt_shrext_cmds
12666 # The commands to extract the exported symbol list from a shared archive.
12667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12669 # Variables whose values should be saved in libtool wrapper scripts and
12670 # restored at link time.
12671 variables_saved_for_relink=$lt_variables_saved_for_relink
12673 # Do we need the "lib" prefix for modules?
12674 need_lib_prefix=$need_lib_prefix
12676 # Do we need a version for libraries?
12677 need_version=$need_version
12679 # Library versioning type.
12680 version_type=$version_type
12682 # Shared library runtime path variable.
12683 runpath_var=$runpath_var
12685 # Shared library path variable.
12686 shlibpath_var=$shlibpath_var
12688 # Is shlibpath searched before the hard-coded library search path?
12689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12691 # Format of library name prefix.
12692 libname_spec=$lt_libname_spec
12694 # List of archive names. First name is the real one, the rest are links.
12695 # The last name is the one that the linker finds with -lNAME
12696 library_names_spec=$lt_library_names_spec
12698 # The coded name of the library, if different from the real name.
12699 soname_spec=$lt_soname_spec
12701 # Permission mode override for installation of shared libraries.
12702 install_override_mode=$lt_install_override_mode
12704 # Command to use after installation of a shared archive.
12705 postinstall_cmds=$lt_postinstall_cmds
12707 # Command to use after uninstallation of a shared archive.
12708 postuninstall_cmds=$lt_postuninstall_cmds
12710 # Commands used to finish a libtool library installation in a directory.
12711 finish_cmds=$lt_finish_cmds
12713 # As "finish_cmds", except a single script fragment to be evaled but
12715 finish_eval=$lt_finish_eval
12717 # Whether we should hardcode library paths into libraries.
12718 hardcode_into_libs=$hardcode_into_libs
12720 # Compile-time system search path for libraries.
12721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12723 # Run-time system search path for libraries.
12724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12726 # Whether dlopen is supported.
12727 dlopen_support=$enable_dlopen
12729 # Whether dlopen of programs is supported.
12730 dlopen_self=$enable_dlopen_self
12732 # Whether dlopen of statically linked programs is supported.
12733 dlopen_self_static=$enable_dlopen_self_static
12735 # Commands to strip libraries.
12736 old_striplib=$lt_old_striplib
12737 striplib=$lt_striplib
12740 # The linker used to build libraries.
12743 # How to create reloadable object files.
12744 reload_flag=$lt_reload_flag
12745 reload_cmds=$lt_reload_cmds
12747 # Commands used to build an old-style archive.
12748 old_archive_cmds=$lt_old_archive_cmds
12750 # A language specific compiler.
12753 # Is the compiler the GNU compiler?
12756 # Compiler flag to turn off builtin functions.
12757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12759 # How to pass a linker flag through the compiler.
12760 wl=$lt_lt_prog_compiler_wl
12762 # Additional compiler flags for building library objects.
12763 pic_flag=$lt_lt_prog_compiler_pic
12765 # Compiler flag to prevent dynamic linking.
12766 link_static_flag=$lt_lt_prog_compiler_static
12768 # Does compiler simultaneously support -c and -o options?
12769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12771 # Whether or not to add -lc for building shared libraries.
12772 build_libtool_need_lc=$archive_cmds_need_lc
12774 # Whether or not to disallow shared libs when runtime libs are static.
12775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12777 # Compiler flag to allow reflexive dlopens.
12778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12780 # Compiler flag to generate shared objects directly from archives.
12781 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12783 # Whether the compiler copes with passing no objects directly.
12784 compiler_needs_object=$lt_compiler_needs_object
12786 # Create an old-style archive from a shared archive.
12787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12789 # Create a temporary old-style archive to link instead of a shared archive.
12790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12792 # Commands used to build a shared archive.
12793 archive_cmds=$lt_archive_cmds
12794 archive_expsym_cmds=$lt_archive_expsym_cmds
12796 # Commands used to build a loadable module if different from building
12797 # a shared archive.
12798 module_cmds=$lt_module_cmds
12799 module_expsym_cmds=$lt_module_expsym_cmds
12801 # Whether we are building with GNU ld or not.
12802 with_gnu_ld=$lt_with_gnu_ld
12804 # Flag that allows shared libraries with undefined symbols to be built.
12805 allow_undefined_flag=$lt_allow_undefined_flag
12807 # Flag that enforces no undefined symbols.
12808 no_undefined_flag=$lt_no_undefined_flag
12810 # Flag to hardcode \$libdir into a binary during linking.
12811 # This must work even if \$libdir does not exist
12812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12814 # If ld is used when linking, flag to hardcode \$libdir into a binary
12815 # during linking. This must work even if \$libdir does not exist.
12816 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12818 # Whether we need a single "-rpath" flag with a separated argument.
12819 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12821 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12822 # DIR into the resulting binary.
12823 hardcode_direct=$hardcode_direct
12825 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12826 # DIR into the resulting binary and the resulting library dependency is
12827 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12828 # library is relocated.
12829 hardcode_direct_absolute=$hardcode_direct_absolute
12831 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12832 # into the resulting binary.
12833 hardcode_minus_L=$hardcode_minus_L
12835 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12836 # into the resulting binary.
12837 hardcode_shlibpath_var=$hardcode_shlibpath_var
12839 # Set to "yes" if building a shared library automatically hardcodes DIR
12840 # into the library and all subsequent libraries and executables linked
12842 hardcode_automatic=$hardcode_automatic
12844 # Set to yes if linker adds runtime paths of dependent libraries
12845 # to runtime path list.
12846 inherit_rpath=$inherit_rpath
12848 # Whether libtool must link a program against all its dependency libraries.
12849 link_all_deplibs=$link_all_deplibs
12851 # Fix the shell variable \$srcfile for the compiler.
12852 fix_srcfile_path=$lt_fix_srcfile_path
12854 # Set to "yes" if exported symbols are required.
12855 always_export_symbols=$always_export_symbols
12857 # The commands to list exported symbols.
12858 export_symbols_cmds=$lt_export_symbols_cmds
12860 # Symbols that should not be listed in the preloaded symbols.
12861 exclude_expsyms=$lt_exclude_expsyms
12863 # Symbols that must always be exported.
12864 include_expsyms=$lt_include_expsyms
12866 # Commands necessary for linking programs (against libraries) with templates.
12867 prelink_cmds=$lt_prelink_cmds
12869 # Specify filename containing input files.
12870 file_list_spec=$lt_file_list_spec
12872 # How to hardcode a shared library path into an executable.
12873 hardcode_action=$hardcode_action
12875 # ### END LIBTOOL CONFIG
12881 cat <<\_LT_EOF >> "$cfgfile"
12882 # AIX sometimes has problems with the GCC collect2 program. For some
12883 # reason, if we set the COLLECT_NAMES environment variable, the problems
12884 # vanish in a puff of smoke.
12885 if test "X${COLLECT_NAMES+set}" != Xset; then
12887 export COLLECT_NAMES
12894 ltmain="$ac_aux_dir/ltmain.sh"
12897 # We use sed instead of cat because bash on DJGPP gets confused if
12898 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12899 # text mode, it properly converts lines to CR/LF. This bash problem
12900 # is reportedly fixed, but why not run on old versions too?
12901 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12902 || (rm -f "$cfgfile"; exit 1)
12906 cat << \_LT_EOF >> "$cfgfile"
12908 # func_dirname file append nondir_replacement
12909 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12910 # otherwise set result to NONDIR_REPLACEMENT.
12914 */*) func_dirname_result="${1%/*}${2}" ;;
12915 * ) func_dirname_result="${3}" ;;
12919 # func_basename file
12922 func_basename_result="${1##*/}"
12925 # func_dirname_and_basename file append nondir_replacement
12926 # perform func_basename and func_dirname in a single function
12928 # dirname: Compute the dirname of FILE. If nonempty,
12929 # add APPEND to the result, otherwise set result
12930 # to NONDIR_REPLACEMENT.
12931 # value returned in "$func_dirname_result"
12932 # basename: Compute filename of FILE.
12933 # value retuned in "$func_basename_result"
12934 # Implementation must be kept synchronized with func_dirname
12935 # and func_basename. For efficiency, we do not delegate to
12936 # those functions but instead duplicate the functionality here.
12937 func_dirname_and_basename ()
12940 */*) func_dirname_result="${1%/*}${2}" ;;
12941 * ) func_dirname_result="${3}" ;;
12943 func_basename_result="${1##*/}"
12946 # func_stripname prefix suffix name
12947 # strip PREFIX and SUFFIX off of NAME.
12948 # PREFIX and SUFFIX must not contain globbing or regex special
12949 # characters, hashes, percent signs, but SUFFIX may contain a leading
12950 # dot (in which case that matches only a dot).
12953 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12954 # positional parameters, so assign one to ordinary parameter first.
12955 func_stripname_result=${3}
12956 func_stripname_result=${func_stripname_result#"${1}"}
12957 func_stripname_result=${func_stripname_result%"${2}"}
12963 func_opt_split_opt=${1%%=*}
12964 func_opt_split_arg=${1#*=}
12971 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12972 *) func_lo2o_result=${1} ;;
12976 # func_xform libobj-or-source
12979 func_xform_result=${1%.*}.lo
12982 # func_arith arithmetic-term...
12985 func_arith_result=$(( $* ))
12989 # STRING may not start with a hyphen.
12992 func_len_result=${#1}
12997 *) # Bourne compatible functions.
12998 cat << \_LT_EOF >> "$cfgfile"
13000 # func_dirname file append nondir_replacement
13001 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13002 # otherwise set result to NONDIR_REPLACEMENT.
13005 # Extract subdirectory from the argument.
13006 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13007 if test "X$func_dirname_result" = "X${1}"; then
13008 func_dirname_result="${3}"
13010 func_dirname_result="$func_dirname_result${2}"
13014 # func_basename file
13017 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13021 # func_stripname prefix suffix name
13022 # strip PREFIX and SUFFIX off of NAME.
13023 # PREFIX and SUFFIX must not contain globbing or regex special
13024 # characters, hashes, percent signs, but SUFFIX may contain a leading
13025 # dot (in which case that matches only a dot).
13026 # func_strip_suffix prefix name
13030 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13031 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13036 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13037 my_sed_long_arg='1s/^-[^=]*=//'
13042 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13043 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13049 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13052 # func_xform libobj-or-source
13055 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13058 # func_arith arithmetic-term...
13061 func_arith_result=`expr "$@"`
13065 # STRING may not start with a hyphen.
13068 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13074 case $lt_shell_append in
13076 cat << \_LT_EOF >> "$cfgfile"
13078 # func_append var value
13079 # Append VALUE to the end of shell variable VAR.
13087 cat << \_LT_EOF >> "$cfgfile"
13089 # func_append var value
13090 # Append VALUE to the end of shell variable VAR.
13101 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13102 || (rm -f "$cfgfile"; exit 1)
13104 mv -f "$cfgfile" "$ofile" ||
13105 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13116 ac_clean_files=$ac_clean_files_save
13118 test $ac_write_fail = 0 ||
13119 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13122 # configure is writing to config.log, and then calls config.status.
13123 # config.status does its own redirection, appending to config.log.
13124 # Unfortunately, on DOS this fails, as config.log is still kept open
13125 # by configure, so config.status won't be able to write to it; its
13126 # output is simply discarded. So we exec the FD to /dev/null,
13127 # effectively closing config.log, so it can be properly (re)opened and
13128 # appended to by config.status. When coming back to configure, we
13129 # need to make the FD available again.
13130 if test "$no_create" != yes; then
13132 ac_config_status_args=
13133 test "$silent" = yes &&
13134 ac_config_status_args="$ac_config_status_args --quiet"
13136 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13138 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13139 # would make configure fail if this is the last instruction.
13140 $ac_cs_success || as_fn_exit $?
13142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13144 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}