2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
608 HAVE_STRERROR_R_FALSE
610 HAVE_SYS_MMAN_H_FALSE
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
620 GO_SYSCALL_OS_ARCH_FILE
622 GO_LIBCALL_OS_ARCH_FILE
625 LIBGO_IS_X86_64_FALSE
627 LIBGO_IS_SPARC64_FALSE
628 LIBGO_IS_SPARC64_TRUE
635 LIBGO_IS_MIPSO64_FALSE
636 LIBGO_IS_MIPSO64_TRUE
637 LIBGO_IS_MIPSN64_FALSE
638 LIBGO_IS_MIPSN64_TRUE
639 LIBGO_IS_MIPSN32_FALSE
640 LIBGO_IS_MIPSN32_TRUE
641 LIBGO_IS_MIPSO32_FALSE
642 LIBGO_IS_MIPSO32_TRUE
654 LIBGO_IS_SOLARIS_FALSE
655 LIBGO_IS_SOLARIS_TRUE
662 LIBGO_IS_FREEBSD_FALSE
663 LIBGO_IS_FREEBSD_TRUE
664 LIBGO_IS_DARWIN_FALSE
668 glibgo_toolexeclibdir
697 MAINTAINER_MODE_FALSE
725 INSTALL_STRIP_PROGRAM
781 program_transform_name
794 enable_option_checking
796 enable_dependency_tracking
797 enable_maintainer_mode
804 enable_version_specific_runtime_libs
806 with_system_libunwind
807 enable_sjlj_exceptions
809 ac_precious_vars='build_alias
816 # Initialize some variables set by options.
818 ac_init_version=false
819 ac_unrecognized_opts=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name=s,x,x,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=no ;;
1181 # Obsolete; use --with-x.
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) as_fn_error "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information."
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error "missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1231 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1249 # Be sure to have absolute directory names.
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269 If a cross compiler is detected then cross compile mode will be used." >&2
1270 elif test "x$build_alias" != "x$host_alias"; then
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error "pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1355 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 --target=TARGET configure for building compilers for TARGET [HOST]
1424 if test -n "$ac_init_help"; then
1425 case $ac_init_help in
1426 short | recursive ) echo "Configuration of package-unused version-unused:";;
1431 --disable-option-checking ignore unrecognized --enable/--with options
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1434 --enable-multilib build many library versions (default)
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-version-specific-runtime-libs
1445 Specify that runtime libraries should be installed
1446 in a compiler-specific directory
1447 --enable-sjlj-exceptions
1448 force use of builtin_setjmp for exceptions
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-pic try to use only PIC/non-PIC objects [default=use
1456 --without-libffi don't use libffi
1457 --with-system-libunwind use installed libunwind
1459 Some influential environment variables:
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1463 nonstandard directory <lib dir>
1464 LIBS libraries to pass to the linker, e.g. -l<library>
1465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1466 you have headers in a nonstandard directory <include dir>
1467 GOC Go compiler command
1468 GOCFLAGS Go compiler flags
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to the package provider.
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1504 .) # We are building in place.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1537 package-unused configure version-unused
1538 generated by GNU Autoconf 2.64
1540 Copyright (C) 2009 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1584 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 } # ac_fn_c_try_compile
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 $as_test_x conftest$ac_exeext
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627 # interfere with the next link command; also delete a directory that is
1628 # left behind by Apple's compiler. We do this before executing the actions.
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 } # ac_fn_c_try_link
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 $as_echo_n "(cached) " >&6
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1652 if ac_fn_c_try_compile "$LINENO"; then :
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 } # ac_fn_c_check_header_compile
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } >/dev/null && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1737 ac_retval=$ac_status
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760 #define $2 innocuous_$2
1762 /* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (); below.
1764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765 <limits.h> exists even on freestanding compilers. */
1768 # include <limits.h>
1770 # include <assert.h>
1775 /* Override any GCC internal prototype to avoid an error.
1776 Use char because int might match the return type of a GCC
1777 builtin and then its argument prototype would still apply. */
1782 /* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785 #if defined __stub_$2 || defined __stub___$2
1797 if ac_fn_c_try_link "$LINENO"; then :
1802 rm -f core conftest.err conftest.$ac_objext \
1803 conftest$ac_exeext conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 } # ac_fn_c_check_func
1812 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813 # -------------------------------------------------------
1814 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815 # the include files in INCLUDES and setting the cache variable VAR
1817 ac_fn_c_check_header_mongrel ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1830 # Is the header compilable?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832 $as_echo_n "checking $2 usability... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 ac_header_compiler=yes
1841 ac_header_compiler=no
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845 $as_echo "$ac_header_compiler" >&6; }
1847 # Is the header present?
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849 $as_echo_n "checking $2 presence... " >&6; }
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1854 if ac_fn_c_try_cpp "$LINENO"; then :
1855 ac_header_preproc=yes
1857 ac_header_preproc=no
1859 rm -f conftest.err conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861 $as_echo "$ac_header_preproc" >&6; }
1863 # So? What about this header?
1864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1875 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1879 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1889 eval "$3=\$ac_header_compiler"
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 } # ac_fn_c_check_header_mongrel
1899 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1900 # -------------------------------------------
1901 # Tests whether TYPE exists after having included INCLUDES, setting cache
1902 # variable VAR accordingly.
1903 ac_fn_c_check_type ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1937 if ac_fn_c_try_compile "$LINENO"; then :
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_c_check_type
1952 cat >config.log <<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1956 It was created by package-unused $as_me version-unused, which was
1957 generated by GNU Autoconf 2.64. Invocation command line was
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 $as_echo "PATH: $as_dir"
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_must_keep_next=false
2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025 | -silent | --silent | --silen | --sile | --sil)
2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2033 as_fn_append ac_configure_args1 " '$ac_arg'"
2034 if test $ac_must_keep_next = true; then
2035 ac_must_keep_next=false # Got value, back to normal.
2038 *=* | --config-cache | -C | -disable-* | --disable-* \
2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041 | -with-* | --with-* | -without-* | --without-* | --x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 -* ) ac_must_keep_next=true ;;
2049 as_fn_append ac_configure_args " '$ac_arg'"
2054 { ac_configure_args0=; unset ac_configure_args0;}
2055 { ac_configure_args1=; unset ac_configure_args1;}
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2068 ## ---------------- ##
2069 ## Cache variables. ##
2070 ## ---------------- ##
2073 # The following way of writing the cache mishandles newlines in values,
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2106 ## ----------------- ##
2107 ## Output variables. ##
2108 ## ----------------- ##
2111 for ac_var in $ac_subst_vars
2113 eval ac_val=\$$ac_var
2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2117 $as_echo "$ac_var='\''$ac_val'\''"
2121 if test -n "$ac_subst_files"; then
2123 ## ------------------- ##
2124 ## File substitutions. ##
2125 ## ------------------- ##
2128 for ac_var in $ac_subst_files
2130 eval ac_val=\$$ac_var
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 $as_echo "$ac_var='\''$ac_val'\''"
2139 if test -s confdefs.h; then
2149 test "$ac_signal" != 0 &&
2150 $as_echo "$as_me: caught signal $ac_signal"
2151 $as_echo "$as_me: exit $exit_status"
2153 rm -f core *.core core.conftest.* &&
2154 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2157 for ac_signal in 1 2 13 15; do
2158 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2163 rm -f -r conftest* confdefs.h
2165 $as_echo "/* confdefs.h */" > confdefs.h
2167 # Predefined preprocessor variables.
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_NAME "$PACKAGE_NAME"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2181 cat >>confdefs.h <<_ACEOF
2182 #define PACKAGE_STRING "$PACKAGE_STRING"
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_URL "$PACKAGE_URL"
2194 # Let the site file select an alternate cache file if it wants to.
2195 # Prefer an explicitly selected file to automatically selected ones.
2198 if test -n "$CONFIG_SITE"; then
2199 ac_site_file1=$CONFIG_SITE
2200 elif test "x$prefix" != xNONE; then
2201 ac_site_file1=$prefix/share/config.site
2202 ac_site_file2=$prefix/etc/config.site
2204 ac_site_file1=$ac_default_prefix/share/config.site
2205 ac_site_file2=$ac_default_prefix/etc/config.site
2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2209 test "x$ac_site_file" = xNONE && continue
2210 if test -r "$ac_site_file"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2213 sed 's/^/| /' "$ac_site_file" >&5
2218 if test -r "$cache_file"; then
2219 # Some versions of bash will fail to source /dev/null (special
2220 # files actually), so we avoid doing that.
2221 if test -f "$cache_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235 # Check that the precious variables saved in the cache have kept the same
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
2243 case $ac_old_set,$ac_new_set in
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
2255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *) ac_arg=$ac_var=$ac_new_val ;;
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285 if $ac_cache_corrupted; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 ac_config_headers="$ac_config_headers config.h"
2310 libtool_VERSION=1:0:0
2313 # Default to --enable-multilib
2314 # Check whether --enable-multilib was given.
2315 if test "${enable_multilib+set}" = set; then :
2316 enableval=$enable_multilib; case "$enableval" in
2317 yes) multilib=yes ;;
2319 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2326 # We may get other options which we leave undocumented:
2327 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2328 # See config-ml.in if you want the gory details.
2330 if test "$srcdir" = "."; then
2331 if test "$with_target_subdir" != "."; then
2332 multi_basedir="$srcdir/$with_multisrctop../.."
2334 multi_basedir="$srcdir/$with_multisrctop.."
2337 multi_basedir="$srcdir/.."
2341 # Even if the default multilib is not a cross compilation,
2342 # it may be that some of the other multilibs are.
2343 if test $cross_compiling = no && test $multilib = yes \
2344 && test "x${with_multisubdir}" != x ; then
2345 cross_compiling=maybe
2348 ac_config_commands="$ac_config_commands default-1"
2352 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2353 for ac_t in install-sh install.sh shtool; do
2354 if test -f "$ac_dir/$ac_t"; then
2356 ac_install_sh="$ac_aux_dir/$ac_t -c"
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if test "${ac_cv_build+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2396 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2399 ac_save_IFS=$IFS; IFS='-'
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2413 $as_echo_n "checking host system type... " >&6; }
2414 if test "${ac_cv_host+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2417 if test "x$host_alias" = x; then
2418 ac_cv_host=$ac_cv_build
2420 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2426 $as_echo "$ac_cv_host" >&6; }
2429 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2432 ac_save_IFS=$IFS; IFS='-'
2438 # Remember, the first character of IFS is used to create $*,
2439 # except with old shells:
2442 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2446 $as_echo_n "checking target system type... " >&6; }
2447 if test "${ac_cv_target+set}" = set; then :
2448 $as_echo_n "(cached) " >&6
2450 if test "x$target_alias" = x; then
2451 ac_cv_target=$ac_cv_host
2453 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2454 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2459 $as_echo "$ac_cv_target" >&6; }
2460 case $ac_cv_target in
2462 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2464 target=$ac_cv_target
2465 ac_save_IFS=$IFS; IFS='-'
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2475 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2478 # The aliases save the names the user supplied, while $host etc.
2479 # will get canonicalized.
2480 test -n "$target_alias" &&
2481 test "$program_prefix$program_suffix$program_transform_name" = \
2483 program_prefix=${target_alias}-
2485 target_alias=${target_alias-$host_alias}
2487 am__api_version='1.11'
2489 # Find a good install program. We prefer a C program (faster),
2490 # so one script is as good as another. But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 # Reject install programs that cannot install multiple files.
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2504 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then :
2507 $as_echo_n "(cached) " >&6
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in #((
2516 ./ | .// | /[cC]/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2536 rm -rf conftest.one conftest.two conftest.dir
2537 echo one > conftest.one
2538 echo two > conftest.two
2540 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2541 test -s conftest.one && test -s conftest.two &&
2542 test -s conftest.dir/conftest.one &&
2543 test -s conftest.dir/conftest.two
2545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 rm -rf conftest.one conftest.two conftest.dir
2561 if test "${ac_cv_path_install+set}" = set; then
2562 INSTALL=$ac_cv_path_install
2564 # As a last resort, use the slow shell script. Don't cache a
2565 # value for INSTALL within a source directory, because that will
2566 # break other packages using the cache if that directory is
2567 # removed, or if the value is a relative name.
2568 INSTALL=$ac_install_sh
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2572 $as_echo "$INSTALL" >&6; }
2574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575 # It thinks the first close brace ends the variable substitution.
2576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2583 $as_echo_n "checking whether build environment is sane... " >&6; }
2586 echo timestamp > conftest.file
2587 # Reject unsafe characters in $srcdir or the absolute working directory
2588 # name. Accept space and tab only in the latter.
2592 *[\\\"\#\$\&\'\`$am_lf]*)
2593 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2596 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2597 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2600 # Do `set' in a subshell so we don't clobber the current shell's
2601 # arguments. Must try -L first in case configure is actually a
2602 # symlink; some systems play weird games with the mod time of symlinks
2603 # (eg FreeBSD returns the mod time of the symlink's containing
2606 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607 if test "$*" = "X"; then
2609 set X `ls -t "$srcdir/configure" conftest.file`
2612 if test "$*" != "X $srcdir/configure conftest.file" \
2613 && test "$*" != "X conftest.file $srcdir/configure"; then
2615 # If neither matched, then we have a broken ls. This can happen
2616 # if, for instance, CONFIG_SHELL is bash and it inherits a
2617 # broken ls alias from the environment. This has actually
2618 # happened. Such a system could not be considered "sane".
2619 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2620 alias in your environment" "$LINENO" 5
2623 test "$2" = conftest.file
2629 as_fn_error "newly created file is older than distributed files!
2630 Check your system clock" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2633 $as_echo "yes" >&6; }
2634 test "$program_prefix" != NONE &&
2635 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2636 # Use a double $ so make ignores it.
2637 test "$program_suffix" != NONE &&
2638 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2639 # Double any \ or $.
2640 # By default was `s,x,x', remove it if useless.
2641 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2642 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2644 # expand $ac_aux_dir to an absolute path
2645 am_aux_dir=`cd $ac_aux_dir && pwd`
2647 if test x"${MISSING+set}" != xset; then
2650 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2652 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2655 # Use eval to expand $SHELL
2656 if eval "$MISSING --run true"; then
2657 am_missing_run="$MISSING --run "
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2661 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2664 if test x"${install_sh}" != xset; then
2667 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2669 install_sh="\${SHELL} $am_aux_dir/install-sh"
2673 # Installed binaries are usually stripped using `strip' when the user
2674 # run `make install-strip'. However `strip' might not be the right
2675 # tool to use in cross-compilation environments, therefore Automake
2676 # will honor the `STRIP' environment variable to overrule this program.
2677 if test "$cross_compiling" != no; then
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}strip; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_STRIP+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$STRIP"; then
2687 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 STRIP=$ac_cv_prog_STRIP
2707 if test -n "$STRIP"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2709 $as_echo "$STRIP" >&6; }
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2717 if test -z "$ac_cv_prog_STRIP"; then
2719 # Extract the first word of "strip", so it can be a program name with args.
2720 set dummy strip; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2724 $as_echo_n "(cached) " >&6
2726 if test -n "$ac_ct_STRIP"; then
2727 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_ac_ct_STRIP="strip"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2747 if test -n "$ac_ct_STRIP"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2749 $as_echo "$ac_ct_STRIP" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2755 if test "x$ac_ct_STRIP" = x; then
2758 case $cross_compiling:$ac_tool_warned in
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2767 STRIP="$ac_cv_prog_STRIP"
2771 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2774 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2775 if test -z "$MKDIR_P"; then
2776 if test "${ac_cv_path_mkdir+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2783 test -z "$as_dir" && as_dir=.
2784 for ac_prog in mkdir gmkdir; do
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2787 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2788 'mkdir (GNU coreutils) '* | \
2789 'mkdir (coreutils) '* | \
2790 'mkdir (fileutils) '4.1*)
2791 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2801 if test "${ac_cv_path_mkdir+set}" = set; then
2802 MKDIR_P="$ac_cv_path_mkdir -p"
2804 # As a last resort, use the slow shell script. Don't cache a
2805 # value for MKDIR_P within a source directory, because that will
2806 # break other packages using the cache if that directory is
2807 # removed, or if the value is a relative name.
2808 test -d ./--version && rmdir ./--version
2809 MKDIR_P="$ac_install_sh -d"
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2813 $as_echo "$MKDIR_P" >&6; }
2817 [\\/$]* | ?:[\\/]*) ;;
2818 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2821 for ac_prog in gawk mawk nawk awk
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if test "${ac_cv_prog_AWK+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$AWK"; then
2831 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_AWK="$ac_prog"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test -n "$AWK"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2853 $as_echo "$AWK" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2860 test -n "$AWK" && break
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2864 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2866 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2867 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2868 $as_echo_n "(cached) " >&6
2870 cat >conftest.make <<\_ACEOF
2873 @echo '@@@%%%=$(MAKE)=@@@%%%'
2875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2876 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2878 eval ac_cv_prog_make_${ac_make}_set=yes;;
2880 eval ac_cv_prog_make_${ac_make}_set=no;;
2884 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2886 $as_echo "yes" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 SET_MAKE="MAKE=${MAKE-make}"
2894 rm -rf .tst 2>/dev/null
2895 mkdir .tst 2>/dev/null
2896 if test -d .tst; then
2901 rmdir .tst 2>/dev/null
2903 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2904 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2905 # is not polluted with repeated "-I."
2906 am__isrc=' -I$(srcdir)'
2907 # test to see if srcdir already configured
2908 if test -f $srcdir/config.status; then
2909 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2913 # test whether we have cygpath
2914 if test -z "$CYGPATH_W"; then
2915 if (cygpath --version) >/dev/null 2>/dev/null; then
2916 CYGPATH_W='cygpath -w'
2923 # Define the identity of the package.
2925 VERSION='version-unused'
2928 # Some tools Automake needs.
2930 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2933 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2939 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2944 # We need awk for the "check" target. The system "awk" is bad on
2946 # Always define AMTAR for backward compatibility.
2948 AMTAR=${AMTAR-"${am_missing_run}tar"}
2950 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3005 if test -z "$ac_cv_prog_CC"; then
3007 # Extract the first word of "gcc", so it can be a program name with args.
3008 set dummy gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3014 if test -n "$ac_ct_CC"; then
3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024 ac_cv_prog_ac_ct_CC="gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 $as_echo "$ac_ct_CC" >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3043 if test "x$ac_ct_CC" = x; then
3046 case $cross_compiling:$ac_tool_warned in
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050 ac_tool_warned=yes ;;
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 # Extract the first word of "cc", so it can be a program name with args.
3101 set dummy cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3118 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3119 ac_prog_rejected=yes
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test $ac_prog_rejected = yes; then
3131 # We found a bogon in the path, so make sure we never use it.
3132 set dummy $ac_cv_prog_CC
3134 if test $# != 0; then
3135 # We chose a different compiler from the bogus one.
3136 # However, it has the same basename, so the bogon will be chosen
3137 # first if we set CC to just the basename; use the full file name.
3139 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3145 if test -n "$CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3147 $as_echo "$CC" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3155 if test -z "$CC"; then
3156 if test -n "$ac_tool_prefix"; then
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$CC" && break
3199 if test -z "$CC"; then
3201 for ac_prog in cl.exe
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_ac_ct_CC="$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3240 test -n "$ac_ct_CC" && break
3243 if test "x$ac_ct_CC" = x; then
3246 case $cross_compiling:$ac_tool_warned in
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3250 ac_tool_warned=yes ;;
3259 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error "no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details." "$LINENO" 5; }
3264 # Provide some information about the compiler.
3265 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3268 for ac_option in --version -v -V -qversion; do
3269 { { ac_try="$ac_compiler $ac_option >&5"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3278 if test -s conftest.err; then
3280 ... rest of stderr output deleted ...
3281 10q' conftest.err >conftest.er1
3282 cat conftest.er1 >&5
3283 rm -f conftest.er1 conftest.err
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3300 ac_clean_files_save=$ac_clean_files
3301 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3302 # Try to create an executable without -o first, disregard a.out.
3303 # It will help us diagnose broken compilers, and finding out an intuition
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3309 # The possible output files:
3310 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3313 for ac_file in $ac_files
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 if { { ac_try="$ac_link_default"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link_default") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3336 # so that the user can short-circuit this test for compilers unknown to
3338 for ac_file in $ac_files ''
3340 test -f "$ac_file" || continue
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3345 # We found the default executable, but exeext='' is most
3349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 # We set ac_cv_exeext here because the later test for it is not
3354 # safe: cross compilers may not add the suffix if given an `-o'
3355 # argument, so we may need to know it at that point already.
3356 # Even if this section looks crufty: it has the advantage of
3363 test "$ac_cv_exeext" = no && ac_cv_exeext=
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369 $as_echo "$ac_file" >&6; }
3370 if test -z "$ac_file"; then :
3371 $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 { as_fn_set_status 77
3377 as_fn_error "C compiler cannot create executables
3378 See \`config.log' for more details." "$LINENO" 5; }; }
3380 ac_exeext=$ac_cv_exeext
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 # If not cross compiling, check that we can run a simple program.
3387 if test "$cross_compiling" != yes; then
3388 if { ac_try='./$ac_file'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3401 if test "$cross_compiling" = maybe; then
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 as_fn_error "cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." "$LINENO" 5; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." "$LINENO" 5; }
3456 rm -f conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3464 $as_echo_n "checking for suffix of object files... " >&6; }
3465 if test "${ac_cv_objext+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3479 rm -f conftest.o conftest.obj
3480 if { { ac_try="$ac_compile"
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compile") 2>&5
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; then :
3491 for ac_file in conftest.o conftest.obj conftest.*; do
3492 test -f "$ac_file" || continue;
3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error "cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details." "$LINENO" 5; }
3508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3511 $as_echo "$ac_cv_objext" >&6; }
3512 OBJEXT=$ac_cv_objext
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3515 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3516 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3533 if ac_fn_c_try_compile "$LINENO"; then :
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3543 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3544 if test $ac_compiler_gnu = yes; then
3549 ac_test_CFLAGS=${CFLAGS+set}
3550 ac_save_CFLAGS=$CFLAGS
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3552 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3553 if test "${ac_cv_prog_cc_g+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3556 ac_save_c_werror_flag=$ac_c_werror_flag
3557 ac_c_werror_flag=yes
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3571 if ac_fn_c_try_compile "$LINENO"; then :
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3586 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_c_werror_flag=$ac_save_c_werror_flag
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 if ac_fn_c_try_compile "$LINENO"; then :
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610 ac_c_werror_flag=$ac_save_c_werror_flag
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3613 $as_echo "$ac_cv_prog_cc_g" >&6; }
3614 if test "$ac_test_CFLAGS" = set; then
3615 CFLAGS=$ac_save_CFLAGS
3616 elif test $ac_cv_prog_cc_g = yes; then
3617 if test "$GCC" = yes; then
3623 if test "$GCC" = yes; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3630 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3631 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 ac_cv_prog_cc_c89=no
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3640 #include <sys/types.h>
3641 #include <sys/stat.h>
3642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3643 struct buf { int x; };
3644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3645 static char *e (p, i)
3651 static char *f (char * (*g) (char **, int), char **p, ...)
3656 s = g (p, va_arg (v,int));
3661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3662 function prototypes and stuff, but not '\xHH' hex character constants.
3663 These don't provoke an error unfortunately, instead are silently treated
3664 as 'x'. The following induces an error, until -std is added to get
3665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3666 array size at least. It's necessary to write '\x00'==0 to get something
3667 that's true only with -std. */
3668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3671 inside strings and character constants. */
3673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3675 int test (int i, double x);
3676 struct s1 {int (*f) (int a);};
3677 struct s2 {int (*f) (double a);};
3678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3692 CC="$ac_save_CC $ac_arg"
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_c89=$ac_arg
3696 rm -f core conftest.err conftest.$ac_objext
3697 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699 rm -f conftest.$ac_ext
3704 case "x$ac_cv_prog_cc_c89" in
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3707 $as_echo "none needed" >&6; } ;;
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3710 $as_echo "unsupported" >&6; } ;;
3712 CC="$CC $ac_cv_prog_cc_c89"
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3714 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3716 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721 ac_cpp='$CPP $CPPFLAGS'
3722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 DEPDIR="${am__leading_dot}deps"
3727 ac_config_commands="$ac_config_commands depfiles"
3730 am_make=${MAKE-make}
3731 cat > confinc << 'END'
3733 @echo this is the am__doit target
3736 # If we don't find an include directive, just comment out the code.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3738 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3742 # First try GNU make style include.
3743 echo "include confinc" > confmf
3744 # Ignore all kinds of additional output from `make'.
3745 case `$am_make -s -f confmf 2> /dev/null` in #(
3746 *the\ am__doit\ target*)
3752 # Now try BSD make style include.
3753 if test "$am__include" = "#"; then
3754 echo '.include "confinc"' > confmf
3755 case `$am_make -s -f confmf 2> /dev/null` in #(
3756 *the\ am__doit\ target*)
3757 am__include=.include
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3766 $as_echo "$_am_result" >&6; }
3767 rm -f confinc confmf
3769 # Check whether --enable-dependency-tracking was given.
3770 if test "${enable_dependency_tracking+set}" = set; then :
3771 enableval=$enable_dependency_tracking;
3774 if test "x$enable_dependency_tracking" != xno; then
3775 am_depcomp="$ac_aux_dir/depcomp"
3778 if test "x$enable_dependency_tracking" != xno; then
3788 depcc="$CC" am_compiler_list=
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3791 $as_echo_n "checking dependency style of $depcc... " >&6; }
3792 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3795 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3796 # We make a subdir and do the tests there. Otherwise we can end up
3797 # making bogus files that we don't know about and never remove. For
3798 # instance it was reported that on HP-UX the gcc test will end up
3799 # making a dummy file named `D' -- because `-MD' means `put the output
3802 # Copy depcomp to subdir because otherwise we won't find it if we're
3803 # using a relative directory.
3804 cp "$am_depcomp" conftest.dir
3806 # We will build objects and dependencies in a subdirectory because
3807 # it helps to detect inapplicable dependency modes. For instance
3808 # both Tru64's cc and ICC support -MD to output dependencies as a
3809 # side effect of compilation, but ICC will put the dependencies in
3810 # the current directory while Tru64 will put them in the object
3814 am_cv_CC_dependencies_compiler_type=none
3815 if test "$am_compiler_list" = ""; then
3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3819 case " $depcc " in #(
3820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3823 for depmode in $am_compiler_list; do
3824 # Setup a source with many dependencies, because some compilers
3825 # like to wrap large dependency lists on column 80 (with \), and
3826 # we should not choose a depcomp mode which is confused by this.
3828 # We need to recreate these files for each test, as the compiler may
3829 # overwrite some of them when testing with obscure command lines.
3830 # This happens at least with the AIX C compiler.
3832 for i in 1 2 3 4 5 6; do
3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3835 # Solaris 8's {/usr,}/bin/sh.
3836 touch sub/conftst$i.h
3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3841 # mode. It turns out that the SunPro C++ compiler does not properly
3842 # handle `-M -o', and we need to detect this. Also, some Intel
3843 # versions had trouble with output in subdirs
3844 am__obj=sub/conftest.${OBJEXT-o}
3845 am__minus_obj="-o $am__obj"
3848 # This depmode causes a compiler race in universal mode.
3849 test "$am__universal" = false || continue
3852 # after this tag, mechanisms are not by side-effect, so they'll
3853 # only be used when explicitly requested
3854 if test "x$enable_dependency_tracking" = xyes; then
3860 msvisualcpp | msvcmsys)
3861 # This compiler won't grok `-c -o', but also, the minuso test has
3862 # not run yet. These depmodes are late enough in the game, and
3863 # so weak that their functioning should not be impacted.
3864 am__obj=conftest.${OBJEXT-o}
3869 if depmode=$depmode \
3870 source=sub/conftest.c object=$am__obj \
3871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3873 >/dev/null 2>conftest.err &&
3874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3878 # icc doesn't choke on unknown options, it will just issue warnings
3879 # or remarks (even with -Werror). So we grep stderr for any message
3880 # that says an option was ignored or not supported.
3881 # When given -MP, icc 7.0 and 7.1 complain thusly:
3882 # icc: Command line warning: ignoring option '-M'; no argument required
3883 # The diagnosis changed in icc 8.0:
3884 # icc: Command line remark: option '-MP' not supported
3885 if (grep 'ignoring option' conftest.err ||
3886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3887 am_cv_CC_dependencies_compiler_type=$depmode
3896 am_cv_CC_dependencies_compiler_type=none
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3905 test "x$enable_dependency_tracking" != xno \
3906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3908 am__fastdepCC_FALSE='#'
3910 am__fastdepCC_TRUE='#'
3911 am__fastdepCC_FALSE=
3916 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3917 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_GOC+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$GOC"; then
3928 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$GOC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3950 $as_echo "$GOC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$ac_cv_prog_GOC"; then
3960 # Extract the first word of "gccgo", so it can be a program name with args.
3961 set dummy gccgo; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$ac_ct_GOC"; then
3968 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_ac_ct_GOC="gccgo"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3988 if test -n "$ac_ct_GOC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3990 $as_echo "$ac_ct_GOC" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3996 if test "x$ac_ct_GOC" = x; then
3999 case $cross_compiling:$ac_tool_warned in
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4008 GOC="$ac_cv_prog_GOC"
4011 if test -z "$GOC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4014 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_prog_GOC+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4020 if test -n "$GOC"; then
4021 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4030 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 if test -n "$GOC"; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4043 $as_echo "$GOC" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046 $as_echo "no" >&6; }
4052 if test -z "$GOC"; then
4053 # Extract the first word of "gccgo", so it can be a program name with args.
4054 set dummy gccgo; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_GOC+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4060 if test -n "$GOC"; then
4061 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4072 ac_prog_rejected=yes
4075 ac_cv_prog_GOC="gccgo"
4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 if test $ac_prog_rejected = yes; then
4084 # We found a bogon in the path, so make sure we never use it.
4085 set dummy $ac_cv_prog_GOC
4087 if test $# != 0; then
4088 # We chose a different compiler from the bogus one.
4089 # However, it has the same basename, so the bogon will be chosen
4090 # first if we set GOC to just the basename; use the full file name.
4092 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4098 if test -n "$GOC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4100 $as_echo "$GOC" >&6; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103 $as_echo "no" >&6; }
4110 # Provide some information about the compiler.
4111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4114 { { ac_try="$ac_compiler --version >&5"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_compiler --version >&5") 2>conftest.err
4123 if test -s conftest.err; then
4125 ... rest of stderr output deleted ...
4126 10q' conftest.err >conftest.er1
4127 cat conftest.er1 >&5
4128 rm -f conftest.er1 conftest.err
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4146 # Check whether --enable-maintainer-mode was given.
4147 if test "${enable_maintainer_mode+set}" = set; then :
4148 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4150 USE_MAINTAINER_MODE=no
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4155 if test $USE_MAINTAINER_MODE = yes; then
4156 MAINTAINER_MODE_TRUE=
4157 MAINTAINER_MODE_FALSE='#'
4159 MAINTAINER_MODE_TRUE='#'
4160 MAINTAINER_MODE_FALSE=
4163 MAINT=$MAINTAINER_MODE_TRUE
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4168 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4169 if test "${ac_cv_path_SED+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4172 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4173 for ac_i in 1 2 3 4 5 6 7; do
4174 ac_script="$ac_script$as_nl$ac_script"
4176 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4177 { ac_script=; unset ac_script;}
4178 if test -z "$SED"; then
4179 ac_path_SED_found=false
4180 # Loop through the user's path and test for each of PROGNAME-LIST
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 for ac_prog in sed gsed; do
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4189 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4190 # Check for GNU ac_path_SED and select it if it is found.
4191 # Check for GNU $ac_path_SED
4192 case `"$ac_path_SED" --version 2>&1` in
4194 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197 $as_echo_n 0123456789 >"conftest.in"
4200 cat "conftest.in" "conftest.in" >"conftest.tmp"
4201 mv "conftest.tmp" "conftest.in"
4202 cp "conftest.in" "conftest.nl"
4203 $as_echo '' >> "conftest.nl"
4204 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 as_fn_arith $ac_count + 1 && ac_count=$as_val
4207 if test $ac_count -gt ${ac_path_SED_max-0}; then
4208 # Best one so far, save it but keep looking for a better one
4209 ac_cv_path_SED="$ac_path_SED"
4210 ac_path_SED_max=$ac_count
4212 # 10*(2^10) chars as input seems more than enough
4213 test $ac_count -gt 10 && break
4215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 $ac_path_SED_found && break 3
4223 if test -z "$ac_cv_path_SED"; then
4224 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4232 $as_echo "$ac_cv_path_SED" >&6; }
4233 SED="$ac_cv_path_SED"
4236 test -z "$SED" && SED=sed
4237 Xsed="$SED -e 1s/^X//"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4250 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4251 if test "${ac_cv_path_GREP+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4254 if test -z "$GREP"; then
4255 ac_path_GREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in grep ggrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4265 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4266 # Check for GNU ac_path_GREP and select it if it is found.
4267 # Check for GNU $ac_path_GREP
4268 case `"$ac_path_GREP" --version 2>&1` in
4270 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4273 $as_echo_n 0123456789 >"conftest.in"
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 $as_echo 'GREP' >> "conftest.nl"
4280 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 as_fn_arith $ac_count + 1 && ac_count=$as_val
4283 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_GREP="$ac_path_GREP"
4286 ac_path_GREP_max=$ac_count
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 $ac_path_GREP_found && break 3
4299 if test -z "$ac_cv_path_GREP"; then
4300 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 ac_cv_path_GREP=$GREP
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4308 $as_echo "$ac_cv_path_GREP" >&6; }
4309 GREP="$ac_cv_path_GREP"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4313 $as_echo_n "checking for egrep... " >&6; }
4314 if test "${ac_cv_path_EGREP+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4318 then ac_cv_path_EGREP="$GREP -E"
4320 if test -z "$EGREP"; then
4321 ac_path_EGREP_found=false
4322 # Loop through the user's path and test for each of PROGNAME-LIST
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4327 test -z "$as_dir" && as_dir=.
4328 for ac_prog in egrep; do
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4331 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4332 # Check for GNU ac_path_EGREP and select it if it is found.
4333 # Check for GNU $ac_path_EGREP
4334 case `"$ac_path_EGREP" --version 2>&1` in
4336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4339 $as_echo_n 0123456789 >"conftest.in"
4342 cat "conftest.in" "conftest.in" >"conftest.tmp"
4343 mv "conftest.tmp" "conftest.in"
4344 cp "conftest.in" "conftest.nl"
4345 $as_echo 'EGREP' >> "conftest.nl"
4346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348 as_fn_arith $ac_count + 1 && ac_count=$as_val
4349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4350 # Best one so far, save it but keep looking for a better one
4351 ac_cv_path_EGREP="$ac_path_EGREP"
4352 ac_path_EGREP_max=$ac_count
4354 # 10*(2^10) chars as input seems more than enough
4355 test $ac_count -gt 10 && break
4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4360 $ac_path_EGREP_found && break 3
4365 if test -z "$ac_cv_path_EGREP"; then
4366 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4369 ac_cv_path_EGREP=$EGREP
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4375 $as_echo "$ac_cv_path_EGREP" >&6; }
4376 EGREP="$ac_cv_path_EGREP"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4380 $as_echo_n "checking for fgrep... " >&6; }
4381 if test "${ac_cv_path_FGREP+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4384 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4385 then ac_cv_path_FGREP="$GREP -F"
4387 if test -z "$FGREP"; then
4388 ac_path_FGREP_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in fgrep; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4399 # Check for GNU ac_path_FGREP and select it if it is found.
4400 # Check for GNU $ac_path_FGREP
4401 case `"$ac_path_FGREP" --version 2>&1` in
4403 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4406 $as_echo_n 0123456789 >"conftest.in"
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'FGREP' >> "conftest.nl"
4413 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_FGREP="$ac_path_FGREP"
4419 ac_path_FGREP_max=$ac_count
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4427 $ac_path_FGREP_found && break 3
4432 if test -z "$ac_cv_path_FGREP"; then
4433 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4436 ac_cv_path_FGREP=$FGREP
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4442 $as_echo "$ac_cv_path_FGREP" >&6; }
4443 FGREP="$ac_cv_path_FGREP"
4446 test -z "$GREP" && GREP=grep
4464 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4465 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4466 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4469 $as_echo_n "checking how to print strings... " >&6; }
4470 # Test print first, because it will be a builtin if present.
4471 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4472 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4474 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4477 # Use this function as a fallback that always works.
4478 func_fallback_echo ()
4480 eval 'cat <<_LTECHO_EOF
4484 ECHO='func_fallback_echo'
4487 # func_echo_all arg...
4488 # Invoke $ECHO with all args, space-separated.
4495 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4496 $as_echo "printf" >&6; } ;;
4497 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4498 $as_echo "print -r" >&6; } ;;
4499 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4500 $as_echo "cat" >&6; } ;;
4518 # Check whether --with-gnu-ld was given.
4519 if test "${with_gnu_ld+set}" = set; then :
4520 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4526 if test "$GCC" = yes; then
4527 # Check if gcc -print-prog-name=ld gives a path.
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4529 $as_echo_n "checking for ld used by $CC... " >&6; }
4532 # gcc leaves a trailing carriage return which upsets mingw
4533 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4538 # Accept absolute paths.
4540 re_direlt='/[^/][^/]*/\.\./'
4541 # Canonicalize the pathname of ld
4542 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4543 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4544 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4546 test -z "$LD" && LD="$ac_prog"
4549 # If it fails, then pretend we aren't using GCC.
4553 # If it is relative, then search for the first ld in PATH.
4557 elif test "$with_gnu_ld" = yes; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4559 $as_echo_n "checking for GNU ld... " >&6; }
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4562 $as_echo_n "checking for non-GNU ld... " >&6; }
4564 if test "${lt_cv_path_LD+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -z "$LD"; then
4568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4569 for ac_dir in $PATH; do
4571 test -z "$ac_dir" && ac_dir=.
4572 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4573 lt_cv_path_LD="$ac_dir/$ac_prog"
4574 # Check to see if the program is GNU ld. I'd rather use --version,
4575 # but apparently some variants of GNU ld only accept -v.
4576 # Break only if it was the GNU/non-GNU ld that we prefer.
4577 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4578 *GNU* | *'with BFD'*)
4579 test "$with_gnu_ld" != no && break
4582 test "$with_gnu_ld" != yes && break
4589 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4594 if test -n "$LD"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4596 $as_echo "$LD" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4601 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4603 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4604 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4607 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4608 case `$LD -v 2>&1 </dev/null` in
4609 *GNU* | *'with BFD'*)
4610 lt_cv_prog_gnu_ld=yes
4613 lt_cv_prog_gnu_ld=no
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4618 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4619 with_gnu_ld=$lt_cv_prog_gnu_ld
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$RANLIB"; then
4638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 RANLIB=$ac_cv_prog_RANLIB
4658 if test -n "$RANLIB"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4660 $as_echo "$RANLIB" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$ac_cv_prog_RANLIB"; then
4669 ac_ct_RANLIB=$RANLIB
4670 # Extract the first word of "ranlib", so it can be a program name with args.
4671 set dummy ranlib; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4677 if test -n "$ac_ct_RANLIB"; then
4678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_RANLIB="ranlib"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4698 if test -n "$ac_ct_RANLIB"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4700 $as_echo "$ac_ct_RANLIB" >&6; }
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4706 if test "x$ac_ct_RANLIB" = x; then
4709 case $cross_compiling:$ac_tool_warned in
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4715 RANLIB=$ac_ct_RANLIB
4718 RANLIB="$ac_cv_prog_RANLIB"
4721 if test -n "$ac_tool_prefix"; then
4722 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4723 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$OBJCOPY"; then
4730 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 OBJCOPY=$ac_cv_prog_OBJCOPY
4750 if test -n "$OBJCOPY"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4752 $as_echo "$OBJCOPY" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4760 if test -z "$ac_cv_prog_OBJCOPY"; then
4761 ac_ct_OBJCOPY=$OBJCOPY
4762 # Extract the first word of "objcopy", so it can be a program name with args.
4763 set dummy objcopy; ac_word=$2
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4765 $as_echo_n "checking for $ac_word... " >&6; }
4766 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 if test -n "$ac_ct_OBJCOPY"; then
4770 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4790 if test -n "$ac_ct_OBJCOPY"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4792 $as_echo "$ac_ct_OBJCOPY" >&6; }
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4798 if test "x$ac_ct_OBJCOPY" = x; then
4799 OBJCOPY="missing-objcopy"
4801 case $cross_compiling:$ac_tool_warned in
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805 ac_tool_warned=yes ;;
4807 OBJCOPY=$ac_ct_OBJCOPY
4810 OBJCOPY="$ac_cv_prog_OBJCOPY"
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4821 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4826 macro_version='2.2.7a'
4827 macro_revision='1.3134'
4841 ltmain="$ac_aux_dir/ltmain.sh"
4843 # Backslashify metacharacters that are still active within
4844 # double-quoted strings.
4845 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4847 # Same as above, but do not quote variable references.
4848 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4850 # Sed substitution to delay expansion of an escaped shell variable in a
4851 # double_quote_subst'ed string.
4852 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4854 # Sed substitution to delay expansion of an escaped single quote.
4855 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4857 # Sed substitution to avoid accidental globbing in evaled expressions
4858 no_glob_subst='s/\*/\\\*/g'
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4861 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4862 if test "${lt_cv_path_NM+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4865 if test -n "$NM"; then
4866 # Let the user override the test.
4869 lt_nm_to_check="${ac_tool_prefix}nm"
4870 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4871 lt_nm_to_check="$lt_nm_to_check nm"
4873 for lt_tmp_nm in $lt_nm_to_check; do
4874 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4875 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4877 test -z "$ac_dir" && ac_dir=.
4878 tmp_nm="$ac_dir/$lt_tmp_nm"
4879 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4880 # Check to see if the nm accepts a BSD-compat flag.
4881 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4882 # nm: unknown option "B" ignored
4883 # Tru64's nm complains that /dev/null is an invalid object file
4884 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4885 */dev/null* | *'Invalid file or object type'*)
4886 lt_cv_path_NM="$tmp_nm -B"
4890 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4892 lt_cv_path_NM="$tmp_nm -p"
4896 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4897 continue # so that we can try to find one that supports BSD flags
4906 : ${lt_cv_path_NM=no}
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4910 $as_echo "$lt_cv_path_NM" >&6; }
4911 if test "$lt_cv_path_NM" != "no"; then
4914 # Didn't find any BSD compatible name lister, look for dumpbin.
4915 if test -n "$DUMPBIN"; then :
4916 # Let the user override the test.
4918 if test -n "$ac_tool_prefix"; then
4919 for ac_prog in dumpbin "link -dump"
4921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4928 if test -n "$DUMPBIN"; then
4929 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 DUMPBIN=$ac_cv_prog_DUMPBIN
4949 if test -n "$DUMPBIN"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4951 $as_echo "$DUMPBIN" >&6; }
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 test -n "$DUMPBIN" && break
4961 if test -z "$DUMPBIN"; then
4962 ac_ct_DUMPBIN=$DUMPBIN
4963 for ac_prog in dumpbin "link -dump"
4965 # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$ac_ct_DUMPBIN"; then
4973 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4993 if test -n "$ac_ct_DUMPBIN"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4995 $as_echo "$ac_ct_DUMPBIN" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 test -n "$ac_ct_DUMPBIN" && break
5005 if test "x$ac_ct_DUMPBIN" = x; then
5008 case $cross_compiling:$ac_tool_warned in
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5014 DUMPBIN=$ac_ct_DUMPBIN
5018 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5020 DUMPBIN="$DUMPBIN -symbols"
5028 if test "$DUMPBIN" != ":"; then
5032 test -z "$NM" && NM=nm
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5040 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5041 if test "${lt_cv_nm_interface+set}" = set; then :
5042 $as_echo_n "(cached) " >&6
5044 lt_cv_nm_interface="BSD nm"
5045 echo "int some_variable = 0;" > conftest.$ac_ext
5046 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5047 (eval "$ac_compile" 2>conftest.err)
5048 cat conftest.err >&5
5049 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5050 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5051 cat conftest.err >&5
5052 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5053 cat conftest.out >&5
5054 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5055 lt_cv_nm_interface="MS dumpbin"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5060 $as_echo "$lt_cv_nm_interface" >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5063 $as_echo_n "checking whether ln -s works... " >&6; }
5065 if test "$LN_S" = "ln -s"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5067 $as_echo "yes" >&6; }
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5070 $as_echo "no, using $LN_S" >&6; }
5073 # find the maximum length of command line arguments
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5075 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5076 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5084 # On DJGPP, this test can blow up pretty badly due to problems in libc
5085 # (any single argument exceeding 2000 bytes causes a buffer overrun
5086 # during glob expansion). Even if it were fixed, the result of this
5087 # check would be larger than it should be.
5088 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5092 # Under GNU Hurd, this test is not required because there is
5093 # no limit to the length of command line arguments.
5094 # Libtool will interpret -1 as no limit whatsoever
5095 lt_cv_sys_max_cmd_len=-1;
5098 cygwin* | mingw* | cegcc*)
5099 # On Win9x/ME, this test blows up -- it succeeds, but takes
5100 # about 5 minutes as the teststring grows exponentially.
5101 # Worse, since 9x/ME are not pre-emptively multitasking,
5102 # you end up with a "frozen" computer, even though with patience
5103 # the test eventually succeeds (with a max line length of 256k).
5104 # Instead, let's just punt: use the minimum linelength reported by
5105 # all of the supported platforms: 8192 (on NT/2K/XP).
5106 lt_cv_sys_max_cmd_len=8192;
5110 # On MiNT this can take a long time and run out of memory.
5111 lt_cv_sys_max_cmd_len=8192;
5115 # On AmigaOS with pdksh, this test takes hours, literally.
5116 # So we just punt and use a minimum line length of 8192.
5117 lt_cv_sys_max_cmd_len=8192;
5120 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5121 # This has been around since 386BSD, at least. Likely further.
5122 if test -x /sbin/sysctl; then
5123 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5124 elif test -x /usr/sbin/sysctl; then
5125 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5127 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5129 # And add a safety zone
5130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5135 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5136 lt_cv_sys_max_cmd_len=196608
5140 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5141 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5142 # nice to cause kernel panics so lets avoid the loop below.
5143 # First set a reasonable default.
5144 lt_cv_sys_max_cmd_len=16384
5146 if test -x /sbin/sysconfig; then
5147 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5148 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5153 lt_cv_sys_max_cmd_len=102400
5155 sysv5* | sco5v6* | sysv4.2uw2*)
5156 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5157 if test -n "$kargmax"; then
5158 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5160 lt_cv_sys_max_cmd_len=32768
5164 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5165 if test -n "$lt_cv_sys_max_cmd_len"; then
5166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5167 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5169 # Make teststring a little bigger before we do anything with it.
5170 # a 1K string should be a reasonable start.
5171 for i in 1 2 3 4 5 6 7 8 ; do
5172 teststring=$teststring$teststring
5174 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5175 # If test is not a shell built-in, we'll probably end up computing a
5176 # maximum length that is only half of the actual maximum length, but
5178 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5179 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5180 test $i != 17 # 1/2 MB should be enough
5183 teststring=$teststring$teststring
5185 # Only check the string length outside the loop.
5186 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5188 # Add a significant safety factor because C++ compilers can tack on
5189 # massive amounts of additional arguments before passing them to the
5190 # linker. It appears as though 1/2 is a usable value.
5191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5198 if test -n $lt_cv_sys_max_cmd_len ; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5200 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5203 $as_echo "none" >&6; }
5205 max_cmd_len=$lt_cv_sys_max_cmd_len
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5217 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5218 # Try some XSI features
5221 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5223 && eval 'test $(( 1 + 1 )) -eq 2 \
5224 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5227 $as_echo "$xsi_shell" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5231 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5233 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5235 && lt_shell_append=yes
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5237 $as_echo "$lt_shell_append" >&6; }
5240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5250 # test EBCDIC or ASCII
5251 case `echo X|tr X '\101'` in
5252 A) # ASCII based system
5253 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5254 lt_SP2NL='tr \040 \012'
5255 lt_NL2SP='tr \015\012 \040\040'
5257 *) # EBCDIC based system
5258 lt_SP2NL='tr \100 \n'
5259 lt_NL2SP='tr \r\n \100\100'
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5272 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5273 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 lt_cv_ld_reload_flag='-r'
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5279 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5280 reload_flag=$lt_cv_ld_reload_flag
5281 case $reload_flag in
5283 *) reload_flag=" $reload_flag" ;;
5285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5288 if test "$GCC" = yes; then
5289 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5291 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 if test -n "$OBJDUMP"; then
5313 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 OBJDUMP=$ac_cv_prog_OBJDUMP
5333 if test -n "$OBJDUMP"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5335 $as_echo "$OBJDUMP" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5343 if test -z "$ac_cv_prog_OBJDUMP"; then
5344 ac_ct_OBJDUMP=$OBJDUMP
5345 # Extract the first word of "objdump", so it can be a program name with args.
5346 set dummy objdump; 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_ac_ct_OBJDUMP+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$ac_ct_OBJDUMP"; then
5353 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_ac_ct_OBJDUMP="objdump"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5373 if test -n "$ac_ct_OBJDUMP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5375 $as_echo "$ac_ct_OBJDUMP" >&6; }
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5381 if test "x$ac_ct_OBJDUMP" = x; then
5384 case $cross_compiling:$ac_tool_warned in
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5388 ac_tool_warned=yes ;;
5390 OBJDUMP=$ac_ct_OBJDUMP
5393 OBJDUMP="$ac_cv_prog_OBJDUMP"
5396 test -z "$OBJDUMP" && OBJDUMP=objdump
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5407 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5408 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5411 lt_cv_file_magic_cmd='$MAGIC_CMD'
5412 lt_cv_file_magic_test_file=
5413 lt_cv_deplibs_check_method='unknown'
5414 # Need to set the preceding variable on all platforms that support
5415 # interlibrary dependencies.
5416 # 'none' -- dependencies not supported.
5417 # `unknown' -- same as none, but documents that we really don't know.
5418 # 'pass_all' -- all dependencies passed with no checks.
5419 # 'test_compile' -- check by making test program.
5420 # 'file_magic [[regex]]' -- check by looking for files in library path
5421 # which responds to the $file_magic_cmd with a given extended regex.
5422 # If you have `file' or equivalent on your system and you're not sure
5423 # whether `pass_all' will *always* work, you probably want this one.
5427 lt_cv_deplibs_check_method=pass_all
5431 lt_cv_deplibs_check_method=pass_all
5435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5436 lt_cv_file_magic_cmd='/usr/bin/file -L'
5437 lt_cv_file_magic_test_file=/shlib/libc.so
5441 # func_win32_libid is a shell function defined in ltmain.sh
5442 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5443 lt_cv_file_magic_cmd='func_win32_libid'
5447 # Base MSYS/MinGW do not provide the 'file' command needed by
5448 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5449 # unless we find 'file', for example because we are cross-compiling.
5450 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5451 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5453 lt_cv_file_magic_cmd='func_win32_libid'
5455 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5456 lt_cv_file_magic_cmd='$OBJDUMP -f'
5461 # use the weaker test based on 'objdump'. See mingw*.
5462 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5463 lt_cv_file_magic_cmd='$OBJDUMP -f'
5466 darwin* | rhapsody*)
5467 lt_cv_deplibs_check_method=pass_all
5470 freebsd* | dragonfly*)
5471 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5474 # Not sure whether the presence of OpenBSD here was a mistake.
5475 # Let's accept both of them until this is cleared up.
5476 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5482 lt_cv_deplibs_check_method=pass_all
5487 lt_cv_deplibs_check_method=pass_all
5491 lt_cv_deplibs_check_method=pass_all
5494 hpux10.20* | hpux11*)
5495 lt_cv_file_magic_cmd=/usr/bin/file
5498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5499 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5502 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]'
5503 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5507 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5513 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5517 irix5* | irix6* | nonstopux*)
5519 *-32|*"-32 ") libmagic=32-bit;;
5520 *-n32|*"-n32 ") libmagic=N32;;
5521 *-64|*"-64 ") libmagic=64-bit;;
5522 *) libmagic=never-match;;
5524 lt_cv_deplibs_check_method=pass_all
5527 # This must be Linux ELF.
5528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5529 lt_cv_deplibs_check_method=pass_all
5533 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5542 lt_cv_file_magic_cmd=/usr/bin/file
5543 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5547 lt_cv_deplibs_check_method=pass_all
5551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5558 osf3* | osf4* | osf5*)
5559 lt_cv_deplibs_check_method=pass_all
5563 lt_cv_deplibs_check_method=pass_all
5567 lt_cv_deplibs_check_method=pass_all
5570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5571 lt_cv_deplibs_check_method=pass_all
5575 case $host_vendor in
5577 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]'
5578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5581 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_file_magic_cmd='/bin/file'
5585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5588 lt_cv_file_magic_cmd='/bin/file'
5589 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5590 lt_cv_file_magic_test_file=/lib/libc.so
5593 lt_cv_deplibs_check_method=pass_all
5596 lt_cv_deplibs_check_method=pass_all
5602 lt_cv_deplibs_check_method=pass_all
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5608 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5609 file_magic_cmd=$lt_cv_file_magic_cmd
5610 deplibs_check_method=$lt_cv_deplibs_check_method
5611 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5624 if test -n "$ac_tool_prefix"; then
5625 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}ar; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_AR+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 if test -n "$AR"; then
5633 ac_cv_prog_AR="$AR" # Let the user override the test.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_AR="${ac_tool_prefix}ar"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 if test -n "$AR"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5655 $as_echo "$AR" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5663 if test -z "$ac_cv_prog_AR"; then
5665 # Extract the first word of "ar", so it can be a program name with args.
5666 set dummy ar; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5672 if test -n "$ac_ct_AR"; then
5673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_ac_ct_AR="ar"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5693 if test -n "$ac_ct_AR"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5695 $as_echo "$ac_ct_AR" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5701 if test "x$ac_ct_AR" = x; then
5704 case $cross_compiling:$ac_tool_warned in
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5716 test -z "$AR" && AR=ar
5717 test -z "$AR_FLAGS" && AR_FLAGS=cru
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}strip; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_STRIP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$STRIP"; then
5738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 STRIP=$ac_cv_prog_STRIP
5758 if test -n "$STRIP"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5760 $as_echo "$STRIP" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5768 if test -z "$ac_cv_prog_STRIP"; then
5770 # Extract the first word of "strip", so it can be a program name with args.
5771 set dummy strip; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
5777 if test -n "$ac_ct_STRIP"; then
5778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_ac_ct_STRIP="strip"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798 if test -n "$ac_ct_STRIP"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5800 $as_echo "$ac_ct_STRIP" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5806 if test "x$ac_ct_STRIP" = x; then
5809 case $cross_compiling:$ac_tool_warned in
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5818 STRIP="$ac_cv_prog_STRIP"
5821 test -z "$STRIP" && STRIP=:
5828 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$RANLIB"; then
5837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 RANLIB=$ac_cv_prog_RANLIB
5857 if test -n "$RANLIB"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5859 $as_echo "$RANLIB" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5867 if test -z "$ac_cv_prog_RANLIB"; then
5868 ac_ct_RANLIB=$RANLIB
5869 # Extract the first word of "ranlib", so it can be a program name with args.
5870 set dummy ranlib; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5876 if test -n "$ac_ct_RANLIB"; then
5877 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_ac_ct_RANLIB="ranlib"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5897 if test -n "$ac_ct_RANLIB"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5899 $as_echo "$ac_ct_RANLIB" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5905 if test "x$ac_ct_RANLIB" = x; then
5908 case $cross_compiling:$ac_tool_warned in
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912 ac_tool_warned=yes ;;
5914 RANLIB=$ac_ct_RANLIB
5917 RANLIB="$ac_cv_prog_RANLIB"
5920 test -z "$RANLIB" && RANLIB=:
5927 # Determine commands to create old-style static archives.
5928 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5929 old_postinstall_cmds='chmod 644 $oldlib'
5930 old_postuninstall_cmds=
5932 if test -n "$RANLIB"; then
5935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5941 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5946 lock_old_archive_extraction=yes ;;
5948 lock_old_archive_extraction=no ;;
5989 # If no C compiler was specified, use CC.
5992 # If no C compiler flags were specified, use CFLAGS.
5993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5995 # Allow CC to be a program name with arguments.
5999 # Check for command to grab the raw symbol name followed by C symbol from nm.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6001 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6002 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6006 # These are sane defaults that work on at least a few old systems.
6007 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6009 # Character class describing NM global symbol codes.
6010 symcode='[BCDEGRST]'
6012 # Regexp to match symbols that can be accessed directly from C.
6013 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6015 # Define system-specific variables.
6020 cygwin* | mingw* | pw32* | cegcc*)
6021 symcode='[ABCDGISTW]'
6024 if test "$host_cpu" = ia64; then
6025 symcode='[ABCDEGRST]'
6029 symcode='[BCDEGRST]'
6032 symcode='[BCDEGQRST]'
6043 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6051 # If we're using GNU nm, then use its standard symbol codes.
6052 case `$NM -V 2>&1` in
6053 *GNU* | *'with BFD'*)
6054 symcode='[ABCDGIRSTW]' ;;
6057 # Transform an extracted symbol line into a proper C declaration.
6058 # Some systems (esp. on ia64) link data and code symbols differently,
6059 # so use this general approach.
6060 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6062 # Transform an extracted symbol line into symbol name and symbol address
6063 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6064 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'"
6066 # Handle CRLF in mingw tool chain
6070 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6074 # Try without a prefix underscore, then with it.
6075 for ac_symprfx in "" "_"; do
6077 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6078 symxfrm="\\1 $ac_symprfx\\2 \\2"
6080 # Write the raw and C identifiers.
6081 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6082 # Fake it for dumpbin and say T for any non-static function
6083 # and D for any global variable.
6084 # Also find C++ and __fastcall symbols from MSVC++,
6085 # which start with @ or ?.
6086 lt_cv_sys_global_symbol_pipe="$AWK '"\
6087 " {last_section=section; section=\$ 3};"\
6088 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6089 " \$ 0!~/External *\|/{next};"\
6090 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6091 " {if(hide[section]) next};"\
6092 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6093 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6094 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6095 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6096 " ' prfx=^$ac_symprfx"
6098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6101 # Check to see that the pipe works correctly.
6105 cat > conftest.$ac_ext <<_LT_EOF
6110 void nm_test_func(void);
6111 void nm_test_func(void){}
6115 int main(){nm_test_var='a';nm_test_func();return(0);}
6118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6119 (eval $ac_compile) 2>&5
6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; }; then
6123 # Now try to grab the symbols.
6125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6126 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129 test $ac_status = 0; } && test -s "$nlist"; then
6130 # Try sorting and uniquifying the output.
6131 if sort "$nlist" | uniq > "$nlist"T; then
6132 mv -f "$nlist"T "$nlist"
6137 # Make sure that we snagged all the symbols we need.
6138 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6139 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6140 cat <<_LT_EOF > conftest.$ac_ext
6146 # Now generate the symbol file.
6147 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6149 cat <<_LT_EOF >> conftest.$ac_ext
6151 /* The mapping between symbol names and symbols. */
6156 lt__PROGRAM__LTX_preloaded_symbols[] =
6158 { "@PROGRAM@", (void *) 0 },
6160 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6161 cat <<\_LT_EOF >> conftest.$ac_ext
6165 /* This works around a problem in FreeBSD linker */
6166 #ifdef FREEBSD_WORKAROUND
6167 static const void *lt_preloaded_setup() {
6168 return lt__PROGRAM__LTX_preloaded_symbols;
6176 # Now try linking the two files.
6177 mv conftest.$ac_objext conftstm.$ac_objext
6178 lt_save_LIBS="$LIBS"
6179 lt_save_CFLAGS="$CFLAGS"
6180 LIBS="conftstm.$ac_objext"
6181 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6183 (eval $ac_link) 2>&5
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6189 LIBS="$lt_save_LIBS"
6190 CFLAGS="$lt_save_CFLAGS"
6192 echo "cannot find nm_test_func in $nlist" >&5
6195 echo "cannot find nm_test_var in $nlist" >&5
6198 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6201 echo "$progname: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 rm -rf conftest* conftst*
6206 # Do not use the global_symbol_pipe unless it works.
6207 if test "$pipe_works" = yes; then
6210 lt_cv_sys_global_symbol_pipe=
6216 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6217 lt_cv_sys_global_symbol_to_cdecl=
6219 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6221 $as_echo "failed" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6224 $as_echo "ok" >&6; }
6249 # Check whether --enable-libtool-lock was given.
6250 if test "${enable_libtool_lock+set}" = set; then :
6251 enableval=$enable_libtool_lock;
6254 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6256 # Some flags need to be propagated to the compiler or linker for good
6260 # Find out which ABI we are using.
6261 echo 'int i;' > conftest.$ac_ext
6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6263 (eval $ac_compile) 2>&5
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; }; then
6267 case `/usr/bin/file conftest.$ac_objext` in
6279 # Find out which ABI we are using.
6280 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6282 (eval $ac_compile) 2>&5
6284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285 test $ac_status = 0; }; then
6286 if test "$lt_cv_prog_gnu_ld" = yes; then
6287 case `/usr/bin/file conftest.$ac_objext` in
6289 LD="${LD-ld} -melf32bsmip"
6292 LD="${LD-ld} -melf32bmipn32"
6295 LD="${LD-ld} -melf64bmip"
6299 case `/usr/bin/file conftest.$ac_objext` in
6315 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6316 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6317 # Find out which ABI we are using.
6318 echo 'int i;' > conftest.$ac_ext
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6320 (eval $ac_compile) 2>&5
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; }; then
6324 case `/usr/bin/file conftest.o` in
6327 x86_64-*kfreebsd*-gnu)
6328 LD="${LD-ld} -m elf_i386_fbsd"
6331 LD="${LD-ld} -m elf_i386"
6333 ppc64-*linux*|powerpc64-*linux*)
6334 LD="${LD-ld} -m elf32ppclinux"
6337 LD="${LD-ld} -m elf_s390"
6340 LD="${LD-ld} -m elf32_sparc"
6346 x86_64-*kfreebsd*-gnu)
6347 LD="${LD-ld} -m elf_x86_64_fbsd"
6350 LD="${LD-ld} -m elf_x86_64"
6352 ppc*-*linux*|powerpc*-*linux*)
6353 LD="${LD-ld} -m elf64ppc"
6355 s390*-*linux*|s390*-*tpf*)
6356 LD="${LD-ld} -m elf64_s390"
6359 LD="${LD-ld} -m elf64_sparc"
6369 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6370 SAVE_CFLAGS="$CFLAGS"
6371 CFLAGS="$CFLAGS -belf"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6373 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6374 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6378 ac_cpp='$CPP $CPPFLAGS'
6379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6394 if ac_fn_c_try_link "$LINENO"; then :
6395 lt_cv_cc_needs_belf=yes
6397 lt_cv_cc_needs_belf=no
6399 rm -f core conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6402 ac_cpp='$CPP $CPPFLAGS'
6403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6409 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6412 CFLAGS="$SAVE_CFLAGS"
6416 # Find out which ABI we are using.
6417 echo 'int i;' > conftest.$ac_ext
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 case `/usr/bin/file conftest.o` in
6425 case $lt_cv_prog_gnu_ld in
6428 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6429 LD="${LD-ld} -m elf_x86_64"
6432 LD="${LD-ld} -m elf64_sparc"
6435 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6436 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6441 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6453 need_locks="$enable_libtool_lock"
6457 rhapsody* | darwin*)
6458 if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6460 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$DSYMUTIL"; then
6467 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6487 if test -n "$DSYMUTIL"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6489 $as_echo "$DSYMUTIL" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6497 if test -z "$ac_cv_prog_DSYMUTIL"; then
6498 ac_ct_DSYMUTIL=$DSYMUTIL
6499 # Extract the first word of "dsymutil", so it can be a program name with args.
6500 set dummy dsymutil; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$ac_ct_DSYMUTIL"; then
6507 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6527 if test -n "$ac_ct_DSYMUTIL"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6529 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 if test "x$ac_ct_DSYMUTIL" = x; then
6538 case $cross_compiling:$ac_tool_warned in
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6544 DSYMUTIL=$ac_ct_DSYMUTIL
6547 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -n "$NMEDIT"; then
6559 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 NMEDIT=$ac_cv_prog_NMEDIT
6579 if test -n "$NMEDIT"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6581 $as_echo "$NMEDIT" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6589 if test -z "$ac_cv_prog_NMEDIT"; then
6590 ac_ct_NMEDIT=$NMEDIT
6591 # Extract the first word of "nmedit", so it can be a program name with args.
6592 set dummy nmedit; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6598 if test -n "$ac_ct_NMEDIT"; then
6599 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6619 if test -n "$ac_ct_NMEDIT"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6621 $as_echo "$ac_ct_NMEDIT" >&6; }
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6627 if test "x$ac_ct_NMEDIT" = x; then
6630 case $cross_compiling:$ac_tool_warned in
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6634 ac_tool_warned=yes ;;
6636 NMEDIT=$ac_ct_NMEDIT
6639 NMEDIT="$ac_cv_prog_NMEDIT"
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if test "${ac_cv_prog_LIPO+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$LIPO"; then
6651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 LIPO=$ac_cv_prog_LIPO
6671 if test -n "$LIPO"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6673 $as_echo "$LIPO" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6681 if test -z "$ac_cv_prog_LIPO"; then
6683 # Extract the first word of "lipo", so it can be a program name with args.
6684 set dummy lipo; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6690 if test -n "$ac_ct_LIPO"; then
6691 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_ac_ct_LIPO="lipo"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6711 if test -n "$ac_ct_LIPO"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6713 $as_echo "$ac_ct_LIPO" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6719 if test "x$ac_ct_LIPO" = x; then
6722 case $cross_compiling:$ac_tool_warned in
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6726 ac_tool_warned=yes ;;
6731 LIPO="$ac_cv_prog_LIPO"
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}otool; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6742 if test -n "$OTOOL"; then
6743 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 OTOOL=$ac_cv_prog_OTOOL
6763 if test -n "$OTOOL"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6765 $as_echo "$OTOOL" >&6; }
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6773 if test -z "$ac_cv_prog_OTOOL"; then
6775 # Extract the first word of "otool", so it can be a program name with args.
6776 set dummy otool; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6782 if test -n "$ac_ct_OTOOL"; then
6783 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_ac_ct_OTOOL="otool"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6803 if test -n "$ac_ct_OTOOL"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6805 $as_echo "$ac_ct_OTOOL" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6811 if test "x$ac_ct_OTOOL" = x; then
6814 case $cross_compiling:$ac_tool_warned in
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6823 OTOOL="$ac_cv_prog_OTOOL"
6826 if test -n "$ac_tool_prefix"; then
6827 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6828 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6834 if test -n "$OTOOL64"; then
6835 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 OTOOL64=$ac_cv_prog_OTOOL64
6855 if test -n "$OTOOL64"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6857 $as_echo "$OTOOL64" >&6; }
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6865 if test -z "$ac_cv_prog_OTOOL64"; then
6866 ac_ct_OTOOL64=$OTOOL64
6867 # Extract the first word of "otool64", so it can be a program name with args.
6868 set dummy otool64; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6872 $as_echo_n "(cached) " >&6
6874 if test -n "$ac_ct_OTOOL64"; then
6875 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_ac_ct_OTOOL64="otool64"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6895 if test -n "$ac_ct_OTOOL64"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6897 $as_echo "$ac_ct_OTOOL64" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6903 if test "x$ac_ct_OTOOL64" = x; then
6906 case $cross_compiling:$ac_tool_warned in
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6910 ac_tool_warned=yes ;;
6912 OTOOL64=$ac_ct_OTOOL64
6915 OTOOL64="$ac_cv_prog_OTOOL64"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6945 $as_echo_n "checking for -single_module linker flag... " >&6; }
6946 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6949 lt_cv_apple_cc_single_mod=no
6950 if test -z "${LT_MULTI_MODULE}"; then
6951 # By default we will add the -single_module flag. You can override
6952 # by either setting the environment variable LT_MULTI_MODULE
6953 # non-empty at configure time, or by adding -multi_module to the
6955 rm -rf libconftest.dylib*
6956 echo "int foo(void){return 1;}" > conftest.c
6957 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6958 -dynamiclib -Wl,-single_module conftest.c" >&5
6959 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6960 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6962 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6963 lt_cv_apple_cc_single_mod=yes
6965 cat conftest.err >&5
6967 rm -rf libconftest.dylib*
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6972 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6974 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6975 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6978 lt_cv_ld_exported_symbols_list=no
6979 save_LDFLAGS=$LDFLAGS
6980 echo "_main" > conftest.sym
6981 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6993 if ac_fn_c_try_link "$LINENO"; then :
6994 lt_cv_ld_exported_symbols_list=yes
6996 lt_cv_ld_exported_symbols_list=no
6998 rm -f core conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 LDFLAGS="$save_LDFLAGS"
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7004 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7006 $as_echo_n "checking for -force_load linker flag... " >&6; }
7007 if test "${lt_cv_ld_force_load+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 lt_cv_ld_force_load=no
7011 cat > conftest.c << _LT_EOF
7012 int forced_loaded() { return 2;}
7014 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7015 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7016 echo "$AR cru libconftest.a conftest.o" >&5
7017 $AR cru libconftest.a conftest.o 2>&5
7018 cat > conftest.c << _LT_EOF
7019 int main() { return 0;}
7021 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7022 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7024 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7025 lt_cv_ld_force_load=yes
7027 cat conftest.err >&5
7029 rm -f conftest.err libconftest.a conftest conftest.c
7030 rm -rf conftest.dSYM
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7034 $as_echo "$lt_cv_ld_force_load" >&6; }
7036 rhapsody* | darwin1.[012])
7037 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7039 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7040 darwin*) # darwin 5.x on
7041 # if running on 10.5 or later, the deployment target defaults
7042 # to the OS version, if on x86, and 10.4, the deployment
7043 # target defaults to 10.4. Don't you love it?
7044 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7045 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7046 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7048 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7050 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7054 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7055 _lt_dar_single_mod='$single_module'
7057 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7058 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7060 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7062 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7063 _lt_dsymutil='~$DSYMUTIL $lib || :'
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7076 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7077 # On Suns, sometimes $CPP names a directory.
7078 if test -n "$CPP" && test -d "$CPP"; then
7081 if test -z "$CPP"; then
7082 if test "${ac_cv_prog_CPP+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7085 # Double quotes because CPP needs to be expanded
7086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7089 for ac_c_preproc_warn_flag in '' yes
7091 # Use a header file that comes with gcc, so configuring glibc
7092 # with a fresh cross-compiler works.
7093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7094 # <limits.h> exists even on freestanding compilers.
7095 # On the NeXT, cc -E runs the code through the compiler's parser,
7096 # not just through cpp. "Syntax error" is here to catch this case.
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7100 # include <limits.h>
7102 # include <assert.h>
7106 if ac_fn_c_try_cpp "$LINENO"; then :
7109 # Broken: fails on valid input.
7112 rm -f conftest.err conftest.$ac_ext
7114 # OK, works on sane cases. Now check whether nonexistent headers
7115 # can be detected and how.
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 #include <ac_nonexistent.h>
7120 if ac_fn_c_try_cpp "$LINENO"; then :
7121 # Broken: success on invalid input.
7124 # Passes both tests.
7128 rm -f conftest.err conftest.$ac_ext
7131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7132 rm -f conftest.err conftest.$ac_ext
7133 if $ac_preproc_ok; then :
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7146 $as_echo "$CPP" >&6; }
7148 for ac_c_preproc_warn_flag in '' yes
7150 # Use a header file that comes with gcc, so configuring glibc
7151 # with a fresh cross-compiler works.
7152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7153 # <limits.h> exists even on freestanding compilers.
7154 # On the NeXT, cc -E runs the code through the compiler's parser,
7155 # not just through cpp. "Syntax error" is here to catch this case.
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7159 # include <limits.h>
7161 # include <assert.h>
7165 if ac_fn_c_try_cpp "$LINENO"; then :
7168 # Broken: fails on valid input.
7171 rm -f conftest.err conftest.$ac_ext
7173 # OK, works on sane cases. Now check whether nonexistent headers
7174 # can be detected and how.
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <ac_nonexistent.h>
7179 if ac_fn_c_try_cpp "$LINENO"; then :
7180 # Broken: success on invalid input.
7183 # Passes both tests.
7187 rm -f conftest.err conftest.$ac_ext
7190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7191 rm -f conftest.err conftest.$ac_ext
7192 if $ac_preproc_ok; then :
7195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7197 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7198 See \`config.log' for more details." "$LINENO" 5; }
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7209 $as_echo_n "checking for ANSI C header files... " >&6; }
7210 if test "${ac_cv_header_stdc+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7228 if ac_fn_c_try_compile "$LINENO"; then :
7229 ac_cv_header_stdc=yes
7231 ac_cv_header_stdc=no
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 if test $ac_cv_header_stdc = yes; then
7236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 $EGREP "memchr" >/dev/null 2>&1; then :
7246 ac_cv_header_stdc=no
7252 if test $ac_cv_header_stdc = yes; then
7253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260 $EGREP "free" >/dev/null 2>&1; then :
7263 ac_cv_header_stdc=no
7269 if test $ac_cv_header_stdc = yes; then
7270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7271 if test "$cross_compiling" = yes; then :
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7278 #if ((' ' & 0x0FF) == 0x020)
7279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7282 # define ISLOWER(c) \
7283 (('a' <= (c) && (c) <= 'i') \
7284 || ('j' <= (c) && (c) <= 'r') \
7285 || ('s' <= (c) && (c) <= 'z'))
7286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7294 for (i = 0; i < 256; i++)
7295 if (XOR (islower (i), ISLOWER (i))
7296 || toupper (i) != TOUPPER (i))
7301 if ac_fn_c_try_run "$LINENO"; then :
7304 ac_cv_header_stdc=no
7306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7307 conftest.$ac_objext conftest.beam conftest.$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7313 $as_echo "$ac_cv_header_stdc" >&6; }
7314 if test $ac_cv_header_stdc = yes; then
7316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7320 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7322 inttypes.h stdint.h unistd.h
7324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7325 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7327 eval as_val=\$$as_ac_Header
7328 if test "x$as_val" = x""yes; then :
7329 cat >>confdefs.h <<_ACEOF
7330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7338 for ac_header in dlfcn.h
7340 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7342 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7343 cat >>confdefs.h <<_ACEOF
7344 #define HAVE_DLFCN_H 1
7351 if test -n "$ac_tool_prefix"; then
7352 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7353 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if test "${ac_cv_prog_GOC+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7359 if test -n "$GOC"; then
7360 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 if test -n "$GOC"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7382 $as_echo "$GOC" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7390 if test -z "$ac_cv_prog_GOC"; then
7392 # Extract the first word of "gccgo", so it can be a program name with args.
7393 set dummy gccgo; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$ac_ct_GOC"; then
7400 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_ac_ct_GOC="gccgo"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7420 if test -n "$ac_ct_GOC"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7422 $as_echo "$ac_ct_GOC" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7428 if test "x$ac_ct_GOC" = x; then
7431 case $cross_compiling:$ac_tool_warned in
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7435 ac_tool_warned=yes ;;
7440 GOC="$ac_cv_prog_GOC"
7456 # Check whether --enable-shared was given.
7457 if test "${enable_shared+set}" = set; then :
7458 enableval=$enable_shared; p=${PACKAGE-default}
7460 yes) enable_shared=yes ;;
7461 no) enable_shared=no ;;
7464 # Look at the argument we got. We use all the common list separators.
7465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7466 for pkg in $enableval; do
7468 if test "X$pkg" = "X$p"; then
7487 # Check whether --enable-static was given.
7488 if test "${enable_static+set}" = set; then :
7489 enableval=$enable_static; p=${PACKAGE-default}
7491 yes) enable_static=yes ;;
7492 no) enable_static=no ;;
7495 # Look at the argument we got. We use all the common list separators.
7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497 for pkg in $enableval; do
7499 if test "X$pkg" = "X$p"; then
7519 # Check whether --with-pic was given.
7520 if test "${with_pic+set}" = set; then :
7521 withval=$with_pic; pic_mode="$withval"
7527 test -z "$pic_mode" && pic_mode=default
7535 # Check whether --enable-fast-install was given.
7536 if test "${enable_fast_install+set}" = set; then :
7537 enableval=$enable_fast_install; p=${PACKAGE-default}
7539 yes) enable_fast_install=yes ;;
7540 no) enable_fast_install=no ;;
7542 enable_fast_install=no
7543 # Look at the argument we got. We use all the common list separators.
7544 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7545 for pkg in $enableval; do
7547 if test "X$pkg" = "X$p"; then
7548 enable_fast_install=yes
7555 enable_fast_install=yes
7568 # This can be used to rebuild libtool when needed
7569 LIBTOOL_DEPS="$ltmain"
7571 # Always use our own libtool.
7572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7599 test -z "$LN_S" && LN_S="ln -s"
7614 if test -n "${ZSH_VERSION+set}" ; then
7615 setopt NO_GLOB_SUBST
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7619 $as_echo_n "checking for objdir... " >&6; }
7620 if test "${lt_cv_objdir+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7623 rm -f .libs 2>/dev/null
7624 mkdir .libs 2>/dev/null
7625 if test -d .libs; then
7628 # MS-DOS does not allow filenames that begin with a dot.
7631 rmdir .libs 2>/dev/null
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7634 $as_echo "$lt_cv_objdir" >&6; }
7635 objdir=$lt_cv_objdir
7641 cat >>confdefs.h <<_ACEOF
7642 #define LT_OBJDIR "$lt_cv_objdir/"
7650 # AIX sometimes has problems with the GCC collect2 program. For some
7651 # reason, if we set the COLLECT_NAMES environment variable, the problems
7652 # vanish in a puff of smoke.
7653 if test "X${COLLECT_NAMES+set}" != Xset; then
7655 export COLLECT_NAMES
7662 can_build_shared=yes
7664 # All known linkers require a `.a' archive for static linking (except MSVC,
7665 # which needs '.lib').
7668 with_gnu_ld="$lt_cv_prog_gnu_ld"
7671 old_CFLAGS="$CFLAGS"
7673 # Set sane defaults for various variables
7674 test -z "$CC" && CC=cc
7675 test -z "$LTCC" && LTCC=$CC
7676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7677 test -z "$LD" && LD=ld
7678 test -z "$ac_objext" && ac_objext=o
7680 for cc_temp in $compiler""; do
7682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7691 # Only perform the check for file, if the check method requires it
7692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7693 case $deplibs_check_method in
7695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7698 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7699 $as_echo_n "(cached) " >&6
7703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7706 lt_save_MAGIC_CMD="$MAGIC_CMD"
7707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7709 for ac_dir in $ac_dummy; do
7711 test -z "$ac_dir" && ac_dir=.
7712 if test -f $ac_dir/${ac_tool_prefix}file; then
7713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7714 if test -n "$file_magic_test_file"; then
7715 case $deplibs_check_method in
7717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7720 $EGREP "$file_magic_regex" > /dev/null; then
7725 *** Warning: the command libtool uses to detect shared libraries,
7726 *** $file_magic_cmd, produces output that libtool cannot recognize.
7727 *** The result is that libtool may fail to recognize shared libraries
7728 *** as such. This will affect the creation of libtool libraries that
7729 *** depend on shared libraries, but programs linked with such libtool
7730 *** libraries will work regardless of this problem. Nevertheless, you
7731 *** may want to report the problem to your system manager and/or to
7732 *** bug-libtool@gnu.org
7742 MAGIC_CMD="$lt_save_MAGIC_CMD"
7747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7748 if test -n "$MAGIC_CMD"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7750 $as_echo "$MAGIC_CMD" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7760 if test -z "$lt_cv_path_MAGIC_CMD"; then
7761 if test -n "$ac_tool_prefix"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7763 $as_echo_n "checking for file... " >&6; }
7764 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7772 lt_save_MAGIC_CMD="$MAGIC_CMD"
7773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7775 for ac_dir in $ac_dummy; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/file; then
7779 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7780 if test -n "$file_magic_test_file"; then
7781 case $deplibs_check_method in
7783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7786 $EGREP "$file_magic_regex" > /dev/null; then
7791 *** Warning: the command libtool uses to detect shared libraries,
7792 *** $file_magic_cmd, produces output that libtool cannot recognize.
7793 *** The result is that libtool may fail to recognize shared libraries
7794 *** as such. This will affect the creation of libtool libraries that
7795 *** depend on shared libraries, but programs linked with such libtool
7796 *** libraries will work regardless of this problem. Nevertheless, you
7797 *** may want to report the problem to your system manager and/or to
7798 *** bug-libtool@gnu.org
7808 MAGIC_CMD="$lt_save_MAGIC_CMD"
7813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7814 if test -n "$MAGIC_CMD"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7816 $as_echo "$MAGIC_CMD" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7832 # Use C for the default configuration in the libtool script
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842 # Source file extension for C test sources.
7845 # Object file extension for compiled C test sources.
7849 # Code to be used in simple compile tests
7850 lt_simple_compile_test_code="int some_variable = 0;"
7852 # Code to be used in simple link tests
7853 lt_simple_link_test_code='int main(){return(0);}'
7861 # If no C compiler was specified, use CC.
7864 # If no C compiler flags were specified, use CFLAGS.
7865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7867 # Allow CC to be a program name with arguments.
7870 # Save the default compiler, since it gets overwritten when the other
7871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7872 compiler_DEFAULT=$CC
7874 # save warnings/boilerplate of simple test code
7875 ac_outfile=conftest.$ac_objext
7876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7878 _lt_compiler_boilerplate=`cat conftest.err`
7881 ac_outfile=conftest.$ac_objext
7882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7884 _lt_linker_boilerplate=`cat conftest.err`
7889 ## There is no encapsulation within the following macros, do not change
7890 ## the running order or otherwise move them around unless you know exactly
7891 ## what you are doing...
7892 if test -n "$compiler"; then
7894 lt_prog_compiler_no_builtin_flag=
7896 if test "$GCC" = yes; then
7897 case $cc_basename in
7899 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7901 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7905 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7906 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7909 lt_cv_prog_compiler_rtti_exceptions=no
7910 ac_outfile=conftest.$ac_objext
7911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7912 lt_compiler_flag="-fno-rtti -fno-exceptions"
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 # The option is referenced via a variable to avoid confusing sed.
7918 lt_compile=`echo "$ac_compile" | $SED \
7919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7921 -e 's:$: $lt_compiler_flag:'`
7922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7923 (eval "$lt_compile" 2>conftest.err)
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 if (exit $ac_status) && test -s "$ac_outfile"; then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings other than the usual output.
7930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_rtti_exceptions=yes
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7940 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7942 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7943 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7955 lt_prog_compiler_wl=
7956 lt_prog_compiler_pic=
7957 lt_prog_compiler_static=
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7960 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7962 if test "$GCC" = yes; then
7963 lt_prog_compiler_wl='-Wl,'
7964 lt_prog_compiler_static='-static'
7968 # All AIX code is PIC.
7969 if test "$host_cpu" = ia64; then
7970 # AIX 5 now supports IA64 processor
7971 lt_prog_compiler_static='-Bstatic'
7978 # see comment about AmigaOS4 .so support
7979 lt_prog_compiler_pic='-fPIC'
7982 # FIXME: we need at least 68020 code to build shared libraries, but
7983 # adding the `-m68020' flag to GCC prevents building anything better,
7985 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7990 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7991 # PIC is the default for these OSes.
7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
7997 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7998 # (--disable-auto-import) libraries
7999 lt_prog_compiler_pic='-DDLL_EXPORT'
8002 darwin* | rhapsody*)
8003 # PIC is the default on this platform
8004 # Common symbols not allowed in MH_DYLIB files
8005 lt_prog_compiler_pic='-fno-common'
8009 # PIC is the default for Haiku.
8010 # The "-static" flag exists, but is broken.
8011 lt_prog_compiler_static=
8015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8017 # sets the default TLS model and affects inlining.
8023 lt_prog_compiler_pic='-fPIC'
8029 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8030 # Instead, we relocate shared libraries at runtime.
8034 # Just because we use GCC doesn't mean we suddenly get shared libraries
8035 # on systems that don't support them.
8036 lt_prog_compiler_can_build_shared=no
8041 # QNX uses GNU C++, but need to define -shared option too, otherwise
8043 lt_prog_compiler_pic='-fPIC -shared'
8047 if test -d /usr/nec; then
8048 lt_prog_compiler_pic=-Kconform_pic
8053 lt_prog_compiler_pic='-fPIC'
8057 case $cc_basename in
8058 nvcc*) # Cuda Compiler Driver 2.2
8059 lt_prog_compiler_wl='-Xlinker '
8060 lt_prog_compiler_pic='-Xcompiler -fPIC'
8064 # PORTME Check for flag to pass linker flags through the system compiler.
8067 lt_prog_compiler_wl='-Wl,'
8068 if test "$host_cpu" = ia64; then
8069 # AIX 5 now supports IA64 processor
8070 lt_prog_compiler_static='-Bstatic'
8072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8076 mingw* | cygwin* | pw32* | os2* | cegcc*)
8077 # This hack is so that the source file can tell whether it is being
8078 # built for inclusion in a dll (and should export symbols for example).
8079 lt_prog_compiler_pic='-DDLL_EXPORT'
8082 hpux9* | hpux10* | hpux11*)
8083 lt_prog_compiler_wl='-Wl,'
8084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8091 lt_prog_compiler_pic='+Z'
8094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8095 lt_prog_compiler_static='${wl}-a ${wl}archive'
8098 irix5* | irix6* | nonstopux*)
8099 lt_prog_compiler_wl='-Wl,'
8100 # PIC (with -KPIC) is the default.
8101 lt_prog_compiler_static='-non_shared'
8104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8105 case $cc_basename in
8106 # old Intel for x86_64 which still supported -KPIC.
8108 lt_prog_compiler_wl='-Wl,'
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-static'
8112 # icc used to be incompatible with GCC.
8113 # ICC 10 doesn't accept -KPIC any more.
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_pic='-fPIC'
8117 lt_prog_compiler_static='-static'
8119 # Lahey Fortran 8.1.
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='--shared'
8123 lt_prog_compiler_static='--static'
8125 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8126 # Portland Group compilers (*not* the Pentium gcc compiler,
8127 # which looks to be a dead project)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='-fpic'
8130 lt_prog_compiler_static='-Bstatic'
8133 lt_prog_compiler_wl='-Wl,'
8134 # All Alpha code is PIC.
8135 lt_prog_compiler_static='-non_shared'
8137 xl* | bgxl* | bgf* | mpixl*)
8138 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_pic='-qpic'
8141 lt_prog_compiler_static='-qstaticlink'
8144 case `$CC -V 2>&1 | sed 5q` in
8145 *Sun\ F* | *Sun*Fortran*)
8146 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8147 lt_prog_compiler_pic='-KPIC'
8148 lt_prog_compiler_static='-Bstatic'
8149 lt_prog_compiler_wl=''
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8155 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='-KPIC'
8164 lt_prog_compiler_static='-Bstatic'
8168 # QNX uses GNU C++, but need to define -shared option too, otherwise
8170 lt_prog_compiler_pic='-fPIC -shared'
8173 osf3* | osf4* | osf5*)
8174 lt_prog_compiler_wl='-Wl,'
8175 # All OSF/1 code is PIC.
8176 lt_prog_compiler_static='-non_shared'
8180 lt_prog_compiler_static='-non_shared'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 case $cc_basename in
8188 lt_prog_compiler_wl='-Qoption ld ';;
8190 lt_prog_compiler_wl='-Wl,';;
8195 lt_prog_compiler_wl='-Qoption ld '
8196 lt_prog_compiler_pic='-PIC'
8197 lt_prog_compiler_static='-Bstatic'
8200 sysv4 | sysv4.2uw2* | sysv4.3*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-KPIC'
8203 lt_prog_compiler_static='-Bstatic'
8207 if test -d /usr/nec ;then
8208 lt_prog_compiler_pic='-Kconform_pic'
8209 lt_prog_compiler_static='-Bstatic'
8213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_can_build_shared=no
8225 lt_prog_compiler_pic='-pic'
8226 lt_prog_compiler_static='-Bstatic'
8230 lt_prog_compiler_can_build_shared=no
8236 # For platforms which do not support PIC, -DPIC is meaningless:
8238 lt_prog_compiler_pic=
8241 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8245 $as_echo "$lt_prog_compiler_pic" >&6; }
8253 # Check to make sure the PIC flag actually works.
8255 if test -n "$lt_prog_compiler_pic"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8258 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 lt_cv_prog_compiler_pic_works=no
8262 ac_outfile=conftest.$ac_objext
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8265 # Insert the option either (1) after the last *FLAGS variable, or
8266 # (2) before a word containing "conftest.", or (3) at the end.
8267 # Note that $ac_compile itself does not contain backslashes and begins
8268 # with a dollar sign (not a hyphen), so the echo should work correctly.
8269 # The option is referenced via a variable to avoid confusing sed.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273 -e 's:$: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>conftest.err)
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s "$ac_outfile"; then
8280 # The compiler can only warn and ignore the option if not recognized
8281 # So say no if there are warnings other than the usual output.
8282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8285 lt_cv_prog_compiler_pic_works=yes
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8292 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8294 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8295 case $lt_prog_compiler_pic in
8297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8300 lt_prog_compiler_pic=
8301 lt_prog_compiler_can_build_shared=no
8312 # Check to make sure the static flag actually works.
8314 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8316 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8317 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 lt_cv_prog_compiler_static_works=no
8321 save_LDFLAGS="$LDFLAGS"
8322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8325 # The linker can only warn and ignore the option if not recognized
8326 # So say no if there are warnings
8327 if test -s conftest.err; then
8328 # Append any errors to the config.log.
8329 cat conftest.err 1>&5
8330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8332 if diff conftest.exp conftest.er2 >/dev/null; then
8333 lt_cv_prog_compiler_static_works=yes
8336 lt_cv_prog_compiler_static_works=yes
8340 LDFLAGS="$save_LDFLAGS"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8344 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8346 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8349 lt_prog_compiler_static=
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8359 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8360 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8363 lt_cv_prog_compiler_c_o=no
8364 $RM -r conftest 2>/dev/null
8368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8370 lt_compiler_flag="-o out/conftest2.$ac_objext"
8371 # Insert the option either (1) after the last *FLAGS variable, or
8372 # (2) before a word containing "conftest.", or (3) at the end.
8373 # Note that $ac_compile itself does not contain backslashes and begins
8374 # with a dollar sign (not a hyphen), so the echo should work correctly.
8375 lt_compile=`echo "$ac_compile" | $SED \
8376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378 -e 's:$: $lt_compiler_flag:'`
8379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8380 (eval "$lt_compile" 2>out/conftest.err)
8382 cat out/conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8386 # The compiler can only warn and ignore the option if not recognized
8387 # So say no if there are warnings
8388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8391 lt_cv_prog_compiler_c_o=yes
8396 # SGI C++ compiler will create directory out/ii_files/ for
8397 # template instantiation
8398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8399 $RM out/* && rmdir out
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8406 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8414 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8415 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8418 lt_cv_prog_compiler_c_o=no
8419 $RM -r conftest 2>/dev/null
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8425 lt_compiler_flag="-o out/conftest2.$ac_objext"
8426 # Insert the option either (1) after the last *FLAGS variable, or
8427 # (2) before a word containing "conftest.", or (3) at the end.
8428 # Note that $ac_compile itself does not contain backslashes and begins
8429 # with a dollar sign (not a hyphen), so the echo should work correctly.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>out/conftest.err)
8437 cat out/conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8441 # The compiler can only warn and ignore the option if not recognized
8442 # So say no if there are warnings
8443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446 lt_cv_prog_compiler_c_o=yes
8451 # SGI C++ compiler will create directory out/ii_files/ for
8452 # template instantiation
8453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8454 $RM out/* && rmdir out
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8461 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8466 hard_links="nottested"
8467 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8468 # do not overwrite the value of need_locks provided by the user
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8470 $as_echo_n "checking if we can lock with hard links... " >&6; }
8473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8475 ln conftest.a conftest.b 2>&5 || hard_links=no
8476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8478 $as_echo "$hard_links" >&6; }
8479 if test "$hard_links" = no; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8481 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8494 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8497 allow_undefined_flag=
8498 always_export_symbols=no
8500 archive_expsym_cmds=
8501 compiler_needs_object=no
8502 enable_shared_with_static_runtimes=no
8503 export_dynamic_flag_spec=
8504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8505 hardcode_automatic=no
8507 hardcode_direct_absolute=no
8508 hardcode_libdir_flag_spec=
8509 hardcode_libdir_flag_spec_ld=
8510 hardcode_libdir_separator=
8512 hardcode_shlibpath_var=unsupported
8514 link_all_deplibs=unknown
8517 old_archive_from_new_cmds=
8518 old_archive_from_expsyms_cmds=
8519 thread_safe_flag_spec=
8520 whole_archive_flag_spec=
8521 # include_expsyms should be a list of space-separated symbols to be *always*
8522 # included in the symbol list
8524 # exclude_expsyms can be an extended regexp of symbols to exclude
8525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8527 # as well as any symbol that contains `d'.
8528 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8530 # platforms (ab)use it in PIC code, but their linkers get confused if
8531 # the symbol is explicitly referenced. Since portable code cannot
8532 # rely on this symbol name, it's probably fine to never include it in
8533 # preloaded symbol tables.
8534 # Exclude shared library initialization/finalization symbols.
8535 extract_expsyms_cmds=
8538 cygwin* | mingw* | pw32* | cegcc*)
8539 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8540 # When not using gcc, we currently assume that we are using
8541 # Microsoft Visual C++.
8542 if test "$GCC" != yes; then
8547 # we just hope/assume this is gcc and not c89 (= MSVC++)
8557 # On some targets, GNU ld is compatible enough with the native linker
8558 # that we're better off using the native interface for both.
8559 lt_use_gnu_ld_interface=no
8560 if test "$with_gnu_ld" = yes; then
8563 # The AIX port of GNU ld has always aspired to compatibility
8564 # with the native linker. However, as the warning in the GNU ld
8565 # block says, versions before 2.19.5* couldn't really create working
8566 # shared libraries, regardless of the interface used.
8567 case `$LD -v 2>&1` in
8568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8570 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8572 lt_use_gnu_ld_interface=yes
8577 lt_use_gnu_ld_interface=yes
8582 if test "$lt_use_gnu_ld_interface" = yes; then
8583 # If archive_cmds runs LD, not CC, wlarc should be empty
8586 # Set some defaults for GNU ld with shared library support. These
8587 # are reset later if shared libraries are not supported. Putting them
8588 # here allows them to be overridden if necessary.
8589 runpath_var=LD_RUN_PATH
8590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8591 export_dynamic_flag_spec='${wl}--export-dynamic'
8592 # ancient GNU ld didn't support --whole-archive et. al.
8593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8594 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8596 whole_archive_flag_spec=
8598 supports_anon_versioning=no
8599 case `$LD -v 2>&1` in
8600 *GNU\ gold*) supports_anon_versioning=yes ;;
8601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8604 *\ 2.11.*) ;; # other 2.11 versions
8605 *) supports_anon_versioning=yes ;;
8608 # See if GNU ld supports shared libraries.
8611 # On AIX/PPC, the GNU linker is very broken
8612 if test "$host_cpu" != ia64; then
8616 *** Warning: the GNU linker, at least up to release 2.19, is reported
8617 *** to be unable to reliably create shared libraries on AIX.
8618 *** Therefore, libtool is disabling shared libraries support. If you
8619 *** really care for shared libraries, you may want to install binutils
8620 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8621 *** You will then need to restart the configuration process.
8630 # see comment about AmigaOS4 .so support
8631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 archive_expsym_cmds=''
8635 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)'
8636 hardcode_libdir_flag_spec='-L$libdir'
8637 hardcode_minus_L=yes
8643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8644 allow_undefined_flag=unsupported
8645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8646 # support --undefined. This deserves some investigation. FIXME
8647 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 cygwin* | mingw* | pw32* | cegcc*)
8654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8655 # as there is no search path for DLLs.
8656 hardcode_libdir_flag_spec='-L$libdir'
8657 export_dynamic_flag_spec='${wl}--export-all-symbols'
8658 allow_undefined_flag=unsupported
8659 always_export_symbols=no
8660 enable_shared_with_static_runtimes=yes
8661 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8665 # If the export-symbols file already is a .def file (1st line
8666 # is EXPORTS), use it as is; otherwise, prepend...
8667 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8668 cp $export_symbols $output_objdir/$soname.def;
8670 echo EXPORTS > $output_objdir/$soname.def;
8671 cat $export_symbols >> $output_objdir/$soname.def;
8673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 link_all_deplibs=yes
8686 hardcode_shlibpath_var=no
8687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8688 export_dynamic_flag_spec='${wl}-E'
8689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8690 # Instead, shared libraries are loaded at an image base (0x10000000 by
8691 # default) and relocated if they conflict, which is a slow very memory
8692 # consuming and fragmenting process. To avoid this, we pick a random,
8693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8694 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8695 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8696 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'
8699 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8701 if test "$host_os" = linux-dietlibc; then
8702 case $cc_basename in
8703 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8706 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8707 && test "$tmp_diet" = no
8710 tmp_sharedflag='-shared'
8711 case $cc_basename,$host_cpu in
8712 pgcc*) # Portland Group C compiler
8713 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'
8714 tmp_addflag=' $pic_flag'
8716 pgf77* | pgf90* | pgf95* | pgfortran*)
8717 # Portland Group f77 and f90 compilers
8718 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'
8719 tmp_addflag=' $pic_flag -Mnomain' ;;
8720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8721 tmp_addflag=' -i_dynamic' ;;
8722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8723 tmp_addflag=' -i_dynamic -nofor_main' ;;
8724 ifc* | ifort*) # Intel Fortran compiler
8725 tmp_addflag=' -nofor_main' ;;
8726 lf95*) # Lahey Fortran 8.1
8727 whole_archive_flag_spec=
8728 tmp_sharedflag='--shared' ;;
8729 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8730 tmp_sharedflag='-qmkshrobj'
8732 nvcc*) # Cuda Compiler Driver 2.2
8733 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'
8734 compiler_needs_object=yes
8737 case `$CC -V 2>&1 | sed 5q` in
8738 *Sun\ C*) # Sun C 5.9
8739 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'
8740 compiler_needs_object=yes
8741 tmp_sharedflag='-G' ;;
8742 *Sun\ F*) # Sun Fortran 8.3
8743 tmp_sharedflag='-G' ;;
8745 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747 if test "x$supports_anon_versioning" = xyes; then
8748 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8750 echo "local: *; };" >> $output_objdir/$libname.ver~
8751 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8754 case $cc_basename in
8755 xlf* | bgf* | bgxlf* | mpixlf*)
8756 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8757 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8758 hardcode_libdir_flag_spec=
8759 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8760 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8761 if test "x$supports_anon_versioning" = xyes; then
8762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8764 echo "local: *; };" >> $output_objdir/$libname.ver~
8765 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8776 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8789 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8790 *** create shared libraries on Solaris systems. Therefore, libtool
8791 *** is disabling shared libraries support. We urge you to upgrade GNU
8792 *** binutils to release 2.9.1 or newer. Another option is to modify
8793 *** your PATH or compiler configuration so that the native linker is
8794 *** used, and then restart.
8797 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8806 case `$LD -v 2>&1` in
8807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8811 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8812 *** reliably create shared libraries on SCO systems. Therefore, libtool
8813 *** is disabling shared libraries support. We urge you to upgrade GNU
8814 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8815 *** your PATH or compiler configuration so that the native linker is
8816 *** used, and then restart.
8821 # For security reasons, it is highly recommended that you always
8822 # use absolute paths for naming shared libraries, and exclude the
8823 # DT_RUNPATH tag from executables and libraries. But doing so
8824 # requires that you compile everything twice, which is a pain.
8825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8837 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8840 hardcode_shlibpath_var=no
8844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8853 if test "$ld_shlibs" = no; then
8855 hardcode_libdir_flag_spec=
8856 export_dynamic_flag_spec=
8857 whole_archive_flag_spec=
8860 # PORTME fill in a description of your system's linker (not GNU ld)
8863 allow_undefined_flag=unsupported
8864 always_export_symbols=yes
8865 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'
8866 # Note: this linker hardcodes the directories in LIBPATH if there
8867 # are no directories specified by -L.
8868 hardcode_minus_L=yes
8869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8870 # Neither direct hardcoding nor static linking is supported with a
8872 hardcode_direct=unsupported
8877 if test "$host_cpu" = ia64; then
8878 # On IA64, the linker does run time linking by default, so we don't
8879 # have to do anything special.
8880 aix_use_runtimelinking=no
8881 exp_sym_flag='-Bexport'
8884 # If we're using GNU nm, then we don't want the "-C" option.
8885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8886 # Also, AIX nm treats weak defined symbols like other global
8887 # defined symbols, whereas GNU nm marks them as "W".
8888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8889 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'
8891 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'
8893 aix_use_runtimelinking=no
8895 # Test if we are trying to use run time linking or normal
8896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8897 # need to do runtime linking.
8898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8899 for ld_flag in $LDFLAGS; do
8900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8901 aix_use_runtimelinking=yes
8908 exp_sym_flag='-bexport'
8909 no_entry_flag='-bnoentry'
8912 # When large executables or shared objects are built, AIX ld can
8913 # have problems creating the table of contents. If linking a library
8914 # or program results in "error TOC overflow" add -mminimal-toc to
8915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8920 hardcode_direct_absolute=yes
8921 hardcode_libdir_separator=':'
8922 link_all_deplibs=yes
8923 file_list_spec='${wl}-f,'
8925 if test "$GCC" = yes; then
8926 case $host_os in aix4.[012]|aix4.[012].*)
8927 # We only want to do this on AIX 4.2 and lower, the check
8928 # below for broken collect2 doesn't work under 4.3+
8929 collect2name=`${CC} -print-prog-name=collect2`
8930 if test -f "$collect2name" &&
8931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8933 # We have reworked collect2
8936 # We have old collect2
8937 hardcode_direct=unsupported
8938 # It fails to find uninstalled libraries when the uninstalled
8939 # path is not listed in the libpath. Setting hardcode_minus_L
8940 # to unsupported forces relinking
8941 hardcode_minus_L=yes
8942 hardcode_libdir_flag_spec='-L$libdir'
8943 hardcode_libdir_separator=
8947 shared_flag='-shared'
8948 if test "$aix_use_runtimelinking" = yes; then
8949 shared_flag="$shared_flag "'${wl}-G'
8953 if test "$host_cpu" = ia64; then
8954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8955 # chokes on -Wl,-G. The following line is correct:
8958 if test "$aix_use_runtimelinking" = yes; then
8959 shared_flag='${wl}-G'
8961 shared_flag='${wl}-bM:SRE'
8966 export_dynamic_flag_spec='${wl}-bexpall'
8967 # It seems that -bexpall does not export symbols beginning with
8968 # underscore (_), so it is better to generate a list of symbols to export.
8969 always_export_symbols=yes
8970 if test "$aix_use_runtimelinking" = yes; then
8971 # Warning - without using the other runtime loading flags (-brtl),
8972 # -berok will link without error, but may produce a broken library.
8973 allow_undefined_flag='-berok'
8974 # Determine the default libpath from the value encoded in an
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8987 if ac_fn_c_try_link "$LINENO"; then :
8989 lt_aix_libpath_sed='
8990 /Import File Strings/,/^$/ {
8996 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997 # Check for a 64-bit object if we didn't find anything.
8998 if test -z "$aix_libpath"; then
8999 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9007 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"
9009 if test "$host_cpu" = ia64; then
9010 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9011 allow_undefined_flag="-z nodefs"
9012 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"
9014 # Determine the default libpath from the value encoded in an
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9027 if ac_fn_c_try_link "$LINENO"; then :
9029 lt_aix_libpath_sed='
9030 /Import File Strings/,/^$/ {
9036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9037 # Check for a 64-bit object if we didn't find anything.
9038 if test -z "$aix_libpath"; then
9039 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9047 # Warning - without using the other run time loading flags,
9048 # -berok will link without error, but may produce a broken library.
9049 no_undefined_flag=' ${wl}-bernotok'
9050 allow_undefined_flag=' ${wl}-berok'
9051 if test "$with_gnu_ld" = yes; then
9052 # We only use this code for GNU lds that support --whole-archive.
9053 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9055 # Exported symbols can be pulled into shared objects from archives
9056 whole_archive_flag_spec='$convenience'
9058 archive_cmds_need_lc=yes
9059 # This is similar to how AIX traditionally builds its shared libraries.
9060 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'
9068 # see comment about AmigaOS4 .so support
9069 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070 archive_expsym_cmds=''
9073 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)'
9074 hardcode_libdir_flag_spec='-L$libdir'
9075 hardcode_minus_L=yes
9081 export_dynamic_flag_spec=-rdynamic
9084 cygwin* | mingw* | pw32* | cegcc*)
9085 # When not using gcc, we currently assume that we are using
9086 # Microsoft Visual C++.
9087 # hardcode_libdir_flag_spec is actually meaningless, as there is
9088 # no search path for DLLs.
9089 hardcode_libdir_flag_spec=' '
9090 allow_undefined_flag=unsupported
9091 # Tell ltmain to make .lib files, not .a files.
9093 # Tell ltmain to make .dll files, not .so files.
9095 # FIXME: Setting linknames here is a bad hack.
9096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9097 # The linker will automatically build a .lib file if we build a DLL.
9098 old_archive_from_new_cmds='true'
9099 # FIXME: Should let the user specify the lib program.
9100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9101 fix_srcfile_path='`cygpath -w "$srcfile"`'
9102 enable_shared_with_static_runtimes=yes
9105 darwin* | rhapsody*)
9108 archive_cmds_need_lc=no
9110 hardcode_automatic=yes
9111 hardcode_shlibpath_var=unsupported
9112 if test "$lt_cv_ld_force_load" = "yes"; then
9113 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\"`'
9115 whole_archive_flag_spec=''
9117 link_all_deplibs=yes
9118 allow_undefined_flag="$_lt_dar_allow_undefined"
9119 case $cc_basename in
9120 ifort*) _lt_dar_can_shared=yes ;;
9121 *) _lt_dar_can_shared=$GCC ;;
9123 if test "$_lt_dar_can_shared" = "yes"; then
9124 output_verbose_link_cmd=func_echo_all
9125 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9126 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9127 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}"
9128 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}"
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 hardcode_shlibpath_var=no
9142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9143 # support. Future versions do this automatically, but an explicit c++rt0.o
9144 # does not break anything, and helps significantly (at the cost of a little
9147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9148 hardcode_libdir_flag_spec='-R$libdir'
9150 hardcode_shlibpath_var=no
9153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9157 hardcode_minus_L=yes
9158 hardcode_shlibpath_var=no
9161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9162 freebsd* | dragonfly*)
9163 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9164 hardcode_libdir_flag_spec='-R$libdir'
9166 hardcode_shlibpath_var=no
9170 if test "$GCC" = yes; then
9171 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'
9173 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'
9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176 hardcode_libdir_separator=:
9179 # hardcode_minus_L: Not really in the search PATH,
9180 # but as the default location of the library.
9181 hardcode_minus_L=yes
9182 export_dynamic_flag_spec='${wl}-E'
9186 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9191 if test "$with_gnu_ld" = no; then
9192 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9193 hardcode_libdir_flag_spec_ld='+b $libdir'
9194 hardcode_libdir_separator=:
9196 hardcode_direct_absolute=yes
9197 export_dynamic_flag_spec='${wl}-E'
9198 # hardcode_minus_L: Not really in the search PATH,
9199 # but as the default location of the library.
9200 hardcode_minus_L=yes
9205 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9208 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9223 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9227 # Older versions of the 11.00 compiler do not understand -b yet
9228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9230 $as_echo_n "checking if $CC understands -b... " >&6; }
9231 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9234 lt_cv_prog_compiler__b=no
9235 save_LDFLAGS="$LDFLAGS"
9236 LDFLAGS="$LDFLAGS -b"
9237 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9239 # The linker can only warn and ignore the option if not recognized
9240 # So say no if there are warnings
9241 if test -s conftest.err; then
9242 # Append any errors to the config.log.
9243 cat conftest.err 1>&5
9244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9246 if diff conftest.exp conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler__b=yes
9250 lt_cv_prog_compiler__b=yes
9254 LDFLAGS="$save_LDFLAGS"
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9258 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9260 if test x"$lt_cv_prog_compiler__b" = xyes; then
9261 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9269 if test "$with_gnu_ld" = no; then
9270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271 hardcode_libdir_separator=:
9276 hardcode_shlibpath_var=no
9280 hardcode_direct_absolute=yes
9281 export_dynamic_flag_spec='${wl}-E'
9283 # hardcode_minus_L: Not really in the search PATH,
9284 # but as the default location of the library.
9285 hardcode_minus_L=yes
9291 irix5* | irix6* | nonstopux*)
9292 if test "$GCC" = yes; then
9293 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'
9294 # Try to use the -exported_symbol ld option, if it does not
9295 # work, assume that -exports_file does not work either and
9296 # implicitly export all symbols.
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 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'
9307 rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 LDFLAGS="$save_LDFLAGS"
9311 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'
9312 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'
9314 archive_cmds_need_lc='no'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 hardcode_libdir_separator=:
9318 link_all_deplibs=yes
9322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9325 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9327 hardcode_libdir_flag_spec='-R$libdir'
9329 hardcode_shlibpath_var=no
9333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336 hardcode_libdir_separator=:
9337 hardcode_shlibpath_var=no
9344 if test -f /usr/libexec/ld.so; then
9346 hardcode_shlibpath_var=no
9347 hardcode_direct_absolute=yes
9348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9350 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9352 export_dynamic_flag_spec='${wl}-E'
9355 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_libdir_flag_spec='-R$libdir'
9360 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9371 hardcode_libdir_flag_spec='-L$libdir'
9372 hardcode_minus_L=yes
9373 allow_undefined_flag=unsupported
9374 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'
9375 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9379 if test "$GCC" = yes; then
9380 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9381 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'
9383 allow_undefined_flag=' -expect_unresolved \*'
9384 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'
9386 archive_cmds_need_lc='no'
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 hardcode_libdir_separator=:
9391 osf4* | osf5*) # as osf3* with the addition of -msym flag
9392 if test "$GCC" = yes; then
9393 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9394 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'
9395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397 allow_undefined_flag=' -expect_unresolved \*'
9398 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'
9399 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~
9400 $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'
9402 # Both c and cxx compiler support -rpath directly
9403 hardcode_libdir_flag_spec='-rpath $libdir'
9405 archive_cmds_need_lc='no'
9406 hardcode_libdir_separator=:
9410 no_undefined_flag=' -z defs'
9411 if test "$GCC" = yes; then
9413 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9417 case `$CC -V 2>&1` in
9420 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9422 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9426 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9428 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9432 hardcode_libdir_flag_spec='-R$libdir'
9433 hardcode_shlibpath_var=no
9435 solaris2.[0-5] | solaris2.[0-5].*) ;;
9437 # The compiler driver will combine and reorder linker options,
9438 # but understands `-z linker_flag'. GCC discards it without `$wl',
9439 # but is careful enough not to reorder.
9440 # Supported since Solaris 2.6 (maybe 2.5.1?)
9441 if test "$GCC" = yes; then
9442 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9444 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9448 link_all_deplibs=yes
9452 if test "x$host_vendor" = xsequent; then
9453 # Use $CC to link under sequent, because it throws in some extra .o
9454 # files that make .init and .fini sections work.
9455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='-L$libdir'
9461 hardcode_minus_L=yes
9462 hardcode_shlibpath_var=no
9466 case $host_vendor in
9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_direct=yes # is this really true???
9472 ## LD is ld it makes a PLAMLIB
9473 ## CC just makes a GrossModule.
9474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9475 reload_cmds='$CC -r -o $output$reload_objs'
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9483 runpath_var='LD_RUN_PATH'
9484 hardcode_shlibpath_var=no
9488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_shlibpath_var=no
9490 export_dynamic_flag_spec='-Bexport'
9494 if test -d /usr/nec; then
9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496 hardcode_shlibpath_var=no
9497 runpath_var=LD_RUN_PATH
9498 hardcode_runpath_var=yes
9503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9504 no_undefined_flag='${wl}-z,text'
9505 archive_cmds_need_lc=no
9506 hardcode_shlibpath_var=no
9507 runpath_var='LD_RUN_PATH'
9509 if test "$GCC" = yes; then
9510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9514 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 sysv5* | sco3.2v5* | sco5v6*)
9519 # Note: We can NOT use -z defs as we might desire, because we do not
9520 # link with -lc, and that would cause any symbols used from libc to
9521 # always be unresolved, which means just about no library would
9522 # ever link correctly. If we're not using GNU ld we use -z text
9523 # though, which does catch some bad symbols but isn't as heavy-handed
9525 no_undefined_flag='${wl}-z,text'
9526 allow_undefined_flag='${wl}-z,nodefs'
9527 archive_cmds_need_lc=no
9528 hardcode_shlibpath_var=no
9529 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9530 hardcode_libdir_separator=':'
9531 link_all_deplibs=yes
9532 export_dynamic_flag_spec='${wl}-Bexport'
9533 runpath_var='LD_RUN_PATH'
9535 if test "$GCC" = yes; then
9536 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-L$libdir'
9547 hardcode_shlibpath_var=no
9555 if test x$host_vendor = xsni; then
9557 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9558 export_dynamic_flag_spec='${wl}-Blargedynsym'
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9565 $as_echo "$ld_shlibs" >&6; }
9566 test "$ld_shlibs" = no && can_build_shared=no
9568 with_gnu_ld=$with_gnu_ld
9585 # Do we need to explicitly link libc?
9587 case "x$archive_cmds_need_lc" in
9589 # Assume -lc should be added
9590 archive_cmds_need_lc=yes
9592 if test "$enable_shared" = yes && test "$GCC" = yes; then
9593 case $archive_cmds in
9595 # FIXME: we may have to deal with multi-command sequences.
9598 # Test whether the compiler implicitly links with -lc since on some
9599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9600 # to ld, don't add -lc before -lgcc.
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9603 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9604 $as_echo_n "(cached) " >&6
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9610 (eval $ac_compile) 2>&5
9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9613 test $ac_status = 0; } 2>conftest.err; then
9616 libobjs=conftest.$ac_objext
9618 wl=$lt_prog_compiler_wl
9619 pic_flag=$lt_prog_compiler_pic
9625 lt_save_allow_undefined_flag=$allow_undefined_flag
9626 allow_undefined_flag=
9627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9628 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; }
9633 lt_cv_archive_cmds_need_lc=no
9635 lt_cv_archive_cmds_need_lc=yes
9637 allow_undefined_flag=$lt_save_allow_undefined_flag
9639 cat conftest.err 1>&5
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9645 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9646 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9812 if test "$GCC" = yes; then
9814 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9815 *) lt_awk_arg="/^libraries:/" ;;
9818 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9819 *) lt_sed_strip_eq="s,=/,/,g" ;;
9821 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9822 case $lt_search_path_spec in
9824 # if the path contains ";" then we assume it to be the separator
9825 # otherwise default to the standard path separator (i.e. ":") - it is
9826 # assumed that no part of a normal pathname contains ";" but that should
9827 # okay in the real world where ";" in dirpaths is itself problematic.
9828 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9831 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9834 # Ok, now we have the path, separated by spaces, we can step through it
9835 # and add multilib dir if necessary.
9836 lt_tmp_lt_search_path_spec=
9837 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9838 for lt_sys_path in $lt_search_path_spec; do
9839 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9842 test -d "$lt_sys_path" && \
9843 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9846 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9847 BEGIN {RS=" "; FS="/|\n";} {
9850 for (lt_i = NF; lt_i > 0; lt_i--) {
9851 if ($lt_i != "" && $lt_i != ".") {
9852 if ($lt_i == "..") {
9855 if (lt_count == 0) {
9856 lt_foo="/" $lt_i lt_foo;
9863 if (lt_foo != "") { lt_freq[lt_foo]++; }
9864 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9866 # AWK program above erroneously prepends '/' to C:/dos/paths
9869 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9870 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9872 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9877 libname_spec='lib$name'
9885 shlibpath_overrides_runpath=unknown
9887 dynamic_linker="$host_os ld.so"
9888 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9889 need_lib_prefix=unknown
9890 hardcode_into_libs=no
9892 # when you set need_version to no, make sure it does not cause -set_version
9893 # flags to be left without arguments
9894 need_version=unknown
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9900 shlibpath_var=LIBPATH
9902 # AIX 3 has no versioning support, so we append a major version to the name.
9903 soname_spec='${libname}${release}${shared_ext}$major'
9910 hardcode_into_libs=yes
9911 if test "$host_cpu" = ia64; then
9912 # AIX 5 supports IA64
9913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9914 shlibpath_var=LD_LIBRARY_PATH
9916 # With GCC up to 2.95.x, collect2 would create an import file
9917 # for dependence libraries. The import file would start with
9918 # the line `#! .'. This would cause the generated library to
9919 # depend on `.', always an invalid library. This was fixed in
9920 # development snapshots of GCC prior to 3.0.
9922 aix4 | aix4.[01] | aix4.[01].*)
9923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9925 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9933 # soname into executable. Probably we can add versioning support to
9934 # collect2, so additional links can be useful in future.
9935 if test "$aix_use_runtimelinking" = yes; then
9936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9937 # instead of lib<name>.a to let people know that these are not
9938 # typical AIX shared libraries.
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 # We preserve .a as extension for shared libraries through AIX4.2
9942 # and later when we are not doing run time linking.
9943 library_names_spec='${libname}${release}.a $libname.a'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LIBPATH
9953 # Since July 2007 AmigaOS4 officially supports .so libraries.
9954 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 library_names_spec='$libname.ixlibrary $libname.a'
9959 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9960 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'
9966 library_names_spec='${libname}${shared_ext}'
9967 dynamic_linker="$host_os ld.so"
9968 shlibpath_var=LIBRARY_PATH
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9980 # the default ld.so.conf also contains /usr/contrib/lib and
9981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9982 # libtool to hard-code these into programs
9985 cygwin* | mingw* | pw32* | cegcc*)
9986 version_type=windows
9991 case $GCC,$host_os in
9992 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9993 library_names_spec='$libname.dll.a'
9994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9995 postinstall_cmds='base_file=`basename \${file}`~
9996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9997 dldir=$destdir/`dirname \$dlpath`~
9998 test -d \$dldir || mkdir -p \$dldir~
9999 $install_prog $dir/$dlname \$dldir/$dlname~
10000 chmod a+x \$dldir/$dlname~
10001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10005 dlpath=$dir/\$dldll~
10007 shlibpath_overrides_runpath=yes
10011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10017 # MinGW DLLs use traditional 'lib' prefix
10018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021 # pw32 DLLs use 'pw' prefix rather than 'lib'
10022 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10028 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10031 dynamic_linker='Win32 ld.exe'
10032 # FIXME: first we should search . and the directory the executable is in
10036 darwin* | rhapsody*)
10037 dynamic_linker="$host_os dyld"
10038 version_type=darwin
10041 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10042 soname_spec='${libname}${release}${major}$shared_ext'
10043 shlibpath_overrides_runpath=yes
10044 shlibpath_var=DYLD_LIBRARY_PATH
10045 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 shlibpath_var=LD_LIBRARY_PATH
10060 freebsd* | dragonfly*)
10061 # DragonFly does not have aout. When/if they implement a new
10062 # versioning mechanism, adjust this.
10063 if test -x /usr/bin/objformat; then
10064 objformat=`/usr/bin/objformat`
10067 freebsd[123]*) objformat=aout ;;
10068 *) objformat=elf ;;
10071 version_type=freebsd-$objformat
10072 case $version_type in
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10083 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10088 freebsd3.[01]* | freebsdelf3.[01]*)
10089 shlibpath_overrides_runpath=yes
10090 hardcode_into_libs=yes
10092 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10093 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10094 shlibpath_overrides_runpath=no
10095 hardcode_into_libs=yes
10097 *) # from 4.6 on, and DragonFly
10098 shlibpath_overrides_runpath=yes
10099 hardcode_into_libs=yes
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 hardcode_into_libs=yes
10118 dynamic_linker="$host_os runtime_loader"
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10121 shlibpath_var=LIBRARY_PATH
10122 shlibpath_overrides_runpath=yes
10123 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10124 hardcode_into_libs=yes
10127 hpux9* | hpux10* | hpux11*)
10128 # Give a soname corresponding to the major version so that dld.sl refuses to
10129 # link against other versions.
10136 hardcode_into_libs=yes
10137 dynamic_linker="$host_os dld.so"
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 if test "X$HPUX_IA64_MODE" = X32; then
10143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151 hardcode_into_libs=yes
10152 dynamic_linker="$host_os dld.sl"
10153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10162 dynamic_linker="$host_os dld.sl"
10163 shlibpath_var=SHLIB_PATH
10164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 soname_spec='${libname}${release}${shared_ext}$major'
10169 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10170 postinstall_cmds='chmod 555 $lib'
10171 # or fails outright, so override atomically:
10172 install_override_mode=555
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10187 irix5* | irix6* | nonstopux*)
10189 nonstopux*) version_type=nonstopux ;;
10191 if test "$lt_cv_prog_gnu_ld" = yes; then
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10202 irix5* | nonstopux*)
10203 libsuff= shlibsuff=
10206 case $LD in # libtool.m4 will add one of these switches to LD
10207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208 libsuff= shlibsuff= libmagic=32-bit;;
10209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210 libsuff=32 shlibsuff=N32 libmagic=N32;;
10211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213 *) libsuff= shlibsuff= libmagic=never-match;;
10217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218 shlibpath_overrides_runpath=no
10219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221 hardcode_into_libs=yes
10224 # No shared lib support for Linux oldld, aout, or coff.
10225 linux*oldld* | linux*aout* | linux*coff*)
10229 # This must be Linux ELF.
10230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10240 # Some binutils ld are patched to set DT_RUNPATH
10241 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 lt_cv_shlibpath_overrides_runpath=no
10245 save_LDFLAGS=$LDFLAGS
10246 save_libdir=$libdir
10247 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10248 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10262 lt_cv_shlibpath_overrides_runpath=yes
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LDFLAGS=$save_LDFLAGS
10268 libdir=$save_libdir
10272 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10274 # This implies no fast_install, which is unacceptable.
10275 # Some rework will be needed to allow for fast_install
10276 # before this can be enabled.
10277 hardcode_into_libs=yes
10279 # Append ld.so.conf contents to the search path
10280 if test -f /etc/ld.so.conf; then
10281 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' ' '`
10282 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10285 # We used to test for /lib/ld.so.1 and disable shared libraries on
10286 # powerpc, because MkLinux only supported shared libraries with the
10287 # GNU dynamic linker. Since this was broken with cross compilers,
10288 # most powerpc-linux boxes support dynamic linking these days and
10289 # people can always --disable-shared, the test was removed, and we
10290 # assume the GNU/Linux dynamic linker is in use.
10291 dynamic_linker='GNU/Linux ld.so'
10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301 dynamic_linker='NetBSD (a.out) ld.so'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 dynamic_linker='NetBSD ld.elf_so'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 dynamic_linker='ldqnx.so'
10333 sys_lib_dlsearch_path_spec="/usr/lib"
10335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10338 *) need_version=no ;;
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10345 openbsd2.[89] | openbsd2.[89].*)
10346 shlibpath_overrides_runpath=no
10349 shlibpath_overrides_runpath=yes
10353 shlibpath_overrides_runpath=yes
10358 libname_spec='$name'
10361 library_names_spec='$libname${shared_ext} $libname.a'
10362 dynamic_linker='OS/2 ld.exe'
10363 shlibpath_var=LIBPATH
10366 osf3* | osf4* | osf5*)
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 # ldd complains unless libraries are executable
10391 postinstall_cmds='chmod +x $lib'
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10400 if test "$with_gnu_ld" = yes; then
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 case $host_vendor in
10413 shlibpath_overrides_runpath=no
10415 runpath_var=LD_RUN_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10430 if test -d /usr/nec ;then
10432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10433 soname_spec='$libname${shared_ext}.$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10439 version_type=freebsd-elf
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 if test "$with_gnu_ld" = yes; then
10448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10457 sys_lib_dlsearch_path_spec='/usr/lib'
10461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10483 $as_echo "$dynamic_linker" >&6; }
10484 test "$dynamic_linker" = no && can_build_shared=no
10486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10487 if test "$GCC" = yes; then
10488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10590 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10592 if test -n "$hardcode_libdir_flag_spec" ||
10593 test -n "$runpath_var" ||
10594 test "X$hardcode_automatic" = "Xyes" ; then
10596 # We can hardcode non-existent directories.
10597 if test "$hardcode_direct" != no &&
10598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10599 # have to relink, otherwise we might link with an installed library
10600 # when we should be linking with a yet-to-be-installed one
10601 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10602 test "$hardcode_minus_L" != no; then
10603 # Linking always hardcodes the temporary library directory.
10604 hardcode_action=relink
10606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10607 hardcode_action=immediate
10610 # We cannot hardcode anything, or else we can only hardcode existing
10612 hardcode_action=unsupported
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10615 $as_echo "$hardcode_action" >&6; }
10617 if test "$hardcode_action" = relink ||
10618 test "$inherit_rpath" = yes; then
10619 # Fast installation is not supported
10620 enable_fast_install=no
10621 elif test "$shlibpath_overrides_runpath" = yes ||
10622 test "$enable_shared" = no; then
10623 # Fast installation is not necessary
10624 enable_fast_install=needless
10632 if test "x$enable_dlopen" != xyes; then
10633 enable_dlopen=unknown
10634 enable_dlopen_self=unknown
10635 enable_dlopen_self_static=unknown
10642 lt_cv_dlopen="load_add_on"
10644 lt_cv_dlopen_self=yes
10647 mingw* | pw32* | cegcc*)
10648 lt_cv_dlopen="LoadLibrary"
10653 lt_cv_dlopen="dlopen"
10658 # if libdl is installed we need to link against it
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10660 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10661 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10664 ac_check_lib_save_LIBS=$LIBS
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_dl_dlopen=yes
10687 ac_cv_lib_dl_dlopen=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10694 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10695 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10699 lt_cv_dlopen="dyld"
10701 lt_cv_dlopen_self=yes
10708 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10709 if test "x$ac_cv_func_shl_load" = x""yes; then :
10710 lt_cv_dlopen="shl_load"
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10713 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10714 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10717 ac_check_lib_save_LIBS=$LIBS
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10732 return shl_load ();
10737 if ac_fn_c_try_link "$LINENO"; then :
10738 ac_cv_lib_dld_shl_load=yes
10740 ac_cv_lib_dld_shl_load=no
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10747 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10748 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10749 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10751 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10752 if test "x$ac_cv_func_dlopen" = x""yes; then :
10753 lt_cv_dlopen="dlopen"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10756 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10757 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10760 ac_check_lib_save_LIBS=$LIBS
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 ac_cv_lib_dl_dlopen=yes
10783 ac_cv_lib_dl_dlopen=no
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10791 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10799 ac_check_lib_save_LIBS=$LIBS
10800 LIBS="-lsvld $LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10819 if ac_fn_c_try_link "$LINENO"; then :
10820 ac_cv_lib_svld_dlopen=yes
10822 ac_cv_lib_svld_dlopen=no
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10829 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10830 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10834 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10835 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10838 ac_check_lib_save_LIBS=$LIBS
10840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h. */
10843 /* Override any GCC internal prototype to avoid an error.
10844 Use char because int might match the return type of a GCC
10845 builtin and then its argument prototype would still apply. */
10853 return dld_link ();
10858 if ac_fn_c_try_link "$LINENO"; then :
10859 ac_cv_lib_dld_dld_link=yes
10861 ac_cv_lib_dld_dld_link=no
10863 rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10865 LIBS=$ac_check_lib_save_LIBS
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10868 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10869 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10870 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10891 if test "x$lt_cv_dlopen" != xno; then
10897 case $lt_cv_dlopen in
10899 save_CPPFLAGS="$CPPFLAGS"
10900 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10902 save_LDFLAGS="$LDFLAGS"
10903 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10906 LIBS="$lt_cv_dlopen_libs $LIBS"
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10909 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10910 if test "${lt_cv_dlopen_self+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10913 if test "$cross_compiling" = yes; then :
10914 lt_cv_dlopen_self=cross
10916 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10917 lt_status=$lt_dlunknown
10918 cat > conftest.$ac_ext <<_LT_EOF
10919 #line 10919 "configure"
10920 #include "confdefs.h"
10929 # define LT_DLGLOBAL RTLD_GLOBAL
10932 # define LT_DLGLOBAL DL_GLOBAL
10934 # define LT_DLGLOBAL 0
10938 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10939 find out it does not work in some platform. */
10940 #ifndef LT_DLLAZY_OR_NOW
10942 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10945 # define LT_DLLAZY_OR_NOW DL_LAZY
10948 # define LT_DLLAZY_OR_NOW RTLD_NOW
10951 # define LT_DLLAZY_OR_NOW DL_NOW
10953 # define LT_DLLAZY_OR_NOW 0
10960 /* When -fvisbility=hidden is used, assume the code has been annotated
10961 correspondingly for the symbols needed. */
10962 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10963 void fnord () __attribute__((visibility("default")));
10966 void fnord () { int i=42; }
10969 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10970 int status = $lt_dlunknown;
10974 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10977 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10978 else puts (dlerror ());
10980 /* dlclose (self); */
10988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10989 (eval $ac_link) 2>&5
10991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10992 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10993 (./conftest; exit; ) >&5 2>/dev/null
10995 case x$lt_status in
10996 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10997 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10998 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11001 # compilation failed
11002 lt_cv_dlopen_self=no
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11010 $as_echo "$lt_cv_dlopen_self" >&6; }
11012 if test "x$lt_cv_dlopen_self" = xyes; then
11013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11015 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11016 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11019 if test "$cross_compiling" = yes; then :
11020 lt_cv_dlopen_self_static=cross
11022 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11023 lt_status=$lt_dlunknown
11024 cat > conftest.$ac_ext <<_LT_EOF
11025 #line 11025 "configure"
11026 #include "confdefs.h"
11035 # define LT_DLGLOBAL RTLD_GLOBAL
11038 # define LT_DLGLOBAL DL_GLOBAL
11040 # define LT_DLGLOBAL 0
11044 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11045 find out it does not work in some platform. */
11046 #ifndef LT_DLLAZY_OR_NOW
11048 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11051 # define LT_DLLAZY_OR_NOW DL_LAZY
11054 # define LT_DLLAZY_OR_NOW RTLD_NOW
11057 # define LT_DLLAZY_OR_NOW DL_NOW
11059 # define LT_DLLAZY_OR_NOW 0
11066 /* When -fvisbility=hidden is used, assume the code has been annotated
11067 correspondingly for the symbols needed. */
11068 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11069 void fnord () __attribute__((visibility("default")));
11072 void fnord () { int i=42; }
11075 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11076 int status = $lt_dlunknown;
11080 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11083 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11084 else puts (dlerror ());
11086 /* dlclose (self); */
11094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11095 (eval $ac_link) 2>&5
11097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11098 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11099 (./conftest; exit; ) >&5 2>/dev/null
11101 case x$lt_status in
11102 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11103 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11104 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11107 # compilation failed
11108 lt_cv_dlopen_self_static=no
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11116 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11119 CPPFLAGS="$save_CPPFLAGS"
11120 LDFLAGS="$save_LDFLAGS"
11125 case $lt_cv_dlopen_self in
11126 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11127 *) enable_dlopen_self=unknown ;;
11130 case $lt_cv_dlopen_self_static in
11131 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11132 *) enable_dlopen_self_static=unknown ;;
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11155 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11156 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11157 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11158 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11160 $as_echo "yes" >&6; }
11162 # FIXME - insert some real tests, host_os isn't really good enough
11165 if test -n "$STRIP" ; then
11166 striplib="$STRIP -x"
11167 old_striplib="$STRIP -S"
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11169 $as_echo "yes" >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11193 # Report which library types will actually be built
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11195 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11197 $as_echo "$can_build_shared" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11200 $as_echo_n "checking whether to build shared libraries... " >&6; }
11201 test "$can_build_shared" = "no" && enable_shared=no
11203 # On AIX, shared libraries and static libraries use the same namespace, and
11204 # are all built from PIC.
11207 test "$enable_shared" = yes && enable_static=no
11208 if test -n "$RANLIB"; then
11209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11210 postinstall_cmds='$RANLIB $lib'
11215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11216 test "$enable_shared" = yes && enable_static=no
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11221 $as_echo "$enable_shared" >&6; }
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11224 $as_echo_n "checking whether to build static libraries... " >&6; }
11225 # Make sure either enable_shared or enable_static is yes.
11226 test "$enable_shared" = yes || enable_static=yes
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11228 $as_echo "$enable_static" >&6; }
11235 ac_cpp='$CPP $CPPFLAGS'
11236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11254 # Source file extension for Go test sources.
11257 # Object file extension for compiled Go test sources.
11261 # Code to be used in simple compile tests
11262 lt_simple_compile_test_code="package main; func main() { }"
11264 # Code to be used in simple link tests
11265 lt_simple_link_test_code='package main; func main() { }'
11267 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11274 # If no C compiler was specified, use CC.
11277 # If no C compiler flags were specified, use CFLAGS.
11278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11280 # Allow CC to be a program name with arguments.
11284 # save warnings/boilerplate of simple test code
11285 ac_outfile=conftest.$ac_objext
11286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11288 _lt_compiler_boilerplate=`cat conftest.err`
11291 ac_outfile=conftest.$ac_objext
11292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11294 _lt_linker_boilerplate=`cat conftest.err`
11298 # Allow CC to be a program name with arguments.
11306 for cc_temp in $compiler""; do
11308 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11309 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11314 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11317 # Go did not exist at the time GCC didn't implicitly link libc in.
11318 archive_cmds_need_lc_GO=no
11320 old_archive_cmds_GO=$old_archive_cmds
11323 ## There is no encapsulation within the following macros, do not change
11324 ## the running order or otherwise move them around unless you know exactly
11325 ## what you are doing...
11326 if test -n "$compiler"; then
11328 lt_prog_compiler_no_builtin_flag_GO=
11330 if test "$GCC" = yes; then
11331 case $cc_basename in
11333 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11335 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11339 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11340 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
11343 lt_cv_prog_compiler_rtti_exceptions=no
11344 ac_outfile=conftest.$ac_objext
11345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11346 lt_compiler_flag="-fno-rtti -fno-exceptions"
11347 # Insert the option either (1) after the last *FLAGS variable, or
11348 # (2) before a word containing "conftest.", or (3) at the end.
11349 # Note that $ac_compile itself does not contain backslashes and begins
11350 # with a dollar sign (not a hyphen), so the echo should work correctly.
11351 # The option is referenced via a variable to avoid confusing sed.
11352 lt_compile=`echo "$ac_compile" | $SED \
11353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11355 -e 's:$: $lt_compiler_flag:'`
11356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11357 (eval "$lt_compile" 2>conftest.err)
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 if (exit $ac_status) && test -s "$ac_outfile"; then
11362 # The compiler can only warn and ignore the option if not recognized
11363 # So say no if there are warnings other than the usual output.
11364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11367 lt_cv_prog_compiler_rtti_exceptions=yes
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11374 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11376 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11377 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11386 lt_prog_compiler_wl_GO=
11387 lt_prog_compiler_pic_GO=
11388 lt_prog_compiler_static_GO=
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11391 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11393 if test "$GCC" = yes; then
11394 lt_prog_compiler_wl_GO='-Wl,'
11395 lt_prog_compiler_static_GO='-static'
11399 # All AIX code is PIC.
11400 if test "$host_cpu" = ia64; then
11401 # AIX 5 now supports IA64 processor
11402 lt_prog_compiler_static_GO='-Bstatic'
11409 # see comment about AmigaOS4 .so support
11410 lt_prog_compiler_pic_GO='-fPIC'
11413 # FIXME: we need at least 68020 code to build shared libraries, but
11414 # adding the `-m68020' flag to GCC prevents building anything better,
11416 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11422 # PIC is the default for these OSes.
11425 mingw* | cygwin* | pw32* | os2* | cegcc*)
11426 # This hack is so that the source file can tell whether it is being
11427 # built for inclusion in a dll (and should export symbols for example).
11428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11429 # (--disable-auto-import) libraries
11430 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11433 darwin* | rhapsody*)
11434 # PIC is the default on this platform
11435 # Common symbols not allowed in MH_DYLIB files
11436 lt_prog_compiler_pic_GO='-fno-common'
11440 # PIC is the default for Haiku.
11441 # The "-static" flag exists, but is broken.
11442 lt_prog_compiler_static_GO=
11446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11448 # sets the default TLS model and affects inlining.
11454 lt_prog_compiler_pic_GO='-fPIC'
11460 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11461 # Instead, we relocate shared libraries at runtime.
11465 # Just because we use GCC doesn't mean we suddenly get shared libraries
11466 # on systems that don't support them.
11467 lt_prog_compiler_can_build_shared_GO=no
11472 # QNX uses GNU C++, but need to define -shared option too, otherwise
11473 # it will coredump.
11474 lt_prog_compiler_pic_GO='-fPIC -shared'
11478 if test -d /usr/nec; then
11479 lt_prog_compiler_pic_GO=-Kconform_pic
11484 lt_prog_compiler_pic_GO='-fPIC'
11488 case $cc_basename in
11489 nvcc*) # Cuda Compiler Driver 2.2
11490 lt_prog_compiler_wl_GO='-Xlinker '
11491 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11495 # PORTME Check for flag to pass linker flags through the system compiler.
11498 lt_prog_compiler_wl_GO='-Wl,'
11499 if test "$host_cpu" = ia64; then
11500 # AIX 5 now supports IA64 processor
11501 lt_prog_compiler_static_GO='-Bstatic'
11503 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11507 mingw* | cygwin* | pw32* | os2* | cegcc*)
11508 # This hack is so that the source file can tell whether it is being
11509 # built for inclusion in a dll (and should export symbols for example).
11510 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11513 hpux9* | hpux10* | hpux11*)
11514 lt_prog_compiler_wl_GO='-Wl,'
11515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11516 # not for PA HP-UX.
11522 lt_prog_compiler_pic_GO='+Z'
11525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11526 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11529 irix5* | irix6* | nonstopux*)
11530 lt_prog_compiler_wl_GO='-Wl,'
11531 # PIC (with -KPIC) is the default.
11532 lt_prog_compiler_static_GO='-non_shared'
11535 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11536 case $cc_basename in
11537 # old Intel for x86_64 which still supported -KPIC.
11539 lt_prog_compiler_wl_GO='-Wl,'
11540 lt_prog_compiler_pic_GO='-KPIC'
11541 lt_prog_compiler_static_GO='-static'
11543 # icc used to be incompatible with GCC.
11544 # ICC 10 doesn't accept -KPIC any more.
11546 lt_prog_compiler_wl_GO='-Wl,'
11547 lt_prog_compiler_pic_GO='-fPIC'
11548 lt_prog_compiler_static_GO='-static'
11550 # Lahey Fortran 8.1.
11552 lt_prog_compiler_wl_GO='-Wl,'
11553 lt_prog_compiler_pic_GO='--shared'
11554 lt_prog_compiler_static_GO='--static'
11556 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11557 # Portland Group compilers (*not* the Pentium gcc compiler,
11558 # which looks to be a dead project)
11559 lt_prog_compiler_wl_GO='-Wl,'
11560 lt_prog_compiler_pic_GO='-fpic'
11561 lt_prog_compiler_static_GO='-Bstatic'
11564 lt_prog_compiler_wl_GO='-Wl,'
11565 # All Alpha code is PIC.
11566 lt_prog_compiler_static_GO='-non_shared'
11568 xl* | bgxl* | bgf* | mpixl*)
11569 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11570 lt_prog_compiler_wl_GO='-Wl,'
11571 lt_prog_compiler_pic_GO='-qpic'
11572 lt_prog_compiler_static_GO='-qstaticlink'
11575 case `$CC -V 2>&1 | sed 5q` in
11576 *Sun\ F* | *Sun*Fortran*)
11577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11578 lt_prog_compiler_pic_GO='-KPIC'
11579 lt_prog_compiler_static_GO='-Bstatic'
11580 lt_prog_compiler_wl_GO=''
11584 lt_prog_compiler_pic_GO='-KPIC'
11585 lt_prog_compiler_static_GO='-Bstatic'
11586 lt_prog_compiler_wl_GO='-Wl,'
11594 lt_prog_compiler_pic_GO='-KPIC'
11595 lt_prog_compiler_static_GO='-Bstatic'
11599 # QNX uses GNU C++, but need to define -shared option too, otherwise
11600 # it will coredump.
11601 lt_prog_compiler_pic_GO='-fPIC -shared'
11604 osf3* | osf4* | osf5*)
11605 lt_prog_compiler_wl_GO='-Wl,'
11606 # All OSF/1 code is PIC.
11607 lt_prog_compiler_static_GO='-non_shared'
11611 lt_prog_compiler_static_GO='-non_shared'
11615 lt_prog_compiler_pic_GO='-KPIC'
11616 lt_prog_compiler_static_GO='-Bstatic'
11617 case $cc_basename in
11618 f77* | f90* | f95*)
11619 lt_prog_compiler_wl_GO='-Qoption ld ';;
11621 lt_prog_compiler_wl_GO='-Wl,';;
11626 lt_prog_compiler_wl_GO='-Qoption ld '
11627 lt_prog_compiler_pic_GO='-PIC'
11628 lt_prog_compiler_static_GO='-Bstatic'
11631 sysv4 | sysv4.2uw2* | sysv4.3*)
11632 lt_prog_compiler_wl_GO='-Wl,'
11633 lt_prog_compiler_pic_GO='-KPIC'
11634 lt_prog_compiler_static_GO='-Bstatic'
11638 if test -d /usr/nec ;then
11639 lt_prog_compiler_pic_GO='-Kconform_pic'
11640 lt_prog_compiler_static_GO='-Bstatic'
11644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11645 lt_prog_compiler_wl_GO='-Wl,'
11646 lt_prog_compiler_pic_GO='-KPIC'
11647 lt_prog_compiler_static_GO='-Bstatic'
11651 lt_prog_compiler_wl_GO='-Wl,'
11652 lt_prog_compiler_can_build_shared_GO=no
11656 lt_prog_compiler_pic_GO='-pic'
11657 lt_prog_compiler_static_GO='-Bstatic'
11661 lt_prog_compiler_can_build_shared_GO=no
11667 # For platforms which do not support PIC, -DPIC is meaningless:
11669 lt_prog_compiler_pic_GO=
11672 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11676 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11681 # Check to make sure the PIC flag actually works.
11683 if test -n "$lt_prog_compiler_pic_GO"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11686 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11689 lt_cv_prog_compiler_pic_works_GO=no
11690 ac_outfile=conftest.$ac_objext
11691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11692 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11693 # Insert the option either (1) after the last *FLAGS variable, or
11694 # (2) before a word containing "conftest.", or (3) at the end.
11695 # Note that $ac_compile itself does not contain backslashes and begins
11696 # with a dollar sign (not a hyphen), so the echo should work correctly.
11697 # The option is referenced via a variable to avoid confusing sed.
11698 lt_compile=`echo "$ac_compile" | $SED \
11699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11701 -e 's:$: $lt_compiler_flag:'`
11702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11703 (eval "$lt_compile" 2>conftest.err)
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 if (exit $ac_status) && test -s "$ac_outfile"; then
11708 # The compiler can only warn and ignore the option if not recognized
11709 # So say no if there are warnings other than the usual output.
11710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11713 lt_cv_prog_compiler_pic_works_GO=yes
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11720 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11722 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11723 case $lt_prog_compiler_pic_GO in
11725 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11728 lt_prog_compiler_pic_GO=
11729 lt_prog_compiler_can_build_shared_GO=no
11737 # Check to make sure the static flag actually works.
11739 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11742 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 lt_cv_prog_compiler_static_works_GO=no
11746 save_LDFLAGS="$LDFLAGS"
11747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11750 # The linker can only warn and ignore the option if not recognized
11751 # So say no if there are warnings
11752 if test -s conftest.err; then
11753 # Append any errors to the config.log.
11754 cat conftest.err 1>&5
11755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11757 if diff conftest.exp conftest.er2 >/dev/null; then
11758 lt_cv_prog_compiler_static_works_GO=yes
11761 lt_cv_prog_compiler_static_works_GO=yes
11765 LDFLAGS="$save_LDFLAGS"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11769 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11771 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11774 lt_prog_compiler_static_GO=
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11782 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11785 lt_cv_prog_compiler_c_o_GO=no
11786 $RM -r conftest 2>/dev/null
11790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11792 lt_compiler_flag="-o out/conftest2.$ac_objext"
11793 # Insert the option either (1) after the last *FLAGS variable, or
11794 # (2) before a word containing "conftest.", or (3) at the end.
11795 # Note that $ac_compile itself does not contain backslashes and begins
11796 # with a dollar sign (not a hyphen), so the echo should work correctly.
11797 lt_compile=`echo "$ac_compile" | $SED \
11798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11800 -e 's:$: $lt_compiler_flag:'`
11801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11802 (eval "$lt_compile" 2>out/conftest.err)
11804 cat out/conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11808 # The compiler can only warn and ignore the option if not recognized
11809 # So say no if there are warnings
11810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11813 lt_cv_prog_compiler_c_o_GO=yes
11818 # SGI C++ compiler will create directory out/ii_files/ for
11819 # template instantiation
11820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11821 $RM out/* && rmdir out
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11828 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11834 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11837 lt_cv_prog_compiler_c_o_GO=no
11838 $RM -r conftest 2>/dev/null
11842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11844 lt_compiler_flag="-o out/conftest2.$ac_objext"
11845 # Insert the option either (1) after the last *FLAGS variable, or
11846 # (2) before a word containing "conftest.", or (3) at the end.
11847 # Note that $ac_compile itself does not contain backslashes and begins
11848 # with a dollar sign (not a hyphen), so the echo should work correctly.
11849 lt_compile=`echo "$ac_compile" | $SED \
11850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11852 -e 's:$: $lt_compiler_flag:'`
11853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11854 (eval "$lt_compile" 2>out/conftest.err)
11856 cat out/conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11860 # The compiler can only warn and ignore the option if not recognized
11861 # So say no if there are warnings
11862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11865 lt_cv_prog_compiler_c_o_GO=yes
11870 # SGI C++ compiler will create directory out/ii_files/ for
11871 # template instantiation
11872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11873 $RM out/* && rmdir out
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11880 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11885 hard_links="nottested"
11886 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11887 # do not overwrite the value of need_locks provided by the user
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11889 $as_echo_n "checking if we can lock with hard links... " >&6; }
11892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11894 ln conftest.a conftest.b 2>&5 || hard_links=no
11895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11897 $as_echo "$hard_links" >&6; }
11898 if test "$hard_links" = no; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11900 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11913 allow_undefined_flag_GO=
11914 always_export_symbols_GO=no
11916 archive_expsym_cmds_GO=
11917 compiler_needs_object_GO=no
11918 enable_shared_with_static_runtimes_GO=no
11919 export_dynamic_flag_spec_GO=
11920 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11921 hardcode_automatic_GO=no
11922 hardcode_direct_GO=no
11923 hardcode_direct_absolute_GO=no
11924 hardcode_libdir_flag_spec_GO=
11925 hardcode_libdir_flag_spec_ld_GO=
11926 hardcode_libdir_separator_GO=
11927 hardcode_minus_L_GO=no
11928 hardcode_shlibpath_var_GO=unsupported
11929 inherit_rpath_GO=no
11930 link_all_deplibs_GO=unknown
11932 module_expsym_cmds_GO=
11933 old_archive_from_new_cmds_GO=
11934 old_archive_from_expsyms_cmds_GO=
11935 thread_safe_flag_spec_GO=
11936 whole_archive_flag_spec_GO=
11937 # include_expsyms should be a list of space-separated symbols to be *always*
11938 # included in the symbol list
11939 include_expsyms_GO=
11940 # exclude_expsyms can be an extended regexp of symbols to exclude
11941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11943 # as well as any symbol that contains `d'.
11944 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11946 # platforms (ab)use it in PIC code, but their linkers get confused if
11947 # the symbol is explicitly referenced. Since portable code cannot
11948 # rely on this symbol name, it's probably fine to never include it in
11949 # preloaded symbol tables.
11950 # Exclude shared library initialization/finalization symbols.
11951 extract_expsyms_cmds=
11954 cygwin* | mingw* | pw32* | cegcc*)
11955 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11956 # When not using gcc, we currently assume that we are using
11957 # Microsoft Visual C++.
11958 if test "$GCC" != yes; then
11963 # we just hope/assume this is gcc and not c89 (= MSVC++)
11973 # On some targets, GNU ld is compatible enough with the native linker
11974 # that we're better off using the native interface for both.
11975 lt_use_gnu_ld_interface=no
11976 if test "$with_gnu_ld" = yes; then
11979 # The AIX port of GNU ld has always aspired to compatibility
11980 # with the native linker. However, as the warning in the GNU ld
11981 # block says, versions before 2.19.5* couldn't really create working
11982 # shared libraries, regardless of the interface used.
11983 case `$LD -v 2>&1` in
11984 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11985 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11986 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11988 lt_use_gnu_ld_interface=yes
11993 lt_use_gnu_ld_interface=yes
11998 if test "$lt_use_gnu_ld_interface" = yes; then
11999 # If archive_cmds runs LD, not CC, wlarc should be empty
12002 # Set some defaults for GNU ld with shared library support. These
12003 # are reset later if shared libraries are not supported. Putting them
12004 # here allows them to be overridden if necessary.
12005 runpath_var=LD_RUN_PATH
12006 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12007 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12008 # ancient GNU ld didn't support --whole-archive et. al.
12009 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12010 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12012 whole_archive_flag_spec_GO=
12014 supports_anon_versioning=no
12015 case `$LD -v 2>&1` in
12016 *GNU\ gold*) supports_anon_versioning=yes ;;
12017 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12018 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12019 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12020 *\ 2.11.*) ;; # other 2.11 versions
12021 *) supports_anon_versioning=yes ;;
12024 # See if GNU ld supports shared libraries.
12027 # On AIX/PPC, the GNU linker is very broken
12028 if test "$host_cpu" != ia64; then
12032 *** Warning: the GNU linker, at least up to release 2.19, is reported
12033 *** to be unable to reliably create shared libraries on AIX.
12034 *** Therefore, libtool is disabling shared libraries support. If you
12035 *** really care for shared libraries, you may want to install binutils
12036 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12037 *** You will then need to restart the configuration process.
12046 # see comment about AmigaOS4 .so support
12047 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12048 archive_expsym_cmds_GO=''
12051 archive_cmds_GO='$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)'
12052 hardcode_libdir_flag_spec_GO='-L$libdir'
12053 hardcode_minus_L_GO=yes
12059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12060 allow_undefined_flag_GO=unsupported
12061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12062 # support --undefined. This deserves some investigation. FIXME
12063 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12069 cygwin* | mingw* | pw32* | cegcc*)
12070 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12071 # as there is no search path for DLLs.
12072 hardcode_libdir_flag_spec_GO='-L$libdir'
12073 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12074 allow_undefined_flag_GO=unsupported
12075 always_export_symbols_GO=no
12076 enable_shared_with_static_runtimes_GO=yes
12077 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12079 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12080 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12081 # If the export-symbols file already is a .def file (1st line
12082 # is EXPORTS), use it as is; otherwise, prepend...
12083 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12084 cp $export_symbols $output_objdir/$soname.def;
12086 echo EXPORTS > $output_objdir/$soname.def;
12087 cat $export_symbols >> $output_objdir/$soname.def;
12089 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12096 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12097 link_all_deplibs_GO=yes
12101 hardcode_direct_GO=no
12102 hardcode_shlibpath_var_GO=no
12103 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12104 export_dynamic_flag_spec_GO='${wl}-E'
12105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12106 # Instead, shared libraries are loaded at an image base (0x10000000 by
12107 # default) and relocated if they conflict, which is a slow very memory
12108 # consuming and fragmenting process. To avoid this, we pick a random,
12109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12110 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12111 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12112 archive_expsym_cmds_GO='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'
12115 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12117 if test "$host_os" = linux-dietlibc; then
12118 case $cc_basename in
12119 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12122 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12123 && test "$tmp_diet" = no
12126 tmp_sharedflag='-shared'
12127 case $cc_basename,$host_cpu in
12128 pgcc*) # Portland Group C compiler
12129 whole_archive_flag_spec_GO='${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'
12130 tmp_addflag=' $pic_flag'
12132 pgf77* | pgf90* | pgf95* | pgfortran*)
12133 # Portland Group f77 and f90 compilers
12134 whole_archive_flag_spec_GO='${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'
12135 tmp_addflag=' $pic_flag -Mnomain' ;;
12136 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12137 tmp_addflag=' -i_dynamic' ;;
12138 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12139 tmp_addflag=' -i_dynamic -nofor_main' ;;
12140 ifc* | ifort*) # Intel Fortran compiler
12141 tmp_addflag=' -nofor_main' ;;
12142 lf95*) # Lahey Fortran 8.1
12143 whole_archive_flag_spec_GO=
12144 tmp_sharedflag='--shared' ;;
12145 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12146 tmp_sharedflag='-qmkshrobj'
12148 nvcc*) # Cuda Compiler Driver 2.2
12149 whole_archive_flag_spec_GO='${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'
12150 compiler_needs_object_GO=yes
12153 case `$CC -V 2>&1 | sed 5q` in
12154 *Sun\ C*) # Sun C 5.9
12155 whole_archive_flag_spec_GO='${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'
12156 compiler_needs_object_GO=yes
12157 tmp_sharedflag='-G' ;;
12158 *Sun\ F*) # Sun Fortran 8.3
12159 tmp_sharedflag='-G' ;;
12161 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12163 if test "x$supports_anon_versioning" = xyes; then
12164 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12166 echo "local: *; };" >> $output_objdir/$libname.ver~
12167 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12170 case $cc_basename in
12171 xlf* | bgf* | bgxlf* | mpixlf*)
12172 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12173 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12174 hardcode_libdir_flag_spec_GO=
12175 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12176 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12177 if test "x$supports_anon_versioning" = xyes; then
12178 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12179 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12180 echo "local: *; };" >> $output_objdir/$libname.ver~
12181 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12192 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12195 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12201 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12205 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12206 *** create shared libraries on Solaris systems. Therefore, libtool
12207 *** is disabling shared libraries support. We urge you to upgrade GNU
12208 *** binutils to release 2.9.1 or newer. Another option is to modify
12209 *** your PATH or compiler configuration so that the native linker is
12210 *** used, and then restart.
12213 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12214 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12215 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12222 case `$LD -v 2>&1` in
12223 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12227 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12228 *** reliably create shared libraries on SCO systems. Therefore, libtool
12229 *** is disabling shared libraries support. We urge you to upgrade GNU
12230 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12231 *** your PATH or compiler configuration so that the native linker is
12232 *** used, and then restart.
12237 # For security reasons, it is highly recommended that you always
12238 # use absolute paths for naming shared libraries, and exclude the
12239 # DT_RUNPATH tag from executables and libraries. But doing so
12240 # requires that you compile everything twice, which is a pain.
12241 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12242 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12243 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12253 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12255 hardcode_direct_GO=yes
12256 hardcode_shlibpath_var_GO=no
12260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12261 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12262 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12269 if test "$ld_shlibs_GO" = no; then
12271 hardcode_libdir_flag_spec_GO=
12272 export_dynamic_flag_spec_GO=
12273 whole_archive_flag_spec_GO=
12276 # PORTME fill in a description of your system's linker (not GNU ld)
12279 allow_undefined_flag_GO=unsupported
12280 always_export_symbols_GO=yes
12281 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12282 # Note: this linker hardcodes the directories in LIBPATH if there
12283 # are no directories specified by -L.
12284 hardcode_minus_L_GO=yes
12285 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12286 # Neither direct hardcoding nor static linking is supported with a
12288 hardcode_direct_GO=unsupported
12293 if test "$host_cpu" = ia64; then
12294 # On IA64, the linker does run time linking by default, so we don't
12295 # have to do anything special.
12296 aix_use_runtimelinking=no
12297 exp_sym_flag='-Bexport'
12300 # If we're using GNU nm, then we don't want the "-C" option.
12301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12302 # Also, AIX nm treats weak defined symbols like other global
12303 # defined symbols, whereas GNU nm marks them as "W".
12304 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12305 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12307 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12309 aix_use_runtimelinking=no
12311 # Test if we are trying to use run time linking or normal
12312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12313 # need to do runtime linking.
12314 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12315 for ld_flag in $LDFLAGS; do
12316 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12317 aix_use_runtimelinking=yes
12324 exp_sym_flag='-bexport'
12325 no_entry_flag='-bnoentry'
12328 # When large executables or shared objects are built, AIX ld can
12329 # have problems creating the table of contents. If linking a library
12330 # or program results in "error TOC overflow" add -mminimal-toc to
12331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12335 hardcode_direct_GO=yes
12336 hardcode_direct_absolute_GO=yes
12337 hardcode_libdir_separator_GO=':'
12338 link_all_deplibs_GO=yes
12339 file_list_spec_GO='${wl}-f,'
12341 if test "$GCC" = yes; then
12342 case $host_os in aix4.[012]|aix4.[012].*)
12343 # We only want to do this on AIX 4.2 and lower, the check
12344 # below for broken collect2 doesn't work under 4.3+
12345 collect2name=`${CC} -print-prog-name=collect2`
12346 if test -f "$collect2name" &&
12347 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12349 # We have reworked collect2
12352 # We have old collect2
12353 hardcode_direct_GO=unsupported
12354 # It fails to find uninstalled libraries when the uninstalled
12355 # path is not listed in the libpath. Setting hardcode_minus_L
12356 # to unsupported forces relinking
12357 hardcode_minus_L_GO=yes
12358 hardcode_libdir_flag_spec_GO='-L$libdir'
12359 hardcode_libdir_separator_GO=
12363 shared_flag='-shared'
12364 if test "$aix_use_runtimelinking" = yes; then
12365 shared_flag="$shared_flag "'${wl}-G'
12369 if test "$host_cpu" = ia64; then
12370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12371 # chokes on -Wl,-G. The following line is correct:
12374 if test "$aix_use_runtimelinking" = yes; then
12375 shared_flag='${wl}-G'
12377 shared_flag='${wl}-bM:SRE'
12382 export_dynamic_flag_spec_GO='${wl}-bexpall'
12383 # It seems that -bexpall does not export symbols beginning with
12384 # underscore (_), so it is better to generate a list of symbols to export.
12385 always_export_symbols_GO=yes
12386 if test "$aix_use_runtimelinking" = yes; then
12387 # Warning - without using the other runtime loading flags (-brtl),
12388 # -berok will link without error, but may produce a broken library.
12389 allow_undefined_flag_GO='-berok'
12390 # Determine the default libpath from the value encoded in an
12391 # empty executable.
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12403 if ac_fn_c_try_link "$LINENO"; then :
12405 lt_aix_libpath_sed='
12406 /Import File Strings/,/^$/ {
12412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 # Check for a 64-bit object if we didn't find anything.
12414 if test -z "$aix_libpath"; then
12415 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12422 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12423 archive_expsym_cmds_GO='$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"
12425 if test "$host_cpu" = ia64; then
12426 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12427 allow_undefined_flag_GO="-z nodefs"
12428 archive_expsym_cmds_GO="\$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"
12430 # Determine the default libpath from the value encoded in an
12431 # empty executable.
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12443 if ac_fn_c_try_link "$LINENO"; then :
12445 lt_aix_libpath_sed='
12446 /Import File Strings/,/^$/ {
12452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453 # Check for a 64-bit object if we didn't find anything.
12454 if test -z "$aix_libpath"; then
12455 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12462 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12463 # Warning - without using the other run time loading flags,
12464 # -berok will link without error, but may produce a broken library.
12465 no_undefined_flag_GO=' ${wl}-bernotok'
12466 allow_undefined_flag_GO=' ${wl}-berok'
12467 if test "$with_gnu_ld" = yes; then
12468 # We only use this code for GNU lds that support --whole-archive.
12469 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12471 # Exported symbols can be pulled into shared objects from archives
12472 whole_archive_flag_spec_GO='$convenience'
12474 archive_cmds_need_lc_GO=yes
12475 # This is similar to how AIX traditionally builds its shared libraries.
12476 archive_expsym_cmds_GO="\$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'
12484 # see comment about AmigaOS4 .so support
12485 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12486 archive_expsym_cmds_GO=''
12489 archive_cmds_GO='$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)'
12490 hardcode_libdir_flag_spec_GO='-L$libdir'
12491 hardcode_minus_L_GO=yes
12497 export_dynamic_flag_spec_GO=-rdynamic
12500 cygwin* | mingw* | pw32* | cegcc*)
12501 # When not using gcc, we currently assume that we are using
12502 # Microsoft Visual C++.
12503 # hardcode_libdir_flag_spec is actually meaningless, as there is
12504 # no search path for DLLs.
12505 hardcode_libdir_flag_spec_GO=' '
12506 allow_undefined_flag_GO=unsupported
12507 # Tell ltmain to make .lib files, not .a files.
12509 # Tell ltmain to make .dll files, not .so files.
12511 # FIXME: Setting linknames here is a bad hack.
12512 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12513 # The linker will automatically build a .lib file if we build a DLL.
12514 old_archive_from_new_cmds_GO='true'
12515 # FIXME: Should let the user specify the lib program.
12516 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12517 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12518 enable_shared_with_static_runtimes_GO=yes
12521 darwin* | rhapsody*)
12524 archive_cmds_need_lc_GO=no
12525 hardcode_direct_GO=no
12526 hardcode_automatic_GO=yes
12527 hardcode_shlibpath_var_GO=unsupported
12528 if test "$lt_cv_ld_force_load" = "yes"; then
12529 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12531 whole_archive_flag_spec_GO=''
12533 link_all_deplibs_GO=yes
12534 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12535 case $cc_basename in
12536 ifort*) _lt_dar_can_shared=yes ;;
12537 *) _lt_dar_can_shared=$GCC ;;
12539 if test "$_lt_dar_can_shared" = "yes"; then
12540 output_verbose_link_cmd=func_echo_all
12541 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12542 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12543 archive_expsym_cmds_GO="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}"
12544 module_expsym_cmds_GO="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}"
12553 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12554 hardcode_libdir_flag_spec_GO='-L$libdir'
12555 hardcode_shlibpath_var_GO=no
12558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12559 # support. Future versions do this automatically, but an explicit c++rt0.o
12560 # does not break anything, and helps significantly (at the cost of a little
12563 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12564 hardcode_libdir_flag_spec_GO='-R$libdir'
12565 hardcode_direct_GO=yes
12566 hardcode_shlibpath_var_GO=no
12569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12571 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12572 hardcode_direct_GO=yes
12573 hardcode_minus_L_GO=yes
12574 hardcode_shlibpath_var_GO=no
12577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12578 freebsd* | dragonfly*)
12579 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12580 hardcode_libdir_flag_spec_GO='-R$libdir'
12581 hardcode_direct_GO=yes
12582 hardcode_shlibpath_var_GO=no
12586 if test "$GCC" = yes; then
12587 archive_cmds_GO='$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'
12589 archive_cmds_GO='$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'
12591 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12592 hardcode_libdir_separator_GO=:
12593 hardcode_direct_GO=yes
12595 # hardcode_minus_L: Not really in the search PATH,
12596 # but as the default location of the library.
12597 hardcode_minus_L_GO=yes
12598 export_dynamic_flag_spec_GO='${wl}-E'
12602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12603 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12605 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12607 if test "$with_gnu_ld" = no; then
12608 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12609 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12610 hardcode_libdir_separator_GO=:
12611 hardcode_direct_GO=yes
12612 hardcode_direct_absolute_GO=yes
12613 export_dynamic_flag_spec_GO='${wl}-E'
12614 # hardcode_minus_L: Not really in the search PATH,
12615 # but as the default location of the library.
12616 hardcode_minus_L_GO=yes
12621 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12624 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12627 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12636 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12639 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12642 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12646 if test "$with_gnu_ld" = no; then
12647 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12648 hardcode_libdir_separator_GO=:
12652 hardcode_direct_GO=no
12653 hardcode_shlibpath_var_GO=no
12656 hardcode_direct_GO=yes
12657 hardcode_direct_absolute_GO=yes
12658 export_dynamic_flag_spec_GO='${wl}-E'
12660 # hardcode_minus_L: Not really in the search PATH,
12661 # but as the default location of the library.
12662 hardcode_minus_L_GO=yes
12668 irix5* | irix6* | nonstopux*)
12669 if test "$GCC" = yes; then
12670 archive_cmds_GO='$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'
12671 # Try to use the -exported_symbol ld option, if it does not
12672 # work, assume that -exports_file does not work either and
12673 # implicitly export all symbols.
12674 save_LDFLAGS="$LDFLAGS"
12675 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12680 if ac_fn_c_try_link "$LINENO"; then :
12681 archive_expsym_cmds_GO='$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'
12684 rm -f core conftest.err conftest.$ac_objext \
12685 conftest$ac_exeext conftest.$ac_ext
12686 LDFLAGS="$save_LDFLAGS"
12688 archive_cmds_GO='$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'
12689 archive_expsym_cmds_GO='$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'
12691 archive_cmds_need_lc_GO='no'
12692 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12693 hardcode_libdir_separator_GO=:
12694 inherit_rpath_GO=yes
12695 link_all_deplibs_GO=yes
12699 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12700 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12702 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12704 hardcode_libdir_flag_spec_GO='-R$libdir'
12705 hardcode_direct_GO=yes
12706 hardcode_shlibpath_var_GO=no
12710 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711 hardcode_direct_GO=yes
12712 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12713 hardcode_libdir_separator_GO=:
12714 hardcode_shlibpath_var_GO=no
12721 if test -f /usr/libexec/ld.so; then
12722 hardcode_direct_GO=yes
12723 hardcode_shlibpath_var_GO=no
12724 hardcode_direct_absolute_GO=yes
12725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12726 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12727 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12728 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12729 export_dynamic_flag_spec_GO='${wl}-E'
12732 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12733 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12734 hardcode_libdir_flag_spec_GO='-R$libdir'
12737 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12738 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12748 hardcode_libdir_flag_spec_GO='-L$libdir'
12749 hardcode_minus_L_GO=yes
12750 allow_undefined_flag_GO=unsupported
12751 archive_cmds_GO='$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'
12752 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12756 if test "$GCC" = yes; then
12757 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12758 archive_cmds_GO='$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'
12760 allow_undefined_flag_GO=' -expect_unresolved \*'
12761 archive_cmds_GO='$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'
12763 archive_cmds_need_lc_GO='no'
12764 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12765 hardcode_libdir_separator_GO=:
12768 osf4* | osf5*) # as osf3* with the addition of -msym flag
12769 if test "$GCC" = yes; then
12770 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12771 archive_cmds_GO='$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'
12772 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12774 allow_undefined_flag_GO=' -expect_unresolved \*'
12775 archive_cmds_GO='$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'
12776 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12777 $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'
12779 # Both c and cxx compiler support -rpath directly
12780 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12782 archive_cmds_need_lc_GO='no'
12783 hardcode_libdir_separator_GO=:
12787 no_undefined_flag_GO=' -z defs'
12788 if test "$GCC" = yes; then
12790 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12791 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12792 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12794 case `$CC -V 2>&1` in
12797 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12798 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12803 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12804 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12805 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12809 hardcode_libdir_flag_spec_GO='-R$libdir'
12810 hardcode_shlibpath_var_GO=no
12812 solaris2.[0-5] | solaris2.[0-5].*) ;;
12814 # The compiler driver will combine and reorder linker options,
12815 # but understands `-z linker_flag'. GCC discards it without `$wl',
12816 # but is careful enough not to reorder.
12817 # Supported since Solaris 2.6 (maybe 2.5.1?)
12818 if test "$GCC" = yes; then
12819 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12821 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12825 link_all_deplibs_GO=yes
12829 if test "x$host_vendor" = xsequent; then
12830 # Use $CC to link under sequent, because it throws in some extra .o
12831 # files that make .init and .fini sections work.
12832 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12834 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12836 hardcode_libdir_flag_spec_GO='-L$libdir'
12837 hardcode_direct_GO=yes
12838 hardcode_minus_L_GO=yes
12839 hardcode_shlibpath_var_GO=no
12843 case $host_vendor in
12845 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12846 hardcode_direct_GO=yes # is this really true???
12849 ## LD is ld it makes a PLAMLIB
12850 ## CC just makes a GrossModule.
12851 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12852 reload_cmds_GO='$CC -r -o $output$reload_objs'
12853 hardcode_direct_GO=no
12856 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12860 runpath_var='LD_RUN_PATH'
12861 hardcode_shlibpath_var_GO=no
12865 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12866 hardcode_shlibpath_var_GO=no
12867 export_dynamic_flag_spec_GO='-Bexport'
12871 if test -d /usr/nec; then
12872 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12873 hardcode_shlibpath_var_GO=no
12874 runpath_var=LD_RUN_PATH
12875 hardcode_runpath_var=yes
12880 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12881 no_undefined_flag_GO='${wl}-z,text'
12882 archive_cmds_need_lc_GO=no
12883 hardcode_shlibpath_var_GO=no
12884 runpath_var='LD_RUN_PATH'
12886 if test "$GCC" = yes; then
12887 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12890 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12891 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 sysv5* | sco3.2v5* | sco5v6*)
12896 # Note: We can NOT use -z defs as we might desire, because we do not
12897 # link with -lc, and that would cause any symbols used from libc to
12898 # always be unresolved, which means just about no library would
12899 # ever link correctly. If we're not using GNU ld we use -z text
12900 # though, which does catch some bad symbols but isn't as heavy-handed
12902 no_undefined_flag_GO='${wl}-z,text'
12903 allow_undefined_flag_GO='${wl}-z,nodefs'
12904 archive_cmds_need_lc_GO=no
12905 hardcode_shlibpath_var_GO=no
12906 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12907 hardcode_libdir_separator_GO=':'
12908 link_all_deplibs_GO=yes
12909 export_dynamic_flag_spec_GO='${wl}-Bexport'
12910 runpath_var='LD_RUN_PATH'
12912 if test "$GCC" = yes; then
12913 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12914 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12916 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12922 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_libdir_flag_spec_GO='-L$libdir'
12924 hardcode_shlibpath_var_GO=no
12932 if test x$host_vendor = xsni; then
12934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12935 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12942 $as_echo "$ld_shlibs_GO" >&6; }
12943 test "$ld_shlibs_GO" = no && can_build_shared=no
12945 with_gnu_ld_GO=$with_gnu_ld
12953 # Do we need to explicitly link libc?
12955 case "x$archive_cmds_need_lc_GO" in
12957 # Assume -lc should be added
12958 archive_cmds_need_lc_GO=yes
12960 if test "$enable_shared" = yes && test "$GCC" = yes; then
12961 case $archive_cmds_GO in
12963 # FIXME: we may have to deal with multi-command sequences.
12966 # Test whether the compiler implicitly links with -lc since on some
12967 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12968 # to ld, don't add -lc before -lgcc.
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12970 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12971 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12972 $as_echo_n "(cached) " >&6
12975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12978 (eval $ac_compile) 2>&5
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; } 2>conftest.err; then
12984 libobjs=conftest.$ac_objext
12986 wl=$lt_prog_compiler_wl_GO
12987 pic_flag=$lt_prog_compiler_pic_GO
12993 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12994 allow_undefined_flag_GO=
12995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12996 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12999 test $ac_status = 0; }
13001 lt_cv_archive_cmds_need_lc_GO=no
13003 lt_cv_archive_cmds_need_lc_GO=yes
13005 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13007 cat conftest.err 1>&5
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13013 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13014 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13085 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13086 hardcode_action_GO=
13087 if test -n "$hardcode_libdir_flag_spec_GO" ||
13088 test -n "$runpath_var_GO" ||
13089 test "X$hardcode_automatic_GO" = "Xyes" ; then
13091 # We can hardcode non-existent directories.
13092 if test "$hardcode_direct_GO" != no &&
13093 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13094 # have to relink, otherwise we might link with an installed library
13095 # when we should be linking with a yet-to-be-installed one
13096 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13097 test "$hardcode_minus_L_GO" != no; then
13098 # Linking always hardcodes the temporary library directory.
13099 hardcode_action_GO=relink
13101 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13102 hardcode_action_GO=immediate
13105 # We cannot hardcode anything, or else we can only hardcode existing
13107 hardcode_action_GO=unsupported
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13110 $as_echo "$hardcode_action_GO" >&6; }
13112 if test "$hardcode_action_GO" = relink ||
13113 test "$inherit_rpath_GO" = yes; then
13114 # Fast installation is not supported
13115 enable_fast_install=no
13116 elif test "$shlibpath_overrides_runpath" = yes ||
13117 test "$enable_shared" = no; then
13118 # Fast installation is not necessary
13119 enable_fast_install=needless
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13143 ac_config_commands="$ac_config_commands libtool"
13148 # Only expand once:
13154 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13157 for ac_prog in gawk mawk nawk awk
13159 # Extract the first word of "$ac_prog", so it can be a program name with args.
13160 set dummy $ac_prog; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if test "${ac_cv_prog_AWK+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13166 if test -n "$AWK"; then
13167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_prog_AWK="$ac_prog"
13177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186 AWK=$ac_cv_prog_AWK
13187 if test -n "$AWK"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13189 $as_echo "$AWK" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13196 test -n "$AWK" && break
13200 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13206 glibgo_toolexecdir=no
13207 glibgo_toolexeclibdir=no
13208 glibgo_prefixdir=$prefix
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13211 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13212 # Check whether --enable-version-specific-runtime-libs was given.
13213 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13214 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13215 yes) version_specific_libs=yes ;;
13216 no) version_specific_libs=no ;;
13217 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13220 version_specific_libs=no
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13224 $as_echo "$version_specific_libs" >&6; }
13226 # Version-specific runtime libs processing.
13227 if test $version_specific_libs = yes; then
13228 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13229 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13232 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13233 # Install a library built with a cross compiler in tooldir, not libdir.
13234 if test x"$glibgo_toolexecdir" = x"no"; then
13235 if test -n "$with_cross_host" &&
13236 test x"$with_cross_host" != x"no"; then
13237 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13238 glibgo_toolexeclibdir='${toolexecdir}/lib'
13240 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13241 glibgo_toolexeclibdir='${libdir}'
13243 multi_os_directory=`$CC -print-multi-os-directory`
13244 case $multi_os_directory in
13245 .) ;; # Avoid trailing /.
13246 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13254 # See if the user wants to configure without libffi. Some
13255 # architectures don't support it. FIXME: We should set a default
13256 # based on the host.
13258 # Check whether --with-libffi was given.
13259 if test "${with_libffi+set}" = set; then :
13260 withval=$with_libffi; :
13262 with_libffi=${with_libffi_default-yes}
13268 if test "$with_libffi" != no; then
13270 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13272 LIBFFI=../libffi/libffi_convenience.la
13273 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13286 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13287 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13288 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13289 *-*-linux*) is_linux=yes; GOOS=linux ;;
13290 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13291 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13293 if test $is_darwin = yes; then
13294 LIBGO_IS_DARWIN_TRUE=
13295 LIBGO_IS_DARWIN_FALSE='#'
13297 LIBGO_IS_DARWIN_TRUE='#'
13298 LIBGO_IS_DARWIN_FALSE=
13301 if test $is_freebsd = yes; then
13302 LIBGO_IS_FREEBSD_TRUE=
13303 LIBGO_IS_FREEBSD_FALSE='#'
13305 LIBGO_IS_FREEBSD_TRUE='#'
13306 LIBGO_IS_FREEBSD_FALSE=
13309 if test $is_irix = yes; then
13310 LIBGO_IS_IRIX_TRUE=
13311 LIBGO_IS_IRIX_FALSE='#'
13313 LIBGO_IS_IRIX_TRUE='#'
13314 LIBGO_IS_IRIX_FALSE=
13317 if test $is_linux = yes; then
13318 LIBGO_IS_LINUX_TRUE=
13319 LIBGO_IS_LINUX_FALSE='#'
13321 LIBGO_IS_LINUX_TRUE='#'
13322 LIBGO_IS_LINUX_FALSE=
13325 if test $is_rtems = yes; then
13326 LIBGO_IS_RTEMS_TRUE=
13327 LIBGO_IS_RTEMS_FALSE='#'
13329 LIBGO_IS_RTEMS_TRUE='#'
13330 LIBGO_IS_RTEMS_FALSE=
13333 if test $is_solaris = yes; then
13334 LIBGO_IS_SOLARIS_TRUE=
13335 LIBGO_IS_SOLARIS_FALSE='#'
13337 LIBGO_IS_SOLARIS_TRUE='#'
13338 LIBGO_IS_SOLARIS_FALSE=
13359 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13363 i[34567]86-*-* | x86_64-*-*)
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13371 if ac_fn_c_try_compile "$LINENO"; then :
13376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 if test "$is_386" = "yes"; then
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13391 #if _MIPS_SIM != _ABIO32
13395 if ac_fn_c_try_compile "$LINENO"; then :
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13401 #if _MIPS_SIM != _ABIN32
13405 if ac_fn_c_try_compile "$LINENO"; then :
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 #if _MIPS_SIM != _ABI64
13415 if ac_fn_c_try_compile "$LINENO"; then :
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13421 #if _MIPS_SIM != _ABIO64
13425 if ac_fn_c_try_compile "$LINENO"; then :
13428 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 case "$mips_abi" in
13439 "o32") GOARCH=mipso32 ;;
13440 "n32") GOARCH=mipsn32 ;;
13441 "n64") GOARCH=mipsn64 ;;
13442 "o64") GOARCH=mipso64 ;;
13445 rs6000*-*-* | powerpc*-*-*)
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13453 if ac_fn_c_try_compile "$LINENO"; then :
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 if test "$is_ppc" = "yes"; then
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13469 #if defined(__sparcv9) || defined(__arch64__)
13473 if ac_fn_c_try_compile "$LINENO"; then :
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 if test "$is_sparc" = "yes"; then
13486 if test $is_386 = yes; then
13488 LIBGO_IS_386_FALSE='#'
13490 LIBGO_IS_386_TRUE='#'
13491 LIBGO_IS_386_FALSE=
13494 if test $is_alpha = yes; then
13495 LIBGO_IS_ALPHA_TRUE=
13496 LIBGO_IS_ALPHA_FALSE='#'
13498 LIBGO_IS_ALPHA_TRUE='#'
13499 LIBGO_IS_ALPHA_FALSE=
13502 if test $is_arm = yes; then
13504 LIBGO_IS_ARM_FALSE='#'
13506 LIBGO_IS_ARM_TRUE='#'
13507 LIBGO_IS_ARM_FALSE=
13510 if test $is_m68k = yes; then
13511 LIBGO_IS_M68K_TRUE=
13512 LIBGO_IS_M68K_FALSE='#'
13514 LIBGO_IS_M68K_TRUE='#'
13515 LIBGO_IS_M68K_FALSE=
13518 if test $mips_abi != unknown; then
13519 LIBGO_IS_MIPS_TRUE=
13520 LIBGO_IS_MIPS_FALSE='#'
13522 LIBGO_IS_MIPS_TRUE='#'
13523 LIBGO_IS_MIPS_FALSE=
13526 if test $mips_abi = o32; then
13527 LIBGO_IS_MIPSO32_TRUE=
13528 LIBGO_IS_MIPSO32_FALSE='#'
13530 LIBGO_IS_MIPSO32_TRUE='#'
13531 LIBGO_IS_MIPSO32_FALSE=
13534 if test $mips_abi = n32; then
13535 LIBGO_IS_MIPSN32_TRUE=
13536 LIBGO_IS_MIPSN32_FALSE='#'
13538 LIBGO_IS_MIPSN32_TRUE='#'
13539 LIBGO_IS_MIPSN32_FALSE=
13542 if test $mips_abi = n64; then
13543 LIBGO_IS_MIPSN64_TRUE=
13544 LIBGO_IS_MIPSN64_FALSE='#'
13546 LIBGO_IS_MIPSN64_TRUE='#'
13547 LIBGO_IS_MIPSN64_FALSE=
13550 if test $mips_abi = o64; then
13551 LIBGO_IS_MIPSO64_TRUE=
13552 LIBGO_IS_MIPSO64_FALSE='#'
13554 LIBGO_IS_MIPSO64_TRUE='#'
13555 LIBGO_IS_MIPSO64_FALSE=
13558 if test $is_ppc = yes; then
13560 LIBGO_IS_PPC_FALSE='#'
13562 LIBGO_IS_PPC_TRUE='#'
13563 LIBGO_IS_PPC_FALSE=
13566 if test $is_ppc64 = yes; then
13567 LIBGO_IS_PPC64_TRUE=
13568 LIBGO_IS_PPC64_FALSE='#'
13570 LIBGO_IS_PPC64_TRUE='#'
13571 LIBGO_IS_PPC64_FALSE=
13574 if test $is_sparc = yes; then
13575 LIBGO_IS_SPARC_TRUE=
13576 LIBGO_IS_SPARC_FALSE='#'
13578 LIBGO_IS_SPARC_TRUE='#'
13579 LIBGO_IS_SPARC_FALSE=
13582 if test $is_sparc64 = yes; then
13583 LIBGO_IS_SPARC64_TRUE=
13584 LIBGO_IS_SPARC64_FALSE='#'
13586 LIBGO_IS_SPARC64_TRUE='#'
13587 LIBGO_IS_SPARC64_FALSE=
13590 if test $is_x86_64 = yes; then
13591 LIBGO_IS_X86_64_TRUE=
13592 LIBGO_IS_X86_64_FALSE='#'
13594 LIBGO_IS_X86_64_TRUE='#'
13595 LIBGO_IS_X86_64_FALSE=
13600 GO_LIBCALL_OS_FILE=
13601 GO_LIBCALL_OS_ARCH_FILE=
13602 GO_SYSCALL_OS_FILE=
13603 GO_SYSCALL_OS_ARCH_FILE=
13604 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13605 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13607 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13608 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13610 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13611 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13613 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13614 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13623 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13624 # msghdr in <sys/socket.h>.
13625 OSCFLAGS='-D_XOPEN_SOURCE=500'
13628 # Solaris 8/9 need this so struct msghdr gets the msg_control
13629 # etc. fields in <sys/socket.h> (_XPG4_2).
13630 OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13632 *-*-solaris2.1[01])
13633 # Solaris 10+ needs this so struct msghdr gets the msg_control
13634 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
13635 # above doesn't work with C99.
13636 OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13642 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13643 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13646 CFLAGS_hold=$CFLAGS
13647 CFLAGS="$CFLAGS -fsplit-stack"
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 libgo_cv_c_split_stack_supported=yes
13655 libgo_cv_c_split_stack_supported=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 CFLAGS=$CFLAGS_hold
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13661 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13662 if test "$libgo_cv_c_split_stack_supported" = yes; then
13663 SPLIT_STACK=-fsplit-stack
13665 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13671 if test "$libgo_cv_c_split_stack_supported" = yes; then
13672 USING_SPLIT_STACK_TRUE=
13673 USING_SPLIT_STACK_FALSE='#'
13675 USING_SPLIT_STACK_TRUE='#'
13676 USING_SPLIT_STACK_FALSE=
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13681 $as_echo_n "checking whether linker supports split stack... " >&6; }
13682 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13685 libgo_cv_c_linker_supports_split_stack=no
13686 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13687 libgo_cv_c_linker_supports_split_stack=yes
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13691 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13692 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13694 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13700 $as_echo_n "checking for sqrt in -lm... " >&6; }
13701 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13702 $as_echo_n "(cached) " >&6
13704 ac_check_lib_save_LIBS=$LIBS
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13709 /* Override any GCC internal prototype to avoid an error.
13710 Use char because int might match the return type of a GCC
13711 builtin and then its argument prototype would still apply. */
13724 if ac_fn_c_try_link "$LINENO"; then :
13725 ac_cv_lib_m_sqrt=yes
13727 ac_cv_lib_m_sqrt=no
13729 rm -f core conftest.err conftest.$ac_objext \
13730 conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13734 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13735 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13742 $as_echo_n "checking for socket libraries... " >&6; }
13743 if test "${libgo_cv_lib_sockets+set}" = set; then :
13744 $as_echo_n "(cached) " >&6
13746 libgo_cv_lib_sockets=
13747 libgo_check_both=no
13748 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13749 if test "x$ac_cv_func_connect" = x""yes; then :
13750 libgo_check_socket=no
13752 libgo_check_socket=yes
13755 if test "$libgo_check_socket" = "yes"; then
13756 unset ac_cv_func_connect
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13758 $as_echo_n "checking for main in -lsocket... " >&6; }
13759 if test "${ac_cv_lib_socket_main+set}" = set; then :
13760 $as_echo_n "(cached) " >&6
13762 ac_check_lib_save_LIBS=$LIBS
13763 LIBS="-lsocket $LIBS"
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13776 if ac_fn_c_try_link "$LINENO"; then :
13777 ac_cv_lib_socket_main=yes
13779 ac_cv_lib_socket_main=no
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13786 $as_echo "$ac_cv_lib_socket_main" >&6; }
13787 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13788 libgo_cv_lib_sockets="-lsocket"
13790 libgo_check_both=yes
13794 if test "$libgo_check_both" = "yes"; then
13795 libgo_old_libs=$LIBS
13796 LIBS="$LIBS -lsocket -lnsl"
13797 unset ac_cv_func_accept
13798 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13799 if test "x$ac_cv_func_accept" = x""yes; then :
13801 libgo_cv_lib_sockets="-lsocket -lnsl"
13804 unset ac_cv_func_accept
13805 LIBS=$libgo_old_libs
13807 unset ac_cv_func_gethostbyname
13808 libgo_old_libs="$LIBS"
13809 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13810 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13814 $as_echo_n "checking for main in -lnsl... " >&6; }
13815 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13816 $as_echo_n "(cached) " >&6
13818 ac_check_lib_save_LIBS=$LIBS
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13832 if ac_fn_c_try_link "$LINENO"; then :
13833 ac_cv_lib_nsl_main=yes
13835 ac_cv_lib_nsl_main=no
13837 rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 LIBS=$ac_check_lib_save_LIBS
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13842 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13843 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13844 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13849 unset ac_cv_func_gethostbyname
13850 LIBS=$libgo_old_libs
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13854 $as_echo "$libgo_cv_lib_sockets" >&6; }
13855 NET_LIBS="$libgo_cv_lib_sockets"
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13859 $as_echo_n "checking whether -pthread is supported... " >&6; }
13860 if test "${libgo_cv_lib_pthread+set}" = set; then :
13861 $as_echo_n "(cached) " >&6
13863 CFLAGS_hold=$CFLAGS
13864 CFLAGS="$CFLAGS -pthread"
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870 libgo_cv_lib_pthread=yes
13872 libgo_cv_lib_pthread=no
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 CFLAGS=$CFLAGS_hold
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13878 $as_echo "$libgo_cv_lib_pthread" >&6; }
13880 if test "$libgo_cv_lib_pthread" = yes; then
13881 PTHREAD_CFLAGS=-pthread
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13887 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13888 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-lpthread $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13902 char pthread_create ();
13906 return pthread_create ();
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 ac_cv_lib_pthread_pthread_create=yes
13914 ac_cv_lib_pthread_pthread_create=no
13916 rm -f core conftest.err conftest.$ac_objext \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13921 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13922 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13923 PTHREAD_LIBS=-lpthread
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13929 $as_echo_n "checking for library containing sched_yield... " >&6; }
13930 if test "${ac_cv_search_sched_yield+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13933 ac_func_search_save_LIBS=$LIBS
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13937 /* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
13943 char sched_yield ();
13947 return sched_yield ();
13952 for ac_lib in '' rt; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 if ac_fn_c_try_link "$LINENO"; then :
13960 ac_cv_search_sched_yield=$ac_res
13962 rm -f core conftest.err conftest.$ac_objext \
13964 if test "${ac_cv_search_sched_yield+set}" = set; then :
13968 if test "${ac_cv_search_sched_yield+set}" = set; then :
13971 ac_cv_search_sched_yield=no
13973 rm conftest.$ac_ext
13974 LIBS=$ac_func_search_save_LIBS
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13977 $as_echo "$ac_cv_search_sched_yield" >&6; }
13978 ac_res=$ac_cv_search_sched_yield
13979 if test "$ac_res" != no; then :
13980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13986 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13987 if test "${ac_cv_c_bigendian+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13990 ac_cv_c_bigendian=unknown
13991 # See if we're dealing with a universal compiler.
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994 #ifndef __APPLE_CC__
13995 not a universal capable compiler
14000 if ac_fn_c_try_compile "$LINENO"; then :
14002 # Check for potential -arch flags. It is not universal unless
14003 # there are at least two -arch flags with different values.
14006 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14007 if test -n "$ac_prev"; then
14009 i?86 | x86_64 | ppc | ppc64)
14010 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14013 ac_cv_c_bigendian=universal
14019 elif test "x$ac_word" = "x-arch"; then
14024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14025 if test $ac_cv_c_bigendian = unknown; then
14026 # See if sys/param.h defines the BYTE_ORDER macro.
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14029 #include <sys/types.h>
14030 #include <sys/param.h>
14035 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14036 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14038 bogus endian macros
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046 # It does; now see whether it defined to BIG_ENDIAN or not.
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049 #include <sys/types.h>
14050 #include <sys/param.h>
14055 #if BYTE_ORDER != BIG_ENDIAN
14063 if ac_fn_c_try_compile "$LINENO"; then :
14064 ac_cv_c_bigendian=yes
14066 ac_cv_c_bigendian=no
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 if test $ac_cv_c_bigendian = unknown; then
14073 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14076 #include <limits.h>
14081 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14082 bogus endian macros
14089 if ac_fn_c_try_compile "$LINENO"; then :
14090 # It does; now see whether it defined to _BIG_ENDIAN or not.
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093 #include <limits.h>
14098 #ifndef _BIG_ENDIAN
14106 if ac_fn_c_try_compile "$LINENO"; then :
14107 ac_cv_c_bigendian=yes
14109 ac_cv_c_bigendian=no
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 if test $ac_cv_c_bigendian = unknown; then
14116 # Compile a test program.
14117 if test "$cross_compiling" = yes; then :
14118 # Try to guess by grepping values from an object file.
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121 short int ascii_mm[] =
14122 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14123 short int ascii_ii[] =
14124 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14125 int use_ascii (int i) {
14126 return ascii_mm[i] + ascii_ii[i];
14128 short int ebcdic_ii[] =
14129 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14130 short int ebcdic_mm[] =
14131 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14132 int use_ebcdic (int i) {
14133 return ebcdic_mm[i] + ebcdic_ii[i];
14140 return use_ascii (foo) == use_ebcdic (foo);
14145 if ac_fn_c_try_compile "$LINENO"; then :
14146 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14147 ac_cv_c_bigendian=yes
14149 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14150 if test "$ac_cv_c_bigendian" = unknown; then
14151 ac_cv_c_bigendian=no
14153 # finding both strings is unlikely to happen, but who knows?
14154 ac_cv_c_bigendian=unknown
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 $ac_includes_default
14167 /* Are we little or big endian? From Harbison&Steele. */
14171 char c[sizeof (long int)];
14174 return u.c[sizeof (long int) - 1] == 1;
14180 if ac_fn_c_try_run "$LINENO"; then :
14181 ac_cv_c_bigendian=no
14183 ac_cv_c_bigendian=yes
14185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14186 conftest.$ac_objext conftest.beam conftest.$ac_ext
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14192 $as_echo "$ac_cv_c_bigendian" >&6; }
14193 case $ac_cv_c_bigendian in #(
14195 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14201 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14205 as_fn_error "unknown endianness
14206 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14212 # Check whether --with-system-libunwind was given.
14213 if test "${with_system_libunwind+set}" = set; then :
14214 withval=$with_system_libunwind;
14217 # If system-libunwind was not specifically set, pick a default setting.
14218 if test x$with_system_libunwind = x; then
14220 ia64-*-hpux*) with_system_libunwind=yes ;;
14221 *) with_system_libunwind=no ;;
14224 # Based on system-libunwind and target, do we have ipinfo?
14225 if test x$with_system_libunwind = xyes; then
14227 ia64-*-*) have_unwind_getipinfo=no ;;
14228 *) have_unwind_getipinfo=yes ;;
14231 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14234 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14235 *) have_unwind_getipinfo=yes ;;
14240 if test x$have_unwind_getipinfo = xyes; then
14242 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14247 # Check whether --enable-sjlj-exceptions was given.
14248 if test "${enable_sjlj_exceptions+set}" = set; then :
14249 enableval=$enable_sjlj_exceptions; case "$enableval" in
14251 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14254 enable_sjlj_exceptions=auto
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14259 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14260 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14267 void clean (int *);
14270 int i __attribute__ ((cleanup (clean)));
14275 CFLAGS_hold=$CFLAGS
14276 CFLAGS="--save-temps -fexceptions"
14277 libgo_cv_lib_sjlj_exceptions=unknown
14278 if ac_fn_c_try_compile; then :
14279 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14280 libgo_cv_lib_sjlj_exceptions=yes
14281 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14282 libgo_cv_lib_sjlj_exceptions=no
14285 CFLAGS=$CFLAGS_hold
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14290 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14292 if test "$enable_sjlj_exceptions" = "auto"; then
14293 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14296 case $enable_sjlj_exceptions in
14299 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14305 as_fn_error "unable to detect exception model" "$LINENO" 5
14309 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h
14311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14312 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14313 eval as_val=\$$as_ac_Header
14314 if test "x$as_val" = x""yes; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14324 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14328 #include <sys/socket.h>
14332 eval as_val=\$$as_ac_Header
14333 if test "x$as_val" = x""yes; then :
14334 cat >>confdefs.h <<_ACEOF
14335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 if test "$ac_cv_header_sys_mman_h" = yes; then
14344 HAVE_SYS_MMAN_H_TRUE=
14345 HAVE_SYS_MMAN_H_FALSE='#'
14347 HAVE_SYS_MMAN_H_TRUE='#'
14348 HAVE_SYS_MMAN_H_FALSE=
14352 for ac_func in srandom random strerror_r strsignal wait4 mincore setenv
14354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14356 eval as_val=\$$as_ac_var
14357 if test "x$as_val" = x""yes; then :
14358 cat >>confdefs.h <<_ACEOF
14359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14365 if test "$ac_cv_func_strerror_r" = yes; then
14366 HAVE_STRERROR_R_TRUE=
14367 HAVE_STRERROR_R_FALSE='#'
14369 HAVE_STRERROR_R_TRUE='#'
14370 HAVE_STRERROR_R_FALSE=
14373 if test "$ac_cv_func_wait4" = yes; then
14375 HAVE_WAIT4_FALSE='#'
14377 HAVE_WAIT4_TRUE='#'
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14383 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14384 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14385 $as_echo_n "(cached) " >&6
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14390 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14392 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14395 if ac_fn_c_try_link "$LINENO"; then :
14396 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14398 libgo_cv_func___sync_bool_compare_and_swap_4=no
14400 rm -f core conftest.err conftest.$ac_objext \
14401 conftest$ac_exeext conftest.$ac_ext
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14404 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14405 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14407 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14412 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14413 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14419 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14421 int main() { return __sync_fetch_and_add (&i, 1); }
14424 if ac_fn_c_try_link "$LINENO"; then :
14425 libgo_cv_func___sync_fetch_and_add_4=yes
14427 libgo_cv_func___sync_fetch_and_add_4=no
14429 rm -f core conftest.err conftest.$ac_objext \
14430 conftest$ac_exeext conftest.$ac_ext
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14433 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14434 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14436 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14441 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14442 if test "${libgo_cv_c_stringops+set}" = set; then :
14443 $as_echo_n "(cached) " >&6
14445 CFLAGS_hold=$CFLAGS
14446 CFLAGS="$CFLAGS -minline-all-stringops"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 libgo_cv_c_stringops=yes
14454 libgo_cv_c_stringops=no
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 CFLAGS=$CFLAGS_hold
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14460 $as_echo "$libgo_cv_c_stringops" >&6; }
14462 if test "$libgo_cv_c_stringops" = yes; then
14463 STRINGOPS_FLAG=-minline-all-stringops
14467 CFLAGS_hold=$CFLAGS
14468 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14469 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14470 if test "x$ac_cv_type_off64_t" = x""yes; then :
14472 cat >>confdefs.h <<_ACEOF
14473 #define HAVE_OFF64_T 1
14479 CFLAGS=$CFLAGS_hold
14481 cat >confcache <<\_ACEOF
14482 # This file is a shell script that caches the results of configure
14483 # tests run on this system so they can be shared between configure
14484 # scripts and configure runs, see configure's option --config-cache.
14485 # It is not useful on other systems. If it contains results you don't
14486 # want to keep, you may remove or edit it.
14488 # config.status only pays attention to the cache file if you give it
14489 # the --recheck option to rerun configure.
14491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14493 # following values.
14497 # The following way of writing the cache mishandles newlines in values,
14498 # but we know of no workaround that is simple, portable, and efficient.
14499 # So, we kill variables containing newlines.
14500 # Ultrix sh set writes to stderr and can't be redirected directly,
14501 # and sets the high bit in the cache file unless we assign to the vars.
14503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14504 eval ac_val=\$$ac_var
14508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14512 _ | IFS | as_nl) ;; #(
14513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14514 *) { eval $ac_var=; unset $ac_var;} ;;
14520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14521 *${as_nl}ac_space=\ *)
14522 # `set' does not quote correctly, so add quotes: double-quote
14523 # substitution turns \\\\ into \\, and sed turns \\ into \.
14526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14529 # `set' quotes correctly as required by POSIX, so do not add quotes.
14530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14544 if test -w "$cache_file"; then
14545 test "x$cache_file" != "x/dev/null" &&
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14547 $as_echo "$as_me: updating cache $cache_file" >&6;}
14548 cat confcache >$cache_file
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14556 if test ${multilib} = yes; then
14557 multilib_arg="--enable-multilib"
14562 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14565 ac_config_commands="$ac_config_commands default"
14568 cat >confcache <<\_ACEOF
14569 # This file is a shell script that caches the results of configure
14570 # tests run on this system so they can be shared between configure
14571 # scripts and configure runs, see configure's option --config-cache.
14572 # It is not useful on other systems. If it contains results you don't
14573 # want to keep, you may remove or edit it.
14575 # config.status only pays attention to the cache file if you give it
14576 # the --recheck option to rerun configure.
14578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14580 # following values.
14584 # The following way of writing the cache mishandles newlines in values,
14585 # but we know of no workaround that is simple, portable, and efficient.
14586 # So, we kill variables containing newlines.
14587 # Ultrix sh set writes to stderr and can't be redirected directly,
14588 # and sets the high bit in the cache file unless we assign to the vars.
14590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14591 eval ac_val=\$$ac_var
14595 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14599 _ | IFS | as_nl) ;; #(
14600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14601 *) { eval $ac_var=; unset $ac_var;} ;;
14607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14608 *${as_nl}ac_space=\ *)
14609 # `set' does not quote correctly, so add quotes: double-quote
14610 # substitution turns \\\\ into \\, and sed turns \\ into \.
14613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14616 # `set' quotes correctly as required by POSIX, so do not add quotes.
14617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14631 if test -w "$cache_file"; then
14632 test "x$cache_file" != "x/dev/null" &&
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14634 $as_echo "$as_me: updating cache $cache_file" >&6;}
14635 cat confcache >$cache_file
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14644 # Let make expand exec_prefix.
14645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14647 DEFS=-DHAVE_CONFIG_H
14651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14652 # 1. Remove the extension, and $U if already installed.
14653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14656 # will be set to the directory where LIBOBJS objects are built.
14657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14660 LIBOBJS=$ac_libobjs
14662 LTLIBOBJS=$ac_ltlibobjs
14665 if test -n "$EXEEXT"; then
14667 am__EXEEXT_FALSE='#'
14669 am__EXEEXT_TRUE='#'
14673 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14674 as_fn_error "conditional \"AMDEP\" was never defined.
14675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14677 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14678 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14682 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14685 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14686 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14689 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14690 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14693 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14694 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14697 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14698 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14701 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14702 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14705 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14706 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14709 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14710 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14713 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14714 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14717 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14718 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14721 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14722 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14725 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14726 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14729 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14730 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14733 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14734 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14737 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14738 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14741 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14742 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14745 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14746 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14749 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14750 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14753 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14754 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14757 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14758 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14761 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14762 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14765 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14766 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14770 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14771 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14774 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14775 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14778 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14779 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14783 : ${CONFIG_STATUS=./config.status}
14785 ac_clean_files_save=$ac_clean_files
14786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14792 # Generated by $as_me.
14793 # Run this file to recreate the current configuration.
14794 # Compiler output produced by configure, useful for debugging
14795 # configure, is in config.log if it exists.
14798 ac_cs_recheck=false
14801 SHELL=\${CONFIG_SHELL-$SHELL}
14804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14805 ## -------------------- ##
14806 ## M4sh Initialization. ##
14807 ## -------------------- ##
14809 # Be more Bourne compatible
14810 DUALCASE=1; export DUALCASE # for MKS sh
14811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14815 # is contrary to our usage. Disable this feature.
14816 alias -g '${1+"$@"}'='"$@"'
14817 setopt NO_GLOB_SUBST
14819 case `(set -o) 2>/dev/null` in #(
14831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14835 # Prefer a ksh shell builtin over an external printf program on Solaris,
14836 # but without wasting forks for bash or zsh.
14837 if test -z "$BASH_VERSION$ZSH_VERSION" \
14838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14839 as_echo='print -r --'
14840 as_echo_n='print -rn --'
14841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14842 as_echo='printf %s\n'
14843 as_echo_n='printf %s'
14845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14847 as_echo_n='/usr/ucb/echo -n'
14849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14850 as_echo_n_body='eval
14854 expr "X$arg" : "X\\(.*\\)$as_nl";
14855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14859 export as_echo_n_body
14860 as_echo_n='sh -c $as_echo_n_body as_echo'
14862 export as_echo_body
14863 as_echo='sh -c $as_echo_body as_echo'
14866 # The user is always right.
14867 if test "${PATH_SEPARATOR+set}" != set; then
14869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14877 # We need space, tab and new line, in precisely that order. Quoting is
14878 # there to prevent editors from complaining about space-tab.
14879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14880 # splitting by setting IFS to empty value.)
14883 # Find who we are. Look in the path if we contain no directory separator.
14885 *[\\/]* ) as_myself=$0 ;;
14886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14890 test -z "$as_dir" && as_dir=.
14891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14897 # We did not find ourselves, most probably we were run as `sh COMMAND'
14898 # in which case we are not to be found in the path.
14899 if test "x$as_myself" = x; then
14902 if test ! -f "$as_myself"; then
14903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14907 # Unset variables that we do not need and which cause bugs (e.g. in
14908 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14909 # suppresses any "Segmentation fault" message there. '((' could
14910 # trigger a bug in pdksh 5.2.14.
14911 for as_var in BASH_ENV ENV MAIL MAILPATH
14912 do eval test x\${$as_var+set} = xset \
14913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14929 # as_fn_error ERROR [LINENO LOG_FD]
14930 # ---------------------------------
14931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14933 # script with status $?, using 1 if that was 0.
14936 as_status=$?; test $as_status -eq 0 && as_status=1
14938 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14941 $as_echo "$as_me: error: $1" >&2
14942 as_fn_exit $as_status
14946 # as_fn_set_status STATUS
14947 # -----------------------
14948 # Set $? to STATUS, without forking.
14949 as_fn_set_status ()
14952 } # as_fn_set_status
14954 # as_fn_exit STATUS
14955 # -----------------
14956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14960 as_fn_set_status $1
14966 # Portably unset VAR.
14969 { eval $1=; unset $1;}
14971 as_unset=as_fn_unset
14972 # as_fn_append VAR VALUE
14973 # ----------------------
14974 # Append the text in VALUE to the end of the definition contained in VAR. Take
14975 # advantage of any shell optimizations that allow amortized linear growth over
14976 # repeated appends, instead of the typical quadratic growth present in naive
14978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14979 eval 'as_fn_append ()
14990 # as_fn_arith ARG...
14991 # ------------------
14992 # Perform arithmetic evaluation on the ARGs, and store the result in the
14993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14994 # must be portable across $(()) and expr.
14995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14996 eval 'as_fn_arith ()
15003 as_val=`expr "$@" || test $? -eq 1`
15008 if expr a : '\(a\)' >/dev/null 2>&1 &&
15009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15016 as_basename=basename
15021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15027 as_me=`$as_basename -- "$0" ||
15028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15029 X"$0" : 'X\(//\)$' \| \
15030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15032 sed '/^.*\/\([^/][^/]*\)\/*$/{
15046 # Avoid depending upon Character Ranges.
15047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15050 as_cr_digits='0123456789'
15051 as_cr_alnum=$as_cr_Letters$as_cr_digits
15053 ECHO_C= ECHO_N= ECHO_T=
15054 case `echo -n x` in #(((((
15056 case `echo 'xy\c'` in
15057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15066 rm -f conf$$ conf$$.exe conf$$.file
15067 if test -d conf$$.dir; then
15068 rm -f conf$$.dir/conf$$.file
15071 mkdir conf$$.dir 2>/dev/null
15073 if (echo >conf$$.file) 2>/dev/null; then
15074 if ln -s conf$$.file conf$$ 2>/dev/null; then
15076 # ... but there are two gotchas:
15077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15079 # In both cases, we have to default to `cp -p'.
15080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15082 elif ln conf$$.file conf$$ 2>/dev/null; then
15090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15091 rmdir conf$$.dir 2>/dev/null
15096 # Create "$as_dir" as a directory, including parents if necessary.
15101 -*) as_dir=./$as_dir;;
15103 test -d "$as_dir" || eval $as_mkdir_p || {
15107 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15108 *) as_qdir=$as_dir;;
15110 as_dirs="'$as_qdir' $as_dirs"
15111 as_dir=`$as_dirname -- "$as_dir" ||
15112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15113 X"$as_dir" : 'X\(//\)[^/]' \| \
15114 X"$as_dir" : 'X\(//\)$' \| \
15115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15116 $as_echo X"$as_dir" |
15117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15121 /^X\(\/\/\)[^/].*/{
15134 test -d "$as_dir" && break
15136 test -z "$as_dirs" || eval "mkdir $as_dirs"
15137 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15141 if mkdir -p . 2>/dev/null; then
15142 as_mkdir_p='mkdir -p "$as_dir"'
15144 test -d ./-p && rmdir ./-p
15148 if test -x / >/dev/null 2>&1; then
15149 as_test_x='test -x'
15151 if ls -dL / >/dev/null 2>&1; then
15158 if test -d "$1"; then
15164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15165 ???[sx]*):;;*)false;;esac;fi
15169 as_executable_p=$as_test_x
15171 # Sed expression to map a string onto a valid CPP name.
15172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15174 # Sed expression to map a string onto a valid variable name.
15175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15179 ## ----------------------------------- ##
15180 ## Main body of $CONFIG_STATUS script. ##
15181 ## ----------------------------------- ##
15183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 # Save the log message, to keep $0 and so on meaningful, and to
15187 # report actual input values of CONFIG_FILES etc. instead of their
15188 # values after options handling.
15190 This file was extended by package-unused $as_me version-unused, which was
15191 generated by GNU Autoconf 2.64. Invocation command line was
15193 CONFIG_FILES = $CONFIG_FILES
15194 CONFIG_HEADERS = $CONFIG_HEADERS
15195 CONFIG_LINKS = $CONFIG_LINKS
15196 CONFIG_COMMANDS = $CONFIG_COMMANDS
15199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15204 case $ac_config_files in *"
15205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15208 case $ac_config_headers in *"
15209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15214 # Files that config.status was made for.
15215 config_files="$ac_config_files"
15216 config_headers="$ac_config_headers"
15217 config_commands="$ac_config_commands"
15221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15223 \`$as_me' instantiates files and other configuration actions
15224 from templates according to the current configuration. Unless the files
15225 and actions are specified as TAGs, all are instantiated by default.
15227 Usage: $0 [OPTION]... [TAG]...
15229 -h, --help print this help, then exit
15230 -V, --version print version number and configuration settings, then exit
15231 -q, --quiet, --silent
15232 do not print progress messages
15233 -d, --debug don't remove temporary files
15234 --recheck update $as_me by reconfiguring in the same conditions
15235 --file=FILE[:TEMPLATE]
15236 instantiate the configuration file FILE
15237 --header=FILE[:TEMPLATE]
15238 instantiate the configuration header FILE
15240 Configuration files:
15243 Configuration headers:
15246 Configuration commands:
15249 Report bugs to the package provider."
15252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15254 package-unused config.status version-unused
15255 configured by $0, generated by GNU Autoconf 2.64,
15256 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15258 Copyright (C) 2009 Free Software Foundation, Inc.
15259 This config.status script is free software; the Free Software Foundation
15260 gives unlimited permission to copy, distribute and modify it."
15267 test -n "\$AWK" || AWK=awk
15270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271 # The default lists apply if the user does not specify any file.
15277 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15278 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15289 # Handling of the options.
15290 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15292 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15293 $as_echo "$ac_cs_version"; exit ;;
15294 --debug | --debu | --deb | --de | --d | -d )
15296 --file | --fil | --fi | --f )
15299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15301 as_fn_append CONFIG_FILES " '$ac_optarg'"
15302 ac_need_defaults=false;;
15303 --header | --heade | --head | --hea )
15306 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15308 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15309 ac_need_defaults=false;;
15311 # Conflict between --help and --header
15312 as_fn_error "ambiguous option: \`$1'
15313 Try \`$0 --help' for more information.";;
15314 --help | --hel | -h )
15315 $as_echo "$ac_cs_usage"; exit ;;
15316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15317 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15320 # This is an error.
15321 -*) as_fn_error "unrecognized option: \`$1'
15322 Try \`$0 --help' for more information." ;;
15324 *) as_fn_append ac_config_targets " $1"
15325 ac_need_defaults=false ;;
15331 ac_configure_extra_args=
15333 if $ac_cs_silent; then
15335 ac_configure_extra_args="$ac_configure_extra_args --silent"
15339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15340 if \$ac_cs_recheck; then
15341 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15343 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15344 CONFIG_SHELL='$SHELL'
15345 export CONFIG_SHELL
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15355 ## Running $as_me. ##
15361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369 with_multisubdir="$with_multisubdir"
15370 with_multisrctop="$with_multisrctop"
15371 with_target_subdir="$with_target_subdir"
15372 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15373 multi_basedir="$multi_basedir"
15374 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15377 GFORTRAN="$GFORTRAN"
15379 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15382 # The HP-UX ksh and POSIX shell print the target directory to stdout
15383 # if CDPATH is set.
15384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15386 sed_quote_subst='$sed_quote_subst'
15387 double_quote_subst='$double_quote_subst'
15388 delay_variable_subst='$delay_variable_subst'
15389 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15390 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15391 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15392 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15393 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15394 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15395 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15396 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15397 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15398 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15399 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15400 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15401 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15402 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15403 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15404 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15405 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15406 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15407 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15408 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15409 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15410 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15411 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15412 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15413 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15414 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15415 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15416 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15417 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15418 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15419 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15420 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15421 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15422 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15423 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15424 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15425 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15426 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15427 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15428 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15429 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15430 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15431 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15432 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15433 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15434 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15435 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15436 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15437 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"`'
15438 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15439 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15440 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15441 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15442 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15443 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15444 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15445 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15446 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15447 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15448 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15449 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15450 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15451 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15452 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15453 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15454 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15455 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15456 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15457 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15458 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15459 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15460 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15461 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15462 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15463 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15464 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15465 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15466 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15467 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15468 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15469 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15470 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15471 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15472 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15473 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15474 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15475 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15476 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15477 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15478 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15479 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15480 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15481 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15482 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15483 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15484 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15485 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15486 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15487 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15488 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15489 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15490 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15491 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15492 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15493 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15494 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15495 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15496 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15497 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15498 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15499 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15500 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15501 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15502 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15503 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15504 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15505 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15506 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15507 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15508 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15509 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15510 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15511 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15512 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15513 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15514 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15515 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15516 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15517 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15518 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15519 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15520 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15521 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15522 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15523 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15524 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15525 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15526 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15527 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15528 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15529 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15530 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15531 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15532 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15533 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15534 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15535 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15536 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15537 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15538 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15539 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15540 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15541 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15542 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15543 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15544 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15545 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15546 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15547 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15548 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15549 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15550 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15551 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15554 LTCFLAGS='$LTCFLAGS'
15555 compiler='$compiler_DEFAULT'
15557 # A function that is used when there is no print builtin or printf.
15558 func_fallback_echo ()
15560 eval 'cat <<_LTECHO_EOF
15565 # Quote evaled strings.
15579 deplibs_check_method \
15588 lt_cv_sys_global_symbol_pipe \
15589 lt_cv_sys_global_symbol_to_cdecl \
15590 lt_cv_sys_global_symbol_to_c_name_address \
15591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15592 lt_prog_compiler_no_builtin_flag \
15593 lt_prog_compiler_wl \
15594 lt_prog_compiler_pic \
15595 lt_prog_compiler_static \
15596 lt_cv_prog_compiler_c_o \
15604 export_dynamic_flag_spec \
15605 whole_archive_flag_spec \
15606 compiler_needs_object \
15608 allow_undefined_flag \
15609 no_undefined_flag \
15610 hardcode_libdir_flag_spec \
15611 hardcode_libdir_flag_spec_ld \
15612 hardcode_libdir_separator \
15617 variables_saved_for_relink \
15619 library_names_spec \
15621 install_override_mode \
15628 lt_prog_compiler_no_builtin_flag_GO \
15629 lt_prog_compiler_wl_GO \
15630 lt_prog_compiler_pic_GO \
15631 lt_prog_compiler_static_GO \
15632 lt_cv_prog_compiler_c_o_GO \
15633 export_dynamic_flag_spec_GO \
15634 whole_archive_flag_spec_GO \
15635 compiler_needs_object_GO \
15637 allow_undefined_flag_GO \
15638 no_undefined_flag_GO \
15639 hardcode_libdir_flag_spec_GO \
15640 hardcode_libdir_flag_spec_ld_GO \
15641 hardcode_libdir_separator_GO \
15642 fix_srcfile_path_GO \
15643 exclude_expsyms_GO \
15644 include_expsyms_GO \
15645 file_list_spec_GO; do
15646 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15647 *[\\\\\\\`\\"\\\$]*)
15648 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15651 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15656 # Double-quote double-evaled strings.
15657 for var in reload_cmds \
15658 old_postinstall_cmds \
15659 old_postuninstall_cmds \
15661 extract_expsyms_cmds \
15662 old_archive_from_new_cmds \
15663 old_archive_from_expsyms_cmds \
15665 archive_expsym_cmds \
15667 module_expsym_cmds \
15668 export_symbols_cmds \
15671 postuninstall_cmds \
15673 sys_lib_search_path_spec \
15674 sys_lib_dlsearch_path_spec \
15676 old_archive_cmds_GO \
15677 old_archive_from_new_cmds_GO \
15678 old_archive_from_expsyms_cmds_GO \
15680 archive_expsym_cmds_GO \
15682 module_expsym_cmds_GO \
15683 export_symbols_cmds_GO \
15684 prelink_cmds_GO; do
15685 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15686 *[\\\\\\\`\\"\\\$]*)
15687 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15690 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15695 ac_aux_dir='$ac_aux_dir'
15696 xsi_shell='$xsi_shell'
15697 lt_shell_append='$lt_shell_append'
15699 # See if we are running on zsh, and set the options which allow our
15700 # commands through without removal of \ escapes INIT.
15701 if test -n "\${ZSH_VERSION+set}" ; then
15702 setopt NO_GLOB_SUBST
15708 TIMESTAMP='$TIMESTAMP'
15717 # Variables needed in config.status (file generation) which aren't already
15718 # passed by autoconf.
15724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15726 # Handling of arguments.
15727 for ac_config_target in $ac_config_targets
15729 case $ac_config_target in
15730 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15731 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15732 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15733 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15735 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15736 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15738 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15743 # If the user did not use the arguments to specify the items to instantiate,
15744 # then the envvar interface is used. Set only those that are not.
15745 # We use the long form for the default assignment because of an extremely
15746 # bizarre bug on SunOS 4.1.3.
15747 if $ac_need_defaults; then
15748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15753 # Have a temporary directory for convenience. Make it in the build tree
15754 # simply because there is no reason against having it here, and in addition,
15755 # creating and moving files from /tmp can sometimes cause problems.
15756 # Hook for its removal unless debugging.
15757 # Note that there is a small window in which the directory will not be cleaned:
15758 # after its creation but before its name has been assigned to `$tmp'.
15762 trap 'exit_status=$?
15763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15765 trap 'as_fn_exit 1' 1 2 13 15
15767 # Create a (secure) tmp directory for tmp files.
15770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15771 test -n "$tmp" && test -d "$tmp"
15774 tmp=./conf$$-$RANDOM
15775 (umask 077 && mkdir "$tmp")
15776 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15778 # Set up the scripts for CONFIG_FILES section.
15779 # No need to generate them if there are no CONFIG_FILES.
15780 # This happens for instance with `./config.status config.h'.
15781 if test -n "$CONFIG_FILES"; then
15784 ac_cr=`echo X | tr X '\015'`
15785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15786 # But we know of no other shell where ac_cr would be empty at this
15787 # point, so we can use a bashism as a fallback.
15788 if test "x$ac_cr" = x; then
15789 eval ac_cr=\$\'\\r\'
15791 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15795 ac_cs_awk_cr=$ac_cr
15798 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15803 echo "cat >conf$$subs.awk <<_ACEOF" &&
15804 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15806 } >conf$$subs.sh ||
15807 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15808 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15810 for ac_last_try in false false false false false :; do
15811 . ./conf$$subs.sh ||
15812 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15814 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15815 if test $ac_delim_n = $ac_delim_num; then
15817 elif $ac_last_try; then
15818 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15823 rm -f conf$$subs.sh
15825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15826 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15830 s/^/S["/; s/!.*/"]=/
15840 s/\(.\{148\}\).*/\1/
15842 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15847 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15854 s/\(.\{148\}\).*/\1/
15856 s/["\\]/\\&/g; s/^/"/; s/$/"/
15860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15865 ' <conf$$subs.awk | sed '
15870 ' >>$CONFIG_STATUS || ac_write_fail=1
15871 rm -f conf$$subs.awk
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15874 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15875 for (key in S) S_is_set[key] = 1
15881 nfields = split(line, field, "@")
15883 len = length(field[1])
15884 for (i = 2; i < nfields; i++) {
15886 keylen = length(key)
15887 if (S_is_set[key]) {
15889 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15890 len += length(value) + length(field[++i])
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15903 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15906 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15907 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15910 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15911 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15912 # trailing colons and then remove the whole line if VPATH becomes empty
15913 # (actually we leave an empty line to preserve line numbers).
15914 if test "x$srcdir" = x.; then
15915 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15916 s/:*\$(srcdir):*/:/
15917 s/:*\${srcdir}:*/:/
15919 s/^\([^=]*=[ ]*\):*/\1/
15925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15926 fi # test -n "$CONFIG_FILES"
15928 # Set up the scripts for CONFIG_HEADERS section.
15929 # No need to generate them if there are no CONFIG_HEADERS.
15930 # This happens for instance with `./config.status Makefile'.
15931 if test -n "$CONFIG_HEADERS"; then
15932 cat >"$tmp/defines.awk" <<\_ACAWK ||
15936 # Transform confdefs.h into an awk script `defines.awk', embedded as
15937 # here-document in config.status, that substitutes the proper values into
15938 # config.h.in to produce config.h.
15940 # Create a delimiter string that does not exist in confdefs.h, to ease
15941 # handling of long lines.
15943 for ac_last_try in false false :; do
15944 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15945 if test -z "$ac_t"; then
15947 elif $ac_last_try; then
15948 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15950 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15954 # For the awk script, D is an array of macro values keyed by name,
15955 # likewise P contains macro parameters if any. Preserve backslash
15956 # newline sequences.
15958 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15960 s/.\{148\}/&'"$ac_delim"'/g
15963 s/^[ ]*#[ ]*define[ ][ ]*/ /
15970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15977 D["\1"]=" \3\\\\\\n"\\/p
15979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15984 s/.\{148\}/&'"$ac_delim"'/g
15989 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15992 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15994 ' <confdefs.h | sed '
15995 s/'"$ac_delim"'/"\\\
15996 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15999 for (key in D) D_is_set[key] = 1
16002 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16004 split(line, arg, " ")
16005 if (arg[1] == "#") {
16009 defundef = substr(arg[1], 2)
16012 split(mac1, mac2, "(") #)
16014 prefix = substr(line, 1, index(line, defundef) - 1)
16015 if (D_is_set[macro]) {
16016 # Preserve the white space surrounding the "#".
16017 print prefix "define", macro P[macro] D[macro]
16020 # Replace #undef with comments. This is necessary, for example,
16021 # in the case of _POSIX_SOURCE, which is predefined and required
16022 # on some systems where configure will not decide to define it.
16023 if (defundef == "undef") {
16024 print "/*", prefix defundef, macro, "*/"
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16034 fi # test -n "$CONFIG_HEADERS"
16037 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16042 :[FHLC]) ac_mode=$ac_tag; continue;;
16044 case $ac_mode$ac_tag in
16046 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16047 :[FH]-) ac_tag=-:-;;
16048 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16065 -) ac_f="$tmp/stdin";;
16066 *) # Look for the file first in the build tree, then in the source tree
16067 # (if the path is not absolute). The absolute path cannot be DOS-style,
16068 # because $ac_f cannot contain `:'.
16072 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16074 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16076 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16077 as_fn_append ac_file_inputs " '$ac_f'"
16080 # Let's still pretend it is `configure' which instantiates (i.e., don't
16081 # use $as_me), people would be surprised to read:
16082 # /* config.h. Generated by config.status. */
16083 configure_input='Generated from '`
16084 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16086 if test x"$ac_file" != x-; then
16087 configure_input="$ac_file. $configure_input"
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16089 $as_echo "$as_me: creating $ac_file" >&6;}
16091 # Neutralize special characters interpreted by sed in replacement strings.
16092 case $configure_input in #(
16093 *\&* | *\|* | *\\* )
16094 ac_sed_conf_input=`$as_echo "$configure_input" |
16095 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16096 *) ac_sed_conf_input=$configure_input;;
16100 *:-:* | *:-) cat >"$tmp/stdin" \
16101 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16106 ac_dir=`$as_dirname -- "$ac_file" ||
16107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16108 X"$ac_file" : 'X\(//\)[^/]' \| \
16109 X"$ac_file" : 'X\(//\)$' \| \
16110 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16111 $as_echo X"$ac_file" |
16112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16116 /^X\(\/\/\)[^/].*/{
16129 as_dir="$ac_dir"; as_fn_mkdir_p
16133 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16135 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16136 # A ".." for each directory in $ac_dir_suffix.
16137 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16138 case $ac_top_builddir_sub in
16139 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16140 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16143 ac_abs_top_builddir=$ac_pwd
16144 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16145 # for backward compatibility:
16146 ac_top_builddir=$ac_top_build_prefix
16149 .) # We are building in place.
16151 ac_top_srcdir=$ac_top_builddir_sub
16152 ac_abs_top_srcdir=$ac_pwd ;;
16153 [\\/]* | ?:[\\/]* ) # Absolute name.
16154 ac_srcdir=$srcdir$ac_dir_suffix;
16155 ac_top_srcdir=$srcdir
16156 ac_abs_top_srcdir=$srcdir ;;
16157 *) # Relative name.
16158 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16159 ac_top_srcdir=$ac_top_build_prefix$srcdir
16160 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16162 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16172 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16173 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16175 ac_MKDIR_P=$MKDIR_P
16177 [\\/$]* | ?:[\\/]* ) ;;
16178 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16183 # If the template does not know about datarootdir, expand it.
16184 # FIXME: This hack should be removed a few years after 2.60.
16185 ac_datarootdir_hack=; ac_datarootdir_seen=
16196 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16197 *datarootdir*) ac_datarootdir_seen=yes;;
16198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16200 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16203 ac_datarootdir_hack='
16204 s&@datadir@&$datadir&g
16205 s&@docdir@&$docdir&g
16206 s&@infodir@&$infodir&g
16207 s&@localedir@&$localedir&g
16208 s&@mandir@&$mandir&g
16209 s&\\\${datarootdir}&$datarootdir&g' ;;
16213 # Neutralize VPATH when `$srcdir' = `.'.
16214 # Shell code in configure.ac might set extrasub.
16215 # FIXME: do we really want to maintain this feature?
16216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16217 ac_sed_extra="$ac_vpsub
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16223 s|@configure_input@|$ac_sed_conf_input|;t t
16224 s&@top_builddir@&$ac_top_builddir_sub&;t t
16225 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16226 s&@srcdir@&$ac_srcdir&;t t
16227 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16228 s&@top_srcdir@&$ac_top_srcdir&;t t
16229 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16230 s&@builddir@&$ac_builddir&;t t
16231 s&@abs_builddir@&$ac_abs_builddir&;t t
16232 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16233 s&@INSTALL@&$ac_INSTALL&;t t
16234 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16235 $ac_datarootdir_hack
16237 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16238 || as_fn_error "could not create $ac_file" "$LINENO" 5
16240 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16241 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16242 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16244 which seems to be undefined. Please make sure it is defined." >&5
16245 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16246 which seems to be undefined. Please make sure it is defined." >&2;}
16250 -) cat "$tmp/out" && rm -f "$tmp/out";;
16251 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16253 || as_fn_error "could not create $ac_file" "$LINENO" 5
16259 if test x"$ac_file" != x-; then
16261 $as_echo "/* $configure_input */" \
16262 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16263 } >"$tmp/config.h" \
16264 || as_fn_error "could not create $ac_file" "$LINENO" 5
16265 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16267 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16270 mv "$tmp/config.h" "$ac_file" \
16271 || as_fn_error "could not create $ac_file" "$LINENO" 5
16274 $as_echo "/* $configure_input */" \
16275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16276 || as_fn_error "could not create -" "$LINENO" 5
16278 # Compute "$ac_file"'s index in $config_headers.
16281 for _am_header in $config_headers :; do
16282 case $_am_header in
16283 $_am_arg | $_am_arg:* )
16286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291 X"$_am_arg" : 'X\(//\)[^/]' \| \
16292 X"$_am_arg" : 'X\(//\)$' \| \
16293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16294 $as_echo X"$_am_arg" |
16295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16299 /^X\(\/\/\)[^/].*/{
16311 s/.*/./; q'`/stamp-h$_am_stamp_count
16314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16315 $as_echo "$as_me: executing $ac_file commands" >&6;}
16320 case $ac_file$ac_mode in
16322 # Only add multilib support code if we just rebuilt the top-level
16324 case " $CONFIG_FILES " in
16326 ac_file=Makefile . ${multi_basedir}/config-ml.in
16329 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16330 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16331 # are listed without --file. Let's play safe and only enable the eval
16332 # if we detect the quoting.
16333 case $CONFIG_FILES in
16334 *\'*) eval set x "$CONFIG_FILES" ;;
16335 *) set x $CONFIG_FILES ;;
16340 # Strip MF so we end up with the name of the file.
16341 mf=`echo "$mf" | sed -e 's/:.*$//'`
16342 # Check whether this is an Automake generated Makefile or not.
16343 # We used to match only the files named `Makefile.in', but
16344 # some people rename them; so instead we look at the file content.
16345 # Grep'ing the first line is not enough: some people post-process
16346 # each Makefile.in and add a new line on top of each file to say so.
16347 # Grep'ing the whole file is not good either: AIX grep has a line
16348 # limit of 2048, but all sed's we know have understand at least 4000.
16349 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16350 dirpart=`$as_dirname -- "$mf" ||
16351 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$mf" : 'X\(//\)[^/]' \| \
16353 X"$mf" : 'X\(//\)$' \| \
16354 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16360 /^X\(\/\/\)[^/].*/{
16376 # Extract the definition of DEPDIR, am__include, and am__quote
16377 # from the Makefile without running `make'.
16378 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16379 test -z "$DEPDIR" && continue
16380 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16381 test -z "am__include" && continue
16382 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16383 # When using ansi2knr, U may be empty or an underscore; expand it
16384 U=`sed -n 's/^U = //p' < "$mf"`
16385 # Find all dependency output files, they are included files with
16386 # $(DEPDIR) in their names. We invoke sed twice because it is the
16387 # simplest approach to changing $(DEPDIR) to its actual value in the
16389 for file in `sed -n "
16390 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16391 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16392 # Make sure the directory exists.
16393 test -f "$dirpart/$file" && continue
16394 fdir=`$as_dirname -- "$file" ||
16395 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16396 X"$file" : 'X\(//\)[^/]' \| \
16397 X"$file" : 'X\(//\)$' \| \
16398 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16399 $as_echo X"$file" |
16400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16404 /^X\(\/\/\)[^/].*/{
16417 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16418 # echo "creating $dirpart/$file"
16419 echo '# dummy' > "$dirpart/$file"
16426 # See if we are running on zsh, and set the options which allow our
16427 # commands through without removal of \ escapes.
16428 if test -n "${ZSH_VERSION+set}" ; then
16429 setopt NO_GLOB_SUBST
16432 cfgfile="${ofile}T"
16433 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16436 cat <<_LT_EOF >> "$cfgfile"
16439 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16440 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16442 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16444 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16445 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16446 # Written by Gordon Matzigkeit, 1996
16448 # This file is part of GNU Libtool.
16450 # GNU Libtool is free software; you can redistribute it and/or
16451 # modify it under the terms of the GNU General Public License as
16452 # published by the Free Software Foundation; either version 2 of
16453 # the License, or (at your option) any later version.
16455 # As a special exception to the GNU General Public License,
16456 # if you distribute this file as part of a program or library that
16457 # is built using GNU Libtool, you may include this file under the
16458 # same distribution terms that you use for the rest of that program.
16460 # GNU Libtool is distributed in the hope that it will be useful,
16461 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16462 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16463 # GNU General Public License for more details.
16465 # You should have received a copy of the GNU General Public License
16466 # along with GNU Libtool; see the file COPYING. If not, a copy
16467 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16468 # obtained by writing to the Free Software Foundation, Inc.,
16469 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16472 # The names of the tagged configurations supported by this script.
16473 available_tags="GO "
16475 # ### BEGIN LIBTOOL CONFIG
16477 # A sed program that does not truncate output.
16480 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16481 Xsed="\$SED -e 1s/^X//"
16483 # A grep program that handles long lines.
16489 # A literal string matcher.
16492 # Shell to use when invoking shell scripts.
16495 # An echo program that protects backslashes.
16498 # Which release of libtool.m4 was used?
16499 macro_version=$macro_version
16500 macro_revision=$macro_revision
16502 # Whether or not to build shared libraries.
16503 build_libtool_libs=$enable_shared
16505 # Whether or not to build static libraries.
16506 build_old_libs=$enable_static
16508 # What type of objects to build.
16511 # Whether or not to optimize for fast installation.
16512 fast_install=$enable_fast_install
16515 host_alias=$host_alias
16519 # The build system.
16520 build_alias=$build_alias
16524 # A BSD- or MS-compatible name lister.
16527 # Whether we need soft or hard links.
16530 # What is the maximum length of a command?
16531 max_cmd_len=$max_cmd_len
16533 # Object file suffix (normally "o").
16536 # Executable file suffix (normally "").
16539 # whether the shell understands "unset".
16542 # turn spaces into newlines.
16545 # turn newlines into spaces.
16548 # An object symbol dumper.
16549 OBJDUMP=$lt_OBJDUMP
16551 # Method to check whether dependent libraries are shared objects.
16552 deplibs_check_method=$lt_deplibs_check_method
16554 # Command to use when deplibs_check_method == "file_magic".
16555 file_magic_cmd=$lt_file_magic_cmd
16559 AR_FLAGS=$lt_AR_FLAGS
16561 # A symbol stripping program.
16564 # Commands used to install an old-style archive.
16566 old_postinstall_cmds=$lt_old_postinstall_cmds
16567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16569 # Whether to use a lock for old archive extraction.
16570 lock_old_archive_extraction=$lock_old_archive_extraction
16575 # LTCC compiler flags.
16576 LTCFLAGS=$lt_CFLAGS
16578 # Take the output of nm and produce a listing of raw symbols and C names.
16579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16581 # Transform the output of nm in a proper C declaration.
16582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16584 # Transform the output of nm in a C name address pair.
16585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16587 # Transform the output of nm in a C name address pair when lib prefix is needed.
16588 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16590 # The name of the directory that contains temporary libtool files.
16593 # Used to examine libraries when file_magic_cmd begins with "file".
16594 MAGIC_CMD=$MAGIC_CMD
16596 # Must we lock files when doing compilation?
16597 need_locks=$lt_need_locks
16599 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16600 DSYMUTIL=$lt_DSYMUTIL
16602 # Tool to change global to local symbols on Mac OS X.
16605 # Tool to manipulate fat objects and archives on Mac OS X.
16608 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16611 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16612 OTOOL64=$lt_OTOOL64
16614 # Old archive suffix (normally "a").
16617 # Shared library suffix (normally ".so").
16618 shrext_cmds=$lt_shrext_cmds
16620 # The commands to extract the exported symbol list from a shared archive.
16621 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16623 # Variables whose values should be saved in libtool wrapper scripts and
16624 # restored at link time.
16625 variables_saved_for_relink=$lt_variables_saved_for_relink
16627 # Do we need the "lib" prefix for modules?
16628 need_lib_prefix=$need_lib_prefix
16630 # Do we need a version for libraries?
16631 need_version=$need_version
16633 # Library versioning type.
16634 version_type=$version_type
16636 # Shared library runtime path variable.
16637 runpath_var=$runpath_var
16639 # Shared library path variable.
16640 shlibpath_var=$shlibpath_var
16642 # Is shlibpath searched before the hard-coded library search path?
16643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16645 # Format of library name prefix.
16646 libname_spec=$lt_libname_spec
16648 # List of archive names. First name is the real one, the rest are links.
16649 # The last name is the one that the linker finds with -lNAME
16650 library_names_spec=$lt_library_names_spec
16652 # The coded name of the library, if different from the real name.
16653 soname_spec=$lt_soname_spec
16655 # Permission mode override for installation of shared libraries.
16656 install_override_mode=$lt_install_override_mode
16658 # Command to use after installation of a shared archive.
16659 postinstall_cmds=$lt_postinstall_cmds
16661 # Command to use after uninstallation of a shared archive.
16662 postuninstall_cmds=$lt_postuninstall_cmds
16664 # Commands used to finish a libtool library installation in a directory.
16665 finish_cmds=$lt_finish_cmds
16667 # As "finish_cmds", except a single script fragment to be evaled but
16669 finish_eval=$lt_finish_eval
16671 # Whether we should hardcode library paths into libraries.
16672 hardcode_into_libs=$hardcode_into_libs
16674 # Compile-time system search path for libraries.
16675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16677 # Run-time system search path for libraries.
16678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16680 # Whether dlopen is supported.
16681 dlopen_support=$enable_dlopen
16683 # Whether dlopen of programs is supported.
16684 dlopen_self=$enable_dlopen_self
16686 # Whether dlopen of statically linked programs is supported.
16687 dlopen_self_static=$enable_dlopen_self_static
16689 # Commands to strip libraries.
16690 old_striplib=$lt_old_striplib
16691 striplib=$lt_striplib
16694 # The linker used to build libraries.
16697 # How to create reloadable object files.
16698 reload_flag=$lt_reload_flag
16699 reload_cmds=$lt_reload_cmds
16701 # Commands used to build an old-style archive.
16702 old_archive_cmds=$lt_old_archive_cmds
16704 # A language specific compiler.
16707 # Is the compiler the GNU compiler?
16710 # Compiler flag to turn off builtin functions.
16711 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16713 # How to pass a linker flag through the compiler.
16714 wl=$lt_lt_prog_compiler_wl
16716 # Additional compiler flags for building library objects.
16717 pic_flag=$lt_lt_prog_compiler_pic
16719 # Compiler flag to prevent dynamic linking.
16720 link_static_flag=$lt_lt_prog_compiler_static
16722 # Does compiler simultaneously support -c and -o options?
16723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16725 # Whether or not to add -lc for building shared libraries.
16726 build_libtool_need_lc=$archive_cmds_need_lc
16728 # Whether or not to disallow shared libs when runtime libs are static.
16729 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16731 # Compiler flag to allow reflexive dlopens.
16732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16734 # Compiler flag to generate shared objects directly from archives.
16735 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16737 # Whether the compiler copes with passing no objects directly.
16738 compiler_needs_object=$lt_compiler_needs_object
16740 # Create an old-style archive from a shared archive.
16741 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16743 # Create a temporary old-style archive to link instead of a shared archive.
16744 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16746 # Commands used to build a shared archive.
16747 archive_cmds=$lt_archive_cmds
16748 archive_expsym_cmds=$lt_archive_expsym_cmds
16750 # Commands used to build a loadable module if different from building
16751 # a shared archive.
16752 module_cmds=$lt_module_cmds
16753 module_expsym_cmds=$lt_module_expsym_cmds
16755 # Whether we are building with GNU ld or not.
16756 with_gnu_ld=$lt_with_gnu_ld
16758 # Flag that allows shared libraries with undefined symbols to be built.
16759 allow_undefined_flag=$lt_allow_undefined_flag
16761 # Flag that enforces no undefined symbols.
16762 no_undefined_flag=$lt_no_undefined_flag
16764 # Flag to hardcode \$libdir into a binary during linking.
16765 # This must work even if \$libdir does not exist
16766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16768 # If ld is used when linking, flag to hardcode \$libdir into a binary
16769 # during linking. This must work even if \$libdir does not exist.
16770 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16772 # Whether we need a single "-rpath" flag with a separated argument.
16773 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16775 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16776 # DIR into the resulting binary.
16777 hardcode_direct=$hardcode_direct
16779 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16780 # DIR into the resulting binary and the resulting library dependency is
16781 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16782 # library is relocated.
16783 hardcode_direct_absolute=$hardcode_direct_absolute
16785 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16786 # into the resulting binary.
16787 hardcode_minus_L=$hardcode_minus_L
16789 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16790 # into the resulting binary.
16791 hardcode_shlibpath_var=$hardcode_shlibpath_var
16793 # Set to "yes" if building a shared library automatically hardcodes DIR
16794 # into the library and all subsequent libraries and executables linked
16796 hardcode_automatic=$hardcode_automatic
16798 # Set to yes if linker adds runtime paths of dependent libraries
16799 # to runtime path list.
16800 inherit_rpath=$inherit_rpath
16802 # Whether libtool must link a program against all its dependency libraries.
16803 link_all_deplibs=$link_all_deplibs
16805 # Fix the shell variable \$srcfile for the compiler.
16806 fix_srcfile_path=$lt_fix_srcfile_path
16808 # Set to "yes" if exported symbols are required.
16809 always_export_symbols=$always_export_symbols
16811 # The commands to list exported symbols.
16812 export_symbols_cmds=$lt_export_symbols_cmds
16814 # Symbols that should not be listed in the preloaded symbols.
16815 exclude_expsyms=$lt_exclude_expsyms
16817 # Symbols that must always be exported.
16818 include_expsyms=$lt_include_expsyms
16820 # Commands necessary for linking programs (against libraries) with templates.
16821 prelink_cmds=$lt_prelink_cmds
16823 # Specify filename containing input files.
16824 file_list_spec=$lt_file_list_spec
16826 # How to hardcode a shared library path into an executable.
16827 hardcode_action=$hardcode_action
16829 # ### END LIBTOOL CONFIG
16835 cat <<\_LT_EOF >> "$cfgfile"
16836 # AIX sometimes has problems with the GCC collect2 program. For some
16837 # reason, if we set the COLLECT_NAMES environment variable, the problems
16838 # vanish in a puff of smoke.
16839 if test "X${COLLECT_NAMES+set}" != Xset; then
16841 export COLLECT_NAMES
16848 ltmain="$ac_aux_dir/ltmain.sh"
16851 # We use sed instead of cat because bash on DJGPP gets confused if
16852 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16853 # text mode, it properly converts lines to CR/LF. This bash problem
16854 # is reportedly fixed, but why not run on old versions too?
16855 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16856 || (rm -f "$cfgfile"; exit 1)
16860 cat << \_LT_EOF >> "$cfgfile"
16862 # func_dirname file append nondir_replacement
16863 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16864 # otherwise set result to NONDIR_REPLACEMENT.
16868 */*) func_dirname_result="${1%/*}${2}" ;;
16869 * ) func_dirname_result="${3}" ;;
16873 # func_basename file
16876 func_basename_result="${1##*/}"
16879 # func_dirname_and_basename file append nondir_replacement
16880 # perform func_basename and func_dirname in a single function
16882 # dirname: Compute the dirname of FILE. If nonempty,
16883 # add APPEND to the result, otherwise set result
16884 # to NONDIR_REPLACEMENT.
16885 # value returned in "$func_dirname_result"
16886 # basename: Compute filename of FILE.
16887 # value retuned in "$func_basename_result"
16888 # Implementation must be kept synchronized with func_dirname
16889 # and func_basename. For efficiency, we do not delegate to
16890 # those functions but instead duplicate the functionality here.
16891 func_dirname_and_basename ()
16894 */*) func_dirname_result="${1%/*}${2}" ;;
16895 * ) func_dirname_result="${3}" ;;
16897 func_basename_result="${1##*/}"
16900 # func_stripname prefix suffix name
16901 # strip PREFIX and SUFFIX off of NAME.
16902 # PREFIX and SUFFIX must not contain globbing or regex special
16903 # characters, hashes, percent signs, but SUFFIX may contain a leading
16904 # dot (in which case that matches only a dot).
16907 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16908 # positional parameters, so assign one to ordinary parameter first.
16909 func_stripname_result=${3}
16910 func_stripname_result=${func_stripname_result#"${1}"}
16911 func_stripname_result=${func_stripname_result%"${2}"}
16917 func_opt_split_opt=${1%%=*}
16918 func_opt_split_arg=${1#*=}
16925 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16926 *) func_lo2o_result=${1} ;;
16930 # func_xform libobj-or-source
16933 func_xform_result=${1%.*}.lo
16936 # func_arith arithmetic-term...
16939 func_arith_result=$(( $* ))
16943 # STRING may not start with a hyphen.
16946 func_len_result=${#1}
16951 *) # Bourne compatible functions.
16952 cat << \_LT_EOF >> "$cfgfile"
16954 # func_dirname file append nondir_replacement
16955 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16956 # otherwise set result to NONDIR_REPLACEMENT.
16959 # Extract subdirectory from the argument.
16960 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16961 if test "X$func_dirname_result" = "X${1}"; then
16962 func_dirname_result="${3}"
16964 func_dirname_result="$func_dirname_result${2}"
16968 # func_basename file
16971 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16975 # func_stripname prefix suffix name
16976 # strip PREFIX and SUFFIX off of NAME.
16977 # PREFIX and SUFFIX must not contain globbing or regex special
16978 # characters, hashes, percent signs, but SUFFIX may contain a leading
16979 # dot (in which case that matches only a dot).
16980 # func_strip_suffix prefix name
16984 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16985 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16990 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16991 my_sed_long_arg='1s/^-[^=]*=//'
16996 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16997 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17003 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17006 # func_xform libobj-or-source
17009 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17012 # func_arith arithmetic-term...
17015 func_arith_result=`expr "$@"`
17019 # STRING may not start with a hyphen.
17022 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17028 case $lt_shell_append in
17030 cat << \_LT_EOF >> "$cfgfile"
17032 # func_append var value
17033 # Append VALUE to the end of shell variable VAR.
17041 cat << \_LT_EOF >> "$cfgfile"
17043 # func_append var value
17044 # Append VALUE to the end of shell variable VAR.
17055 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17056 || (rm -f "$cfgfile"; exit 1)
17058 mv -f "$cfgfile" "$ofile" ||
17059 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17063 cat <<_LT_EOF >> "$ofile"
17065 # ### BEGIN LIBTOOL TAG CONFIG: GO
17067 # The linker used to build libraries.
17070 # How to create reloadable object files.
17071 reload_flag=$lt_reload_flag_GO
17072 reload_cmds=$lt_reload_cmds_GO
17074 # Commands used to build an old-style archive.
17075 old_archive_cmds=$lt_old_archive_cmds_GO
17077 # A language specific compiler.
17080 # Is the compiler the GNU compiler?
17083 # Compiler flag to turn off builtin functions.
17084 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17086 # How to pass a linker flag through the compiler.
17087 wl=$lt_lt_prog_compiler_wl_GO
17089 # Additional compiler flags for building library objects.
17090 pic_flag=$lt_lt_prog_compiler_pic_GO
17092 # Compiler flag to prevent dynamic linking.
17093 link_static_flag=$lt_lt_prog_compiler_static_GO
17095 # Does compiler simultaneously support -c and -o options?
17096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17098 # Whether or not to add -lc for building shared libraries.
17099 build_libtool_need_lc=$archive_cmds_need_lc_GO
17101 # Whether or not to disallow shared libs when runtime libs are static.
17102 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17104 # Compiler flag to allow reflexive dlopens.
17105 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17107 # Compiler flag to generate shared objects directly from archives.
17108 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17110 # Whether the compiler copes with passing no objects directly.
17111 compiler_needs_object=$lt_compiler_needs_object_GO
17113 # Create an old-style archive from a shared archive.
17114 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17116 # Create a temporary old-style archive to link instead of a shared archive.
17117 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17119 # Commands used to build a shared archive.
17120 archive_cmds=$lt_archive_cmds_GO
17121 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17123 # Commands used to build a loadable module if different from building
17124 # a shared archive.
17125 module_cmds=$lt_module_cmds_GO
17126 module_expsym_cmds=$lt_module_expsym_cmds_GO
17128 # Whether we are building with GNU ld or not.
17129 with_gnu_ld=$lt_with_gnu_ld_GO
17131 # Flag that allows shared libraries with undefined symbols to be built.
17132 allow_undefined_flag=$lt_allow_undefined_flag_GO
17134 # Flag that enforces no undefined symbols.
17135 no_undefined_flag=$lt_no_undefined_flag_GO
17137 # Flag to hardcode \$libdir into a binary during linking.
17138 # This must work even if \$libdir does not exist
17139 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17141 # If ld is used when linking, flag to hardcode \$libdir into a binary
17142 # during linking. This must work even if \$libdir does not exist.
17143 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17145 # Whether we need a single "-rpath" flag with a separated argument.
17146 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17148 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17149 # DIR into the resulting binary.
17150 hardcode_direct=$hardcode_direct_GO
17152 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17153 # DIR into the resulting binary and the resulting library dependency is
17154 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17155 # library is relocated.
17156 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17158 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17159 # into the resulting binary.
17160 hardcode_minus_L=$hardcode_minus_L_GO
17162 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17163 # into the resulting binary.
17164 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17166 # Set to "yes" if building a shared library automatically hardcodes DIR
17167 # into the library and all subsequent libraries and executables linked
17169 hardcode_automatic=$hardcode_automatic_GO
17171 # Set to yes if linker adds runtime paths of dependent libraries
17172 # to runtime path list.
17173 inherit_rpath=$inherit_rpath_GO
17175 # Whether libtool must link a program against all its dependency libraries.
17176 link_all_deplibs=$link_all_deplibs_GO
17178 # Fix the shell variable \$srcfile for the compiler.
17179 fix_srcfile_path=$lt_fix_srcfile_path_GO
17181 # Set to "yes" if exported symbols are required.
17182 always_export_symbols=$always_export_symbols_GO
17184 # The commands to list exported symbols.
17185 export_symbols_cmds=$lt_export_symbols_cmds_GO
17187 # Symbols that should not be listed in the preloaded symbols.
17188 exclude_expsyms=$lt_exclude_expsyms_GO
17190 # Symbols that must always be exported.
17191 include_expsyms=$lt_include_expsyms_GO
17193 # Commands necessary for linking programs (against libraries) with templates.
17194 prelink_cmds=$lt_prelink_cmds_GO
17196 # Specify filename containing input files.
17197 file_list_spec=$lt_file_list_spec_GO
17199 # How to hardcode a shared library path into an executable.
17200 hardcode_action=$hardcode_action_GO
17202 # ### END LIBTOOL TAG CONFIG: GO
17206 "default":C) if test -n "$CONFIG_FILES"; then
17207 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17208 # that multilib installs will end up installed in the correct place.
17209 # The testsuite needs it for multilib-aware ABI baseline files.
17210 # To work around this not being passed down from config-ml.in ->
17211 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17212 # append it here. Only modify Makefiles that have just been created.
17214 # Also, get rid of this simulated-VPATH thing that automake does.
17215 cat > vpsed << \_EOF
17216 s!`test -f '$<' || echo '$(srcdir)/'`!!
17218 for i in $SUBDIRS; do
17219 case $CONFIG_FILES in
17221 #echo "Adding MULTISUBDIR to $i/Makefile"
17222 sed -f vpsed $i/Makefile > tmp
17223 grep '^MULTISUBDIR =' Makefile >> tmp
17238 ac_clean_files=$ac_clean_files_save
17240 test $ac_write_fail = 0 ||
17241 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17244 # configure is writing to config.log, and then calls config.status.
17245 # config.status does its own redirection, appending to config.log.
17246 # Unfortunately, on DOS this fails, as config.log is still kept open
17247 # by configure, so config.status won't be able to write to it; its
17248 # output is simply discarded. So we exec the FD to /dev/null,
17249 # effectively closing config.log, so it can be properly (re)opened and
17250 # appended to by config.status. When coming back to configure, we
17251 # need to make the FD available again.
17252 if test "$no_create" != yes; then
17254 ac_config_status_args=
17255 test "$silent" = yes &&
17256 ac_config_status_args="$ac_config_status_args --quiet"
17258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17261 # would make configure fail if this is the last instruction.
17262 $ac_cs_success || as_fn_exit $?
17264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17266 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}