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
619 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
620 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
622 LIBGO_IS_X86_64_FALSE
624 LIBGO_IS_SPARC64_FALSE
625 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_MIPS64_FALSE
643 LIBGO_IS_SOLARIS_FALSE
644 LIBGO_IS_SOLARIS_TRUE
651 LIBGO_IS_FREEBSD_FALSE
652 LIBGO_IS_FREEBSD_TRUE
653 LIBGO_IS_DARWIN_FALSE
657 glibgo_toolexeclibdir
685 MAINTAINER_MODE_FALSE
713 INSTALL_STRIP_PROGRAM
769 program_transform_name
782 enable_option_checking
784 enable_dependency_tracking
785 enable_maintainer_mode
792 enable_version_specific_runtime_libs
794 with_system_libunwind
795 enable_sjlj_exceptions
797 ac_precious_vars='build_alias
804 # Initialize some variables set by options.
806 ac_init_version=false
807 ac_unrecognized_opts=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
818 program_transform_name=s,x,x,
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
864 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
961 -help | --help | --hel | --he | -h)
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1110 -site=* | --site=* | --sit=*)
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1150 eval with_$ac_useropt=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1166 eval with_$ac_useropt=no ;;
1169 # Obsolete; use --with-x.
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) as_fn_error "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information."
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error "missing argument to $ac_option"
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1219 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1237 # Be sure to have absolute directory names.
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1257 If a cross compiler is detected then cross compile mode will be used." >&2
1258 elif test "x$build_alias" != "x$host_alias"; then
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1343 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 --target=TARGET configure for building compilers for TARGET [HOST]
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of package-unused version-unused:";;
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-multilib build many library versions (default)
1423 --disable-dependency-tracking speeds up one-time build
1424 --enable-dependency-tracking do not reject slow dependency extractors
1425 --enable-maintainer-mode enable make rules and dependencies not useful
1426 (and sometimes confusing) to the casual installer
1427 --enable-shared[=PKGS] build shared libraries [default=yes]
1428 --enable-static[=PKGS] build static libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --disable-libtool-lock avoid locking (might break parallel builds)
1432 --enable-version-specific-runtime-libs
1433 Specify that runtime libraries should be installed
1434 in a compiler-specific directory
1435 --enable-sjlj-exceptions
1436 force use of builtin_setjmp for exceptions
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-pic try to use only PIC/non-PIC objects [default=use
1444 --without-libffi don't use libffi
1445 --with-system-libunwind use installed libunwind
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 GOC Go compiler command
1456 GOCFLAGS Go compiler flags
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to the package provider.
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1525 package-unused configure version-unused
1526 generated by GNU Autoconf 2.64
1528 Copyright (C) 2009 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1575 } # ac_fn_c_try_compile
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext conftest$ac_exeext
1584 if { { ac_try="$ac_link"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_link") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest$ac_exeext && {
1603 test "$cross_compiling" = yes ||
1604 $as_test_x conftest$ac_exeext
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615 # interfere with the next link command; also delete a directory that is
1616 # left behind by Apple's compiler. We do this before executing the actions.
1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621 } # ac_fn_c_try_link
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1640 if ac_fn_c_try_compile "$LINENO"; then :
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 } # ac_fn_c_check_header_compile
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } >/dev/null && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>&5
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709 { { case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_try") 2>&5
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; }; }; then :
1721 $as_echo "$as_me: program exited with status $ac_status" >&5
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1725 ac_retval=$ac_status
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748 #define $2 innocuous_$2
1750 /* System header to define __stub macros and hopefully few prototypes,
1751 which can conflict with char $2 (); below.
1752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753 <limits.h> exists even on freestanding compilers. */
1756 # include <limits.h>
1758 # include <assert.h>
1763 /* Override any GCC internal prototype to avoid an error.
1764 Use char because int might match the return type of a GCC
1765 builtin and then its argument prototype would still apply. */
1770 /* The GNU C library defines this for functions which it implements
1771 to always fail with ENOSYS. Some functions are actually named
1772 something starting with __ and the normal name is an alias. */
1773 #if defined __stub_$2 || defined __stub___$2
1785 if ac_fn_c_try_link "$LINENO"; then :
1790 rm -f core conftest.err conftest.$ac_objext \
1791 conftest$ac_exeext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 } # ac_fn_c_check_func
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1805 ac_fn_c_check_header_mongrel ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1829 ac_header_compiler=no
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1845 ac_header_preproc=no
1847 rm -f conftest.err conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 eval "$3=\$ac_header_compiler"
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_check_header_mongrel
1887 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1888 # -------------------------------------------
1889 # Tests whether TYPE exists after having included INCLUDES, setting cache
1890 # variable VAR accordingly.
1891 ac_fn_c_check_type ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1925 if ac_fn_c_try_compile "$LINENO"; then :
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 } # ac_fn_c_check_type
1940 cat >config.log <<_ACEOF
1941 This file contains any messages produced by compilers while
1942 running configure, to aid debugging if configure makes a mistake.
1944 It was created by package-unused $as_me version-unused, which was
1945 generated by GNU Autoconf 2.64. Invocation command line was
1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir=.
1981 $as_echo "PATH: $as_dir"
1997 # Keep a trace of the command line.
1998 # Strip out --no-create and --no-recursion so they do not pile up.
1999 # Strip out --silent because we don't want to record it for future runs.
2000 # Also quote any args containing shell meta-characters.
2001 # Make two passes to allow for proper duplicate-argument suppression.
2005 ac_must_keep_next=false
2011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013 | -silent | --silent | --silen | --sile | --sil)
2016 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2021 as_fn_append ac_configure_args1 " '$ac_arg'"
2022 if test $ac_must_keep_next = true; then
2023 ac_must_keep_next=false # Got value, back to normal.
2026 *=* | --config-cache | -C | -disable-* | --disable-* \
2027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029 | -with-* | --with-* | -without-* | --without-* | --x)
2030 case "$ac_configure_args0 " in
2031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2034 -* ) ac_must_keep_next=true ;;
2037 as_fn_append ac_configure_args " '$ac_arg'"
2042 { ac_configure_args0=; unset ac_configure_args0;}
2043 { ac_configure_args1=; unset ac_configure_args1;}
2045 # When interrupted or exit'd, cleanup temporary files, and complete
2046 # config.log. We remove comments because anyway the quotes in there
2047 # would cause problems or look ugly.
2048 # WARNING: Use '\'' to represent an apostrophe within the trap.
2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050 trap 'exit_status=$?
2051 # Save into config.log some information that might help in debugging.
2056 ## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##
2061 # The following way of writing the cache mishandles newlines in values,
2063 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2064 eval ac_val=\$$ac_var
2068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 _ | IFS | as_nl) ;; #(
2073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2074 *) { eval $ac_var=; unset $ac_var;} ;;
2079 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2080 *${as_nl}ac_space=\ *)
2082 "s/'\''/'\''\\\\'\'''\''/g;
2083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094 ## ----------------- ##
2095 ## Output variables. ##
2096 ## ----------------- ##
2099 for ac_var in $ac_subst_vars
2101 eval ac_val=\$$ac_var
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 $as_echo "$ac_var='\''$ac_val'\''"
2109 if test -n "$ac_subst_files"; then
2111 ## ------------------- ##
2112 ## File substitutions. ##
2113 ## ------------------- ##
2116 for ac_var in $ac_subst_files
2118 eval ac_val=\$$ac_var
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 $as_echo "$ac_var='\''$ac_val'\''"
2127 if test -s confdefs.h; then
2137 test "$ac_signal" != 0 &&
2138 $as_echo "$as_me: caught signal $ac_signal"
2139 $as_echo "$as_me: exit $exit_status"
2141 rm -f core *.core core.conftest.* &&
2142 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145 for ac_signal in 1 2 13 15; do
2146 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2151 rm -f -r conftest* confdefs.h
2153 $as_echo "/* confdefs.h */" > confdefs.h
2155 # Predefined preprocessor variables.
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_URL "$PACKAGE_URL"
2182 # Let the site file select an alternate cache file if it wants to.
2183 # Prefer an explicitly selected file to automatically selected ones.
2186 if test -n "$CONFIG_SITE"; then
2187 ac_site_file1=$CONFIG_SITE
2188 elif test "x$prefix" != xNONE; then
2189 ac_site_file1=$prefix/share/config.site
2190 ac_site_file2=$prefix/etc/config.site
2192 ac_site_file1=$ac_default_prefix/share/config.site
2193 ac_site_file2=$ac_default_prefix/etc/config.site
2195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197 test "x$ac_site_file" = xNONE && continue
2198 if test -r "$ac_site_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201 sed 's/^/| /' "$ac_site_file" >&5
2206 if test -r "$cache_file"; then
2207 # Some versions of bash will fail to source /dev/null (special
2208 # files actually), so we avoid doing that.
2209 if test -f "$cache_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2211 $as_echo "$as_me: loading cache $cache_file" >&6;}
2213 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2214 *) . "./$cache_file";;
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2219 $as_echo "$as_me: creating cache $cache_file" >&6;}
2223 # Check that the precious variables saved in the cache have kept the same
2225 ac_cache_corrupted=false
2226 for ac_var in $ac_precious_vars; do
2227 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2228 eval ac_new_set=\$ac_env_${ac_var}_set
2229 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2230 eval ac_new_val=\$ac_env_${ac_var}_value
2231 case $ac_old_set,$ac_new_set in
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2235 ac_cache_corrupted=: ;;
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2239 ac_cache_corrupted=: ;;
2242 if test "x$ac_old_val" != "x$ac_new_val"; then
2243 # differences in whitespace do not lead to failure.
2244 ac_old_val_w=`echo x $ac_old_val`
2245 ac_new_val_w=`echo x $ac_new_val`
2246 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2248 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2249 ac_cache_corrupted=:
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2252 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2253 eval $ac_var=\$ac_old_val
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2256 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2258 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2261 # Pass precious variables to config.status.
2262 if test "$ac_new_set" = set; then
2264 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 *) ac_arg=$ac_var=$ac_new_val ;;
2267 case " $ac_configure_args " in
2268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2269 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2273 if $ac_cache_corrupted; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2277 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2278 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2280 ## -------------------- ##
2281 ## Main body of script. ##
2282 ## -------------------- ##
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2295 ac_config_headers="$ac_config_headers config.h"
2298 libtool_VERSION=1:0:0
2301 # Default to --enable-multilib
2302 # Check whether --enable-multilib was given.
2303 if test "${enable_multilib+set}" = set; then :
2304 enableval=$enable_multilib; case "$enableval" in
2305 yes) multilib=yes ;;
2307 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2314 # We may get other options which we leave undocumented:
2315 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2316 # See config-ml.in if you want the gory details.
2318 if test "$srcdir" = "."; then
2319 if test "$with_target_subdir" != "."; then
2320 multi_basedir="$srcdir/$with_multisrctop../.."
2322 multi_basedir="$srcdir/$with_multisrctop.."
2325 multi_basedir="$srcdir/.."
2329 # Even if the default multilib is not a cross compilation,
2330 # it may be that some of the other multilibs are.
2331 if test $cross_compiling = no && test $multilib = yes \
2332 && test "x${with_multisubdir}" != x ; then
2333 cross_compiling=maybe
2336 ac_config_commands="$ac_config_commands default-1"
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341 for ac_t in install-sh install.sh shtool; do
2342 if test -f "$ac_dir/$ac_t"; then
2344 ac_install_sh="$ac_aux_dir/$ac_t -c"
2349 if test -z "$ac_aux_dir"; then
2350 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2362 # Make sure we can run config.sub.
2363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2364 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2367 $as_echo_n "checking build system type... " >&6; }
2368 if test "${ac_cv_build+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2371 ac_build_alias=$build_alias
2372 test "x$ac_build_alias" = x &&
2373 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2374 test "x$ac_build_alias" = x &&
2375 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2376 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2381 $as_echo "$ac_cv_build" >&6; }
2382 case $ac_cv_build in
2384 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2387 ac_save_IFS=$IFS; IFS='-'
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2397 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2401 $as_echo_n "checking host system type... " >&6; }
2402 if test "${ac_cv_host+set}" = set; then :
2403 $as_echo_n "(cached) " >&6
2405 if test "x$host_alias" = x; then
2406 ac_cv_host=$ac_cv_build
2408 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2409 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2414 $as_echo "$ac_cv_host" >&6; }
2417 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2420 ac_save_IFS=$IFS; IFS='-'
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2430 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2434 $as_echo_n "checking target system type... " >&6; }
2435 if test "${ac_cv_target+set}" = set; then :
2436 $as_echo_n "(cached) " >&6
2438 if test "x$target_alias" = x; then
2439 ac_cv_target=$ac_cv_host
2441 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2442 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2447 $as_echo "$ac_cv_target" >&6; }
2448 case $ac_cv_target in
2450 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2452 target=$ac_cv_target
2453 ac_save_IFS=$IFS; IFS='-'
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2463 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2466 # The aliases save the names the user supplied, while $host etc.
2467 # will get canonicalized.
2468 test -n "$target_alias" &&
2469 test "$program_prefix$program_suffix$program_transform_name" = \
2471 program_prefix=${target_alias}-
2473 target_alias=${target_alias-$host_alias}
2475 am__api_version='1.11'
2477 # Find a good install program. We prefer a C program (faster),
2478 # so one script is as good as another. But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if test "${ac_cv_path_install+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir=.
2502 # Account for people who put trailing slashes in PATH elements.
2503 case $as_dir/ in #((
2504 ./ | .// | /[cC]/* | \
2505 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2509 # OSF1 and SCO ODT 3.0 have their own names for install.
2510 # Don't use installbsd from OSF since it installs stuff as root
2512 for ac_prog in ginstall scoinst install; do
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2515 if test $ac_prog = install &&
2516 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517 # AIX install. It has an incompatible calling convention.
2519 elif test $ac_prog = install &&
2520 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521 # program-specific install script used by HP pwplus--don't use.
2524 rm -rf conftest.one conftest.two conftest.dir
2525 echo one > conftest.one
2526 echo two > conftest.two
2528 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529 test -s conftest.one && test -s conftest.two &&
2530 test -s conftest.dir/conftest.one &&
2531 test -s conftest.dir/conftest.two
2533 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546 rm -rf conftest.one conftest.two conftest.dir
2549 if test "${ac_cv_path_install+set}" = set; then
2550 INSTALL=$ac_cv_path_install
2552 # As a last resort, use the slow shell script. Don't cache a
2553 # value for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the value is a relative name.
2556 INSTALL=$ac_install_sh
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2574 echo timestamp > conftest.file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name. Accept space and tab only in the latter.
2580 *[\\\"\#\$\&\'\`$am_lf]*)
2581 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2584 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2585 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2588 # Do `set' in a subshell so we don't clobber the current shell's
2589 # arguments. Must try -L first in case configure is actually a
2590 # symlink; some systems play weird games with the mod time of symlinks
2591 # (eg FreeBSD returns the mod time of the symlink's containing
2594 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2595 if test "$*" = "X"; then
2597 set X `ls -t "$srcdir/configure" conftest.file`
2600 if test "$*" != "X $srcdir/configure conftest.file" \
2601 && test "$*" != "X conftest.file $srcdir/configure"; then
2603 # If neither matched, then we have a broken ls. This can happen
2604 # if, for instance, CONFIG_SHELL is bash and it inherits a
2605 # broken ls alias from the environment. This has actually
2606 # happened. Such a system could not be considered "sane".
2607 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2608 alias in your environment" "$LINENO" 5
2611 test "$2" = conftest.file
2617 as_fn_error "newly created file is older than distributed files!
2618 Check your system clock" "$LINENO" 5
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 test "$program_prefix" != NONE &&
2623 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2624 # Use a double $ so make ignores it.
2625 test "$program_suffix" != NONE &&
2626 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2627 # Double any \ or $.
2628 # By default was `s,x,x', remove it if useless.
2629 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2630 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2635 if test x"${MISSING+set}" != xset; then
2638 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2640 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2643 # Use eval to expand $SHELL
2644 if eval "$MISSING --run true"; then
2645 am_missing_run="$MISSING --run "
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2649 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2652 if test x"${install_sh}" != xset; then
2655 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2657 install_sh="\${SHELL} $am_aux_dir/install-sh"
2661 # Installed binaries are usually stripped using `strip' when the user
2662 # run `make install-strip'. However `strip' might not be the right
2663 # tool to use in cross-compilation environments, therefore Automake
2664 # will honor the `STRIP' environment variable to overrule this program.
2665 if test "$cross_compiling" != no; then
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}strip; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_STRIP+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2674 if test -n "$STRIP"; then
2675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 STRIP=$ac_cv_prog_STRIP
2695 if test -n "$STRIP"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2697 $as_echo "$STRIP" >&6; }
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2705 if test -z "$ac_cv_prog_STRIP"; then
2707 # Extract the first word of "strip", so it can be a program name with args.
2708 set dummy strip; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2714 if test -n "$ac_ct_STRIP"; then
2715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_STRIP="strip"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2735 if test -n "$ac_ct_STRIP"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2737 $as_echo "$ac_ct_STRIP" >&6; }
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2743 if test "x$ac_ct_STRIP" = x; then
2746 case $cross_compiling:$ac_tool_warned in
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2755 STRIP="$ac_cv_prog_STRIP"
2759 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2762 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2763 if test -z "$MKDIR_P"; then
2764 if test "${ac_cv_path_mkdir+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2771 test -z "$as_dir" && as_dir=.
2772 for ac_prog in mkdir gmkdir; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2775 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2776 'mkdir (GNU coreutils) '* | \
2777 'mkdir (coreutils) '* | \
2778 'mkdir (fileutils) '4.1*)
2779 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789 if test "${ac_cv_path_mkdir+set}" = set; then
2790 MKDIR_P="$ac_cv_path_mkdir -p"
2792 # As a last resort, use the slow shell script. Don't cache a
2793 # value for MKDIR_P within a source directory, because that will
2794 # break other packages using the cache if that directory is
2795 # removed, or if the value is a relative name.
2796 test -d ./--version && rmdir ./--version
2797 MKDIR_P="$ac_install_sh -d"
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2801 $as_echo "$MKDIR_P" >&6; }
2805 [\\/$]* | ?:[\\/]*) ;;
2806 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2809 for ac_prog in gawk mawk nawk awk
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_AWK+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_AWK="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839 if test -n "$AWK"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2848 test -n "$AWK" && break
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2856 $as_echo_n "(cached) " >&6
2858 cat >conftest.make <<\_ACEOF
2861 @echo '@@@%%%=$(MAKE)=@@@%%%'
2863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2866 eval ac_cv_prog_make_${ac_make}_set=yes;;
2868 eval ac_cv_prog_make_${ac_make}_set=no;;
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 SET_MAKE="MAKE=${MAKE-make}"
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2889 rmdir .tst 2>/dev/null
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2911 # Define the identity of the package.
2913 VERSION='version-unused'
2916 # Some tools Automake needs.
2918 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2921 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2924 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2927 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2930 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2932 # We need awk for the "check" target. The system "awk" is bad on
2934 # Always define AMTAR for backward compatibility.
2936 AMTAR=${AMTAR-"${am_missing_run}tar"}
2938 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2993 if test -z "$ac_cv_prog_CC"; then
2995 # Extract the first word of "gcc", so it can be a program name with args.
2996 set dummy gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_CC="gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3031 if test "x$ac_ct_CC" = x; then
3034 case $cross_compiling:$ac_tool_warned in
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3046 if test -z "$CC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}cc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="${ac_tool_prefix}cc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3087 if test -z "$CC"; then
3088 # Extract the first word of "cc", so it can be a program name with args.
3089 set dummy cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107 ac_prog_rejected=yes
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 if test $ac_prog_rejected = yes; then
3119 # We found a bogon in the path, so make sure we never use it.
3120 set dummy $ac_cv_prog_CC
3122 if test $# != 0; then
3123 # We chose a different compiler from the bogus one.
3124 # However, it has the same basename, so the bogon will be chosen
3125 # first if we set CC to just the basename; use the full file name.
3127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133 if test -n "$CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 $as_echo "$CC" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3143 if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 for ac_prog in cl.exe
3147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3184 test -n "$CC" && break
3187 if test -z "$CC"; then
3189 for ac_prog in cl.exe
3191 # Extract the first word of "$ac_prog", so it can be a program name with args.
3192 set dummy $ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="$ac_prog"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3228 test -n "$ac_ct_CC" && break
3231 if test "x$ac_ct_CC" = x; then
3234 case $cross_compiling:$ac_tool_warned in
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error "no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." "$LINENO" 5; }
3252 # Provide some information about the compiler.
3253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3256 for ac_option in --version -v -V -qversion; do
3257 { { ac_try="$ac_compiler $ac_option >&5"
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266 if test -s conftest.err; then
3268 ... rest of stderr output deleted ...
3269 10q' conftest.err >conftest.er1
3270 cat conftest.er1 >&5
3271 rm -f conftest.er1 conftest.err
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3294 $as_echo_n "checking for C compiler default output file name... " >&6; }
3295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297 # The possible output files:
3298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301 for ac_file in $ac_files
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310 if { { ac_try="$ac_link_default"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link_default") 2>&5
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3326 for ac_file in $ac_files ''
3328 test -f "$ac_file" || continue
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333 # We found the default executable, but exeext='' is most
3337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357 $as_echo "$ac_file" >&6; }
3358 if test -z "$ac_file"; then :
3359 $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 { as_fn_set_status 77
3365 as_fn_error "C compiler cannot create executables
3366 See \`config.log' for more details." "$LINENO" 5; }; }
3368 ac_exeext=$ac_cv_exeext
3370 # Check that the compiler produces executables we can run. If not, either
3371 # the compiler is broken, or we cross compile.
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3373 $as_echo_n "checking whether the C compiler works... " >&6; }
3374 # If not cross compiling, check that we can run a simple program.
3375 if test "$cross_compiling" != yes; then
3376 if { ac_try='./$ac_file'
3377 { { case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_try") 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; }; then
3389 if test "$cross_compiling" = maybe; then
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error "cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details." "$LINENO" 5; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3404 ac_clean_files=$ac_clean_files_save
3405 # Check that the compiler produces executables we can run. If not, either
3406 # the compiler is broken, or we cross compile.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408 $as_echo_n "checking whether we are cross compiling... " >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3413 $as_echo_n "checking for suffix of executables... " >&6; }
3414 if { { ac_try="$ac_link"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_link") 2>&5
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3426 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3427 # work properly (i.e., refer to `conftest.exe'), while it won't with
3429 for ac_file in conftest.exe conftest conftest.*; do
3430 test -f "$ac_file" || continue
3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3433 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error "cannot compute suffix of executables: cannot compile and link
3442 See \`config.log' for more details." "$LINENO" 5; }
3444 rm -f conftest$ac_cv_exeext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3446 $as_echo "$ac_cv_exeext" >&6; }
3448 rm -f conftest.$ac_ext
3449 EXEEXT=$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3452 $as_echo_n "checking for suffix of object files... " >&6; }
3453 if test "${ac_cv_objext+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3467 rm -f conftest.o conftest.obj
3468 if { { ac_try="$ac_compile"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compile") 2>&5
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
3479 for ac_file in conftest.o conftest.obj conftest.*; do
3480 test -f "$ac_file" || continue;
3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3483 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error "cannot compute suffix of object files: cannot compile
3494 See \`config.log' for more details." "$LINENO" 5; }
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3537 ac_test_CFLAGS=${CFLAGS+set}
3538 ac_save_CFLAGS=$CFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3541 if test "${ac_cv_prog_cc_g+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3544 ac_save_c_werror_flag=$ac_c_werror_flag
3545 ac_c_werror_flag=yes
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 if ac_fn_c_try_compile "$LINENO"; then :
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3574 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_c_try_compile "$LINENO"; then :
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601 $as_echo "$ac_cv_prog_cc_g" >&6; }
3602 if test "$ac_test_CFLAGS" = set; then
3603 CFLAGS=$ac_save_CFLAGS
3604 elif test $ac_cv_prog_cc_g = yes; then
3605 if test "$GCC" = yes; then
3611 if test "$GCC" = yes; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 ac_cv_prog_cc_c89=no
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3628 #include <sys/types.h>
3629 #include <sys/stat.h>
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3644 s = g (p, va_arg (v,int));
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std. */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659 inside strings and character constants. */
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 CC="$ac_save_CC $ac_arg"
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_prog_cc_c89=$ac_arg
3684 rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 rm -f conftest.$ac_ext
3692 case "x$ac_cv_prog_cc_c89" in
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3700 CC="$CC $ac_cv_prog_cc_c89"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 DEPDIR="${am__leading_dot}deps"
3715 ac_config_commands="$ac_config_commands depfiles"
3718 am_make=${MAKE-make}
3719 cat > confinc << 'END'
3721 @echo this is the am__doit target
3724 # If we don't find an include directive, just comment out the code.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3726 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3730 # First try GNU make style include.
3731 echo "include confinc" > confmf
3732 # Ignore all kinds of additional output from `make'.
3733 case `$am_make -s -f confmf 2> /dev/null` in #(
3734 *the\ am__doit\ target*)
3740 # Now try BSD make style include.
3741 if test "$am__include" = "#"; then
3742 echo '.include "confinc"' > confmf
3743 case `$am_make -s -f confmf 2> /dev/null` in #(
3744 *the\ am__doit\ target*)
3745 am__include=.include
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3754 $as_echo "$_am_result" >&6; }
3755 rm -f confinc confmf
3757 # Check whether --enable-dependency-tracking was given.
3758 if test "${enable_dependency_tracking+set}" = set; then :
3759 enableval=$enable_dependency_tracking;
3762 if test "x$enable_dependency_tracking" != xno; then
3763 am_depcomp="$ac_aux_dir/depcomp"
3766 if test "x$enable_dependency_tracking" != xno; then
3776 depcc="$CC" am_compiler_list=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3790 # Copy depcomp to subdir because otherwise we won't find it if we're
3791 # using a relative directory.
3792 cp "$am_depcomp" conftest.dir
3794 # We will build objects and dependencies in a subdirectory because
3795 # it helps to detect inapplicable dependency modes. For instance
3796 # both Tru64's cc and ICC support -MD to output dependencies as a
3797 # side effect of compilation, but ICC will put the dependencies in
3798 # the current directory while Tru64 will put them in the object
3802 am_cv_CC_dependencies_compiler_type=none
3803 if test "$am_compiler_list" = ""; then
3804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807 case " $depcc " in #(
3808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3811 for depmode in $am_compiler_list; do
3812 # Setup a source with many dependencies, because some compilers
3813 # like to wrap large dependency lists on column 80 (with \), and
3814 # we should not choose a depcomp mode which is confused by this.
3816 # We need to recreate these files for each test, as the compiler may
3817 # overwrite some of them when testing with obscure command lines.
3818 # This happens at least with the AIX C compiler.
3820 for i in 1 2 3 4 5 6; do
3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823 # Solaris 8's {/usr,}/bin/sh.
3824 touch sub/conftst$i.h
3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829 # mode. It turns out that the SunPro C++ compiler does not properly
3830 # handle `-M -o', and we need to detect this. Also, some Intel
3831 # versions had trouble with output in subdirs
3832 am__obj=sub/conftest.${OBJEXT-o}
3833 am__minus_obj="-o $am__obj"
3836 # This depmode causes a compiler race in universal mode.
3837 test "$am__universal" = false || continue
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3848 msvisualcpp | msvcmsys)
3849 # This compiler won't grok `-c -o', but also, the minuso test has
3850 # not run yet. These depmodes are late enough in the game, and
3851 # so weak that their functioning should not be impacted.
3852 am__obj=conftest.${OBJEXT-o}
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=$am__obj \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CC_dependencies_compiler_type=$depmode
3884 am_cv_CC_dependencies_compiler_type=none
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_FALSE='#'
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
3904 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3905 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 if test -n "$ac_tool_prefix"; then
3908 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3909 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_GOC+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -n "$GOC"; then
3916 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 if test -n "$GOC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3938 $as_echo "$GOC" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3946 if test -z "$ac_cv_prog_GOC"; then
3948 # Extract the first word of "gccgo", so it can be a program name with args.
3949 set dummy gccgo; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3955 if test -n "$ac_ct_GOC"; then
3956 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965 ac_cv_prog_ac_ct_GOC="gccgo"
3966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3976 if test -n "$ac_ct_GOC"; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3978 $as_echo "$ac_ct_GOC" >&6; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3984 if test "x$ac_ct_GOC" = x; then
3987 case $cross_compiling:$ac_tool_warned in
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3991 ac_tool_warned=yes ;;
3996 GOC="$ac_cv_prog_GOC"
3999 if test -z "$GOC"; then
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if test "${ac_cv_prog_GOC+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4008 if test -n "$GOC"; then
4009 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 if test -n "$GOC"; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4031 $as_echo "$GOC" >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4040 if test -z "$GOC"; then
4041 # Extract the first word of "gccgo", so it can be a program name with args.
4042 set dummy gccgo; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if test "${ac_cv_prog_GOC+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -n "$GOC"; then
4049 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4060 ac_prog_rejected=yes
4063 ac_cv_prog_GOC="gccgo"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 if test $ac_prog_rejected = yes; then
4072 # We found a bogon in the path, so make sure we never use it.
4073 set dummy $ac_cv_prog_GOC
4075 if test $# != 0; then
4076 # We chose a different compiler from the bogus one.
4077 # However, it has the same basename, so the bogon will be chosen
4078 # first if we set GOC to just the basename; use the full file name.
4080 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4086 if test -n "$GOC"; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4088 $as_echo "$GOC" >&6; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4098 # Provide some information about the compiler.
4099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4102 { { ac_try="$ac_compiler --version >&5"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_compiler --version >&5") 2>conftest.err
4111 if test -s conftest.err; then
4113 ... rest of stderr output deleted ...
4114 10q' conftest.err >conftest.er1
4115 cat conftest.er1 >&5
4116 rm -f conftest.er1 conftest.err
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4133 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4134 # Check whether --enable-maintainer-mode was given.
4135 if test "${enable_maintainer_mode+set}" = set; then :
4136 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4138 USE_MAINTAINER_MODE=no
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4142 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4143 if test $USE_MAINTAINER_MODE = yes; then
4144 MAINTAINER_MODE_TRUE=
4145 MAINTAINER_MODE_FALSE='#'
4147 MAINTAINER_MODE_TRUE='#'
4148 MAINTAINER_MODE_FALSE=
4151 MAINT=$MAINTAINER_MODE_TRUE
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4157 if test "${ac_cv_path_SED+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4161 for ac_i in 1 2 3 4 5 6 7; do
4162 ac_script="$ac_script$as_nl$ac_script"
4164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4165 { ac_script=; unset ac_script;}
4166 if test -z "$SED"; then
4167 ac_path_SED_found=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir=.
4174 for ac_prog in sed gsed; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4177 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4178 # Check for GNU ac_path_SED and select it if it is found.
4179 # Check for GNU $ac_path_SED
4180 case `"$ac_path_SED" --version 2>&1` in
4182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4185 $as_echo_n 0123456789 >"conftest.in"
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo '' >> "conftest.nl"
4192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194 as_fn_arith $ac_count + 1 && ac_count=$as_val
4195 if test $ac_count -gt ${ac_path_SED_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_SED="$ac_path_SED"
4198 ac_path_SED_max=$ac_count
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4206 $ac_path_SED_found && break 3
4211 if test -z "$ac_cv_path_SED"; then
4212 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4220 $as_echo "$ac_cv_path_SED" >&6; }
4221 SED="$ac_cv_path_SED"
4224 test -z "$SED" && SED=sed
4225 Xsed="$SED -e 1s/^X//"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4239 if test "${ac_cv_path_GREP+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4242 if test -z "$GREP"; then
4243 ac_path_GREP_found=false
4244 # Loop through the user's path and test for each of PROGNAME-LIST
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4249 test -z "$as_dir" && as_dir=.
4250 for ac_prog in grep ggrep; do
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4253 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4254 # Check for GNU ac_path_GREP and select it if it is found.
4255 # Check for GNU $ac_path_GREP
4256 case `"$ac_path_GREP" --version 2>&1` in
4258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4261 $as_echo_n 0123456789 >"conftest.in"
4264 cat "conftest.in" "conftest.in" >"conftest.tmp"
4265 mv "conftest.tmp" "conftest.in"
4266 cp "conftest.in" "conftest.nl"
4267 $as_echo 'GREP' >> "conftest.nl"
4268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270 as_fn_arith $ac_count + 1 && ac_count=$as_val
4271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4272 # Best one so far, save it but keep looking for a better one
4273 ac_cv_path_GREP="$ac_path_GREP"
4274 ac_path_GREP_max=$ac_count
4276 # 10*(2^10) chars as input seems more than enough
4277 test $ac_count -gt 10 && break
4279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4282 $ac_path_GREP_found && break 3
4287 if test -z "$ac_cv_path_GREP"; then
4288 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4291 ac_cv_path_GREP=$GREP
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4296 $as_echo "$ac_cv_path_GREP" >&6; }
4297 GREP="$ac_cv_path_GREP"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4301 $as_echo_n "checking for egrep... " >&6; }
4302 if test "${ac_cv_path_EGREP+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4306 then ac_cv_path_EGREP="$GREP -E"
4308 if test -z "$EGREP"; then
4309 ac_path_EGREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in egrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4320 # Check for GNU ac_path_EGREP and select it if it is found.
4321 # Check for GNU $ac_path_EGREP
4322 case `"$ac_path_EGREP" --version 2>&1` in
4324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4327 $as_echo_n 0123456789 >"conftest.in"
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'EGREP' >> "conftest.nl"
4334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_EGREP="$ac_path_EGREP"
4340 ac_path_EGREP_max=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348 $ac_path_EGREP_found && break 3
4353 if test -z "$ac_cv_path_EGREP"; then
4354 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4357 ac_cv_path_EGREP=$EGREP
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4363 $as_echo "$ac_cv_path_EGREP" >&6; }
4364 EGREP="$ac_cv_path_EGREP"
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4368 $as_echo_n "checking for fgrep... " >&6; }
4369 if test "${ac_cv_path_FGREP+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4372 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4373 then ac_cv_path_FGREP="$GREP -F"
4375 if test -z "$FGREP"; then
4376 ac_path_FGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in fgrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4387 # Check for GNU ac_path_FGREP and select it if it is found.
4388 # Check for GNU $ac_path_FGREP
4389 case `"$ac_path_FGREP" --version 2>&1` in
4391 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4394 $as_echo_n 0123456789 >"conftest.in"
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'FGREP' >> "conftest.nl"
4401 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_FGREP="$ac_path_FGREP"
4407 ac_path_FGREP_max=$ac_count
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 $ac_path_FGREP_found && break 3
4420 if test -z "$ac_cv_path_FGREP"; then
4421 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424 ac_cv_path_FGREP=$FGREP
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4430 $as_echo "$ac_cv_path_FGREP" >&6; }
4431 FGREP="$ac_cv_path_FGREP"
4434 test -z "$GREP" && GREP=grep
4452 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4454 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4457 $as_echo_n "checking how to print strings... " >&6; }
4458 # Test print first, because it will be a builtin if present.
4459 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4460 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4462 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4465 # Use this function as a fallback that always works.
4466 func_fallback_echo ()
4468 eval 'cat <<_LTECHO_EOF
4472 ECHO='func_fallback_echo'
4475 # func_echo_all arg...
4476 # Invoke $ECHO with all args, space-separated.
4483 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4484 $as_echo "printf" >&6; } ;;
4485 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4486 $as_echo "print -r" >&6; } ;;
4487 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4488 $as_echo "cat" >&6; } ;;
4506 # Check whether --with-gnu-ld was given.
4507 if test "${with_gnu_ld+set}" = set; then :
4508 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4514 if test "$GCC" = yes; then
4515 # Check if gcc -print-prog-name=ld gives a path.
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4517 $as_echo_n "checking for ld used by $CC... " >&6; }
4520 # gcc leaves a trailing carriage return which upsets mingw
4521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4526 # Accept absolute paths.
4528 re_direlt='/[^/][^/]*/\.\./'
4529 # Canonicalize the pathname of ld
4530 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4531 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4532 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4534 test -z "$LD" && LD="$ac_prog"
4537 # If it fails, then pretend we aren't using GCC.
4541 # If it is relative, then search for the first ld in PATH.
4545 elif test "$with_gnu_ld" = yes; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4547 $as_echo_n "checking for GNU ld... " >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4550 $as_echo_n "checking for non-GNU ld... " >&6; }
4552 if test "${lt_cv_path_LD+set}" = set; then :
4553 $as_echo_n "(cached) " >&6
4555 if test -z "$LD"; then
4556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4557 for ac_dir in $PATH; do
4559 test -z "$ac_dir" && ac_dir=.
4560 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4561 lt_cv_path_LD="$ac_dir/$ac_prog"
4562 # Check to see if the program is GNU ld. I'd rather use --version,
4563 # but apparently some variants of GNU ld only accept -v.
4564 # Break only if it was the GNU/non-GNU ld that we prefer.
4565 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4566 *GNU* | *'with BFD'*)
4567 test "$with_gnu_ld" != no && break
4570 test "$with_gnu_ld" != yes && break
4577 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4582 if test -n "$LD"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4584 $as_echo "$LD" >&6; }
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4589 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4591 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4592 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4595 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4596 case `$LD -v 2>&1 </dev/null` in
4597 *GNU* | *'with BFD'*)
4598 lt_cv_prog_gnu_ld=yes
4601 lt_cv_prog_gnu_ld=no
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4606 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4607 with_gnu_ld=$lt_cv_prog_gnu_ld
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$RANLIB"; then
4626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 RANLIB=$ac_cv_prog_RANLIB
4646 if test -n "$RANLIB"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4648 $as_echo "$RANLIB" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4656 if test -z "$ac_cv_prog_RANLIB"; then
4657 ac_ct_RANLIB=$RANLIB
4658 # Extract the first word of "ranlib", so it can be a program name with args.
4659 set dummy ranlib; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4665 if test -n "$ac_ct_RANLIB"; then
4666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_ac_ct_RANLIB="ranlib"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4686 if test -n "$ac_ct_RANLIB"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4688 $as_echo "$ac_ct_RANLIB" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4694 if test "x$ac_ct_RANLIB" = x; then
4697 case $cross_compiling:$ac_tool_warned in
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4703 RANLIB=$ac_ct_RANLIB
4706 RANLIB="$ac_cv_prog_RANLIB"
4709 if test -n "$ac_tool_prefix"; then
4710 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4715 $as_echo_n "(cached) " >&6
4717 if test -n "$OBJCOPY"; then
4718 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 OBJCOPY=$ac_cv_prog_OBJCOPY
4738 if test -n "$OBJCOPY"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4740 $as_echo "$OBJCOPY" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4748 if test -z "$ac_cv_prog_OBJCOPY"; then
4749 ac_ct_OBJCOPY=$OBJCOPY
4750 # Extract the first word of "objcopy", so it can be a program name with args.
4751 set dummy objcopy; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4757 if test -n "$ac_ct_OBJCOPY"; then
4758 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4778 if test -n "$ac_ct_OBJCOPY"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4780 $as_echo "$ac_ct_OBJCOPY" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4786 if test "x$ac_ct_OBJCOPY" = x; then
4787 OBJCOPY="missing-objcopy"
4789 case $cross_compiling:$ac_tool_warned in
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793 ac_tool_warned=yes ;;
4795 OBJCOPY=$ac_ct_OBJCOPY
4798 OBJCOPY="$ac_cv_prog_OBJCOPY"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4809 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4814 macro_version='2.2.7a'
4815 macro_revision='1.3134'
4829 ltmain="$ac_aux_dir/ltmain.sh"
4831 # Backslashify metacharacters that are still active within
4832 # double-quoted strings.
4833 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4835 # Same as above, but do not quote variable references.
4836 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4838 # Sed substitution to delay expansion of an escaped shell variable in a
4839 # double_quote_subst'ed string.
4840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4842 # Sed substitution to delay expansion of an escaped single quote.
4843 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4845 # Sed substitution to avoid accidental globbing in evaled expressions
4846 no_glob_subst='s/\*/\\\*/g'
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4849 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4850 if test "${lt_cv_path_NM+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
4853 if test -n "$NM"; then
4854 # Let the user override the test.
4857 lt_nm_to_check="${ac_tool_prefix}nm"
4858 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4859 lt_nm_to_check="$lt_nm_to_check nm"
4861 for lt_tmp_nm in $lt_nm_to_check; do
4862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4865 test -z "$ac_dir" && ac_dir=.
4866 tmp_nm="$ac_dir/$lt_tmp_nm"
4867 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4868 # Check to see if the nm accepts a BSD-compat flag.
4869 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4870 # nm: unknown option "B" ignored
4871 # Tru64's nm complains that /dev/null is an invalid object file
4872 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4873 */dev/null* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4880 lt_cv_path_NM="$tmp_nm -p"
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4894 : ${lt_cv_path_NM=no}
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4899 if test "$lt_cv_path_NM" != "no"; then
4902 # Didn't find any BSD compatible name lister, look for dumpbin.
4903 if test -n "$DUMPBIN"; then :
4904 # Let the user override the test.
4906 if test -n "$ac_tool_prefix"; then
4907 for ac_prog in dumpbin "link -dump"
4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$DUMPBIN"; then
4917 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 DUMPBIN=$ac_cv_prog_DUMPBIN
4937 if test -n "$DUMPBIN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4939 $as_echo "$DUMPBIN" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 test -n "$DUMPBIN" && break
4949 if test -z "$DUMPBIN"; then
4950 ac_ct_DUMPBIN=$DUMPBIN
4951 for ac_prog in dumpbin "link -dump"
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954 set dummy $ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981 if test -n "$ac_ct_DUMPBIN"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4983 $as_echo "$ac_ct_DUMPBIN" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4990 test -n "$ac_ct_DUMPBIN" && break
4993 if test "x$ac_ct_DUMPBIN" = x; then
4996 case $cross_compiling:$ac_tool_warned in
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000 ac_tool_warned=yes ;;
5002 DUMPBIN=$ac_ct_DUMPBIN
5006 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5008 DUMPBIN="$DUMPBIN -symbols"
5016 if test "$DUMPBIN" != ":"; then
5020 test -z "$NM" && NM=nm
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5028 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5029 if test "${lt_cv_nm_interface+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5032 lt_cv_nm_interface="BSD nm"
5033 echo "int some_variable = 0;" > conftest.$ac_ext
5034 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5035 (eval "$ac_compile" 2>conftest.err)
5036 cat conftest.err >&5
5037 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5038 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5039 cat conftest.err >&5
5040 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5041 cat conftest.out >&5
5042 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043 lt_cv_nm_interface="MS dumpbin"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5048 $as_echo "$lt_cv_nm_interface" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5051 $as_echo_n "checking whether ln -s works... " >&6; }
5053 if test "$LN_S" = "ln -s"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055 $as_echo "yes" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5058 $as_echo "no, using $LN_S" >&6; }
5061 # find the maximum length of command line arguments
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5063 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5064 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5072 # On DJGPP, this test can blow up pretty badly due to problems in libc
5073 # (any single argument exceeding 2000 bytes causes a buffer overrun
5074 # during glob expansion). Even if it were fixed, the result of this
5075 # check would be larger than it should be.
5076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5080 # Under GNU Hurd, this test is not required because there is
5081 # no limit to the length of command line arguments.
5082 # Libtool will interpret -1 as no limit whatsoever
5083 lt_cv_sys_max_cmd_len=-1;
5086 cygwin* | mingw* | cegcc*)
5087 # On Win9x/ME, this test blows up -- it succeeds, but takes
5088 # about 5 minutes as the teststring grows exponentially.
5089 # Worse, since 9x/ME are not pre-emptively multitasking,
5090 # you end up with a "frozen" computer, even though with patience
5091 # the test eventually succeeds (with a max line length of 256k).
5092 # Instead, let's just punt: use the minimum linelength reported by
5093 # all of the supported platforms: 8192 (on NT/2K/XP).
5094 lt_cv_sys_max_cmd_len=8192;
5098 # On MiNT this can take a long time and run out of memory.
5099 lt_cv_sys_max_cmd_len=8192;
5103 # On AmigaOS with pdksh, this test takes hours, literally.
5104 # So we just punt and use a minimum line length of 8192.
5105 lt_cv_sys_max_cmd_len=8192;
5108 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5109 # This has been around since 386BSD, at least. Likely further.
5110 if test -x /sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112 elif test -x /usr/sbin/sysctl; then
5113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5117 # And add a safety zone
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124 lt_cv_sys_max_cmd_len=196608
5128 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5129 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5130 # nice to cause kernel panics so lets avoid the loop below.
5131 # First set a reasonable default.
5132 lt_cv_sys_max_cmd_len=16384
5134 if test -x /sbin/sysconfig; then
5135 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5136 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5141 lt_cv_sys_max_cmd_len=102400
5143 sysv5* | sco5v6* | sysv4.2uw2*)
5144 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5145 if test -n "$kargmax"; then
5146 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5148 lt_cv_sys_max_cmd_len=32768
5152 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5153 if test -n "$lt_cv_sys_max_cmd_len"; then
5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157 # Make teststring a little bigger before we do anything with it.
5158 # a 1K string should be a reasonable start.
5159 for i in 1 2 3 4 5 6 7 8 ; do
5160 teststring=$teststring$teststring
5162 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163 # If test is not a shell built-in, we'll probably end up computing a
5164 # maximum length that is only half of the actual maximum length, but
5166 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5167 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168 test $i != 17 # 1/2 MB should be enough
5171 teststring=$teststring$teststring
5173 # Only check the string length outside the loop.
5174 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5176 # Add a significant safety factor because C++ compilers can tack on
5177 # massive amounts of additional arguments before passing them to the
5178 # linker. It appears as though 1/2 is a usable value.
5179 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5186 if test -n $lt_cv_sys_max_cmd_len ; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 $as_echo "none" >&6; }
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5205 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5206 # Try some XSI features
5209 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5211 && eval 'test $(( 1 + 1 )) -eq 2 \
5212 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5215 $as_echo "$xsi_shell" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5219 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5221 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5223 && lt_shell_append=yes
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5225 $as_echo "$lt_shell_append" >&6; }
5228 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5238 # test EBCDIC or ASCII
5239 case `echo X|tr X '\101'` in
5240 A) # ASCII based system
5241 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5242 lt_SP2NL='tr \040 \012'
5243 lt_NL2SP='tr \015\012 \040\040'
5245 *) # EBCDIC based system
5246 lt_SP2NL='tr \100 \n'
5247 lt_NL2SP='tr \r\n \100\100'
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5260 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5261 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 lt_cv_ld_reload_flag='-r'
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5267 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5268 reload_flag=$lt_cv_ld_reload_flag
5269 case $reload_flag in
5271 *) reload_flag=" $reload_flag" ;;
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276 if test "$GCC" = yes; then
5277 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5292 if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5294 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -n "$OBJDUMP"; then
5301 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 OBJDUMP=$ac_cv_prog_OBJDUMP
5321 if test -n "$OBJDUMP"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5323 $as_echo "$OBJDUMP" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$ac_cv_prog_OBJDUMP"; then
5332 ac_ct_OBJDUMP=$OBJDUMP
5333 # Extract the first word of "objdump", so it can be a program name with args.
5334 set dummy objdump; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5340 if test -n "$ac_ct_OBJDUMP"; then
5341 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5361 if test -n "$ac_ct_OBJDUMP"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5363 $as_echo "$ac_ct_OBJDUMP" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5369 if test "x$ac_ct_OBJDUMP" = x; then
5372 case $cross_compiling:$ac_tool_warned in
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5378 OBJDUMP=$ac_ct_OBJDUMP
5381 OBJDUMP="$ac_cv_prog_OBJDUMP"
5384 test -z "$OBJDUMP" && OBJDUMP=objdump
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5395 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5396 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 lt_cv_file_magic_cmd='$MAGIC_CMD'
5400 lt_cv_file_magic_test_file=
5401 lt_cv_deplibs_check_method='unknown'
5402 # Need to set the preceding variable on all platforms that support
5403 # interlibrary dependencies.
5404 # 'none' -- dependencies not supported.
5405 # `unknown' -- same as none, but documents that we really don't know.
5406 # 'pass_all' -- all dependencies passed with no checks.
5407 # 'test_compile' -- check by making test program.
5408 # 'file_magic [[regex]]' -- check by looking for files in library path
5409 # which responds to the $file_magic_cmd with a given extended regex.
5410 # If you have `file' or equivalent on your system and you're not sure
5411 # whether `pass_all' will *always* work, you probably want this one.
5415 lt_cv_deplibs_check_method=pass_all
5419 lt_cv_deplibs_check_method=pass_all
5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5424 lt_cv_file_magic_cmd='/usr/bin/file -L'
5425 lt_cv_file_magic_test_file=/shlib/libc.so
5429 # func_win32_libid is a shell function defined in ltmain.sh
5430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431 lt_cv_file_magic_cmd='func_win32_libid'
5435 # Base MSYS/MinGW do not provide the 'file' command needed by
5436 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5437 # unless we find 'file', for example because we are cross-compiling.
5438 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5439 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5440 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5441 lt_cv_file_magic_cmd='func_win32_libid'
5443 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5444 lt_cv_file_magic_cmd='$OBJDUMP -f'
5449 # use the weaker test based on 'objdump'. See mingw*.
5450 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5451 lt_cv_file_magic_cmd='$OBJDUMP -f'
5454 darwin* | rhapsody*)
5455 lt_cv_deplibs_check_method=pass_all
5458 freebsd* | dragonfly*)
5459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5462 # Not sure whether the presence of OpenBSD here was a mistake.
5463 # Let's accept both of them until this is cleared up.
5464 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5465 lt_cv_file_magic_cmd=/usr/bin/file
5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5470 lt_cv_deplibs_check_method=pass_all
5475 lt_cv_deplibs_check_method=pass_all
5479 lt_cv_deplibs_check_method=pass_all
5482 hpux10.20* | hpux11*)
5483 lt_cv_file_magic_cmd=/usr/bin/file
5486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5487 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5490 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]'
5491 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5494 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5495 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5501 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5505 irix5* | irix6* | nonstopux*)
5507 *-32|*"-32 ") libmagic=32-bit;;
5508 *-n32|*"-n32 ") libmagic=N32;;
5509 *-64|*"-64 ") libmagic=64-bit;;
5510 *) libmagic=never-match;;
5512 lt_cv_deplibs_check_method=pass_all
5515 # This must be Linux ELF.
5516 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5517 lt_cv_deplibs_check_method=pass_all
5521 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5530 lt_cv_file_magic_cmd=/usr/bin/file
5531 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5535 lt_cv_deplibs_check_method=pass_all
5539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5546 osf3* | osf4* | osf5*)
5547 lt_cv_deplibs_check_method=pass_all
5551 lt_cv_deplibs_check_method=pass_all
5555 lt_cv_deplibs_check_method=pass_all
5558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5559 lt_cv_deplibs_check_method=pass_all
5563 case $host_vendor in
5565 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]'
5566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5569 lt_cv_deplibs_check_method=pass_all
5572 lt_cv_file_magic_cmd='/bin/file'
5573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5576 lt_cv_file_magic_cmd='/bin/file'
5577 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578 lt_cv_file_magic_test_file=/lib/libc.so
5581 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5590 lt_cv_deplibs_check_method=pass_all
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5596 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5597 file_magic_cmd=$lt_cv_file_magic_cmd
5598 deplibs_check_method=$lt_cv_deplibs_check_method
5599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5612 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5614 set dummy ${ac_tool_prefix}ar; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_prog_AR+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5620 if test -n "$AR"; then
5621 ac_cv_prog_AR="$AR" # Let the user override the test.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_AR="${ac_tool_prefix}ar"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 if test -n "$AR"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5643 $as_echo "$AR" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5651 if test -z "$ac_cv_prog_AR"; then
5653 # Extract the first word of "ar", so it can be a program name with args.
5654 set dummy ar; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5660 if test -n "$ac_ct_AR"; then
5661 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_AR="ar"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5681 if test -n "$ac_ct_AR"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5683 $as_echo "$ac_ct_AR" >&6; }
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5689 if test "x$ac_ct_AR" = x; then
5692 case $cross_compiling:$ac_tool_warned in
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696 ac_tool_warned=yes ;;
5704 test -z "$AR" && AR=ar
5705 test -z "$AR_FLAGS" && AR_FLAGS=cru
5717 if test -n "$ac_tool_prefix"; then
5718 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5719 set dummy ${ac_tool_prefix}strip; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_STRIP+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5725 if test -n "$STRIP"; then
5726 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 STRIP=$ac_cv_prog_STRIP
5746 if test -n "$STRIP"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5748 $as_echo "$STRIP" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5756 if test -z "$ac_cv_prog_STRIP"; then
5758 # Extract the first word of "strip", so it can be a program name with args.
5759 set dummy strip; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5765 if test -n "$ac_ct_STRIP"; then
5766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_ac_ct_STRIP="strip"
5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5786 if test -n "$ac_ct_STRIP"; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5788 $as_echo "$ac_ct_STRIP" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5794 if test "x$ac_ct_STRIP" = x; then
5797 case $cross_compiling:$ac_tool_warned in
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801 ac_tool_warned=yes ;;
5806 STRIP="$ac_cv_prog_STRIP"
5809 test -z "$STRIP" && STRIP=:
5816 if test -n "$ac_tool_prefix"; then
5817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5824 if test -n "$RANLIB"; then
5825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 test -z "$as_dir" && as_dir=.
5832 for ac_exec_ext in '' $ac_executable_extensions; do
5833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 RANLIB=$ac_cv_prog_RANLIB
5845 if test -n "$RANLIB"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5847 $as_echo "$RANLIB" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5855 if test -z "$ac_cv_prog_RANLIB"; then
5856 ac_ct_RANLIB=$RANLIB
5857 # Extract the first word of "ranlib", so it can be a program name with args.
5858 set dummy ranlib; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -n "$ac_ct_RANLIB"; then
5865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_ac_ct_RANLIB="ranlib"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885 if test -n "$ac_ct_RANLIB"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5887 $as_echo "$ac_ct_RANLIB" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5893 if test "x$ac_ct_RANLIB" = x; then
5896 case $cross_compiling:$ac_tool_warned in
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900 ac_tool_warned=yes ;;
5902 RANLIB=$ac_ct_RANLIB
5905 RANLIB="$ac_cv_prog_RANLIB"
5908 test -z "$RANLIB" && RANLIB=:
5915 # Determine commands to create old-style static archives.
5916 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5917 old_postinstall_cmds='chmod 644 $oldlib'
5918 old_postuninstall_cmds=
5920 if test -n "$RANLIB"; then
5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5926 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5929 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5934 lock_old_archive_extraction=yes ;;
5936 lock_old_archive_extraction=no ;;
5977 # If no C compiler was specified, use CC.
5980 # If no C compiler flags were specified, use CFLAGS.
5981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5983 # Allow CC to be a program name with arguments.
5987 # Check for command to grab the raw symbol name followed by C symbol from nm.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5989 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5990 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5994 # These are sane defaults that work on at least a few old systems.
5995 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5997 # Character class describing NM global symbol codes.
5998 symcode='[BCDEGRST]'
6000 # Regexp to match symbols that can be accessed directly from C.
6001 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6003 # Define system-specific variables.
6008 cygwin* | mingw* | pw32* | cegcc*)
6009 symcode='[ABCDGISTW]'
6012 if test "$host_cpu" = ia64; then
6013 symcode='[ABCDEGRST]'
6017 symcode='[BCDEGRST]'
6020 symcode='[BCDEGQRST]'
6031 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6039 # If we're using GNU nm, then use its standard symbol codes.
6040 case `$NM -V 2>&1` in
6041 *GNU* | *'with BFD'*)
6042 symcode='[ABCDGIRSTW]' ;;
6045 # Transform an extracted symbol line into a proper C declaration.
6046 # Some systems (esp. on ia64) link data and code symbols differently,
6047 # so use this general approach.
6048 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6050 # Transform an extracted symbol line into symbol name and symbol address
6051 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6052 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'"
6054 # Handle CRLF in mingw tool chain
6058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6062 # Try without a prefix underscore, then with it.
6063 for ac_symprfx in "" "_"; do
6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066 symxfrm="\\1 $ac_symprfx\\2 \\2"
6068 # Write the raw and C identifiers.
6069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070 # Fake it for dumpbin and say T for any non-static function
6071 # and D for any global variable.
6072 # Also find C++ and __fastcall symbols from MSVC++,
6073 # which start with @ or ?.
6074 lt_cv_sys_global_symbol_pipe="$AWK '"\
6075 " {last_section=section; section=\$ 3};"\
6076 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6077 " \$ 0!~/External *\|/{next};"\
6078 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6079 " {if(hide[section]) next};"\
6080 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6081 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6082 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6083 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6084 " ' prfx=^$ac_symprfx"
6086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6089 # Check to see that the pipe works correctly.
6093 cat > conftest.$ac_ext <<_LT_EOF
6098 void nm_test_func(void);
6099 void nm_test_func(void){}
6103 int main(){nm_test_var='a';nm_test_func();return(0);}
6106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107 (eval $ac_compile) 2>&5
6109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110 test $ac_status = 0; }; then
6111 # Now try to grab the symbols.
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6114 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; } && test -s "$nlist"; then
6118 # Try sorting and uniquifying the output.
6119 if sort "$nlist" | uniq > "$nlist"T; then
6120 mv -f "$nlist"T "$nlist"
6125 # Make sure that we snagged all the symbols we need.
6126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128 cat <<_LT_EOF > conftest.$ac_ext
6134 # Now generate the symbol file.
6135 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6137 cat <<_LT_EOF >> conftest.$ac_ext
6139 /* The mapping between symbol names and symbols. */
6144 lt__PROGRAM__LTX_preloaded_symbols[] =
6146 { "@PROGRAM@", (void *) 0 },
6148 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6149 cat <<\_LT_EOF >> conftest.$ac_ext
6153 /* This works around a problem in FreeBSD linker */
6154 #ifdef FREEBSD_WORKAROUND
6155 static const void *lt_preloaded_setup() {
6156 return lt__PROGRAM__LTX_preloaded_symbols;
6164 # Now try linking the two files.
6165 mv conftest.$ac_objext conftstm.$ac_objext
6166 lt_save_LIBS="$LIBS"
6167 lt_save_CFLAGS="$CFLAGS"
6168 LIBS="conftstm.$ac_objext"
6169 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6171 (eval $ac_link) 2>&5
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6177 LIBS="$lt_save_LIBS"
6178 CFLAGS="$lt_save_CFLAGS"
6180 echo "cannot find nm_test_func in $nlist" >&5
6183 echo "cannot find nm_test_var in $nlist" >&5
6186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6189 echo "$progname: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 rm -rf conftest* conftst*
6194 # Do not use the global_symbol_pipe unless it works.
6195 if test "$pipe_works" = yes; then
6198 lt_cv_sys_global_symbol_pipe=
6204 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205 lt_cv_sys_global_symbol_to_cdecl=
6207 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6209 $as_echo "failed" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6212 $as_echo "ok" >&6; }
6237 # Check whether --enable-libtool-lock was given.
6238 if test "${enable_libtool_lock+set}" = set; then :
6239 enableval=$enable_libtool_lock;
6242 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6244 # Some flags need to be propagated to the compiler or linker for good
6248 # Find out which ABI we are using.
6249 echo 'int i;' > conftest.$ac_ext
6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6251 (eval $ac_compile) 2>&5
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }; then
6255 case `/usr/bin/file conftest.$ac_objext` in
6267 # Find out which ABI we are using.
6268 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6270 (eval $ac_compile) 2>&5
6272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273 test $ac_status = 0; }; then
6274 if test "$lt_cv_prog_gnu_ld" = yes; then
6275 case `/usr/bin/file conftest.$ac_objext` in
6277 LD="${LD-ld} -melf32bsmip"
6280 LD="${LD-ld} -melf32bmipn32"
6283 LD="${LD-ld} -melf64bmip"
6287 case `/usr/bin/file conftest.$ac_objext` in
6303 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6304 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6305 # Find out which ABI we are using.
6306 echo 'int i;' > conftest.$ac_ext
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308 (eval $ac_compile) 2>&5
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
6312 case `/usr/bin/file conftest.o` in
6315 x86_64-*kfreebsd*-gnu)
6316 LD="${LD-ld} -m elf_i386_fbsd"
6319 LD="${LD-ld} -m elf_i386"
6321 ppc64-*linux*|powerpc64-*linux*)
6322 LD="${LD-ld} -m elf32ppclinux"
6325 LD="${LD-ld} -m elf_s390"
6328 LD="${LD-ld} -m elf32_sparc"
6334 x86_64-*kfreebsd*-gnu)
6335 LD="${LD-ld} -m elf_x86_64_fbsd"
6338 LD="${LD-ld} -m elf_x86_64"
6340 ppc*-*linux*|powerpc*-*linux*)
6341 LD="${LD-ld} -m elf64ppc"
6343 s390*-*linux*|s390*-*tpf*)
6344 LD="${LD-ld} -m elf64_s390"
6347 LD="${LD-ld} -m elf64_sparc"
6357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6358 SAVE_CFLAGS="$CFLAGS"
6359 CFLAGS="$CFLAGS -belf"
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6361 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6362 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6366 ac_cpp='$CPP $CPPFLAGS'
6367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6382 if ac_fn_c_try_link "$LINENO"; then :
6383 lt_cv_cc_needs_belf=yes
6385 lt_cv_cc_needs_belf=no
6387 rm -f core conftest.err conftest.$ac_objext \
6388 conftest$ac_exeext conftest.$ac_ext
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6397 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6398 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6399 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6400 CFLAGS="$SAVE_CFLAGS"
6404 # Find out which ABI we are using.
6405 echo 'int i;' > conftest.$ac_ext
6406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407 (eval $ac_compile) 2>&5
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; }; then
6411 case `/usr/bin/file conftest.o` in
6413 case $lt_cv_prog_gnu_ld in
6417 LD="${LD-ld} -m elf_x86_64"
6420 LD="${LD-ld} -m elf64_sparc"
6423 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6424 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6441 need_locks="$enable_libtool_lock"
6445 rhapsody* | darwin*)
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 if test -n "$DSYMUTIL"; then
6455 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6475 if test -n "$DSYMUTIL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6477 $as_echo "$DSYMUTIL" >&6; }
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6485 if test -z "$ac_cv_prog_DSYMUTIL"; then
6486 ac_ct_DSYMUTIL=$DSYMUTIL
6487 # Extract the first word of "dsymutil", so it can be a program name with args.
6488 set dummy dsymutil; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6494 if test -n "$ac_ct_DSYMUTIL"; then
6495 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6515 if test -n "$ac_ct_DSYMUTIL"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6517 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6523 if test "x$ac_ct_DSYMUTIL" = x; then
6526 case $cross_compiling:$ac_tool_warned in
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6532 DSYMUTIL=$ac_ct_DSYMUTIL
6535 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6546 if test -n "$NMEDIT"; then
6547 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 NMEDIT=$ac_cv_prog_NMEDIT
6567 if test -n "$NMEDIT"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6569 $as_echo "$NMEDIT" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6577 if test -z "$ac_cv_prog_NMEDIT"; then
6578 ac_ct_NMEDIT=$NMEDIT
6579 # Extract the first word of "nmedit", so it can be a program name with args.
6580 set dummy nmedit; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6586 if test -n "$ac_ct_NMEDIT"; then
6587 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6607 if test -n "$ac_ct_NMEDIT"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6609 $as_echo "$ac_ct_NMEDIT" >&6; }
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6615 if test "x$ac_ct_NMEDIT" = x; then
6618 case $cross_compiling:$ac_tool_warned in
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6624 NMEDIT=$ac_ct_NMEDIT
6627 NMEDIT="$ac_cv_prog_NMEDIT"
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_LIPO+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6638 if test -n "$LIPO"; then
6639 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 LIPO=$ac_cv_prog_LIPO
6659 if test -n "$LIPO"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6661 $as_echo "$LIPO" >&6; }
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6669 if test -z "$ac_cv_prog_LIPO"; then
6671 # Extract the first word of "lipo", so it can be a program name with args.
6672 set dummy lipo; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6678 if test -n "$ac_ct_LIPO"; then
6679 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_LIPO="lipo"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6699 if test -n "$ac_ct_LIPO"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6701 $as_echo "$ac_ct_LIPO" >&6; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6707 if test "x$ac_ct_LIPO" = x; then
6710 case $cross_compiling:$ac_tool_warned in
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6719 LIPO="$ac_cv_prog_LIPO"
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}otool; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6730 if test -n "$OTOOL"; then
6731 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 OTOOL=$ac_cv_prog_OTOOL
6751 if test -n "$OTOOL"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6753 $as_echo "$OTOOL" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_OTOOL"; then
6763 # Extract the first word of "otool", so it can be a program name with args.
6764 set dummy otool; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6770 if test -n "$ac_ct_OTOOL"; then
6771 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_OTOOL="otool"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6791 if test -n "$ac_ct_OTOOL"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6793 $as_echo "$ac_ct_OTOOL" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_OTOOL" = x; then
6802 case $cross_compiling:$ac_tool_warned in
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6811 OTOOL="$ac_cv_prog_OTOOL"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6822 if test -n "$OTOOL64"; then
6823 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 OTOOL64=$ac_cv_prog_OTOOL64
6843 if test -n "$OTOOL64"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6845 $as_echo "$OTOOL64" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_OTOOL64"; then
6854 ac_ct_OTOOL64=$OTOOL64
6855 # Extract the first word of "otool64", so it can be a program name with args.
6856 set dummy otool64; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6862 if test -n "$ac_ct_OTOOL64"; then
6863 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_OTOOL64="otool64"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6883 if test -n "$ac_ct_OTOOL64"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6885 $as_echo "$ac_ct_OTOOL64" >&6; }
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_OTOOL64" = x; then
6894 case $cross_compiling:$ac_tool_warned in
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6900 OTOOL64=$ac_ct_OTOOL64
6903 OTOOL64="$ac_cv_prog_OTOOL64"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6933 $as_echo_n "checking for -single_module linker flag... " >&6; }
6934 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6937 lt_cv_apple_cc_single_mod=no
6938 if test -z "${LT_MULTI_MODULE}"; then
6939 # By default we will add the -single_module flag. You can override
6940 # by either setting the environment variable LT_MULTI_MODULE
6941 # non-empty at configure time, or by adding -multi_module to the
6943 rm -rf libconftest.dylib*
6944 echo "int foo(void){return 1;}" > conftest.c
6945 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c" >&5
6947 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6950 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6951 lt_cv_apple_cc_single_mod=yes
6953 cat conftest.err >&5
6955 rm -rf libconftest.dylib*
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6960 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6962 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6963 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6966 lt_cv_ld_exported_symbols_list=no
6967 save_LDFLAGS=$LDFLAGS
6968 echo "_main" > conftest.sym
6969 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6981 if ac_fn_c_try_link "$LINENO"; then :
6982 lt_cv_ld_exported_symbols_list=yes
6984 lt_cv_ld_exported_symbols_list=no
6986 rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 LDFLAGS="$save_LDFLAGS"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6992 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6994 $as_echo_n "checking for -force_load linker flag... " >&6; }
6995 if test "${lt_cv_ld_force_load+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6998 lt_cv_ld_force_load=no
6999 cat > conftest.c << _LT_EOF
7000 int forced_loaded() { return 2;}
7002 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7003 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7004 echo "$AR cru libconftest.a conftest.o" >&5
7005 $AR cru libconftest.a conftest.o 2>&5
7006 cat > conftest.c << _LT_EOF
7007 int main() { return 0;}
7009 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7010 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7012 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7013 lt_cv_ld_force_load=yes
7015 cat conftest.err >&5
7017 rm -f conftest.err libconftest.a conftest conftest.c
7018 rm -rf conftest.dSYM
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7022 $as_echo "$lt_cv_ld_force_load" >&6; }
7024 rhapsody* | darwin1.[012])
7025 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7027 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7028 darwin*) # darwin 5.x on
7029 # if running on 10.5 or later, the deployment target defaults
7030 # to the OS version, if on x86, and 10.4, the deployment
7031 # target defaults to 10.4. Don't you love it?
7032 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7033 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7034 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7036 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7043 _lt_dar_single_mod='$single_module'
7045 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7046 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7048 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7050 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7051 _lt_dsymutil='~$DSYMUTIL $lib || :'
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7065 # On Suns, sometimes $CPP names a directory.
7066 if test -n "$CPP" && test -d "$CPP"; then
7069 if test -z "$CPP"; then
7070 if test "${ac_cv_prog_CPP+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7073 # Double quotes because CPP needs to be expanded
7074 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7077 for ac_c_preproc_warn_flag in '' yes
7079 # Use a header file that comes with gcc, so configuring glibc
7080 # with a fresh cross-compiler works.
7081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 # <limits.h> exists even on freestanding compilers.
7083 # On the NeXT, cc -E runs the code through the compiler's parser,
7084 # not just through cpp. "Syntax error" is here to catch this case.
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7088 # include <limits.h>
7090 # include <assert.h>
7094 if ac_fn_c_try_cpp "$LINENO"; then :
7097 # Broken: fails on valid input.
7100 rm -f conftest.err conftest.$ac_ext
7102 # OK, works on sane cases. Now check whether nonexistent headers
7103 # can be detected and how.
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #include <ac_nonexistent.h>
7108 if ac_fn_c_try_cpp "$LINENO"; then :
7109 # Broken: success on invalid input.
7112 # Passes both tests.
7116 rm -f conftest.err conftest.$ac_ext
7119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7120 rm -f conftest.err conftest.$ac_ext
7121 if $ac_preproc_ok; then :
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7134 $as_echo "$CPP" >&6; }
7136 for ac_c_preproc_warn_flag in '' yes
7138 # Use a header file that comes with gcc, so configuring glibc
7139 # with a fresh cross-compiler works.
7140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7141 # <limits.h> exists even on freestanding compilers.
7142 # On the NeXT, cc -E runs the code through the compiler's parser,
7143 # not just through cpp. "Syntax error" is here to catch this case.
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7147 # include <limits.h>
7149 # include <assert.h>
7153 if ac_fn_c_try_cpp "$LINENO"; then :
7156 # Broken: fails on valid input.
7159 rm -f conftest.err conftest.$ac_ext
7161 # OK, works on sane cases. Now check whether nonexistent headers
7162 # can be detected and how.
7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7165 #include <ac_nonexistent.h>
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168 # Broken: success on invalid input.
7171 # Passes both tests.
7175 rm -f conftest.err conftest.$ac_ext
7178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7179 rm -f conftest.err conftest.$ac_ext
7180 if $ac_preproc_ok; then :
7183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7185 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7186 See \`config.log' for more details." "$LINENO" 5; }
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7197 $as_echo_n "checking for ANSI C header files... " >&6; }
7198 if test "${ac_cv_header_stdc+set}" = set; then :
7199 $as_echo_n "(cached) " >&6
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 ac_cv_header_stdc=yes
7219 ac_cv_header_stdc=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 if test $ac_cv_header_stdc = yes; then
7224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 $EGREP "memchr" >/dev/null 2>&1; then :
7234 ac_cv_header_stdc=no
7240 if test $ac_cv_header_stdc = yes; then
7241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7248 $EGREP "free" >/dev/null 2>&1; then :
7251 ac_cv_header_stdc=no
7257 if test $ac_cv_header_stdc = yes; then
7258 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7259 if test "$cross_compiling" = yes; then :
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7266 #if ((' ' & 0x0FF) == 0x020)
7267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7270 # define ISLOWER(c) \
7271 (('a' <= (c) && (c) <= 'i') \
7272 || ('j' <= (c) && (c) <= 'r') \
7273 || ('s' <= (c) && (c) <= 'z'))
7274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7282 for (i = 0; i < 256; i++)
7283 if (XOR (islower (i), ISLOWER (i))
7284 || toupper (i) != TOUPPER (i))
7289 if ac_fn_c_try_run "$LINENO"; then :
7292 ac_cv_header_stdc=no
7294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7295 conftest.$ac_objext conftest.beam conftest.$ac_ext
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7301 $as_echo "$ac_cv_header_stdc" >&6; }
7302 if test $ac_cv_header_stdc = yes; then
7304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7310 inttypes.h stdint.h unistd.h
7312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7315 eval as_val=\$$as_ac_Header
7316 if test "x$as_val" = x""yes; then :
7317 cat >>confdefs.h <<_ACEOF
7318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7326 for ac_header in dlfcn.h
7328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7330 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7331 cat >>confdefs.h <<_ACEOF
7332 #define HAVE_DLFCN_H 1
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_GOC+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
7347 if test -n "$GOC"; then
7348 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 if test -n "$GOC"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7370 $as_echo "$GOC" >&6; }
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7378 if test -z "$ac_cv_prog_GOC"; then
7380 # Extract the first word of "gccgo", so it can be a program name with args.
7381 set dummy gccgo; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7387 if test -n "$ac_ct_GOC"; then
7388 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_ac_ct_GOC="gccgo"
7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7408 if test -n "$ac_ct_GOC"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7410 $as_echo "$ac_ct_GOC" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7416 if test "x$ac_ct_GOC" = x; then
7419 case $cross_compiling:$ac_tool_warned in
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423 ac_tool_warned=yes ;;
7428 GOC="$ac_cv_prog_GOC"
7444 # Check whether --enable-shared was given.
7445 if test "${enable_shared+set}" = set; then :
7446 enableval=$enable_shared; p=${PACKAGE-default}
7448 yes) enable_shared=yes ;;
7449 no) enable_shared=no ;;
7452 # Look at the argument we got. We use all the common list separators.
7453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454 for pkg in $enableval; do
7456 if test "X$pkg" = "X$p"; then
7475 # Check whether --enable-static was given.
7476 if test "${enable_static+set}" = set; then :
7477 enableval=$enable_static; p=${PACKAGE-default}
7479 yes) enable_static=yes ;;
7480 no) enable_static=no ;;
7483 # Look at the argument we got. We use all the common list separators.
7484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7485 for pkg in $enableval; do
7487 if test "X$pkg" = "X$p"; then
7507 # Check whether --with-pic was given.
7508 if test "${with_pic+set}" = set; then :
7509 withval=$with_pic; pic_mode="$withval"
7515 test -z "$pic_mode" && pic_mode=default
7523 # Check whether --enable-fast-install was given.
7524 if test "${enable_fast_install+set}" = set; then :
7525 enableval=$enable_fast_install; p=${PACKAGE-default}
7527 yes) enable_fast_install=yes ;;
7528 no) enable_fast_install=no ;;
7530 enable_fast_install=no
7531 # Look at the argument we got. We use all the common list separators.
7532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7533 for pkg in $enableval; do
7535 if test "X$pkg" = "X$p"; then
7536 enable_fast_install=yes
7543 enable_fast_install=yes
7556 # This can be used to rebuild libtool when needed
7557 LIBTOOL_DEPS="$ltmain"
7559 # Always use our own libtool.
7560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7587 test -z "$LN_S" && LN_S="ln -s"
7602 if test -n "${ZSH_VERSION+set}" ; then
7603 setopt NO_GLOB_SUBST
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7607 $as_echo_n "checking for objdir... " >&6; }
7608 if test "${lt_cv_objdir+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 rm -f .libs 2>/dev/null
7612 mkdir .libs 2>/dev/null
7613 if test -d .libs; then
7616 # MS-DOS does not allow filenames that begin with a dot.
7619 rmdir .libs 2>/dev/null
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7622 $as_echo "$lt_cv_objdir" >&6; }
7623 objdir=$lt_cv_objdir
7629 cat >>confdefs.h <<_ACEOF
7630 #define LT_OBJDIR "$lt_cv_objdir/"
7638 # AIX sometimes has problems with the GCC collect2 program. For some
7639 # reason, if we set the COLLECT_NAMES environment variable, the problems
7640 # vanish in a puff of smoke.
7641 if test "X${COLLECT_NAMES+set}" != Xset; then
7643 export COLLECT_NAMES
7650 can_build_shared=yes
7652 # All known linkers require a `.a' archive for static linking (except MSVC,
7653 # which needs '.lib').
7656 with_gnu_ld="$lt_cv_prog_gnu_ld"
7659 old_CFLAGS="$CFLAGS"
7661 # Set sane defaults for various variables
7662 test -z "$CC" && CC=cc
7663 test -z "$LTCC" && LTCC=$CC
7664 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7665 test -z "$LD" && LD=ld
7666 test -z "$ac_objext" && ac_objext=o
7668 for cc_temp in $compiler""; do
7670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7676 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7679 # Only perform the check for file, if the check method requires it
7680 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7681 case $deplibs_check_method in
7683 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7685 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7686 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7694 lt_save_MAGIC_CMD="$MAGIC_CMD"
7695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697 for ac_dir in $ac_dummy; do
7699 test -z "$ac_dir" && ac_dir=.
7700 if test -f $ac_dir/${ac_tool_prefix}file; then
7701 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7702 if test -n "$file_magic_test_file"; then
7703 case $deplibs_check_method in
7705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708 $EGREP "$file_magic_regex" > /dev/null; then
7713 *** Warning: the command libtool uses to detect shared libraries,
7714 *** $file_magic_cmd, produces output that libtool cannot recognize.
7715 *** The result is that libtool may fail to recognize shared libraries
7716 *** as such. This will affect the creation of libtool libraries that
7717 *** depend on shared libraries, but programs linked with such libtool
7718 *** libraries will work regardless of this problem. Nevertheless, you
7719 *** may want to report the problem to your system manager and/or to
7720 *** bug-libtool@gnu.org
7730 MAGIC_CMD="$lt_save_MAGIC_CMD"
7735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7736 if test -n "$MAGIC_CMD"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7738 $as_echo "$MAGIC_CMD" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7748 if test -z "$lt_cv_path_MAGIC_CMD"; then
7749 if test -n "$ac_tool_prefix"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7751 $as_echo_n "checking for file... " >&6; }
7752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7760 lt_save_MAGIC_CMD="$MAGIC_CMD"
7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763 for ac_dir in $ac_dummy; do
7765 test -z "$ac_dir" && ac_dir=.
7766 if test -f $ac_dir/file; then
7767 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7768 if test -n "$file_magic_test_file"; then
7769 case $deplibs_check_method in
7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774 $EGREP "$file_magic_regex" > /dev/null; then
7779 *** Warning: the command libtool uses to detect shared libraries,
7780 *** $file_magic_cmd, produces output that libtool cannot recognize.
7781 *** The result is that libtool may fail to recognize shared libraries
7782 *** as such. This will affect the creation of libtool libraries that
7783 *** depend on shared libraries, but programs linked with such libtool
7784 *** libraries will work regardless of this problem. Nevertheless, you
7785 *** may want to report the problem to your system manager and/or to
7786 *** bug-libtool@gnu.org
7796 MAGIC_CMD="$lt_save_MAGIC_CMD"
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if test -n "$MAGIC_CMD"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804 $as_echo "$MAGIC_CMD" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7820 # Use C for the default configuration in the libtool script
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830 # Source file extension for C test sources.
7833 # Object file extension for compiled C test sources.
7837 # Code to be used in simple compile tests
7838 lt_simple_compile_test_code="int some_variable = 0;"
7840 # Code to be used in simple link tests
7841 lt_simple_link_test_code='int main(){return(0);}'
7849 # If no C compiler was specified, use CC.
7852 # If no C compiler flags were specified, use CFLAGS.
7853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7855 # Allow CC to be a program name with arguments.
7858 # Save the default compiler, since it gets overwritten when the other
7859 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7860 compiler_DEFAULT=$CC
7862 # save warnings/boilerplate of simple test code
7863 ac_outfile=conftest.$ac_objext
7864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7866 _lt_compiler_boilerplate=`cat conftest.err`
7869 ac_outfile=conftest.$ac_objext
7870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7872 _lt_linker_boilerplate=`cat conftest.err`
7877 ## There is no encapsulation within the following macros, do not change
7878 ## the running order or otherwise move them around unless you know exactly
7879 ## what you are doing...
7880 if test -n "$compiler"; then
7882 lt_prog_compiler_no_builtin_flag=
7884 if test "$GCC" = yes; then
7885 case $cc_basename in
7887 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7889 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7893 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7894 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 lt_cv_prog_compiler_rtti_exceptions=no
7898 ac_outfile=conftest.$ac_objext
7899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7900 lt_compiler_flag="-fno-rtti -fno-exceptions"
7901 # Insert the option either (1) after the last *FLAGS variable, or
7902 # (2) before a word containing "conftest.", or (3) at the end.
7903 # Note that $ac_compile itself does not contain backslashes and begins
7904 # with a dollar sign (not a hyphen), so the echo should work correctly.
7905 # The option is referenced via a variable to avoid confusing sed.
7906 lt_compile=`echo "$ac_compile" | $SED \
7907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7909 -e 's:$: $lt_compiler_flag:'`
7910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7911 (eval "$lt_compile" 2>conftest.err)
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 if (exit $ac_status) && test -s "$ac_outfile"; then
7916 # The compiler can only warn and ignore the option if not recognized
7917 # So say no if there are warnings other than the usual output.
7918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7921 lt_cv_prog_compiler_rtti_exceptions=yes
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7928 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7931 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7943 lt_prog_compiler_wl=
7944 lt_prog_compiler_pic=
7945 lt_prog_compiler_static=
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7948 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7950 if test "$GCC" = yes; then
7951 lt_prog_compiler_wl='-Wl,'
7952 lt_prog_compiler_static='-static'
7956 # All AIX code is PIC.
7957 if test "$host_cpu" = ia64; then
7958 # AIX 5 now supports IA64 processor
7959 lt_prog_compiler_static='-Bstatic'
7966 # see comment about AmigaOS4 .so support
7967 lt_prog_compiler_pic='-fPIC'
7970 # FIXME: we need at least 68020 code to build shared libraries, but
7971 # adding the `-m68020' flag to GCC prevents building anything better,
7973 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7978 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7979 # PIC is the default for these OSes.
7982 mingw* | cygwin* | pw32* | os2* | cegcc*)
7983 # This hack is so that the source file can tell whether it is being
7984 # built for inclusion in a dll (and should export symbols for example).
7985 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7986 # (--disable-auto-import) libraries
7987 lt_prog_compiler_pic='-DDLL_EXPORT'
7990 darwin* | rhapsody*)
7991 # PIC is the default on this platform
7992 # Common symbols not allowed in MH_DYLIB files
7993 lt_prog_compiler_pic='-fno-common'
7997 # PIC is the default for Haiku.
7998 # The "-static" flag exists, but is broken.
7999 lt_prog_compiler_static=
8003 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8004 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8005 # sets the default TLS model and affects inlining.
8011 lt_prog_compiler_pic='-fPIC'
8017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8018 # Instead, we relocate shared libraries at runtime.
8022 # Just because we use GCC doesn't mean we suddenly get shared libraries
8023 # on systems that don't support them.
8024 lt_prog_compiler_can_build_shared=no
8029 # QNX uses GNU C++, but need to define -shared option too, otherwise
8031 lt_prog_compiler_pic='-fPIC -shared'
8035 if test -d /usr/nec; then
8036 lt_prog_compiler_pic=-Kconform_pic
8041 lt_prog_compiler_pic='-fPIC'
8045 case $cc_basename in
8046 nvcc*) # Cuda Compiler Driver 2.2
8047 lt_prog_compiler_wl='-Xlinker '
8048 lt_prog_compiler_pic='-Xcompiler -fPIC'
8052 # PORTME Check for flag to pass linker flags through the system compiler.
8055 lt_prog_compiler_wl='-Wl,'
8056 if test "$host_cpu" = ia64; then
8057 # AIX 5 now supports IA64 processor
8058 lt_prog_compiler_static='-Bstatic'
8060 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8064 mingw* | cygwin* | pw32* | os2* | cegcc*)
8065 # This hack is so that the source file can tell whether it is being
8066 # built for inclusion in a dll (and should export symbols for example).
8067 lt_prog_compiler_pic='-DDLL_EXPORT'
8070 hpux9* | hpux10* | hpux11*)
8071 lt_prog_compiler_wl='-Wl,'
8072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8079 lt_prog_compiler_pic='+Z'
8082 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8083 lt_prog_compiler_static='${wl}-a ${wl}archive'
8086 irix5* | irix6* | nonstopux*)
8087 lt_prog_compiler_wl='-Wl,'
8088 # PIC (with -KPIC) is the default.
8089 lt_prog_compiler_static='-non_shared'
8092 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8093 case $cc_basename in
8094 # old Intel for x86_64 which still supported -KPIC.
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-static'
8100 # icc used to be incompatible with GCC.
8101 # ICC 10 doesn't accept -KPIC any more.
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='-fPIC'
8105 lt_prog_compiler_static='-static'
8107 # Lahey Fortran 8.1.
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='--shared'
8111 lt_prog_compiler_static='--static'
8113 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8114 # Portland Group compilers (*not* the Pentium gcc compiler,
8115 # which looks to be a dead project)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='-fpic'
8118 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_wl='-Wl,'
8122 # All Alpha code is PIC.
8123 lt_prog_compiler_static='-non_shared'
8125 xl* | bgxl* | bgf* | mpixl*)
8126 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8127 lt_prog_compiler_wl='-Wl,'
8128 lt_prog_compiler_pic='-qpic'
8129 lt_prog_compiler_static='-qstaticlink'
8132 case `$CC -V 2>&1 | sed 5q` in
8133 *Sun\ F* | *Sun*Fortran*)
8134 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_wl=''
8141 lt_prog_compiler_pic='-KPIC'
8142 lt_prog_compiler_static='-Bstatic'
8143 lt_prog_compiler_wl='-Wl,'
8151 lt_prog_compiler_pic='-KPIC'
8152 lt_prog_compiler_static='-Bstatic'
8156 # QNX uses GNU C++, but need to define -shared option too, otherwise
8158 lt_prog_compiler_pic='-fPIC -shared'
8161 osf3* | osf4* | osf5*)
8162 lt_prog_compiler_wl='-Wl,'
8163 # All OSF/1 code is PIC.
8164 lt_prog_compiler_static='-non_shared'
8168 lt_prog_compiler_static='-non_shared'
8172 lt_prog_compiler_pic='-KPIC'
8173 lt_prog_compiler_static='-Bstatic'
8174 case $cc_basename in
8176 lt_prog_compiler_wl='-Qoption ld ';;
8178 lt_prog_compiler_wl='-Wl,';;
8183 lt_prog_compiler_wl='-Qoption ld '
8184 lt_prog_compiler_pic='-PIC'
8185 lt_prog_compiler_static='-Bstatic'
8188 sysv4 | sysv4.2uw2* | sysv4.3*)
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8195 if test -d /usr/nec ;then
8196 lt_prog_compiler_pic='-Kconform_pic'
8197 lt_prog_compiler_static='-Bstatic'
8201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_pic='-KPIC'
8204 lt_prog_compiler_static='-Bstatic'
8208 lt_prog_compiler_wl='-Wl,'
8209 lt_prog_compiler_can_build_shared=no
8213 lt_prog_compiler_pic='-pic'
8214 lt_prog_compiler_static='-Bstatic'
8218 lt_prog_compiler_can_build_shared=no
8224 # For platforms which do not support PIC, -DPIC is meaningless:
8226 lt_prog_compiler_pic=
8229 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8233 $as_echo "$lt_prog_compiler_pic" >&6; }
8241 # Check to make sure the PIC flag actually works.
8243 if test -n "$lt_prog_compiler_pic"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8245 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8246 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8249 lt_cv_prog_compiler_pic_works=no
8250 ac_outfile=conftest.$ac_objext
8251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8252 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8253 # Insert the option either (1) after the last *FLAGS variable, or
8254 # (2) before a word containing "conftest.", or (3) at the end.
8255 # Note that $ac_compile itself does not contain backslashes and begins
8256 # with a dollar sign (not a hyphen), so the echo should work correctly.
8257 # The option is referenced via a variable to avoid confusing sed.
8258 lt_compile=`echo "$ac_compile" | $SED \
8259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8261 -e 's:$: $lt_compiler_flag:'`
8262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8263 (eval "$lt_compile" 2>conftest.err)
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 if (exit $ac_status) && test -s "$ac_outfile"; then
8268 # The compiler can only warn and ignore the option if not recognized
8269 # So say no if there are warnings other than the usual output.
8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8273 lt_cv_prog_compiler_pic_works=yes
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8280 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8282 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8283 case $lt_prog_compiler_pic in
8285 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8288 lt_prog_compiler_pic=
8289 lt_prog_compiler_can_build_shared=no
8300 # Check to make sure the static flag actually works.
8302 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8304 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8305 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8308 lt_cv_prog_compiler_static_works=no
8309 save_LDFLAGS="$LDFLAGS"
8310 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8311 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8312 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8313 # The linker can only warn and ignore the option if not recognized
8314 # So say no if there are warnings
8315 if test -s conftest.err; then
8316 # Append any errors to the config.log.
8317 cat conftest.err 1>&5
8318 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8320 if diff conftest.exp conftest.er2 >/dev/null; then
8321 lt_cv_prog_compiler_static_works=yes
8324 lt_cv_prog_compiler_static_works=yes
8328 LDFLAGS="$save_LDFLAGS"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8332 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8334 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8337 lt_prog_compiler_static=
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8348 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8351 lt_cv_prog_compiler_c_o=no
8352 $RM -r conftest 2>/dev/null
8356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8358 lt_compiler_flag="-o out/conftest2.$ac_objext"
8359 # Insert the option either (1) after the last *FLAGS variable, or
8360 # (2) before a word containing "conftest.", or (3) at the end.
8361 # Note that $ac_compile itself does not contain backslashes and begins
8362 # with a dollar sign (not a hyphen), so the echo should work correctly.
8363 lt_compile=`echo "$ac_compile" | $SED \
8364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366 -e 's:$: $lt_compiler_flag:'`
8367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8368 (eval "$lt_compile" 2>out/conftest.err)
8370 cat out/conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8374 # The compiler can only warn and ignore the option if not recognized
8375 # So say no if there are warnings
8376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8379 lt_cv_prog_compiler_c_o=yes
8384 # SGI C++ compiler will create directory out/ii_files/ for
8385 # template instantiation
8386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8387 $RM out/* && rmdir out
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8403 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8406 lt_cv_prog_compiler_c_o=no
8407 $RM -r conftest 2>/dev/null
8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8413 lt_compiler_flag="-o out/conftest2.$ac_objext"
8414 # Insert the option either (1) after the last *FLAGS variable, or
8415 # (2) before a word containing "conftest.", or (3) at the end.
8416 # Note that $ac_compile itself does not contain backslashes and begins
8417 # with a dollar sign (not a hyphen), so the echo should work correctly.
8418 lt_compile=`echo "$ac_compile" | $SED \
8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421 -e 's:$: $lt_compiler_flag:'`
8422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8423 (eval "$lt_compile" 2>out/conftest.err)
8425 cat out/conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8429 # The compiler can only warn and ignore the option if not recognized
8430 # So say no if there are warnings
8431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8434 lt_cv_prog_compiler_c_o=yes
8439 # SGI C++ compiler will create directory out/ii_files/ for
8440 # template instantiation
8441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8442 $RM out/* && rmdir out
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8449 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8454 hard_links="nottested"
8455 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8456 # do not overwrite the value of need_locks provided by the user
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8458 $as_echo_n "checking if we can lock with hard links... " >&6; }
8461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8463 ln conftest.a conftest.b 2>&5 || hard_links=no
8464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8466 $as_echo "$hard_links" >&6; }
8467 if test "$hard_links" = no; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8469 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8482 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8485 allow_undefined_flag=
8486 always_export_symbols=no
8488 archive_expsym_cmds=
8489 compiler_needs_object=no
8490 enable_shared_with_static_runtimes=no
8491 export_dynamic_flag_spec=
8492 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8493 hardcode_automatic=no
8495 hardcode_direct_absolute=no
8496 hardcode_libdir_flag_spec=
8497 hardcode_libdir_flag_spec_ld=
8498 hardcode_libdir_separator=
8500 hardcode_shlibpath_var=unsupported
8502 link_all_deplibs=unknown
8505 old_archive_from_new_cmds=
8506 old_archive_from_expsyms_cmds=
8507 thread_safe_flag_spec=
8508 whole_archive_flag_spec=
8509 # include_expsyms should be a list of space-separated symbols to be *always*
8510 # included in the symbol list
8512 # exclude_expsyms can be an extended regexp of symbols to exclude
8513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8515 # as well as any symbol that contains `d'.
8516 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8518 # platforms (ab)use it in PIC code, but their linkers get confused if
8519 # the symbol is explicitly referenced. Since portable code cannot
8520 # rely on this symbol name, it's probably fine to never include it in
8521 # preloaded symbol tables.
8522 # Exclude shared library initialization/finalization symbols.
8523 extract_expsyms_cmds=
8526 cygwin* | mingw* | pw32* | cegcc*)
8527 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8528 # When not using gcc, we currently assume that we are using
8529 # Microsoft Visual C++.
8530 if test "$GCC" != yes; then
8535 # we just hope/assume this is gcc and not c89 (= MSVC++)
8545 # On some targets, GNU ld is compatible enough with the native linker
8546 # that we're better off using the native interface for both.
8547 lt_use_gnu_ld_interface=no
8548 if test "$with_gnu_ld" = yes; then
8551 # The AIX port of GNU ld has always aspired to compatibility
8552 # with the native linker. However, as the warning in the GNU ld
8553 # block says, versions before 2.19.5* couldn't really create working
8554 # shared libraries, regardless of the interface used.
8555 case `$LD -v 2>&1` in
8556 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8557 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8558 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8560 lt_use_gnu_ld_interface=yes
8565 lt_use_gnu_ld_interface=yes
8570 if test "$lt_use_gnu_ld_interface" = yes; then
8571 # If archive_cmds runs LD, not CC, wlarc should be empty
8574 # Set some defaults for GNU ld with shared library support. These
8575 # are reset later if shared libraries are not supported. Putting them
8576 # here allows them to be overridden if necessary.
8577 runpath_var=LD_RUN_PATH
8578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579 export_dynamic_flag_spec='${wl}--export-dynamic'
8580 # ancient GNU ld didn't support --whole-archive et. al.
8581 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8582 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8584 whole_archive_flag_spec=
8586 supports_anon_versioning=no
8587 case `$LD -v 2>&1` in
8588 *GNU\ gold*) supports_anon_versioning=yes ;;
8589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8592 *\ 2.11.*) ;; # other 2.11 versions
8593 *) supports_anon_versioning=yes ;;
8596 # See if GNU ld supports shared libraries.
8599 # On AIX/PPC, the GNU linker is very broken
8600 if test "$host_cpu" != ia64; then
8604 *** Warning: the GNU linker, at least up to release 2.19, is reported
8605 *** to be unable to reliably create shared libraries on AIX.
8606 *** Therefore, libtool is disabling shared libraries support. If you
8607 *** really care for shared libraries, you may want to install binutils
8608 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8609 *** You will then need to restart the configuration process.
8618 # see comment about AmigaOS4 .so support
8619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620 archive_expsym_cmds=''
8623 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)'
8624 hardcode_libdir_flag_spec='-L$libdir'
8625 hardcode_minus_L=yes
8631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8632 allow_undefined_flag=unsupported
8633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8634 # support --undefined. This deserves some investigation. FIXME
8635 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8641 cygwin* | mingw* | pw32* | cegcc*)
8642 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8643 # as there is no search path for DLLs.
8644 hardcode_libdir_flag_spec='-L$libdir'
8645 export_dynamic_flag_spec='${wl}--export-all-symbols'
8646 allow_undefined_flag=unsupported
8647 always_export_symbols=no
8648 enable_shared_with_static_runtimes=yes
8649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8653 # If the export-symbols file already is a .def file (1st line
8654 # is EXPORTS), use it as is; otherwise, prepend...
8655 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8656 cp $export_symbols $output_objdir/$soname.def;
8658 echo EXPORTS > $output_objdir/$soname.def;
8659 cat $export_symbols >> $output_objdir/$soname.def;
8661 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669 link_all_deplibs=yes
8674 hardcode_shlibpath_var=no
8675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8676 export_dynamic_flag_spec='${wl}-E'
8677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8678 # Instead, shared libraries are loaded at an image base (0x10000000 by
8679 # default) and relocated if they conflict, which is a slow very memory
8680 # consuming and fragmenting process. To avoid this, we pick a random,
8681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8682 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8683 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8684 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'
8687 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8689 if test "$host_os" = linux-dietlibc; then
8690 case $cc_basename in
8691 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8694 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8695 && test "$tmp_diet" = no
8698 tmp_sharedflag='-shared'
8699 case $cc_basename,$host_cpu in
8700 pgcc*) # Portland Group C compiler
8701 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'
8702 tmp_addflag=' $pic_flag'
8704 pgf77* | pgf90* | pgf95* | pgfortran*)
8705 # Portland Group f77 and f90 compilers
8706 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'
8707 tmp_addflag=' $pic_flag -Mnomain' ;;
8708 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8709 tmp_addflag=' -i_dynamic' ;;
8710 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8711 tmp_addflag=' -i_dynamic -nofor_main' ;;
8712 ifc* | ifort*) # Intel Fortran compiler
8713 tmp_addflag=' -nofor_main' ;;
8714 lf95*) # Lahey Fortran 8.1
8715 whole_archive_flag_spec=
8716 tmp_sharedflag='--shared' ;;
8717 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8718 tmp_sharedflag='-qmkshrobj'
8720 nvcc*) # Cuda Compiler Driver 2.2
8721 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'
8722 compiler_needs_object=yes
8725 case `$CC -V 2>&1 | sed 5q` in
8726 *Sun\ C*) # Sun C 5.9
8727 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'
8728 compiler_needs_object=yes
8729 tmp_sharedflag='-G' ;;
8730 *Sun\ F*) # Sun Fortran 8.3
8731 tmp_sharedflag='-G' ;;
8733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735 if test "x$supports_anon_versioning" = xyes; then
8736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8738 echo "local: *; };" >> $output_objdir/$libname.ver~
8739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8742 case $cc_basename in
8743 xlf* | bgf* | bgxlf* | mpixlf*)
8744 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8745 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8746 hardcode_libdir_flag_spec=
8747 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8748 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8749 if test "x$supports_anon_versioning" = xyes; then
8750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8752 echo "local: *; };" >> $output_objdir/$libname.ver~
8753 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8764 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8777 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8778 *** create shared libraries on Solaris systems. Therefore, libtool
8779 *** is disabling shared libraries support. We urge you to upgrade GNU
8780 *** binutils to release 2.9.1 or newer. Another option is to modify
8781 *** your PATH or compiler configuration so that the native linker is
8782 *** used, and then restart.
8785 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8794 case `$LD -v 2>&1` in
8795 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8799 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8800 *** reliably create shared libraries on SCO systems. Therefore, libtool
8801 *** is disabling shared libraries support. We urge you to upgrade GNU
8802 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8803 *** your PATH or compiler configuration so that the native linker is
8804 *** used, and then restart.
8809 # For security reasons, it is highly recommended that you always
8810 # use absolute paths for naming shared libraries, and exclude the
8811 # DT_RUNPATH tag from executables and libraries. But doing so
8812 # requires that you compile everything twice, which is a pain.
8813 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8828 hardcode_shlibpath_var=no
8832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8841 if test "$ld_shlibs" = no; then
8843 hardcode_libdir_flag_spec=
8844 export_dynamic_flag_spec=
8845 whole_archive_flag_spec=
8848 # PORTME fill in a description of your system's linker (not GNU ld)
8851 allow_undefined_flag=unsupported
8852 always_export_symbols=yes
8853 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'
8854 # Note: this linker hardcodes the directories in LIBPATH if there
8855 # are no directories specified by -L.
8856 hardcode_minus_L=yes
8857 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8858 # Neither direct hardcoding nor static linking is supported with a
8860 hardcode_direct=unsupported
8865 if test "$host_cpu" = ia64; then
8866 # On IA64, the linker does run time linking by default, so we don't
8867 # have to do anything special.
8868 aix_use_runtimelinking=no
8869 exp_sym_flag='-Bexport'
8872 # If we're using GNU nm, then we don't want the "-C" option.
8873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8874 # Also, AIX nm treats weak defined symbols like other global
8875 # defined symbols, whereas GNU nm marks them as "W".
8876 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8877 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'
8879 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'
8881 aix_use_runtimelinking=no
8883 # Test if we are trying to use run time linking or normal
8884 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8885 # need to do runtime linking.
8886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8887 for ld_flag in $LDFLAGS; do
8888 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8889 aix_use_runtimelinking=yes
8896 exp_sym_flag='-bexport'
8897 no_entry_flag='-bnoentry'
8900 # When large executables or shared objects are built, AIX ld can
8901 # have problems creating the table of contents. If linking a library
8902 # or program results in "error TOC overflow" add -mminimal-toc to
8903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8908 hardcode_direct_absolute=yes
8909 hardcode_libdir_separator=':'
8910 link_all_deplibs=yes
8911 file_list_spec='${wl}-f,'
8913 if test "$GCC" = yes; then
8914 case $host_os in aix4.[012]|aix4.[012].*)
8915 # We only want to do this on AIX 4.2 and lower, the check
8916 # below for broken collect2 doesn't work under 4.3+
8917 collect2name=`${CC} -print-prog-name=collect2`
8918 if test -f "$collect2name" &&
8919 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8921 # We have reworked collect2
8924 # We have old collect2
8925 hardcode_direct=unsupported
8926 # It fails to find uninstalled libraries when the uninstalled
8927 # path is not listed in the libpath. Setting hardcode_minus_L
8928 # to unsupported forces relinking
8929 hardcode_minus_L=yes
8930 hardcode_libdir_flag_spec='-L$libdir'
8931 hardcode_libdir_separator=
8935 shared_flag='-shared'
8936 if test "$aix_use_runtimelinking" = yes; then
8937 shared_flag="$shared_flag "'${wl}-G'
8941 if test "$host_cpu" = ia64; then
8942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8943 # chokes on -Wl,-G. The following line is correct:
8946 if test "$aix_use_runtimelinking" = yes; then
8947 shared_flag='${wl}-G'
8949 shared_flag='${wl}-bM:SRE'
8954 export_dynamic_flag_spec='${wl}-bexpall'
8955 # It seems that -bexpall does not export symbols beginning with
8956 # underscore (_), so it is better to generate a list of symbols to export.
8957 always_export_symbols=yes
8958 if test "$aix_use_runtimelinking" = yes; then
8959 # Warning - without using the other runtime loading flags (-brtl),
8960 # -berok will link without error, but may produce a broken library.
8961 allow_undefined_flag='-berok'
8962 # Determine the default libpath from the value encoded in an
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8975 if ac_fn_c_try_link "$LINENO"; then :
8977 lt_aix_libpath_sed='
8978 /Import File Strings/,/^$/ {
8984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8985 # Check for a 64-bit object if we didn't find anything.
8986 if test -z "$aix_libpath"; then
8987 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990 rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8994 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8995 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"
8997 if test "$host_cpu" = ia64; then
8998 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8999 allow_undefined_flag="-z nodefs"
9000 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"
9002 # Determine the default libpath from the value encoded in an
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9015 if ac_fn_c_try_link "$LINENO"; then :
9017 lt_aix_libpath_sed='
9018 /Import File Strings/,/^$/ {
9024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025 # Check for a 64-bit object if we didn't find anything.
9026 if test -z "$aix_libpath"; then
9027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9030 rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
9032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9034 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9035 # Warning - without using the other run time loading flags,
9036 # -berok will link without error, but may produce a broken library.
9037 no_undefined_flag=' ${wl}-bernotok'
9038 allow_undefined_flag=' ${wl}-berok'
9039 if test "$with_gnu_ld" = yes; then
9040 # We only use this code for GNU lds that support --whole-archive.
9041 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9043 # Exported symbols can be pulled into shared objects from archives
9044 whole_archive_flag_spec='$convenience'
9046 archive_cmds_need_lc=yes
9047 # This is similar to how AIX traditionally builds its shared libraries.
9048 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'
9056 # see comment about AmigaOS4 .so support
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds=''
9061 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)'
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_minus_L=yes
9069 export_dynamic_flag_spec=-rdynamic
9072 cygwin* | mingw* | pw32* | cegcc*)
9073 # When not using gcc, we currently assume that we are using
9074 # Microsoft Visual C++.
9075 # hardcode_libdir_flag_spec is actually meaningless, as there is
9076 # no search path for DLLs.
9077 hardcode_libdir_flag_spec=' '
9078 allow_undefined_flag=unsupported
9079 # Tell ltmain to make .lib files, not .a files.
9081 # Tell ltmain to make .dll files, not .so files.
9083 # FIXME: Setting linknames here is a bad hack.
9084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9085 # The linker will automatically build a .lib file if we build a DLL.
9086 old_archive_from_new_cmds='true'
9087 # FIXME: Should let the user specify the lib program.
9088 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9089 fix_srcfile_path='`cygpath -w "$srcfile"`'
9090 enable_shared_with_static_runtimes=yes
9093 darwin* | rhapsody*)
9096 archive_cmds_need_lc=no
9098 hardcode_automatic=yes
9099 hardcode_shlibpath_var=unsupported
9100 if test "$lt_cv_ld_force_load" = "yes"; then
9101 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\"`'
9103 whole_archive_flag_spec=''
9105 link_all_deplibs=yes
9106 allow_undefined_flag="$_lt_dar_allow_undefined"
9107 case $cc_basename in
9108 ifort*) _lt_dar_can_shared=yes ;;
9109 *) _lt_dar_can_shared=$GCC ;;
9111 if test "$_lt_dar_can_shared" = "yes"; then
9112 output_verbose_link_cmd=func_echo_all
9113 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9114 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9115 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}"
9116 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}"
9125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_shlibpath_var=no
9130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9131 # support. Future versions do this automatically, but an explicit c++rt0.o
9132 # does not break anything, and helps significantly (at the cost of a little
9135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9136 hardcode_libdir_flag_spec='-R$libdir'
9138 hardcode_shlibpath_var=no
9141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_minus_L=yes
9146 hardcode_shlibpath_var=no
9149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9150 freebsd* | dragonfly*)
9151 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9152 hardcode_libdir_flag_spec='-R$libdir'
9154 hardcode_shlibpath_var=no
9158 if test "$GCC" = yes; then
9159 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'
9161 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'
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L=yes
9170 export_dynamic_flag_spec='${wl}-E'
9174 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9179 if test "$with_gnu_ld" = no; then
9180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9181 hardcode_libdir_flag_spec_ld='+b $libdir'
9182 hardcode_libdir_separator=:
9184 hardcode_direct_absolute=yes
9185 export_dynamic_flag_spec='${wl}-E'
9186 # hardcode_minus_L: Not really in the search PATH,
9187 # but as the default location of the library.
9188 hardcode_minus_L=yes
9193 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9215 # Older versions of the 11.00 compiler do not understand -b yet
9216 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9218 $as_echo_n "checking if $CC understands -b... " >&6; }
9219 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9222 lt_cv_prog_compiler__b=no
9223 save_LDFLAGS="$LDFLAGS"
9224 LDFLAGS="$LDFLAGS -b"
9225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9227 # The linker can only warn and ignore the option if not recognized
9228 # So say no if there are warnings
9229 if test -s conftest.err; then
9230 # Append any errors to the config.log.
9231 cat conftest.err 1>&5
9232 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9234 if diff conftest.exp conftest.er2 >/dev/null; then
9235 lt_cv_prog_compiler__b=yes
9238 lt_cv_prog_compiler__b=yes
9242 LDFLAGS="$save_LDFLAGS"
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9246 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9248 if test x"$lt_cv_prog_compiler__b" = xyes; then
9249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9257 if test "$with_gnu_ld" = no; then
9258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259 hardcode_libdir_separator=:
9264 hardcode_shlibpath_var=no
9268 hardcode_direct_absolute=yes
9269 export_dynamic_flag_spec='${wl}-E'
9271 # hardcode_minus_L: Not really in the search PATH,
9272 # but as the default location of the library.
9273 hardcode_minus_L=yes
9279 irix5* | irix6* | nonstopux*)
9280 if test "$GCC" = yes; then
9281 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'
9282 # Try to use the -exported_symbol ld option, if it does not
9283 # work, assume that -exports_file does not work either and
9284 # implicitly export all symbols.
9285 save_LDFLAGS="$LDFLAGS"
9286 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 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'
9295 rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 LDFLAGS="$save_LDFLAGS"
9299 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'
9300 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'
9302 archive_cmds_need_lc='no'
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 hardcode_libdir_separator=:
9306 link_all_deplibs=yes
9310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9313 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9315 hardcode_libdir_flag_spec='-R$libdir'
9317 hardcode_shlibpath_var=no
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 hardcode_libdir_separator=:
9325 hardcode_shlibpath_var=no
9332 if test -f /usr/libexec/ld.so; then
9334 hardcode_shlibpath_var=no
9335 hardcode_direct_absolute=yes
9336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9338 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9339 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9340 export_dynamic_flag_spec='${wl}-E'
9343 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_libdir_flag_spec='-R$libdir'
9348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_minus_L=yes
9361 allow_undefined_flag=unsupported
9362 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'
9363 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9367 if test "$GCC" = yes; then
9368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9369 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'
9371 allow_undefined_flag=' -expect_unresolved \*'
9372 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'
9374 archive_cmds_need_lc='no'
9375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376 hardcode_libdir_separator=:
9379 osf4* | osf5*) # as osf3* with the addition of -msym flag
9380 if test "$GCC" = yes; then
9381 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9382 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'
9383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385 allow_undefined_flag=' -expect_unresolved \*'
9386 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'
9387 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~
9388 $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'
9390 # Both c and cxx compiler support -rpath directly
9391 hardcode_libdir_flag_spec='-rpath $libdir'
9393 archive_cmds_need_lc='no'
9394 hardcode_libdir_separator=:
9398 no_undefined_flag=' -z defs'
9399 if test "$GCC" = yes; then
9401 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9403 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9405 case `$CC -V 2>&1` in
9408 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9414 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9415 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9416 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9420 hardcode_libdir_flag_spec='-R$libdir'
9421 hardcode_shlibpath_var=no
9423 solaris2.[0-5] | solaris2.[0-5].*) ;;
9425 # The compiler driver will combine and reorder linker options,
9426 # but understands `-z linker_flag'. GCC discards it without `$wl',
9427 # but is careful enough not to reorder.
9428 # Supported since Solaris 2.6 (maybe 2.5.1?)
9429 if test "$GCC" = yes; then
9430 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9432 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9436 link_all_deplibs=yes
9440 if test "x$host_vendor" = xsequent; then
9441 # Use $CC to link under sequent, because it throws in some extra .o
9442 # files that make .init and .fini sections work.
9443 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_libdir_flag_spec='-L$libdir'
9449 hardcode_minus_L=yes
9450 hardcode_shlibpath_var=no
9454 case $host_vendor in
9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457 hardcode_direct=yes # is this really true???
9460 ## LD is ld it makes a PLAMLIB
9461 ## CC just makes a GrossModule.
9462 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9463 reload_cmds='$CC -r -o $output$reload_objs'
9467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9471 runpath_var='LD_RUN_PATH'
9472 hardcode_shlibpath_var=no
9476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477 hardcode_shlibpath_var=no
9478 export_dynamic_flag_spec='-Bexport'
9482 if test -d /usr/nec; then
9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_shlibpath_var=no
9485 runpath_var=LD_RUN_PATH
9486 hardcode_runpath_var=yes
9491 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9492 no_undefined_flag='${wl}-z,text'
9493 archive_cmds_need_lc=no
9494 hardcode_shlibpath_var=no
9495 runpath_var='LD_RUN_PATH'
9497 if test "$GCC" = yes; then
9498 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 sysv5* | sco3.2v5* | sco5v6*)
9507 # Note: We can NOT use -z defs as we might desire, because we do not
9508 # link with -lc, and that would cause any symbols used from libc to
9509 # always be unresolved, which means just about no library would
9510 # ever link correctly. If we're not using GNU ld we use -z text
9511 # though, which does catch some bad symbols but isn't as heavy-handed
9513 no_undefined_flag='${wl}-z,text'
9514 allow_undefined_flag='${wl}-z,nodefs'
9515 archive_cmds_need_lc=no
9516 hardcode_shlibpath_var=no
9517 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9518 hardcode_libdir_separator=':'
9519 link_all_deplibs=yes
9520 export_dynamic_flag_spec='${wl}-Bexport'
9521 runpath_var='LD_RUN_PATH'
9523 if test "$GCC" = yes; then
9524 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_libdir_flag_spec='-L$libdir'
9535 hardcode_shlibpath_var=no
9543 if test x$host_vendor = xsni; then
9545 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9546 export_dynamic_flag_spec='${wl}-Blargedynsym'
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9553 $as_echo "$ld_shlibs" >&6; }
9554 test "$ld_shlibs" = no && can_build_shared=no
9556 with_gnu_ld=$with_gnu_ld
9573 # Do we need to explicitly link libc?
9575 case "x$archive_cmds_need_lc" in
9577 # Assume -lc should be added
9578 archive_cmds_need_lc=yes
9580 if test "$enable_shared" = yes && test "$GCC" = yes; then
9581 case $archive_cmds in
9583 # FIXME: we may have to deal with multi-command sequences.
9586 # Test whether the compiler implicitly links with -lc since on some
9587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9588 # to ld, don't add -lc before -lgcc.
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9590 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9591 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9598 (eval $ac_compile) 2>&5
9600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9601 test $ac_status = 0; } 2>conftest.err; then
9604 libobjs=conftest.$ac_objext
9606 wl=$lt_prog_compiler_wl
9607 pic_flag=$lt_prog_compiler_pic
9613 lt_save_allow_undefined_flag=$allow_undefined_flag
9614 allow_undefined_flag=
9615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9616 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619 test $ac_status = 0; }
9621 lt_cv_archive_cmds_need_lc=no
9623 lt_cv_archive_cmds_need_lc=yes
9625 allow_undefined_flag=$lt_save_allow_undefined_flag
9627 cat conftest.err 1>&5
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9633 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9634 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9798 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9800 if test "$GCC" = yes; then
9802 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9803 *) lt_awk_arg="/^libraries:/" ;;
9806 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9807 *) lt_sed_strip_eq="s,=/,/,g" ;;
9809 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9810 case $lt_search_path_spec in
9812 # if the path contains ";" then we assume it to be the separator
9813 # otherwise default to the standard path separator (i.e. ":") - it is
9814 # assumed that no part of a normal pathname contains ";" but that should
9815 # okay in the real world where ";" in dirpaths is itself problematic.
9816 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9822 # Ok, now we have the path, separated by spaces, we can step through it
9823 # and add multilib dir if necessary.
9824 lt_tmp_lt_search_path_spec=
9825 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9826 for lt_sys_path in $lt_search_path_spec; do
9827 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9830 test -d "$lt_sys_path" && \
9831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9834 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9835 BEGIN {RS=" "; FS="/|\n";} {
9838 for (lt_i = NF; lt_i > 0; lt_i--) {
9839 if ($lt_i != "" && $lt_i != ".") {
9840 if ($lt_i == "..") {
9843 if (lt_count == 0) {
9844 lt_foo="/" $lt_i lt_foo;
9851 if (lt_foo != "") { lt_freq[lt_foo]++; }
9852 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9854 # AWK program above erroneously prepends '/' to C:/dos/paths
9857 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9858 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9860 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9865 libname_spec='lib$name'
9873 shlibpath_overrides_runpath=unknown
9875 dynamic_linker="$host_os ld.so"
9876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9877 need_lib_prefix=unknown
9878 hardcode_into_libs=no
9880 # when you set need_version to no, make sure it does not cause -set_version
9881 # flags to be left without arguments
9882 need_version=unknown
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9888 shlibpath_var=LIBPATH
9890 # AIX 3 has no versioning support, so we append a major version to the name.
9891 soname_spec='${libname}${release}${shared_ext}$major'
9898 hardcode_into_libs=yes
9899 if test "$host_cpu" = ia64; then
9900 # AIX 5 supports IA64
9901 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9902 shlibpath_var=LD_LIBRARY_PATH
9904 # With GCC up to 2.95.x, collect2 would create an import file
9905 # for dependence libraries. The import file would start with
9906 # the line `#! .'. This would cause the generated library to
9907 # depend on `.', always an invalid library. This was fixed in
9908 # development snapshots of GCC prior to 3.0.
9910 aix4 | aix4.[01] | aix4.[01].*)
9911 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9913 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9920 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9921 # soname into executable. Probably we can add versioning support to
9922 # collect2, so additional links can be useful in future.
9923 if test "$aix_use_runtimelinking" = yes; then
9924 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9925 # instead of lib<name>.a to let people know that these are not
9926 # typical AIX shared libraries.
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929 # We preserve .a as extension for shared libraries through AIX4.2
9930 # and later when we are not doing run time linking.
9931 library_names_spec='${libname}${release}.a $libname.a'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9934 shlibpath_var=LIBPATH
9941 # Since July 2007 AmigaOS4 officially supports .so libraries.
9942 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 library_names_spec='$libname.ixlibrary $libname.a'
9947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9948 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'
9954 library_names_spec='${libname}${shared_ext}'
9955 dynamic_linker="$host_os ld.so"
9956 shlibpath_var=LIBRARY_PATH
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968 # the default ld.so.conf also contains /usr/contrib/lib and
9969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970 # libtool to hard-code these into programs
9973 cygwin* | mingw* | pw32* | cegcc*)
9974 version_type=windows
9979 case $GCC,$host_os in
9980 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9981 library_names_spec='$libname.dll.a'
9982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983 postinstall_cmds='base_file=`basename \${file}`~
9984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9985 dldir=$destdir/`dirname \$dlpath`~
9986 test -d \$dldir || mkdir -p \$dldir~
9987 $install_prog $dir/$dlname \$dldir/$dlname~
9988 chmod a+x \$dldir/$dlname~
9989 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9990 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9993 dlpath=$dir/\$dldll~
9995 shlibpath_overrides_runpath=yes
9999 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10000 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10005 # MinGW DLLs use traditional 'lib' prefix
10006 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 # pw32 DLLs use 'pw' prefix rather than 'lib'
10010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10019 dynamic_linker='Win32 ld.exe'
10020 # FIXME: first we should search . and the directory the executable is in
10024 darwin* | rhapsody*)
10025 dynamic_linker="$host_os dyld"
10026 version_type=darwin
10029 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10030 soname_spec='${libname}${release}${major}$shared_ext'
10031 shlibpath_overrides_runpath=yes
10032 shlibpath_var=DYLD_LIBRARY_PATH
10033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10035 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10036 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 shlibpath_var=LD_LIBRARY_PATH
10048 freebsd* | dragonfly*)
10049 # DragonFly does not have aout. When/if they implement a new
10050 # versioning mechanism, adjust this.
10051 if test -x /usr/bin/objformat; then
10052 objformat=`/usr/bin/objformat`
10055 freebsd[123]*) objformat=aout ;;
10056 *) objformat=elf ;;
10059 version_type=freebsd-$objformat
10060 case $version_type in
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10071 shlibpath_var=LD_LIBRARY_PATH
10074 shlibpath_overrides_runpath=yes
10076 freebsd3.[01]* | freebsdelf3.[01]*)
10077 shlibpath_overrides_runpath=yes
10078 hardcode_into_libs=yes
10080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10082 shlibpath_overrides_runpath=no
10083 hardcode_into_libs=yes
10085 *) # from 4.6 on, and DragonFly
10086 shlibpath_overrides_runpath=yes
10087 hardcode_into_libs=yes
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 shlibpath_var=LD_LIBRARY_PATH
10099 hardcode_into_libs=yes
10106 dynamic_linker="$host_os runtime_loader"
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 shlibpath_var=LIBRARY_PATH
10110 shlibpath_overrides_runpath=yes
10111 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10112 hardcode_into_libs=yes
10115 hpux9* | hpux10* | hpux11*)
10116 # Give a soname corresponding to the major version so that dld.sl refuses to
10117 # link against other versions.
10124 hardcode_into_libs=yes
10125 dynamic_linker="$host_os dld.so"
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 if test "X$HPUX_IA64_MODE" = X32; then
10131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.sl"
10141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10150 dynamic_linker="$host_os dld.sl"
10151 shlibpath_var=SHLIB_PATH
10152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10157 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10158 postinstall_cmds='chmod 555 $lib'
10159 # or fails outright, so override atomically:
10160 install_override_mode=555
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=no
10172 hardcode_into_libs=yes
10175 irix5* | irix6* | nonstopux*)
10177 nonstopux*) version_type=nonstopux ;;
10179 if test "$lt_cv_prog_gnu_ld" = yes; then
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10190 irix5* | nonstopux*)
10191 libsuff= shlibsuff=
10194 case $LD in # libtool.m4 will add one of these switches to LD
10195 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10196 libsuff= shlibsuff= libmagic=32-bit;;
10197 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10198 libsuff=32 shlibsuff=N32 libmagic=N32;;
10199 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10200 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10201 *) libsuff= shlibsuff= libmagic=never-match;;
10205 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10206 shlibpath_overrides_runpath=no
10207 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10208 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10209 hardcode_into_libs=yes
10212 # No shared lib support for Linux oldld, aout, or coff.
10213 linux*oldld* | linux*aout* | linux*coff*)
10217 # This must be Linux ELF.
10218 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 soname_spec='${libname}${release}${shared_ext}$major'
10224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=no
10228 # Some binutils ld are patched to set DT_RUNPATH
10229 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10230 $as_echo_n "(cached) " >&6
10232 lt_cv_shlibpath_overrides_runpath=no
10233 save_LDFLAGS=$LDFLAGS
10234 save_libdir=$libdir
10235 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10236 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10248 if ac_fn_c_try_link "$LINENO"; then :
10249 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10250 lt_cv_shlibpath_overrides_runpath=yes
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LDFLAGS=$save_LDFLAGS
10256 libdir=$save_libdir
10260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10262 # This implies no fast_install, which is unacceptable.
10263 # Some rework will be needed to allow for fast_install
10264 # before this can be enabled.
10265 hardcode_into_libs=yes
10267 # Append ld.so.conf contents to the search path
10268 if test -f /etc/ld.so.conf; then
10269 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' ' '`
10270 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10273 # We used to test for /lib/ld.so.1 and disable shared libraries on
10274 # powerpc, because MkLinux only supported shared libraries with the
10275 # GNU dynamic linker. Since this was broken with cross compilers,
10276 # most powerpc-linux boxes support dynamic linking these days and
10277 # people can always --disable-shared, the test was removed, and we
10278 # assume the GNU/Linux dynamic linker is in use.
10279 dynamic_linker='GNU/Linux ld.so'
10286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10289 dynamic_linker='NetBSD (a.out) ld.so'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 dynamic_linker='NetBSD ld.elf_so'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=yes
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10316 dynamic_linker='ldqnx.so'
10321 sys_lib_dlsearch_path_spec="/usr/lib"
10323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10326 *) need_version=no ;;
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10333 openbsd2.[89] | openbsd2.[89].*)
10334 shlibpath_overrides_runpath=no
10337 shlibpath_overrides_runpath=yes
10341 shlibpath_overrides_runpath=yes
10346 libname_spec='$name'
10349 library_names_spec='$libname${shared_ext} $libname.a'
10350 dynamic_linker='OS/2 ld.exe'
10351 shlibpath_var=LIBPATH
10354 osf3* | osf4* | osf5*)
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10375 shlibpath_var=LD_LIBRARY_PATH
10376 shlibpath_overrides_runpath=yes
10377 hardcode_into_libs=yes
10378 # ldd complains unless libraries are executable
10379 postinstall_cmds='chmod +x $lib'
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=yes
10388 if test "$with_gnu_ld" = yes; then
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 case $host_vendor in
10401 shlibpath_overrides_runpath=no
10403 runpath_var=LD_RUN_PATH
10411 shlibpath_overrides_runpath=no
10412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10418 if test -d /usr/nec ;then
10420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10421 soname_spec='$libname${shared_ext}.$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10427 version_type=freebsd-elf
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath=yes
10434 hardcode_into_libs=yes
10435 if test "$with_gnu_ld" = yes; then
10436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10441 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10445 sys_lib_dlsearch_path_spec='/usr/lib'
10449 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454 shlibpath_var=LD_LIBRARY_PATH
10455 shlibpath_overrides_runpath=no
10456 hardcode_into_libs=yes
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10471 $as_echo "$dynamic_linker" >&6; }
10472 test "$dynamic_linker" = no && can_build_shared=no
10474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10475 if test "$GCC" = yes; then
10476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10480 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10483 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10580 if test -n "$hardcode_libdir_flag_spec" ||
10581 test -n "$runpath_var" ||
10582 test "X$hardcode_automatic" = "Xyes" ; then
10584 # We can hardcode non-existent directories.
10585 if test "$hardcode_direct" != no &&
10586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10587 # have to relink, otherwise we might link with an installed library
10588 # when we should be linking with a yet-to-be-installed one
10589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10590 test "$hardcode_minus_L" != no; then
10591 # Linking always hardcodes the temporary library directory.
10592 hardcode_action=relink
10594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10595 hardcode_action=immediate
10598 # We cannot hardcode anything, or else we can only hardcode existing
10600 hardcode_action=unsupported
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10603 $as_echo "$hardcode_action" >&6; }
10605 if test "$hardcode_action" = relink ||
10606 test "$inherit_rpath" = yes; then
10607 # Fast installation is not supported
10608 enable_fast_install=no
10609 elif test "$shlibpath_overrides_runpath" = yes ||
10610 test "$enable_shared" = no; then
10611 # Fast installation is not necessary
10612 enable_fast_install=needless
10620 if test "x$enable_dlopen" != xyes; then
10621 enable_dlopen=unknown
10622 enable_dlopen_self=unknown
10623 enable_dlopen_self_static=unknown
10630 lt_cv_dlopen="load_add_on"
10632 lt_cv_dlopen_self=yes
10635 mingw* | pw32* | cegcc*)
10636 lt_cv_dlopen="LoadLibrary"
10641 lt_cv_dlopen="dlopen"
10646 # if libdl is installed we need to link against it
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10652 ac_check_lib_save_LIBS=$LIBS
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10657 /* Override any GCC internal prototype to avoid an error.
10658 Use char because int might match the return type of a GCC
10659 builtin and then its argument prototype would still apply. */
10672 if ac_fn_c_try_link "$LINENO"; then :
10673 ac_cv_lib_dl_dlopen=yes
10675 ac_cv_lib_dl_dlopen=no
10677 rm -f core conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10687 lt_cv_dlopen="dyld"
10689 lt_cv_dlopen_self=yes
10696 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10697 if test "x$ac_cv_func_shl_load" = x""yes; then :
10698 lt_cv_dlopen="shl_load"
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10701 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10702 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10705 ac_check_lib_save_LIBS=$LIBS
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10720 return shl_load ();
10725 if ac_fn_c_try_link "$LINENO"; then :
10726 ac_cv_lib_dld_shl_load=yes
10728 ac_cv_lib_dld_shl_load=no
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10735 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10736 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10737 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10739 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10740 if test "x$ac_cv_func_dlopen" = x""yes; then :
10741 lt_cv_dlopen="dlopen"
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
10748 ac_check_lib_save_LIBS=$LIBS
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 ac_cv_lib_dl_dlopen=yes
10771 ac_cv_lib_dl_dlopen=no
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10779 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10783 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10784 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10787 ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lsvld $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10807 if ac_fn_c_try_link "$LINENO"; then :
10808 ac_cv_lib_svld_dlopen=yes
10810 ac_cv_lib_svld_dlopen=no
10812 rm -f core conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10817 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10818 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10822 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10826 ac_check_lib_save_LIBS=$LIBS
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10841 return dld_link ();
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 ac_cv_lib_dld_dld_link=yes
10849 ac_cv_lib_dld_dld_link=no
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10856 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10857 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10858 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10879 if test "x$lt_cv_dlopen" != xno; then
10885 case $lt_cv_dlopen in
10887 save_CPPFLAGS="$CPPFLAGS"
10888 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10890 save_LDFLAGS="$LDFLAGS"
10891 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10894 LIBS="$lt_cv_dlopen_libs $LIBS"
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10897 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10898 if test "${lt_cv_dlopen_self+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10901 if test "$cross_compiling" = yes; then :
10902 lt_cv_dlopen_self=cross
10904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10905 lt_status=$lt_dlunknown
10906 cat > conftest.$ac_ext <<_LT_EOF
10907 #line 10907 "configure"
10908 #include "confdefs.h"
10917 # define LT_DLGLOBAL RTLD_GLOBAL
10920 # define LT_DLGLOBAL DL_GLOBAL
10922 # define LT_DLGLOBAL 0
10926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10927 find out it does not work in some platform. */
10928 #ifndef LT_DLLAZY_OR_NOW
10930 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10933 # define LT_DLLAZY_OR_NOW DL_LAZY
10936 # define LT_DLLAZY_OR_NOW RTLD_NOW
10939 # define LT_DLLAZY_OR_NOW DL_NOW
10941 # define LT_DLLAZY_OR_NOW 0
10948 /* When -fvisbility=hidden is used, assume the code has been annotated
10949 correspondingly for the symbols needed. */
10950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10951 void fnord () __attribute__((visibility("default")));
10954 void fnord () { int i=42; }
10957 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10958 int status = $lt_dlunknown;
10962 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10965 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10966 else puts (dlerror ());
10968 /* dlclose (self); */
10976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10977 (eval $ac_link) 2>&5
10979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10981 (./conftest; exit; ) >&5 2>/dev/null
10983 case x$lt_status in
10984 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10985 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10986 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10989 # compilation failed
10990 lt_cv_dlopen_self=no
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10998 $as_echo "$lt_cv_dlopen_self" >&6; }
11000 if test "x$lt_cv_dlopen_self" = xyes; then
11001 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11003 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11004 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11005 $as_echo_n "(cached) " >&6
11007 if test "$cross_compiling" = yes; then :
11008 lt_cv_dlopen_self_static=cross
11010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011 lt_status=$lt_dlunknown
11012 cat > conftest.$ac_ext <<_LT_EOF
11013 #line 11013 "configure"
11014 #include "confdefs.h"
11023 # define LT_DLGLOBAL RTLD_GLOBAL
11026 # define LT_DLGLOBAL DL_GLOBAL
11028 # define LT_DLGLOBAL 0
11032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033 find out it does not work in some platform. */
11034 #ifndef LT_DLLAZY_OR_NOW
11036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11039 # define LT_DLLAZY_OR_NOW DL_LAZY
11042 # define LT_DLLAZY_OR_NOW RTLD_NOW
11045 # define LT_DLLAZY_OR_NOW DL_NOW
11047 # define LT_DLLAZY_OR_NOW 0
11054 /* When -fvisbility=hidden is used, assume the code has been annotated
11055 correspondingly for the symbols needed. */
11056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11057 void fnord () __attribute__((visibility("default")));
11060 void fnord () { int i=42; }
11063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11064 int status = $lt_dlunknown;
11068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11072 else puts (dlerror ());
11074 /* dlclose (self); */
11082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11083 (eval $ac_link) 2>&5
11085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11087 (./conftest; exit; ) >&5 2>/dev/null
11089 case x$lt_status in
11090 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11091 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11092 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11095 # compilation failed
11096 lt_cv_dlopen_self_static=no
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11104 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11107 CPPFLAGS="$save_CPPFLAGS"
11108 LDFLAGS="$save_LDFLAGS"
11113 case $lt_cv_dlopen_self in
11114 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11115 *) enable_dlopen_self=unknown ;;
11118 case $lt_cv_dlopen_self_static in
11119 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11120 *) enable_dlopen_self_static=unknown ;;
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11143 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11144 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11145 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11146 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11148 $as_echo "yes" >&6; }
11150 # FIXME - insert some real tests, host_os isn't really good enough
11153 if test -n "$STRIP" ; then
11154 striplib="$STRIP -x"
11155 old_striplib="$STRIP -S"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11181 # Report which library types will actually be built
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11183 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11185 $as_echo "$can_build_shared" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11188 $as_echo_n "checking whether to build shared libraries... " >&6; }
11189 test "$can_build_shared" = "no" && enable_shared=no
11191 # On AIX, shared libraries and static libraries use the same namespace, and
11192 # are all built from PIC.
11195 test "$enable_shared" = yes && enable_static=no
11196 if test -n "$RANLIB"; then
11197 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11198 postinstall_cmds='$RANLIB $lib'
11203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11204 test "$enable_shared" = yes && enable_static=no
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11209 $as_echo "$enable_shared" >&6; }
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11212 $as_echo_n "checking whether to build static libraries... " >&6; }
11213 # Make sure either enable_shared or enable_static is yes.
11214 test "$enable_shared" = yes || enable_static=yes
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11216 $as_echo "$enable_static" >&6; }
11223 ac_cpp='$CPP $CPPFLAGS'
11224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11242 # Source file extension for Go test sources.
11245 # Object file extension for compiled Go test sources.
11249 # Code to be used in simple compile tests
11250 lt_simple_compile_test_code="package main; func main() { }"
11252 # Code to be used in simple link tests
11253 lt_simple_link_test_code='package main; func main() { }'
11255 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11262 # If no C compiler was specified, use CC.
11265 # If no C compiler flags were specified, use CFLAGS.
11266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11268 # Allow CC to be a program name with arguments.
11272 # save warnings/boilerplate of simple test code
11273 ac_outfile=conftest.$ac_objext
11274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11276 _lt_compiler_boilerplate=`cat conftest.err`
11279 ac_outfile=conftest.$ac_objext
11280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11282 _lt_linker_boilerplate=`cat conftest.err`
11286 # Allow CC to be a program name with arguments.
11294 for cc_temp in $compiler""; do
11296 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11297 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11302 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11305 # Go did not exist at the time GCC didn't implicitly link libc in.
11306 archive_cmds_need_lc_GO=no
11308 old_archive_cmds_GO=$old_archive_cmds
11311 ## There is no encapsulation within the following macros, do not change
11312 ## the running order or otherwise move them around unless you know exactly
11313 ## what you are doing...
11314 if test -n "$compiler"; then
11316 lt_prog_compiler_no_builtin_flag_GO=
11318 if test "$GCC" = yes; then
11319 case $cc_basename in
11321 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11323 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11327 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11328 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11329 $as_echo_n "(cached) " >&6
11331 lt_cv_prog_compiler_rtti_exceptions=no
11332 ac_outfile=conftest.$ac_objext
11333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11334 lt_compiler_flag="-fno-rtti -fno-exceptions"
11335 # Insert the option either (1) after the last *FLAGS variable, or
11336 # (2) before a word containing "conftest.", or (3) at the end.
11337 # Note that $ac_compile itself does not contain backslashes and begins
11338 # with a dollar sign (not a hyphen), so the echo should work correctly.
11339 # The option is referenced via a variable to avoid confusing sed.
11340 lt_compile=`echo "$ac_compile" | $SED \
11341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11343 -e 's:$: $lt_compiler_flag:'`
11344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11345 (eval "$lt_compile" 2>conftest.err)
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 if (exit $ac_status) && test -s "$ac_outfile"; then
11350 # The compiler can only warn and ignore the option if not recognized
11351 # So say no if there are warnings other than the usual output.
11352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11354 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11355 lt_cv_prog_compiler_rtti_exceptions=yes
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11362 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11364 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11365 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11374 lt_prog_compiler_wl_GO=
11375 lt_prog_compiler_pic_GO=
11376 lt_prog_compiler_static_GO=
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11379 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11381 if test "$GCC" = yes; then
11382 lt_prog_compiler_wl_GO='-Wl,'
11383 lt_prog_compiler_static_GO='-static'
11387 # All AIX code is PIC.
11388 if test "$host_cpu" = ia64; then
11389 # AIX 5 now supports IA64 processor
11390 lt_prog_compiler_static_GO='-Bstatic'
11397 # see comment about AmigaOS4 .so support
11398 lt_prog_compiler_pic_GO='-fPIC'
11401 # FIXME: we need at least 68020 code to build shared libraries, but
11402 # adding the `-m68020' flag to GCC prevents building anything better,
11404 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11409 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11410 # PIC is the default for these OSes.
11413 mingw* | cygwin* | pw32* | os2* | cegcc*)
11414 # This hack is so that the source file can tell whether it is being
11415 # built for inclusion in a dll (and should export symbols for example).
11416 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11417 # (--disable-auto-import) libraries
11418 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11421 darwin* | rhapsody*)
11422 # PIC is the default on this platform
11423 # Common symbols not allowed in MH_DYLIB files
11424 lt_prog_compiler_pic_GO='-fno-common'
11428 # PIC is the default for Haiku.
11429 # The "-static" flag exists, but is broken.
11430 lt_prog_compiler_static_GO=
11434 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11435 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11436 # sets the default TLS model and affects inlining.
11442 lt_prog_compiler_pic_GO='-fPIC'
11448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11449 # Instead, we relocate shared libraries at runtime.
11453 # Just because we use GCC doesn't mean we suddenly get shared libraries
11454 # on systems that don't support them.
11455 lt_prog_compiler_can_build_shared_GO=no
11460 # QNX uses GNU C++, but need to define -shared option too, otherwise
11461 # it will coredump.
11462 lt_prog_compiler_pic_GO='-fPIC -shared'
11466 if test -d /usr/nec; then
11467 lt_prog_compiler_pic_GO=-Kconform_pic
11472 lt_prog_compiler_pic_GO='-fPIC'
11476 case $cc_basename in
11477 nvcc*) # Cuda Compiler Driver 2.2
11478 lt_prog_compiler_wl_GO='-Xlinker '
11479 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11483 # PORTME Check for flag to pass linker flags through the system compiler.
11486 lt_prog_compiler_wl_GO='-Wl,'
11487 if test "$host_cpu" = ia64; then
11488 # AIX 5 now supports IA64 processor
11489 lt_prog_compiler_static_GO='-Bstatic'
11491 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11495 mingw* | cygwin* | pw32* | os2* | cegcc*)
11496 # This hack is so that the source file can tell whether it is being
11497 # built for inclusion in a dll (and should export symbols for example).
11498 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11501 hpux9* | hpux10* | hpux11*)
11502 lt_prog_compiler_wl_GO='-Wl,'
11503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11504 # not for PA HP-UX.
11510 lt_prog_compiler_pic_GO='+Z'
11513 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11514 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11517 irix5* | irix6* | nonstopux*)
11518 lt_prog_compiler_wl_GO='-Wl,'
11519 # PIC (with -KPIC) is the default.
11520 lt_prog_compiler_static_GO='-non_shared'
11523 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11524 case $cc_basename in
11525 # old Intel for x86_64 which still supported -KPIC.
11527 lt_prog_compiler_wl_GO='-Wl,'
11528 lt_prog_compiler_pic_GO='-KPIC'
11529 lt_prog_compiler_static_GO='-static'
11531 # icc used to be incompatible with GCC.
11532 # ICC 10 doesn't accept -KPIC any more.
11534 lt_prog_compiler_wl_GO='-Wl,'
11535 lt_prog_compiler_pic_GO='-fPIC'
11536 lt_prog_compiler_static_GO='-static'
11538 # Lahey Fortran 8.1.
11540 lt_prog_compiler_wl_GO='-Wl,'
11541 lt_prog_compiler_pic_GO='--shared'
11542 lt_prog_compiler_static_GO='--static'
11544 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11545 # Portland Group compilers (*not* the Pentium gcc compiler,
11546 # which looks to be a dead project)
11547 lt_prog_compiler_wl_GO='-Wl,'
11548 lt_prog_compiler_pic_GO='-fpic'
11549 lt_prog_compiler_static_GO='-Bstatic'
11552 lt_prog_compiler_wl_GO='-Wl,'
11553 # All Alpha code is PIC.
11554 lt_prog_compiler_static_GO='-non_shared'
11556 xl* | bgxl* | bgf* | mpixl*)
11557 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11558 lt_prog_compiler_wl_GO='-Wl,'
11559 lt_prog_compiler_pic_GO='-qpic'
11560 lt_prog_compiler_static_GO='-qstaticlink'
11563 case `$CC -V 2>&1 | sed 5q` in
11564 *Sun\ F* | *Sun*Fortran*)
11565 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11566 lt_prog_compiler_pic_GO='-KPIC'
11567 lt_prog_compiler_static_GO='-Bstatic'
11568 lt_prog_compiler_wl_GO=''
11572 lt_prog_compiler_pic_GO='-KPIC'
11573 lt_prog_compiler_static_GO='-Bstatic'
11574 lt_prog_compiler_wl_GO='-Wl,'
11582 lt_prog_compiler_pic_GO='-KPIC'
11583 lt_prog_compiler_static_GO='-Bstatic'
11587 # QNX uses GNU C++, but need to define -shared option too, otherwise
11588 # it will coredump.
11589 lt_prog_compiler_pic_GO='-fPIC -shared'
11592 osf3* | osf4* | osf5*)
11593 lt_prog_compiler_wl_GO='-Wl,'
11594 # All OSF/1 code is PIC.
11595 lt_prog_compiler_static_GO='-non_shared'
11599 lt_prog_compiler_static_GO='-non_shared'
11603 lt_prog_compiler_pic_GO='-KPIC'
11604 lt_prog_compiler_static_GO='-Bstatic'
11605 case $cc_basename in
11606 f77* | f90* | f95*)
11607 lt_prog_compiler_wl_GO='-Qoption ld ';;
11609 lt_prog_compiler_wl_GO='-Wl,';;
11614 lt_prog_compiler_wl_GO='-Qoption ld '
11615 lt_prog_compiler_pic_GO='-PIC'
11616 lt_prog_compiler_static_GO='-Bstatic'
11619 sysv4 | sysv4.2uw2* | sysv4.3*)
11620 lt_prog_compiler_wl_GO='-Wl,'
11621 lt_prog_compiler_pic_GO='-KPIC'
11622 lt_prog_compiler_static_GO='-Bstatic'
11626 if test -d /usr/nec ;then
11627 lt_prog_compiler_pic_GO='-Kconform_pic'
11628 lt_prog_compiler_static_GO='-Bstatic'
11632 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11633 lt_prog_compiler_wl_GO='-Wl,'
11634 lt_prog_compiler_pic_GO='-KPIC'
11635 lt_prog_compiler_static_GO='-Bstatic'
11639 lt_prog_compiler_wl_GO='-Wl,'
11640 lt_prog_compiler_can_build_shared_GO=no
11644 lt_prog_compiler_pic_GO='-pic'
11645 lt_prog_compiler_static_GO='-Bstatic'
11649 lt_prog_compiler_can_build_shared_GO=no
11655 # For platforms which do not support PIC, -DPIC is meaningless:
11657 lt_prog_compiler_pic_GO=
11660 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11664 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11669 # Check to make sure the PIC flag actually works.
11671 if test -n "$lt_prog_compiler_pic_GO"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11673 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11674 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
11677 lt_cv_prog_compiler_pic_works_GO=no
11678 ac_outfile=conftest.$ac_objext
11679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11680 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11681 # Insert the option either (1) after the last *FLAGS variable, or
11682 # (2) before a word containing "conftest.", or (3) at the end.
11683 # Note that $ac_compile itself does not contain backslashes and begins
11684 # with a dollar sign (not a hyphen), so the echo should work correctly.
11685 # The option is referenced via a variable to avoid confusing sed.
11686 lt_compile=`echo "$ac_compile" | $SED \
11687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11689 -e 's:$: $lt_compiler_flag:'`
11690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11691 (eval "$lt_compile" 2>conftest.err)
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 if (exit $ac_status) && test -s "$ac_outfile"; then
11696 # The compiler can only warn and ignore the option if not recognized
11697 # So say no if there are warnings other than the usual output.
11698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11700 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11701 lt_cv_prog_compiler_pic_works_GO=yes
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11708 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11710 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11711 case $lt_prog_compiler_pic_GO in
11713 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11716 lt_prog_compiler_pic_GO=
11717 lt_prog_compiler_can_build_shared_GO=no
11725 # Check to make sure the static flag actually works.
11727 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11729 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11730 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11733 lt_cv_prog_compiler_static_works_GO=no
11734 save_LDFLAGS="$LDFLAGS"
11735 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11736 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11737 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11738 # The linker can only warn and ignore the option if not recognized
11739 # So say no if there are warnings
11740 if test -s conftest.err; then
11741 # Append any errors to the config.log.
11742 cat conftest.err 1>&5
11743 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11744 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11745 if diff conftest.exp conftest.er2 >/dev/null; then
11746 lt_cv_prog_compiler_static_works_GO=yes
11749 lt_cv_prog_compiler_static_works_GO=yes
11753 LDFLAGS="$save_LDFLAGS"
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11757 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11759 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11762 lt_prog_compiler_static_GO=
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11769 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11770 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
11773 lt_cv_prog_compiler_c_o_GO=no
11774 $RM -r conftest 2>/dev/null
11778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11780 lt_compiler_flag="-o out/conftest2.$ac_objext"
11781 # Insert the option either (1) after the last *FLAGS variable, or
11782 # (2) before a word containing "conftest.", or (3) at the end.
11783 # Note that $ac_compile itself does not contain backslashes and begins
11784 # with a dollar sign (not a hyphen), so the echo should work correctly.
11785 lt_compile=`echo "$ac_compile" | $SED \
11786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11788 -e 's:$: $lt_compiler_flag:'`
11789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11790 (eval "$lt_compile" 2>out/conftest.err)
11792 cat out/conftest.err >&5
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11796 # The compiler can only warn and ignore the option if not recognized
11797 # So say no if there are warnings
11798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11799 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11800 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11801 lt_cv_prog_compiler_c_o_GO=yes
11806 # SGI C++ compiler will create directory out/ii_files/ for
11807 # template instantiation
11808 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11809 $RM out/* && rmdir out
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11816 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11822 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11823 $as_echo_n "(cached) " >&6
11825 lt_cv_prog_compiler_c_o_GO=no
11826 $RM -r conftest 2>/dev/null
11830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11832 lt_compiler_flag="-o out/conftest2.$ac_objext"
11833 # Insert the option either (1) after the last *FLAGS variable, or
11834 # (2) before a word containing "conftest.", or (3) at the end.
11835 # Note that $ac_compile itself does not contain backslashes and begins
11836 # with a dollar sign (not a hyphen), so the echo should work correctly.
11837 lt_compile=`echo "$ac_compile" | $SED \
11838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11840 -e 's:$: $lt_compiler_flag:'`
11841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11842 (eval "$lt_compile" 2>out/conftest.err)
11844 cat out/conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11848 # The compiler can only warn and ignore the option if not recognized
11849 # So say no if there are warnings
11850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11853 lt_cv_prog_compiler_c_o_GO=yes
11858 # SGI C++ compiler will create directory out/ii_files/ for
11859 # template instantiation
11860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11861 $RM out/* && rmdir out
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11868 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11873 hard_links="nottested"
11874 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11875 # do not overwrite the value of need_locks provided by the user
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11877 $as_echo_n "checking if we can lock with hard links... " >&6; }
11880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11882 ln conftest.a conftest.b 2>&5 || hard_links=no
11883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11885 $as_echo "$hard_links" >&6; }
11886 if test "$hard_links" = no; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11888 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11898 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11901 allow_undefined_flag_GO=
11902 always_export_symbols_GO=no
11904 archive_expsym_cmds_GO=
11905 compiler_needs_object_GO=no
11906 enable_shared_with_static_runtimes_GO=no
11907 export_dynamic_flag_spec_GO=
11908 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11909 hardcode_automatic_GO=no
11910 hardcode_direct_GO=no
11911 hardcode_direct_absolute_GO=no
11912 hardcode_libdir_flag_spec_GO=
11913 hardcode_libdir_flag_spec_ld_GO=
11914 hardcode_libdir_separator_GO=
11915 hardcode_minus_L_GO=no
11916 hardcode_shlibpath_var_GO=unsupported
11917 inherit_rpath_GO=no
11918 link_all_deplibs_GO=unknown
11920 module_expsym_cmds_GO=
11921 old_archive_from_new_cmds_GO=
11922 old_archive_from_expsyms_cmds_GO=
11923 thread_safe_flag_spec_GO=
11924 whole_archive_flag_spec_GO=
11925 # include_expsyms should be a list of space-separated symbols to be *always*
11926 # included in the symbol list
11927 include_expsyms_GO=
11928 # exclude_expsyms can be an extended regexp of symbols to exclude
11929 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11931 # as well as any symbol that contains `d'.
11932 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11934 # platforms (ab)use it in PIC code, but their linkers get confused if
11935 # the symbol is explicitly referenced. Since portable code cannot
11936 # rely on this symbol name, it's probably fine to never include it in
11937 # preloaded symbol tables.
11938 # Exclude shared library initialization/finalization symbols.
11939 extract_expsyms_cmds=
11942 cygwin* | mingw* | pw32* | cegcc*)
11943 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11944 # When not using gcc, we currently assume that we are using
11945 # Microsoft Visual C++.
11946 if test "$GCC" != yes; then
11951 # we just hope/assume this is gcc and not c89 (= MSVC++)
11961 # On some targets, GNU ld is compatible enough with the native linker
11962 # that we're better off using the native interface for both.
11963 lt_use_gnu_ld_interface=no
11964 if test "$with_gnu_ld" = yes; then
11967 # The AIX port of GNU ld has always aspired to compatibility
11968 # with the native linker. However, as the warning in the GNU ld
11969 # block says, versions before 2.19.5* couldn't really create working
11970 # shared libraries, regardless of the interface used.
11971 case `$LD -v 2>&1` in
11972 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11973 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11974 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11976 lt_use_gnu_ld_interface=yes
11981 lt_use_gnu_ld_interface=yes
11986 if test "$lt_use_gnu_ld_interface" = yes; then
11987 # If archive_cmds runs LD, not CC, wlarc should be empty
11990 # Set some defaults for GNU ld with shared library support. These
11991 # are reset later if shared libraries are not supported. Putting them
11992 # here allows them to be overridden if necessary.
11993 runpath_var=LD_RUN_PATH
11994 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11995 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11996 # ancient GNU ld didn't support --whole-archive et. al.
11997 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11998 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12000 whole_archive_flag_spec_GO=
12002 supports_anon_versioning=no
12003 case `$LD -v 2>&1` in
12004 *GNU\ gold*) supports_anon_versioning=yes ;;
12005 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12006 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12007 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12008 *\ 2.11.*) ;; # other 2.11 versions
12009 *) supports_anon_versioning=yes ;;
12012 # See if GNU ld supports shared libraries.
12015 # On AIX/PPC, the GNU linker is very broken
12016 if test "$host_cpu" != ia64; then
12020 *** Warning: the GNU linker, at least up to release 2.19, is reported
12021 *** to be unable to reliably create shared libraries on AIX.
12022 *** Therefore, libtool is disabling shared libraries support. If you
12023 *** really care for shared libraries, you may want to install binutils
12024 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12025 *** You will then need to restart the configuration process.
12034 # see comment about AmigaOS4 .so support
12035 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12036 archive_expsym_cmds_GO=''
12039 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)'
12040 hardcode_libdir_flag_spec_GO='-L$libdir'
12041 hardcode_minus_L_GO=yes
12047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12048 allow_undefined_flag_GO=unsupported
12049 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12050 # support --undefined. This deserves some investigation. FIXME
12051 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12057 cygwin* | mingw* | pw32* | cegcc*)
12058 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12059 # as there is no search path for DLLs.
12060 hardcode_libdir_flag_spec_GO='-L$libdir'
12061 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12062 allow_undefined_flag_GO=unsupported
12063 always_export_symbols_GO=no
12064 enable_shared_with_static_runtimes_GO=yes
12065 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12068 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12069 # If the export-symbols file already is a .def file (1st line
12070 # is EXPORTS), use it as is; otherwise, prepend...
12071 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12072 cp $export_symbols $output_objdir/$soname.def;
12074 echo EXPORTS > $output_objdir/$soname.def;
12075 cat $export_symbols >> $output_objdir/$soname.def;
12077 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12084 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085 link_all_deplibs_GO=yes
12089 hardcode_direct_GO=no
12090 hardcode_shlibpath_var_GO=no
12091 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12092 export_dynamic_flag_spec_GO='${wl}-E'
12093 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12094 # Instead, shared libraries are loaded at an image base (0x10000000 by
12095 # default) and relocated if they conflict, which is a slow very memory
12096 # consuming and fragmenting process. To avoid this, we pick a random,
12097 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12098 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12099 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'
12100 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'
12103 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12105 if test "$host_os" = linux-dietlibc; then
12106 case $cc_basename in
12107 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12110 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12111 && test "$tmp_diet" = no
12114 tmp_sharedflag='-shared'
12115 case $cc_basename,$host_cpu in
12116 pgcc*) # Portland Group C compiler
12117 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'
12118 tmp_addflag=' $pic_flag'
12120 pgf77* | pgf90* | pgf95* | pgfortran*)
12121 # Portland Group f77 and f90 compilers
12122 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'
12123 tmp_addflag=' $pic_flag -Mnomain' ;;
12124 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12125 tmp_addflag=' -i_dynamic' ;;
12126 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12127 tmp_addflag=' -i_dynamic -nofor_main' ;;
12128 ifc* | ifort*) # Intel Fortran compiler
12129 tmp_addflag=' -nofor_main' ;;
12130 lf95*) # Lahey Fortran 8.1
12131 whole_archive_flag_spec_GO=
12132 tmp_sharedflag='--shared' ;;
12133 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12134 tmp_sharedflag='-qmkshrobj'
12136 nvcc*) # Cuda Compiler Driver 2.2
12137 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'
12138 compiler_needs_object_GO=yes
12141 case `$CC -V 2>&1 | sed 5q` in
12142 *Sun\ C*) # Sun C 5.9
12143 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'
12144 compiler_needs_object_GO=yes
12145 tmp_sharedflag='-G' ;;
12146 *Sun\ F*) # Sun Fortran 8.3
12147 tmp_sharedflag='-G' ;;
12149 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 if test "x$supports_anon_versioning" = xyes; then
12152 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12154 echo "local: *; };" >> $output_objdir/$libname.ver~
12155 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12158 case $cc_basename in
12159 xlf* | bgf* | bgxlf* | mpixlf*)
12160 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12161 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12162 hardcode_libdir_flag_spec_GO=
12163 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12164 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12165 if test "x$supports_anon_versioning" = xyes; then
12166 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12168 echo "local: *; };" >> $output_objdir/$libname.ver~
12169 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12180 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12183 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12184 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12189 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12194 *** create shared libraries on Solaris systems. Therefore, libtool
12195 *** is disabling shared libraries support. We urge you to upgrade GNU
12196 *** binutils to release 2.9.1 or newer. Another option is to modify
12197 *** your PATH or compiler configuration so that the native linker is
12198 *** used, and then restart.
12201 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12202 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12210 case `$LD -v 2>&1` in
12211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12216 *** reliably create shared libraries on SCO systems. Therefore, libtool
12217 *** is disabling shared libraries support. We urge you to upgrade GNU
12218 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12219 *** your PATH or compiler configuration so that the native linker is
12220 *** used, and then restart.
12225 # For security reasons, it is highly recommended that you always
12226 # use absolute paths for naming shared libraries, and exclude the
12227 # DT_RUNPATH tag from executables and libraries. But doing so
12228 # requires that you compile everything twice, which is a pain.
12229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12230 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12231 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12232 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12241 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12243 hardcode_direct_GO=yes
12244 hardcode_shlibpath_var_GO=no
12248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12257 if test "$ld_shlibs_GO" = no; then
12259 hardcode_libdir_flag_spec_GO=
12260 export_dynamic_flag_spec_GO=
12261 whole_archive_flag_spec_GO=
12264 # PORTME fill in a description of your system's linker (not GNU ld)
12267 allow_undefined_flag_GO=unsupported
12268 always_export_symbols_GO=yes
12269 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'
12270 # Note: this linker hardcodes the directories in LIBPATH if there
12271 # are no directories specified by -L.
12272 hardcode_minus_L_GO=yes
12273 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12274 # Neither direct hardcoding nor static linking is supported with a
12276 hardcode_direct_GO=unsupported
12281 if test "$host_cpu" = ia64; then
12282 # On IA64, the linker does run time linking by default, so we don't
12283 # have to do anything special.
12284 aix_use_runtimelinking=no
12285 exp_sym_flag='-Bexport'
12288 # If we're using GNU nm, then we don't want the "-C" option.
12289 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12290 # Also, AIX nm treats weak defined symbols like other global
12291 # defined symbols, whereas GNU nm marks them as "W".
12292 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12293 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'
12295 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'
12297 aix_use_runtimelinking=no
12299 # Test if we are trying to use run time linking or normal
12300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12301 # need to do runtime linking.
12302 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12303 for ld_flag in $LDFLAGS; do
12304 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12305 aix_use_runtimelinking=yes
12312 exp_sym_flag='-bexport'
12313 no_entry_flag='-bnoentry'
12316 # When large executables or shared objects are built, AIX ld can
12317 # have problems creating the table of contents. If linking a library
12318 # or program results in "error TOC overflow" add -mminimal-toc to
12319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12323 hardcode_direct_GO=yes
12324 hardcode_direct_absolute_GO=yes
12325 hardcode_libdir_separator_GO=':'
12326 link_all_deplibs_GO=yes
12327 file_list_spec_GO='${wl}-f,'
12329 if test "$GCC" = yes; then
12330 case $host_os in aix4.[012]|aix4.[012].*)
12331 # We only want to do this on AIX 4.2 and lower, the check
12332 # below for broken collect2 doesn't work under 4.3+
12333 collect2name=`${CC} -print-prog-name=collect2`
12334 if test -f "$collect2name" &&
12335 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12337 # We have reworked collect2
12340 # We have old collect2
12341 hardcode_direct_GO=unsupported
12342 # It fails to find uninstalled libraries when the uninstalled
12343 # path is not listed in the libpath. Setting hardcode_minus_L
12344 # to unsupported forces relinking
12345 hardcode_minus_L_GO=yes
12346 hardcode_libdir_flag_spec_GO='-L$libdir'
12347 hardcode_libdir_separator_GO=
12351 shared_flag='-shared'
12352 if test "$aix_use_runtimelinking" = yes; then
12353 shared_flag="$shared_flag "'${wl}-G'
12357 if test "$host_cpu" = ia64; then
12358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12359 # chokes on -Wl,-G. The following line is correct:
12362 if test "$aix_use_runtimelinking" = yes; then
12363 shared_flag='${wl}-G'
12365 shared_flag='${wl}-bM:SRE'
12370 export_dynamic_flag_spec_GO='${wl}-bexpall'
12371 # It seems that -bexpall does not export symbols beginning with
12372 # underscore (_), so it is better to generate a list of symbols to export.
12373 always_export_symbols_GO=yes
12374 if test "$aix_use_runtimelinking" = yes; then
12375 # Warning - without using the other runtime loading flags (-brtl),
12376 # -berok will link without error, but may produce a broken library.
12377 allow_undefined_flag_GO='-berok'
12378 # Determine the default libpath from the value encoded in an
12379 # empty executable.
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12391 if ac_fn_c_try_link "$LINENO"; then :
12393 lt_aix_libpath_sed='
12394 /Import File Strings/,/^$/ {
12400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12401 # Check for a 64-bit object if we didn't find anything.
12402 if test -z "$aix_libpath"; then
12403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12410 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12411 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"
12413 if test "$host_cpu" = ia64; then
12414 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12415 allow_undefined_flag_GO="-z nodefs"
12416 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"
12418 # Determine the default libpath from the value encoded in an
12419 # empty executable.
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12431 if ac_fn_c_try_link "$LINENO"; then :
12433 lt_aix_libpath_sed='
12434 /Import File Strings/,/^$/ {
12440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12441 # Check for a 64-bit object if we didn't find anything.
12442 if test -z "$aix_libpath"; then
12443 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12450 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12451 # Warning - without using the other run time loading flags,
12452 # -berok will link without error, but may produce a broken library.
12453 no_undefined_flag_GO=' ${wl}-bernotok'
12454 allow_undefined_flag_GO=' ${wl}-berok'
12455 if test "$with_gnu_ld" = yes; then
12456 # We only use this code for GNU lds that support --whole-archive.
12457 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12459 # Exported symbols can be pulled into shared objects from archives
12460 whole_archive_flag_spec_GO='$convenience'
12462 archive_cmds_need_lc_GO=yes
12463 # This is similar to how AIX traditionally builds its shared libraries.
12464 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'
12472 # see comment about AmigaOS4 .so support
12473 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474 archive_expsym_cmds_GO=''
12477 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)'
12478 hardcode_libdir_flag_spec_GO='-L$libdir'
12479 hardcode_minus_L_GO=yes
12485 export_dynamic_flag_spec_GO=-rdynamic
12488 cygwin* | mingw* | pw32* | cegcc*)
12489 # When not using gcc, we currently assume that we are using
12490 # Microsoft Visual C++.
12491 # hardcode_libdir_flag_spec is actually meaningless, as there is
12492 # no search path for DLLs.
12493 hardcode_libdir_flag_spec_GO=' '
12494 allow_undefined_flag_GO=unsupported
12495 # Tell ltmain to make .lib files, not .a files.
12497 # Tell ltmain to make .dll files, not .so files.
12499 # FIXME: Setting linknames here is a bad hack.
12500 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12501 # The linker will automatically build a .lib file if we build a DLL.
12502 old_archive_from_new_cmds_GO='true'
12503 # FIXME: Should let the user specify the lib program.
12504 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12505 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12506 enable_shared_with_static_runtimes_GO=yes
12509 darwin* | rhapsody*)
12512 archive_cmds_need_lc_GO=no
12513 hardcode_direct_GO=no
12514 hardcode_automatic_GO=yes
12515 hardcode_shlibpath_var_GO=unsupported
12516 if test "$lt_cv_ld_force_load" = "yes"; then
12517 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\"`'
12519 whole_archive_flag_spec_GO=''
12521 link_all_deplibs_GO=yes
12522 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12523 case $cc_basename in
12524 ifort*) _lt_dar_can_shared=yes ;;
12525 *) _lt_dar_can_shared=$GCC ;;
12527 if test "$_lt_dar_can_shared" = "yes"; then
12528 output_verbose_link_cmd=func_echo_all
12529 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}"
12530 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12531 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}"
12532 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}"
12541 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12542 hardcode_libdir_flag_spec_GO='-L$libdir'
12543 hardcode_shlibpath_var_GO=no
12546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12547 # support. Future versions do this automatically, but an explicit c++rt0.o
12548 # does not break anything, and helps significantly (at the cost of a little
12551 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12552 hardcode_libdir_flag_spec_GO='-R$libdir'
12553 hardcode_direct_GO=yes
12554 hardcode_shlibpath_var_GO=no
12557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12559 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12560 hardcode_direct_GO=yes
12561 hardcode_minus_L_GO=yes
12562 hardcode_shlibpath_var_GO=no
12565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12566 freebsd* | dragonfly*)
12567 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12568 hardcode_libdir_flag_spec_GO='-R$libdir'
12569 hardcode_direct_GO=yes
12570 hardcode_shlibpath_var_GO=no
12574 if test "$GCC" = yes; then
12575 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'
12577 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'
12579 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12580 hardcode_libdir_separator_GO=:
12581 hardcode_direct_GO=yes
12583 # hardcode_minus_L: Not really in the search PATH,
12584 # but as the default location of the library.
12585 hardcode_minus_L_GO=yes
12586 export_dynamic_flag_spec_GO='${wl}-E'
12590 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12591 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12593 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12595 if test "$with_gnu_ld" = no; then
12596 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12597 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12598 hardcode_libdir_separator_GO=:
12599 hardcode_direct_GO=yes
12600 hardcode_direct_absolute_GO=yes
12601 export_dynamic_flag_spec_GO='${wl}-E'
12602 # hardcode_minus_L: Not really in the search PATH,
12603 # but as the default location of the library.
12604 hardcode_minus_L_GO=yes
12609 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12612 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12618 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12624 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12627 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12630 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12634 if test "$with_gnu_ld" = no; then
12635 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12636 hardcode_libdir_separator_GO=:
12640 hardcode_direct_GO=no
12641 hardcode_shlibpath_var_GO=no
12644 hardcode_direct_GO=yes
12645 hardcode_direct_absolute_GO=yes
12646 export_dynamic_flag_spec_GO='${wl}-E'
12648 # hardcode_minus_L: Not really in the search PATH,
12649 # but as the default location of the library.
12650 hardcode_minus_L_GO=yes
12656 irix5* | irix6* | nonstopux*)
12657 if test "$GCC" = yes; then
12658 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'
12659 # Try to use the -exported_symbol ld option, if it does not
12660 # work, assume that -exports_file does not work either and
12661 # implicitly export all symbols.
12662 save_LDFLAGS="$LDFLAGS"
12663 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12668 if ac_fn_c_try_link "$LINENO"; then :
12669 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'
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LDFLAGS="$save_LDFLAGS"
12676 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'
12677 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'
12679 archive_cmds_need_lc_GO='no'
12680 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12681 hardcode_libdir_separator_GO=:
12682 inherit_rpath_GO=yes
12683 link_all_deplibs_GO=yes
12687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12688 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12690 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12692 hardcode_libdir_flag_spec_GO='-R$libdir'
12693 hardcode_direct_GO=yes
12694 hardcode_shlibpath_var_GO=no
12698 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12699 hardcode_direct_GO=yes
12700 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12701 hardcode_libdir_separator_GO=:
12702 hardcode_shlibpath_var_GO=no
12709 if test -f /usr/libexec/ld.so; then
12710 hardcode_direct_GO=yes
12711 hardcode_shlibpath_var_GO=no
12712 hardcode_direct_absolute_GO=yes
12713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12714 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12715 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12716 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12717 export_dynamic_flag_spec_GO='${wl}-E'
12720 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12721 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12722 hardcode_libdir_flag_spec_GO='-R$libdir'
12725 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12726 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12736 hardcode_libdir_flag_spec_GO='-L$libdir'
12737 hardcode_minus_L_GO=yes
12738 allow_undefined_flag_GO=unsupported
12739 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'
12740 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12744 if test "$GCC" = yes; then
12745 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12746 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'
12748 allow_undefined_flag_GO=' -expect_unresolved \*'
12749 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'
12751 archive_cmds_need_lc_GO='no'
12752 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12753 hardcode_libdir_separator_GO=:
12756 osf4* | osf5*) # as osf3* with the addition of -msym flag
12757 if test "$GCC" = yes; then
12758 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12759 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'
12760 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12762 allow_undefined_flag_GO=' -expect_unresolved \*'
12763 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'
12764 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~
12765 $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'
12767 # Both c and cxx compiler support -rpath directly
12768 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12770 archive_cmds_need_lc_GO='no'
12771 hardcode_libdir_separator_GO=:
12775 no_undefined_flag_GO=' -z defs'
12776 if test "$GCC" = yes; then
12778 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12779 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12780 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12782 case `$CC -V 2>&1` in
12785 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12786 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12787 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12791 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12792 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12793 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12797 hardcode_libdir_flag_spec_GO='-R$libdir'
12798 hardcode_shlibpath_var_GO=no
12800 solaris2.[0-5] | solaris2.[0-5].*) ;;
12802 # The compiler driver will combine and reorder linker options,
12803 # but understands `-z linker_flag'. GCC discards it without `$wl',
12804 # but is careful enough not to reorder.
12805 # Supported since Solaris 2.6 (maybe 2.5.1?)
12806 if test "$GCC" = yes; then
12807 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12809 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12813 link_all_deplibs_GO=yes
12817 if test "x$host_vendor" = xsequent; then
12818 # Use $CC to link under sequent, because it throws in some extra .o
12819 # files that make .init and .fini sections work.
12820 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12822 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12824 hardcode_libdir_flag_spec_GO='-L$libdir'
12825 hardcode_direct_GO=yes
12826 hardcode_minus_L_GO=yes
12827 hardcode_shlibpath_var_GO=no
12831 case $host_vendor in
12833 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12834 hardcode_direct_GO=yes # is this really true???
12837 ## LD is ld it makes a PLAMLIB
12838 ## CC just makes a GrossModule.
12839 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12840 reload_cmds_GO='$CC -r -o $output$reload_objs'
12841 hardcode_direct_GO=no
12844 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12845 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12848 runpath_var='LD_RUN_PATH'
12849 hardcode_shlibpath_var_GO=no
12853 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12854 hardcode_shlibpath_var_GO=no
12855 export_dynamic_flag_spec_GO='-Bexport'
12859 if test -d /usr/nec; then
12860 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861 hardcode_shlibpath_var_GO=no
12862 runpath_var=LD_RUN_PATH
12863 hardcode_runpath_var=yes
12868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12869 no_undefined_flag_GO='${wl}-z,text'
12870 archive_cmds_need_lc_GO=no
12871 hardcode_shlibpath_var_GO=no
12872 runpath_var='LD_RUN_PATH'
12874 if test "$GCC" = yes; then
12875 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12878 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12879 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 sysv5* | sco3.2v5* | sco5v6*)
12884 # Note: We can NOT use -z defs as we might desire, because we do not
12885 # link with -lc, and that would cause any symbols used from libc to
12886 # always be unresolved, which means just about no library would
12887 # ever link correctly. If we're not using GNU ld we use -z text
12888 # though, which does catch some bad symbols but isn't as heavy-handed
12890 no_undefined_flag_GO='${wl}-z,text'
12891 allow_undefined_flag_GO='${wl}-z,nodefs'
12892 archive_cmds_need_lc_GO=no
12893 hardcode_shlibpath_var_GO=no
12894 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12895 hardcode_libdir_separator_GO=':'
12896 link_all_deplibs_GO=yes
12897 export_dynamic_flag_spec_GO='${wl}-Bexport'
12898 runpath_var='LD_RUN_PATH'
12900 if test "$GCC" = yes; then
12901 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12902 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12904 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12905 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12910 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_libdir_flag_spec_GO='-L$libdir'
12912 hardcode_shlibpath_var_GO=no
12920 if test x$host_vendor = xsni; then
12922 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12923 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12930 $as_echo "$ld_shlibs_GO" >&6; }
12931 test "$ld_shlibs_GO" = no && can_build_shared=no
12933 with_gnu_ld_GO=$with_gnu_ld
12941 # Do we need to explicitly link libc?
12943 case "x$archive_cmds_need_lc_GO" in
12945 # Assume -lc should be added
12946 archive_cmds_need_lc_GO=yes
12948 if test "$enable_shared" = yes && test "$GCC" = yes; then
12949 case $archive_cmds_GO in
12951 # FIXME: we may have to deal with multi-command sequences.
12954 # Test whether the compiler implicitly links with -lc since on some
12955 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12956 # to ld, don't add -lc before -lgcc.
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12958 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12959 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
12963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12966 (eval $ac_compile) 2>&5
12968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969 test $ac_status = 0; } 2>conftest.err; then
12972 libobjs=conftest.$ac_objext
12974 wl=$lt_prog_compiler_wl_GO
12975 pic_flag=$lt_prog_compiler_pic_GO
12981 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12982 allow_undefined_flag_GO=
12983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12984 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987 test $ac_status = 0; }
12989 lt_cv_archive_cmds_need_lc_GO=no
12991 lt_cv_archive_cmds_need_lc_GO=yes
12993 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12995 cat conftest.err 1>&5
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13001 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13002 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13074 hardcode_action_GO=
13075 if test -n "$hardcode_libdir_flag_spec_GO" ||
13076 test -n "$runpath_var_GO" ||
13077 test "X$hardcode_automatic_GO" = "Xyes" ; then
13079 # We can hardcode non-existent directories.
13080 if test "$hardcode_direct_GO" != no &&
13081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13082 # have to relink, otherwise we might link with an installed library
13083 # when we should be linking with a yet-to-be-installed one
13084 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13085 test "$hardcode_minus_L_GO" != no; then
13086 # Linking always hardcodes the temporary library directory.
13087 hardcode_action_GO=relink
13089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13090 hardcode_action_GO=immediate
13093 # We cannot hardcode anything, or else we can only hardcode existing
13095 hardcode_action_GO=unsupported
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13098 $as_echo "$hardcode_action_GO" >&6; }
13100 if test "$hardcode_action_GO" = relink ||
13101 test "$inherit_rpath_GO" = yes; then
13102 # Fast installation is not supported
13103 enable_fast_install=no
13104 elif test "$shlibpath_overrides_runpath" = yes ||
13105 test "$enable_shared" = no; then
13106 # Fast installation is not necessary
13107 enable_fast_install=needless
13119 ac_cpp='$CPP $CPPFLAGS'
13120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13131 ac_config_commands="$ac_config_commands libtool"
13136 # Only expand once:
13142 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13148 glibgo_toolexecdir=no
13149 glibgo_toolexeclibdir=no
13150 glibgo_prefixdir=$prefix
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13153 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13154 # Check whether --enable-version-specific-runtime-libs was given.
13155 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13156 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13157 yes) version_specific_libs=yes ;;
13158 no) version_specific_libs=no ;;
13159 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13162 version_specific_libs=no
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13166 $as_echo "$version_specific_libs" >&6; }
13168 # Version-specific runtime libs processing.
13169 if test $version_specific_libs = yes; then
13170 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13171 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13174 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13175 # Install a library built with a cross compiler in tooldir, not libdir.
13176 if test x"$glibgo_toolexecdir" = x"no"; then
13177 if test -n "$with_cross_host" &&
13178 test x"$with_cross_host" != x"no"; then
13179 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13180 glibgo_toolexeclibdir='${toolexecdir}/lib'
13182 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13183 glibgo_toolexeclibdir='${libdir}'
13185 multi_os_directory=`$CC -print-multi-os-directory`
13186 case $multi_os_directory in
13187 .) ;; # Avoid trailing /.
13188 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13196 # See if the user wants to configure without libffi. Some
13197 # architectures don't support it. FIXME: We should set a default
13198 # based on the host.
13200 # Check whether --with-libffi was given.
13201 if test "${with_libffi+set}" = set; then :
13202 withval=$with_libffi; :
13204 with_libffi=${with_libffi_default-yes}
13210 if test "$with_libffi" != no; then
13212 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13214 LIBFFI=../libffi/libffi_convenience.la
13215 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13228 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13229 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13230 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13231 *-*-linux*) is_linux=yes; GOOS=linux ;;
13232 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13233 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13235 if test $is_darwin = yes; then
13236 LIBGO_IS_DARWIN_TRUE=
13237 LIBGO_IS_DARWIN_FALSE='#'
13239 LIBGO_IS_DARWIN_TRUE='#'
13240 LIBGO_IS_DARWIN_FALSE=
13243 if test $is_freebsd = yes; then
13244 LIBGO_IS_FREEBSD_TRUE=
13245 LIBGO_IS_FREEBSD_FALSE='#'
13247 LIBGO_IS_FREEBSD_TRUE='#'
13248 LIBGO_IS_FREEBSD_FALSE=
13251 if test $is_irix = yes; then
13252 LIBGO_IS_IRIX_TRUE=
13253 LIBGO_IS_IRIX_FALSE='#'
13255 LIBGO_IS_IRIX_TRUE='#'
13256 LIBGO_IS_IRIX_FALSE=
13259 if test $is_linux = yes; then
13260 LIBGO_IS_LINUX_TRUE=
13261 LIBGO_IS_LINUX_FALSE='#'
13263 LIBGO_IS_LINUX_TRUE='#'
13264 LIBGO_IS_LINUX_FALSE=
13267 if test $is_rtems = yes; then
13268 LIBGO_IS_RTEMS_TRUE=
13269 LIBGO_IS_RTEMS_FALSE='#'
13271 LIBGO_IS_RTEMS_TRUE='#'
13272 LIBGO_IS_RTEMS_FALSE=
13275 if test $is_solaris = yes; then
13276 LIBGO_IS_SOLARIS_TRUE=
13277 LIBGO_IS_SOLARIS_FALSE='#'
13279 LIBGO_IS_SOLARIS_TRUE='#'
13280 LIBGO_IS_SOLARIS_FALSE=
13297 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13301 i[34567]86-*-* | x86_64-*-*)
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13309 if ac_fn_c_try_compile "$LINENO"; then :
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315 if test "$is_386" = "yes"; then
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13333 if ac_fn_c_try_compile "$LINENO"; then :
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339 if test "$is_mips" = "yes"; then
13345 rs6000*-*-* | powerpc*-*-*)
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13353 if ac_fn_c_try_compile "$LINENO"; then :
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 if test "$is_ppc" = "yes"; then
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 #if defined(__sparcv9) || defined(__arch64__)
13373 if ac_fn_c_try_compile "$LINENO"; then :
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 if test "$is_sparc" = "yes"; then
13386 if test $is_386 = yes; then
13388 LIBGO_IS_386_FALSE='#'
13390 LIBGO_IS_386_TRUE='#'
13391 LIBGO_IS_386_FALSE=
13394 if test $is_arm = yes; then
13396 LIBGO_IS_ARM_FALSE='#'
13398 LIBGO_IS_ARM_TRUE='#'
13399 LIBGO_IS_ARM_FALSE=
13402 if test $is_m68k = yes; then
13403 LIBGO_IS_M68K_TRUE=
13404 LIBGO_IS_M68K_FALSE='#'
13406 LIBGO_IS_M68K_TRUE='#'
13407 LIBGO_IS_M68K_FALSE=
13410 if test $is_mips = yes; then
13411 LIBGO_IS_MIPS_TRUE=
13412 LIBGO_IS_MIPS_FALSE='#'
13414 LIBGO_IS_MIPS_TRUE='#'
13415 LIBGO_IS_MIPS_FALSE=
13418 if test $is_mips64 = yes; then
13419 LIBGO_IS_MIPS64_TRUE=
13420 LIBGO_IS_MIPS64_FALSE='#'
13422 LIBGO_IS_MIPS64_TRUE='#'
13423 LIBGO_IS_MIPS64_FALSE=
13426 if test $is_ppc = yes; then
13428 LIBGO_IS_PPC_FALSE='#'
13430 LIBGO_IS_PPC_TRUE='#'
13431 LIBGO_IS_PPC_FALSE=
13434 if test $is_ppc64 = yes; then
13435 LIBGO_IS_PPC64_TRUE=
13436 LIBGO_IS_PPC64_FALSE='#'
13438 LIBGO_IS_PPC64_TRUE='#'
13439 LIBGO_IS_PPC64_FALSE=
13442 if test $is_sparc = yes; then
13443 LIBGO_IS_SPARC_TRUE=
13444 LIBGO_IS_SPARC_FALSE='#'
13446 LIBGO_IS_SPARC_TRUE='#'
13447 LIBGO_IS_SPARC_FALSE=
13450 if test $is_sparc64 = yes; then
13451 LIBGO_IS_SPARC64_TRUE=
13452 LIBGO_IS_SPARC64_FALSE='#'
13454 LIBGO_IS_SPARC64_TRUE='#'
13455 LIBGO_IS_SPARC64_FALSE=
13458 if test $is_x86_64 = yes; then
13459 LIBGO_IS_X86_64_TRUE=
13460 LIBGO_IS_X86_64_FALSE='#'
13462 LIBGO_IS_X86_64_TRUE='#'
13463 LIBGO_IS_X86_64_FALSE=
13468 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13469 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13470 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13474 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13475 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13476 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13481 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13482 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13485 CFLAGS_hold=$CFLAGS
13486 CFLAGS="$CFLAGS -fsplit-stack"
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13491 if ac_fn_c_try_compile "$LINENO"; then :
13492 libgo_cv_c_split_stack_supported=yes
13494 libgo_cv_c_split_stack_supported=no
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 CFLAGS=$CFLAGS_hold
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13500 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13501 if test "$libgo_cv_c_split_stack_supported" = yes; then
13502 SPLIT_STACK=-fsplit-stack
13504 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13510 if test "$libgo_cv_c_split_stack_supported" = yes; then
13511 USING_SPLIT_STACK_TRUE=
13512 USING_SPLIT_STACK_FALSE='#'
13514 USING_SPLIT_STACK_TRUE='#'
13515 USING_SPLIT_STACK_FALSE=
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13520 $as_echo_n "checking whether linker supports split stack... " >&6; }
13521 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
13524 libgo_cv_c_linker_supports_split_stack=no
13525 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13526 libgo_cv_c_linker_supports_split_stack=yes
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13530 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13531 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13533 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13539 $as_echo_n "checking for sqrt in -lm... " >&6; }
13540 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13541 $as_echo_n "(cached) " >&6
13543 ac_check_lib_save_LIBS=$LIBS
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13563 if ac_fn_c_try_link "$LINENO"; then :
13564 ac_cv_lib_m_sqrt=yes
13566 ac_cv_lib_m_sqrt=no
13568 rm -f core conftest.err conftest.$ac_objext \
13569 conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13573 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13574 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13581 $as_echo_n "checking for socket libraries... " >&6; }
13582 if test "${libgo_cv_lib_sockets+set}" = set; then :
13583 $as_echo_n "(cached) " >&6
13585 libgo_cv_lib_sockets=
13586 libgo_check_both=no
13587 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13588 if test "x$ac_cv_func_connect" = x""yes; then :
13589 libgo_check_socket=no
13591 libgo_check_socket=yes
13594 if test "$libgo_check_socket" = "yes"; then
13595 unset ac_cv_func_connect
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13597 $as_echo_n "checking for main in -lsocket... " >&6; }
13598 if test "${ac_cv_lib_socket_main+set}" = set; then :
13599 $as_echo_n "(cached) " >&6
13601 ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lsocket $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13615 if ac_fn_c_try_link "$LINENO"; then :
13616 ac_cv_lib_socket_main=yes
13618 ac_cv_lib_socket_main=no
13620 rm -f core conftest.err conftest.$ac_objext \
13621 conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13625 $as_echo "$ac_cv_lib_socket_main" >&6; }
13626 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13627 libgo_cv_lib_sockets="-lsocket"
13629 libgo_check_both=yes
13633 if test "$libgo_check_both" = "yes"; then
13634 libgo_old_libs=$LIBS
13635 LIBS="$LIBS -lsocket -lnsl"
13636 unset ac_cv_func_accept
13637 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13638 if test "x$ac_cv_func_accept" = x""yes; then :
13640 libgo_cv_lib_sockets="-lsocket -lnsl"
13643 unset ac_cv_func_accept
13644 LIBS=$libgo_old_libs
13646 unset ac_cv_func_gethostbyname
13647 libgo_old_libs="$LIBS"
13648 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13649 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13653 $as_echo_n "checking for main in -lnsl... " >&6; }
13654 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13655 $as_echo_n "(cached) " >&6
13657 ac_check_lib_save_LIBS=$LIBS
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13671 if ac_fn_c_try_link "$LINENO"; then :
13672 ac_cv_lib_nsl_main=yes
13674 ac_cv_lib_nsl_main=no
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_lib_save_LIBS
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13681 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13682 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13683 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13688 unset ac_cv_func_gethostbyname
13689 LIBS=$libgo_old_libs
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13693 $as_echo "$libgo_cv_lib_sockets" >&6; }
13694 NET_LIBS="$libgo_cv_lib_sockets"
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13698 $as_echo_n "checking whether -pthread is supported... " >&6; }
13699 if test "${libgo_cv_lib_pthread+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13702 CFLAGS_hold=$CFLAGS
13703 CFLAGS="$CFLAGS -pthread"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 libgo_cv_lib_pthread=yes
13711 libgo_cv_lib_pthread=no
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 CFLAGS=$CFLAGS_hold
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13717 $as_echo "$libgo_cv_lib_pthread" >&6; }
13719 if test "$libgo_cv_lib_pthread" = yes; then
13720 PTHREAD_CFLAGS=-pthread
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13726 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13727 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
13730 ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lpthread $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13741 char pthread_create ();
13745 return pthread_create ();
13750 if ac_fn_c_try_link "$LINENO"; then :
13751 ac_cv_lib_pthread_pthread_create=yes
13753 ac_cv_lib_pthread_pthread_create=no
13755 rm -f core conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13760 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13761 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13762 PTHREAD_LIBS=-lpthread
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13768 $as_echo_n "checking for library containing sched_yield... " >&6; }
13769 if test "${ac_cv_search_sched_yield+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13772 ac_func_search_save_LIBS=$LIBS
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13776 /* Override any GCC internal prototype to avoid an error.
13777 Use char because int might match the return type of a GCC
13778 builtin and then its argument prototype would still apply. */
13782 char sched_yield ();
13786 return sched_yield ();
13791 for ac_lib in '' rt; do
13792 if test -z "$ac_lib"; then
13793 ac_res="none required"
13796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 ac_cv_search_sched_yield=$ac_res
13801 rm -f core conftest.err conftest.$ac_objext \
13803 if test "${ac_cv_search_sched_yield+set}" = set; then :
13807 if test "${ac_cv_search_sched_yield+set}" = set; then :
13810 ac_cv_search_sched_yield=no
13812 rm conftest.$ac_ext
13813 LIBS=$ac_func_search_save_LIBS
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13816 $as_echo "$ac_cv_search_sched_yield" >&6; }
13817 ac_res=$ac_cv_search_sched_yield
13818 if test "$ac_res" != no; then :
13819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13826 if test "${ac_cv_c_bigendian+set}" = set; then :
13827 $as_echo_n "(cached) " >&6
13829 ac_cv_c_bigendian=unknown
13830 # See if we're dealing with a universal compiler.
13831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h. */
13833 #ifndef __APPLE_CC__
13834 not a universal capable compiler
13839 if ac_fn_c_try_compile "$LINENO"; then :
13841 # Check for potential -arch flags. It is not universal unless
13842 # there are at least two -arch flags with different values.
13845 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13846 if test -n "$ac_prev"; then
13848 i?86 | x86_64 | ppc | ppc64)
13849 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13852 ac_cv_c_bigendian=universal
13858 elif test "x$ac_word" = "x-arch"; then
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 if test $ac_cv_c_bigendian = unknown; then
13865 # See if sys/param.h defines the BYTE_ORDER macro.
13866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13868 #include <sys/types.h>
13869 #include <sys/param.h>
13874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13875 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13877 bogus endian macros
13884 if ac_fn_c_try_compile "$LINENO"; then :
13885 # It does; now see whether it defined to BIG_ENDIAN or not.
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 #include <sys/types.h>
13889 #include <sys/param.h>
13894 #if BYTE_ORDER != BIG_ENDIAN
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 ac_cv_c_bigendian=yes
13905 ac_cv_c_bigendian=no
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 if test $ac_cv_c_bigendian = unknown; then
13912 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 #include <limits.h>
13920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13921 bogus endian macros
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929 # It does; now see whether it defined to _BIG_ENDIAN or not.
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 #include <limits.h>
13937 #ifndef _BIG_ENDIAN
13945 if ac_fn_c_try_compile "$LINENO"; then :
13946 ac_cv_c_bigendian=yes
13948 ac_cv_c_bigendian=no
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 if test $ac_cv_c_bigendian = unknown; then
13955 # Compile a test program.
13956 if test "$cross_compiling" = yes; then :
13957 # Try to guess by grepping values from an object file.
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 short int ascii_mm[] =
13961 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13962 short int ascii_ii[] =
13963 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13964 int use_ascii (int i) {
13965 return ascii_mm[i] + ascii_ii[i];
13967 short int ebcdic_ii[] =
13968 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13969 short int ebcdic_mm[] =
13970 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13971 int use_ebcdic (int i) {
13972 return ebcdic_mm[i] + ebcdic_ii[i];
13979 return use_ascii (foo) == use_ebcdic (foo);
13984 if ac_fn_c_try_compile "$LINENO"; then :
13985 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13986 ac_cv_c_bigendian=yes
13988 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13989 if test "$ac_cv_c_bigendian" = unknown; then
13990 ac_cv_c_bigendian=no
13992 # finding both strings is unlikely to happen, but who knows?
13993 ac_cv_c_bigendian=unknown
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 $ac_includes_default
14006 /* Are we little or big endian? From Harbison&Steele. */
14010 char c[sizeof (long int)];
14013 return u.c[sizeof (long int) - 1] == 1;
14019 if ac_fn_c_try_run "$LINENO"; then :
14020 ac_cv_c_bigendian=no
14022 ac_cv_c_bigendian=yes
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14025 conftest.$ac_objext conftest.beam conftest.$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14031 $as_echo "$ac_cv_c_bigendian" >&6; }
14032 case $ac_cv_c_bigendian in #(
14034 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14044 as_fn_error "unknown endianness
14045 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14051 # Check whether --with-system-libunwind was given.
14052 if test "${with_system_libunwind+set}" = set; then :
14053 withval=$with_system_libunwind;
14056 # If system-libunwind was not specifically set, pick a default setting.
14057 if test x$with_system_libunwind = x; then
14059 ia64-*-hpux*) with_system_libunwind=yes ;;
14060 *) with_system_libunwind=no ;;
14063 # Based on system-libunwind and target, do we have ipinfo?
14064 if test x$with_system_libunwind = xyes; then
14066 ia64-*-*) have_unwind_getipinfo=no ;;
14067 *) have_unwind_getipinfo=yes ;;
14070 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14073 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14074 *) have_unwind_getipinfo=yes ;;
14079 if test x$have_unwind_getipinfo = xyes; then
14081 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14086 # Check whether --enable-sjlj-exceptions was given.
14087 if test "${enable_sjlj_exceptions+set}" = set; then :
14088 enableval=$enable_sjlj_exceptions; case "$enableval" in
14090 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14093 enable_sjlj_exceptions=auto
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14098 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14099 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14100 $as_echo_n "(cached) " >&6
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14106 void clean (int *);
14109 int i __attribute__ ((cleanup (clean)));
14114 CFLAGS_hold=$CFLAGS
14115 CFLAGS="--save-temps -fexceptions"
14116 libgo_cv_lib_sjlj_exceptions=unknown
14117 if ac_fn_c_try_compile; then :
14118 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14119 libgo_cv_lib_sjlj_exceptions=yes
14120 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14121 libgo_cv_lib_sjlj_exceptions=no
14124 CFLAGS=$CFLAGS_hold
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14129 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14131 if test "$enable_sjlj_exceptions" = "auto"; then
14132 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14135 case $enable_sjlj_exceptions in
14138 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14144 as_fn_error "unable to detect exception model" "$LINENO" 5
14148 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h
14150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14152 eval as_val=\$$as_ac_Header
14153 if test "x$as_val" = x""yes; then :
14154 cat >>confdefs.h <<_ACEOF
14155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14162 if test "$ac_cv_header_sys_mman_h" = yes; then
14163 HAVE_SYS_MMAN_H_TRUE=
14164 HAVE_SYS_MMAN_H_FALSE='#'
14166 HAVE_SYS_MMAN_H_TRUE='#'
14167 HAVE_SYS_MMAN_H_FALSE=
14171 for ac_func in srandom random strerror_r strsignal wait4
14173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14175 eval as_val=\$$as_ac_var
14176 if test "x$as_val" = x""yes; then :
14177 cat >>confdefs.h <<_ACEOF
14178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14184 if test "$ac_cv_func_strerror_r" = yes; then
14185 HAVE_STRERROR_R_TRUE=
14186 HAVE_STRERROR_R_FALSE='#'
14188 HAVE_STRERROR_R_TRUE='#'
14189 HAVE_STRERROR_R_FALSE=
14192 if test "$ac_cv_func_wait4" = yes; then
14194 HAVE_WAIT4_FALSE='#'
14196 HAVE_WAIT4_TRUE='#'
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14202 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14203 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14209 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14211 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14214 if ac_fn_c_try_link "$LINENO"; then :
14215 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14217 libgo_cv_func___sync_bool_compare_and_swap_4=no
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14223 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14224 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14226 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14231 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14232 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14233 $as_echo_n "(cached) " >&6
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14238 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14240 int main() { return __sync_fetch_and_add (&i, 1); }
14243 if ac_fn_c_try_link "$LINENO"; then :
14244 libgo_cv_func___sync_fetch_and_add_4=yes
14246 libgo_cv_func___sync_fetch_and_add_4=no
14248 rm -f core conftest.err conftest.$ac_objext \
14249 conftest$ac_exeext conftest.$ac_ext
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14252 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14253 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14255 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14260 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14261 if test "${libgo_cv_c_stringops+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14264 CFLAGS_hold=$CFLAGS
14265 CFLAGS="$CFLAGS -minline-all-stringops"
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14270 if ac_fn_c_try_compile "$LINENO"; then :
14271 libgo_cv_c_stringops=yes
14273 libgo_cv_c_stringops=no
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 CFLAGS=$CFLAGS_hold
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14279 $as_echo "$libgo_cv_c_stringops" >&6; }
14281 if test "$libgo_cv_c_stringops" = yes; then
14282 STRINGOPS_FLAG=-minline-all-stringops
14286 CFLAGS_hold=$CFLAGS
14287 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14288 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14289 if test "x$ac_cv_type_off64_t" = x""yes; then :
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_OFF64_T 1
14298 CFLAGS=$CFLAGS_hold
14300 cat >confcache <<\_ACEOF
14301 # This file is a shell script that caches the results of configure
14302 # tests run on this system so they can be shared between configure
14303 # scripts and configure runs, see configure's option --config-cache.
14304 # It is not useful on other systems. If it contains results you don't
14305 # want to keep, you may remove or edit it.
14307 # config.status only pays attention to the cache file if you give it
14308 # the --recheck option to rerun configure.
14310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14312 # following values.
14316 # The following way of writing the cache mishandles newlines in values,
14317 # but we know of no workaround that is simple, portable, and efficient.
14318 # So, we kill variables containing newlines.
14319 # Ultrix sh set writes to stderr and can't be redirected directly,
14320 # and sets the high bit in the cache file unless we assign to the vars.
14322 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14323 eval ac_val=\$$ac_var
14327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14331 _ | IFS | as_nl) ;; #(
14332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14333 *) { eval $ac_var=; unset $ac_var;} ;;
14339 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14340 *${as_nl}ac_space=\ *)
14341 # `set' does not quote correctly, so add quotes: double-quote
14342 # substitution turns \\\\ into \\, and sed turns \\ into \.
14345 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14348 # `set' quotes correctly as required by POSIX, so do not add quotes.
14349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14360 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14362 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14363 if test -w "$cache_file"; then
14364 test "x$cache_file" != "x/dev/null" &&
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14366 $as_echo "$as_me: updating cache $cache_file" >&6;}
14367 cat confcache >$cache_file
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14370 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14375 if test ${multilib} = yes; then
14376 multilib_arg="--enable-multilib"
14381 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14384 ac_config_commands="$ac_config_commands default"
14387 cat >confcache <<\_ACEOF
14388 # This file is a shell script that caches the results of configure
14389 # tests run on this system so they can be shared between configure
14390 # scripts and configure runs, see configure's option --config-cache.
14391 # It is not useful on other systems. If it contains results you don't
14392 # want to keep, you may remove or edit it.
14394 # config.status only pays attention to the cache file if you give it
14395 # the --recheck option to rerun configure.
14397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14399 # following values.
14403 # The following way of writing the cache mishandles newlines in values,
14404 # but we know of no workaround that is simple, portable, and efficient.
14405 # So, we kill variables containing newlines.
14406 # Ultrix sh set writes to stderr and can't be redirected directly,
14407 # and sets the high bit in the cache file unless we assign to the vars.
14409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14410 eval ac_val=\$$ac_var
14414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14418 _ | IFS | as_nl) ;; #(
14419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14420 *) { eval $ac_var=; unset $ac_var;} ;;
14426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14427 *${as_nl}ac_space=\ *)
14428 # `set' does not quote correctly, so add quotes: double-quote
14429 # substitution turns \\\\ into \\, and sed turns \\ into \.
14432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14435 # `set' quotes correctly as required by POSIX, so do not add quotes.
14436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14450 if test -w "$cache_file"; then
14451 test "x$cache_file" != "x/dev/null" &&
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14453 $as_echo "$as_me: updating cache $cache_file" >&6;}
14454 cat confcache >$cache_file
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14463 # Let make expand exec_prefix.
14464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14466 DEFS=-DHAVE_CONFIG_H
14470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14471 # 1. Remove the extension, and $U if already installed.
14472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14473 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14475 # will be set to the directory where LIBOBJS objects are built.
14476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14479 LIBOBJS=$ac_libobjs
14481 LTLIBOBJS=$ac_ltlibobjs
14484 if test -n "$EXEEXT"; then
14486 am__EXEEXT_FALSE='#'
14488 am__EXEEXT_TRUE='#'
14492 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14493 as_fn_error "conditional \"AMDEP\" was never defined.
14494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14496 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14497 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14500 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14501 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14504 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14505 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14508 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14509 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14512 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14513 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14516 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14517 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14520 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14521 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14524 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14525 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14528 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14529 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14532 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14533 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14536 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14537 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14540 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14541 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14544 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14545 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14548 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14549 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14552 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14553 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14556 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14557 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14560 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14561 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14564 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14565 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14568 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14569 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14573 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14574 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14577 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14578 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14581 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14582 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14586 : ${CONFIG_STATUS=./config.status}
14588 ac_clean_files_save=$ac_clean_files
14589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14591 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14593 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14595 # Generated by $as_me.
14596 # Run this file to recreate the current configuration.
14597 # Compiler output produced by configure, useful for debugging
14598 # configure, is in config.log if it exists.
14601 ac_cs_recheck=false
14604 SHELL=\${CONFIG_SHELL-$SHELL}
14607 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14608 ## -------------------- ##
14609 ## M4sh Initialization. ##
14610 ## -------------------- ##
14612 # Be more Bourne compatible
14613 DUALCASE=1; export DUALCASE # for MKS sh
14614 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14617 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14618 # is contrary to our usage. Disable this feature.
14619 alias -g '${1+"$@"}'='"$@"'
14620 setopt NO_GLOB_SUBST
14622 case `(set -o) 2>/dev/null` in #(
14634 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14635 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14638 # Prefer a ksh shell builtin over an external printf program on Solaris,
14639 # but without wasting forks for bash or zsh.
14640 if test -z "$BASH_VERSION$ZSH_VERSION" \
14641 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14642 as_echo='print -r --'
14643 as_echo_n='print -rn --'
14644 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14645 as_echo='printf %s\n'
14646 as_echo_n='printf %s'
14648 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14649 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14650 as_echo_n='/usr/ucb/echo -n'
14652 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14653 as_echo_n_body='eval
14657 expr "X$arg" : "X\\(.*\\)$as_nl";
14658 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14660 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14662 export as_echo_n_body
14663 as_echo_n='sh -c $as_echo_n_body as_echo'
14665 export as_echo_body
14666 as_echo='sh -c $as_echo_body as_echo'
14669 # The user is always right.
14670 if test "${PATH_SEPARATOR+set}" != set; then
14672 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14673 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14680 # We need space, tab and new line, in precisely that order. Quoting is
14681 # there to prevent editors from complaining about space-tab.
14682 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14683 # splitting by setting IFS to empty value.)
14686 # Find who we are. Look in the path if we contain no directory separator.
14688 *[\\/]* ) as_myself=$0 ;;
14689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14693 test -z "$as_dir" && as_dir=.
14694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14700 # We did not find ourselves, most probably we were run as `sh COMMAND'
14701 # in which case we are not to be found in the path.
14702 if test "x$as_myself" = x; then
14705 if test ! -f "$as_myself"; then
14706 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14710 # Unset variables that we do not need and which cause bugs (e.g. in
14711 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14712 # suppresses any "Segmentation fault" message there. '((' could
14713 # trigger a bug in pdksh 5.2.14.
14714 for as_var in BASH_ENV ENV MAIL MAILPATH
14715 do eval test x\${$as_var+set} = xset \
14716 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14732 # as_fn_error ERROR [LINENO LOG_FD]
14733 # ---------------------------------
14734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14736 # script with status $?, using 1 if that was 0.
14739 as_status=$?; test $as_status -eq 0 && as_status=1
14741 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14742 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14744 $as_echo "$as_me: error: $1" >&2
14745 as_fn_exit $as_status
14749 # as_fn_set_status STATUS
14750 # -----------------------
14751 # Set $? to STATUS, without forking.
14752 as_fn_set_status ()
14755 } # as_fn_set_status
14757 # as_fn_exit STATUS
14758 # -----------------
14759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14763 as_fn_set_status $1
14769 # Portably unset VAR.
14772 { eval $1=; unset $1;}
14774 as_unset=as_fn_unset
14775 # as_fn_append VAR VALUE
14776 # ----------------------
14777 # Append the text in VALUE to the end of the definition contained in VAR. Take
14778 # advantage of any shell optimizations that allow amortized linear growth over
14779 # repeated appends, instead of the typical quadratic growth present in naive
14781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14782 eval 'as_fn_append ()
14793 # as_fn_arith ARG...
14794 # ------------------
14795 # Perform arithmetic evaluation on the ARGs, and store the result in the
14796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14797 # must be portable across $(()) and expr.
14798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14799 eval 'as_fn_arith ()
14806 as_val=`expr "$@" || test $? -eq 1`
14811 if expr a : '\(a\)' >/dev/null 2>&1 &&
14812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14819 as_basename=basename
14824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14830 as_me=`$as_basename -- "$0" ||
14831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14832 X"$0" : 'X\(//\)$' \| \
14833 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14835 sed '/^.*\/\([^/][^/]*\)\/*$/{
14849 # Avoid depending upon Character Ranges.
14850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14853 as_cr_digits='0123456789'
14854 as_cr_alnum=$as_cr_Letters$as_cr_digits
14856 ECHO_C= ECHO_N= ECHO_T=
14857 case `echo -n x` in #(((((
14859 case `echo 'xy\c'` in
14860 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14862 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14869 rm -f conf$$ conf$$.exe conf$$.file
14870 if test -d conf$$.dir; then
14871 rm -f conf$$.dir/conf$$.file
14874 mkdir conf$$.dir 2>/dev/null
14876 if (echo >conf$$.file) 2>/dev/null; then
14877 if ln -s conf$$.file conf$$ 2>/dev/null; then
14879 # ... but there are two gotchas:
14880 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14881 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14882 # In both cases, we have to default to `cp -p'.
14883 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14885 elif ln conf$$.file conf$$ 2>/dev/null; then
14893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14894 rmdir conf$$.dir 2>/dev/null
14899 # Create "$as_dir" as a directory, including parents if necessary.
14904 -*) as_dir=./$as_dir;;
14906 test -d "$as_dir" || eval $as_mkdir_p || {
14910 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14911 *) as_qdir=$as_dir;;
14913 as_dirs="'$as_qdir' $as_dirs"
14914 as_dir=`$as_dirname -- "$as_dir" ||
14915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14916 X"$as_dir" : 'X\(//\)[^/]' \| \
14917 X"$as_dir" : 'X\(//\)$' \| \
14918 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14919 $as_echo X"$as_dir" |
14920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14924 /^X\(\/\/\)[^/].*/{
14937 test -d "$as_dir" && break
14939 test -z "$as_dirs" || eval "mkdir $as_dirs"
14940 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14944 if mkdir -p . 2>/dev/null; then
14945 as_mkdir_p='mkdir -p "$as_dir"'
14947 test -d ./-p && rmdir ./-p
14951 if test -x / >/dev/null 2>&1; then
14952 as_test_x='test -x'
14954 if ls -dL / >/dev/null 2>&1; then
14961 if test -d "$1"; then
14967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14968 ???[sx]*):;;*)false;;esac;fi
14972 as_executable_p=$as_test_x
14974 # Sed expression to map a string onto a valid CPP name.
14975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14977 # Sed expression to map a string onto a valid variable name.
14978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14982 ## ----------------------------------- ##
14983 ## Main body of $CONFIG_STATUS script. ##
14984 ## ----------------------------------- ##
14986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 # Save the log message, to keep $0 and so on meaningful, and to
14990 # report actual input values of CONFIG_FILES etc. instead of their
14991 # values after options handling.
14993 This file was extended by package-unused $as_me version-unused, which was
14994 generated by GNU Autoconf 2.64. Invocation command line was
14996 CONFIG_FILES = $CONFIG_FILES
14997 CONFIG_HEADERS = $CONFIG_HEADERS
14998 CONFIG_LINKS = $CONFIG_LINKS
14999 CONFIG_COMMANDS = $CONFIG_COMMANDS
15002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15007 case $ac_config_files in *"
15008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15011 case $ac_config_headers in *"
15012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15017 # Files that config.status was made for.
15018 config_files="$ac_config_files"
15019 config_headers="$ac_config_headers"
15020 config_commands="$ac_config_commands"
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15026 \`$as_me' instantiates files and other configuration actions
15027 from templates according to the current configuration. Unless the files
15028 and actions are specified as TAGs, all are instantiated by default.
15030 Usage: $0 [OPTION]... [TAG]...
15032 -h, --help print this help, then exit
15033 -V, --version print version number and configuration settings, then exit
15034 -q, --quiet, --silent
15035 do not print progress messages
15036 -d, --debug don't remove temporary files
15037 --recheck update $as_me by reconfiguring in the same conditions
15038 --file=FILE[:TEMPLATE]
15039 instantiate the configuration file FILE
15040 --header=FILE[:TEMPLATE]
15041 instantiate the configuration header FILE
15043 Configuration files:
15046 Configuration headers:
15049 Configuration commands:
15052 Report bugs to the package provider."
15055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15057 package-unused config.status version-unused
15058 configured by $0, generated by GNU Autoconf 2.64,
15059 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15061 Copyright (C) 2009 Free Software Foundation, Inc.
15062 This config.status script is free software; the Free Software Foundation
15063 gives unlimited permission to copy, distribute and modify it."
15070 test -n "\$AWK" || AWK=awk
15073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15074 # The default lists apply if the user does not specify any file.
15080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15081 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15092 # Handling of the options.
15093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15095 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15096 $as_echo "$ac_cs_version"; exit ;;
15097 --debug | --debu | --deb | --de | --d | -d )
15099 --file | --fil | --fi | --f )
15102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15104 as_fn_append CONFIG_FILES " '$ac_optarg'"
15105 ac_need_defaults=false;;
15106 --header | --heade | --head | --hea )
15109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15111 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15112 ac_need_defaults=false;;
15114 # Conflict between --help and --header
15115 as_fn_error "ambiguous option: \`$1'
15116 Try \`$0 --help' for more information.";;
15117 --help | --hel | -h )
15118 $as_echo "$ac_cs_usage"; exit ;;
15119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15123 # This is an error.
15124 -*) as_fn_error "unrecognized option: \`$1'
15125 Try \`$0 --help' for more information." ;;
15127 *) as_fn_append ac_config_targets " $1"
15128 ac_need_defaults=false ;;
15134 ac_configure_extra_args=
15136 if $ac_cs_silent; then
15138 ac_configure_extra_args="$ac_configure_extra_args --silent"
15142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143 if \$ac_cs_recheck; then
15144 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15146 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15147 CONFIG_SHELL='$SHELL'
15148 export CONFIG_SHELL
15153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15158 ## Running $as_me. ##
15164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172 with_multisubdir="$with_multisubdir"
15173 with_multisrctop="$with_multisrctop"
15174 with_target_subdir="$with_target_subdir"
15175 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15176 multi_basedir="$multi_basedir"
15177 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15180 GFORTRAN="$GFORTRAN"
15182 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15185 # The HP-UX ksh and POSIX shell print the target directory to stdout
15186 # if CDPATH is set.
15187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15189 sed_quote_subst='$sed_quote_subst'
15190 double_quote_subst='$double_quote_subst'
15191 delay_variable_subst='$delay_variable_subst'
15192 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15193 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15194 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15195 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15196 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15197 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15198 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15199 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15200 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15201 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15203 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15204 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15205 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15206 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15207 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15208 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15209 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15210 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15211 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15212 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15213 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15214 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15215 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15216 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15217 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15218 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15219 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15220 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15221 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15222 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15223 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15224 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15225 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15226 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15227 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15228 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15229 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15230 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15231 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15232 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15233 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15234 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15235 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15236 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15237 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15238 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15239 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15240 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"`'
15241 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15242 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15243 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15244 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15245 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15246 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15247 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15248 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15249 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15250 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15251 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15252 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15253 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15254 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15255 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15256 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15257 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15258 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15259 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15260 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15261 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15262 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15263 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15264 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15265 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15266 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15267 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15268 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15269 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15270 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15271 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15272 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15273 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15274 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15275 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15276 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15277 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15278 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15279 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15280 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15281 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15282 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15283 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15284 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15285 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15286 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15287 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15288 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15289 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15290 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15291 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15292 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15293 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15294 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15295 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15296 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15297 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15298 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15299 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15300 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15301 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15302 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15303 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15304 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15305 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15306 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15307 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15308 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15309 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15310 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15311 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15312 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15313 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15314 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15315 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15316 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15317 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15318 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15319 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15320 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15321 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15322 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15323 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15324 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15325 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15326 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15327 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15328 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15329 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15330 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15331 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15332 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15333 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15334 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15335 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15336 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15337 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15338 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15339 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15340 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15341 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15342 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15343 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15344 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15345 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15346 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15347 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15348 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15349 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15350 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15351 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15352 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15353 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15354 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15357 LTCFLAGS='$LTCFLAGS'
15358 compiler='$compiler_DEFAULT'
15360 # A function that is used when there is no print builtin or printf.
15361 func_fallback_echo ()
15363 eval 'cat <<_LTECHO_EOF
15368 # Quote evaled strings.
15382 deplibs_check_method \
15391 lt_cv_sys_global_symbol_pipe \
15392 lt_cv_sys_global_symbol_to_cdecl \
15393 lt_cv_sys_global_symbol_to_c_name_address \
15394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15395 lt_prog_compiler_no_builtin_flag \
15396 lt_prog_compiler_wl \
15397 lt_prog_compiler_pic \
15398 lt_prog_compiler_static \
15399 lt_cv_prog_compiler_c_o \
15407 export_dynamic_flag_spec \
15408 whole_archive_flag_spec \
15409 compiler_needs_object \
15411 allow_undefined_flag \
15412 no_undefined_flag \
15413 hardcode_libdir_flag_spec \
15414 hardcode_libdir_flag_spec_ld \
15415 hardcode_libdir_separator \
15420 variables_saved_for_relink \
15422 library_names_spec \
15424 install_override_mode \
15431 lt_prog_compiler_no_builtin_flag_GO \
15432 lt_prog_compiler_wl_GO \
15433 lt_prog_compiler_pic_GO \
15434 lt_prog_compiler_static_GO \
15435 lt_cv_prog_compiler_c_o_GO \
15436 export_dynamic_flag_spec_GO \
15437 whole_archive_flag_spec_GO \
15438 compiler_needs_object_GO \
15440 allow_undefined_flag_GO \
15441 no_undefined_flag_GO \
15442 hardcode_libdir_flag_spec_GO \
15443 hardcode_libdir_flag_spec_ld_GO \
15444 hardcode_libdir_separator_GO \
15445 fix_srcfile_path_GO \
15446 exclude_expsyms_GO \
15447 include_expsyms_GO \
15448 file_list_spec_GO; do
15449 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15450 *[\\\\\\\`\\"\\\$]*)
15451 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15454 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15459 # Double-quote double-evaled strings.
15460 for var in reload_cmds \
15461 old_postinstall_cmds \
15462 old_postuninstall_cmds \
15464 extract_expsyms_cmds \
15465 old_archive_from_new_cmds \
15466 old_archive_from_expsyms_cmds \
15468 archive_expsym_cmds \
15470 module_expsym_cmds \
15471 export_symbols_cmds \
15474 postuninstall_cmds \
15476 sys_lib_search_path_spec \
15477 sys_lib_dlsearch_path_spec \
15479 old_archive_cmds_GO \
15480 old_archive_from_new_cmds_GO \
15481 old_archive_from_expsyms_cmds_GO \
15483 archive_expsym_cmds_GO \
15485 module_expsym_cmds_GO \
15486 export_symbols_cmds_GO \
15487 prelink_cmds_GO; do
15488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15489 *[\\\\\\\`\\"\\\$]*)
15490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15498 ac_aux_dir='$ac_aux_dir'
15499 xsi_shell='$xsi_shell'
15500 lt_shell_append='$lt_shell_append'
15502 # See if we are running on zsh, and set the options which allow our
15503 # commands through without removal of \ escapes INIT.
15504 if test -n "\${ZSH_VERSION+set}" ; then
15505 setopt NO_GLOB_SUBST
15511 TIMESTAMP='$TIMESTAMP'
15520 # Variables needed in config.status (file generation) which aren't already
15521 # passed by autoconf.
15527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15529 # Handling of arguments.
15530 for ac_config_target in $ac_config_targets
15532 case $ac_config_target in
15533 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15534 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15535 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15536 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15537 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15538 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15539 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15541 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15546 # If the user did not use the arguments to specify the items to instantiate,
15547 # then the envvar interface is used. Set only those that are not.
15548 # We use the long form for the default assignment because of an extremely
15549 # bizarre bug on SunOS 4.1.3.
15550 if $ac_need_defaults; then
15551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15556 # Have a temporary directory for convenience. Make it in the build tree
15557 # simply because there is no reason against having it here, and in addition,
15558 # creating and moving files from /tmp can sometimes cause problems.
15559 # Hook for its removal unless debugging.
15560 # Note that there is a small window in which the directory will not be cleaned:
15561 # after its creation but before its name has been assigned to `$tmp'.
15565 trap 'exit_status=$?
15566 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15568 trap 'as_fn_exit 1' 1 2 13 15
15570 # Create a (secure) tmp directory for tmp files.
15573 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15574 test -n "$tmp" && test -d "$tmp"
15577 tmp=./conf$$-$RANDOM
15578 (umask 077 && mkdir "$tmp")
15579 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15581 # Set up the scripts for CONFIG_FILES section.
15582 # No need to generate them if there are no CONFIG_FILES.
15583 # This happens for instance with `./config.status config.h'.
15584 if test -n "$CONFIG_FILES"; then
15587 ac_cr=`echo X | tr X '\015'`
15588 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15589 # But we know of no other shell where ac_cr would be empty at this
15590 # point, so we can use a bashism as a fallback.
15591 if test "x$ac_cr" = x; then
15592 eval ac_cr=\$\'\\r\'
15594 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15595 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15598 ac_cs_awk_cr=$ac_cr
15601 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15606 echo "cat >conf$$subs.awk <<_ACEOF" &&
15607 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15609 } >conf$$subs.sh ||
15610 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15611 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15613 for ac_last_try in false false false false false :; do
15614 . ./conf$$subs.sh ||
15615 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15617 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15618 if test $ac_delim_n = $ac_delim_num; then
15620 elif $ac_last_try; then
15621 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15623 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15626 rm -f conf$$subs.sh
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15633 s/^/S["/; s/!.*/"]=/
15643 s/\(.\{148\}\).*/\1/
15645 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15657 s/\(.\{148\}\).*/\1/
15659 s/["\\]/\\&/g; s/^/"/; s/$/"/
15663 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15668 ' <conf$$subs.awk | sed '
15673 ' >>$CONFIG_STATUS || ac_write_fail=1
15674 rm -f conf$$subs.awk
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15677 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15678 for (key in S) S_is_set[key] = 1
15684 nfields = split(line, field, "@")
15686 len = length(field[1])
15687 for (i = 2; i < nfields; i++) {
15689 keylen = length(key)
15690 if (S_is_set[key]) {
15692 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15693 len += length(value) + length(field[++i])
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15706 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15709 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15710 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15715 # trailing colons and then remove the whole line if VPATH becomes empty
15716 # (actually we leave an empty line to preserve line numbers).
15717 if test "x$srcdir" = x.; then
15718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15719 s/:*\$(srcdir):*/:/
15720 s/:*\${srcdir}:*/:/
15722 s/^\([^=]*=[ ]*\):*/\1/
15728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15729 fi # test -n "$CONFIG_FILES"
15731 # Set up the scripts for CONFIG_HEADERS section.
15732 # No need to generate them if there are no CONFIG_HEADERS.
15733 # This happens for instance with `./config.status Makefile'.
15734 if test -n "$CONFIG_HEADERS"; then
15735 cat >"$tmp/defines.awk" <<\_ACAWK ||
15739 # Transform confdefs.h into an awk script `defines.awk', embedded as
15740 # here-document in config.status, that substitutes the proper values into
15741 # config.h.in to produce config.h.
15743 # Create a delimiter string that does not exist in confdefs.h, to ease
15744 # handling of long lines.
15746 for ac_last_try in false false :; do
15747 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15748 if test -z "$ac_t"; then
15750 elif $ac_last_try; then
15751 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15757 # For the awk script, D is an array of macro values keyed by name,
15758 # likewise P contains macro parameters if any. Preserve backslash
15759 # newline sequences.
15761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15763 s/.\{148\}/&'"$ac_delim"'/g
15766 s/^[ ]*#[ ]*define[ ][ ]*/ /
15773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15780 D["\1"]=" \3\\\\\\n"\\/p
15782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15787 s/.\{148\}/&'"$ac_delim"'/g
15792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15797 ' <confdefs.h | sed '
15798 s/'"$ac_delim"'/"\\\
15799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15802 for (key in D) D_is_set[key] = 1
15805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15807 split(line, arg, " ")
15808 if (arg[1] == "#") {
15812 defundef = substr(arg[1], 2)
15815 split(mac1, mac2, "(") #)
15817 prefix = substr(line, 1, index(line, defundef) - 1)
15818 if (D_is_set[macro]) {
15819 # Preserve the white space surrounding the "#".
15820 print prefix "define", macro P[macro] D[macro]
15823 # Replace #undef with comments. This is necessary, for example,
15824 # in the case of _POSIX_SOURCE, which is predefined and required
15825 # on some systems where configure will not decide to define it.
15826 if (defundef == "undef") {
15827 print "/*", prefix defundef, macro, "*/"
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15837 fi # test -n "$CONFIG_HEADERS"
15840 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15845 :[FHLC]) ac_mode=$ac_tag; continue;;
15847 case $ac_mode$ac_tag in
15849 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15850 :[FH]-) ac_tag=-:-;;
15851 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15868 -) ac_f="$tmp/stdin";;
15869 *) # Look for the file first in the build tree, then in the source tree
15870 # (if the path is not absolute). The absolute path cannot be DOS-style,
15871 # because $ac_f cannot contain `:'.
15875 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15877 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15879 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15880 as_fn_append ac_file_inputs " '$ac_f'"
15883 # Let's still pretend it is `configure' which instantiates (i.e., don't
15884 # use $as_me), people would be surprised to read:
15885 # /* config.h. Generated by config.status. */
15886 configure_input='Generated from '`
15887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15889 if test x"$ac_file" != x-; then
15890 configure_input="$ac_file. $configure_input"
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15892 $as_echo "$as_me: creating $ac_file" >&6;}
15894 # Neutralize special characters interpreted by sed in replacement strings.
15895 case $configure_input in #(
15896 *\&* | *\|* | *\\* )
15897 ac_sed_conf_input=`$as_echo "$configure_input" |
15898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15899 *) ac_sed_conf_input=$configure_input;;
15903 *:-:* | *:-) cat >"$tmp/stdin" \
15904 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15909 ac_dir=`$as_dirname -- "$ac_file" ||
15910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15911 X"$ac_file" : 'X\(//\)[^/]' \| \
15912 X"$ac_file" : 'X\(//\)$' \| \
15913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15914 $as_echo X"$ac_file" |
15915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15919 /^X\(\/\/\)[^/].*/{
15932 as_dir="$ac_dir"; as_fn_mkdir_p
15936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15939 # A ".." for each directory in $ac_dir_suffix.
15940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15941 case $ac_top_builddir_sub in
15942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15946 ac_abs_top_builddir=$ac_pwd
15947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15948 # for backward compatibility:
15949 ac_top_builddir=$ac_top_build_prefix
15952 .) # We are building in place.
15954 ac_top_srcdir=$ac_top_builddir_sub
15955 ac_abs_top_srcdir=$ac_pwd ;;
15956 [\\/]* | ?:[\\/]* ) # Absolute name.
15957 ac_srcdir=$srcdir$ac_dir_suffix;
15958 ac_top_srcdir=$srcdir
15959 ac_abs_top_srcdir=$srcdir ;;
15960 *) # Relative name.
15961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15962 ac_top_srcdir=$ac_top_build_prefix$srcdir
15963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15976 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15978 ac_MKDIR_P=$MKDIR_P
15980 [\\/$]* | ?:[\\/]* ) ;;
15981 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15986 # If the template does not know about datarootdir, expand it.
15987 # FIXME: This hack should be removed a few years after 2.60.
15988 ac_datarootdir_hack=; ac_datarootdir_seen=
15999 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16000 *datarootdir*) ac_datarootdir_seen=yes;;
16001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16003 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006 ac_datarootdir_hack='
16007 s&@datadir@&$datadir&g
16008 s&@docdir@&$docdir&g
16009 s&@infodir@&$infodir&g
16010 s&@localedir@&$localedir&g
16011 s&@mandir@&$mandir&g
16012 s&\\\${datarootdir}&$datarootdir&g' ;;
16016 # Neutralize VPATH when `$srcdir' = `.'.
16017 # Shell code in configure.ac might set extrasub.
16018 # FIXME: do we really want to maintain this feature?
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 ac_sed_extra="$ac_vpsub
16023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16026 s|@configure_input@|$ac_sed_conf_input|;t t
16027 s&@top_builddir@&$ac_top_builddir_sub&;t t
16028 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16029 s&@srcdir@&$ac_srcdir&;t t
16030 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16031 s&@top_srcdir@&$ac_top_srcdir&;t t
16032 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16033 s&@builddir@&$ac_builddir&;t t
16034 s&@abs_builddir@&$ac_abs_builddir&;t t
16035 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16036 s&@INSTALL@&$ac_INSTALL&;t t
16037 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16038 $ac_datarootdir_hack
16040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16041 || as_fn_error "could not create $ac_file" "$LINENO" 5
16043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16044 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined. Please make sure it is defined." >&5
16048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16049 which seems to be undefined. Please make sure it is defined." >&2;}
16053 -) cat "$tmp/out" && rm -f "$tmp/out";;
16054 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16056 || as_fn_error "could not create $ac_file" "$LINENO" 5
16062 if test x"$ac_file" != x-; then
16064 $as_echo "/* $configure_input */" \
16065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16066 } >"$tmp/config.h" \
16067 || as_fn_error "could not create $ac_file" "$LINENO" 5
16068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16073 mv "$tmp/config.h" "$ac_file" \
16074 || as_fn_error "could not create $ac_file" "$LINENO" 5
16077 $as_echo "/* $configure_input */" \
16078 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16079 || as_fn_error "could not create -" "$LINENO" 5
16081 # Compute "$ac_file"'s index in $config_headers.
16084 for _am_header in $config_headers :; do
16085 case $_am_header in
16086 $_am_arg | $_am_arg:* )
16089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16094 X"$_am_arg" : 'X\(//\)[^/]' \| \
16095 X"$_am_arg" : 'X\(//\)$' \| \
16096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16097 $as_echo X"$_am_arg" |
16098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16102 /^X\(\/\/\)[^/].*/{
16114 s/.*/./; q'`/stamp-h$_am_stamp_count
16117 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16118 $as_echo "$as_me: executing $ac_file commands" >&6;}
16123 case $ac_file$ac_mode in
16125 # Only add multilib support code if we just rebuilt the top-level
16127 case " $CONFIG_FILES " in
16129 ac_file=Makefile . ${multi_basedir}/config-ml.in
16132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16133 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16134 # are listed without --file. Let's play safe and only enable the eval
16135 # if we detect the quoting.
16136 case $CONFIG_FILES in
16137 *\'*) eval set x "$CONFIG_FILES" ;;
16138 *) set x $CONFIG_FILES ;;
16143 # Strip MF so we end up with the name of the file.
16144 mf=`echo "$mf" | sed -e 's/:.*$//'`
16145 # Check whether this is an Automake generated Makefile or not.
16146 # We used to match only the files named `Makefile.in', but
16147 # some people rename them; so instead we look at the file content.
16148 # Grep'ing the first line is not enough: some people post-process
16149 # each Makefile.in and add a new line on top of each file to say so.
16150 # Grep'ing the whole file is not good either: AIX grep has a line
16151 # limit of 2048, but all sed's we know have understand at least 4000.
16152 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16153 dirpart=`$as_dirname -- "$mf" ||
16154 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16155 X"$mf" : 'X\(//\)[^/]' \| \
16156 X"$mf" : 'X\(//\)$' \| \
16157 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16163 /^X\(\/\/\)[^/].*/{
16179 # Extract the definition of DEPDIR, am__include, and am__quote
16180 # from the Makefile without running `make'.
16181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16182 test -z "$DEPDIR" && continue
16183 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16184 test -z "am__include" && continue
16185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16186 # When using ansi2knr, U may be empty or an underscore; expand it
16187 U=`sed -n 's/^U = //p' < "$mf"`
16188 # Find all dependency output files, they are included files with
16189 # $(DEPDIR) in their names. We invoke sed twice because it is the
16190 # simplest approach to changing $(DEPDIR) to its actual value in the
16192 for file in `sed -n "
16193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16195 # Make sure the directory exists.
16196 test -f "$dirpart/$file" && continue
16197 fdir=`$as_dirname -- "$file" ||
16198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16199 X"$file" : 'X\(//\)[^/]' \| \
16200 X"$file" : 'X\(//\)$' \| \
16201 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16202 $as_echo X"$file" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16207 /^X\(\/\/\)[^/].*/{
16220 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16221 # echo "creating $dirpart/$file"
16222 echo '# dummy' > "$dirpart/$file"
16229 # See if we are running on zsh, and set the options which allow our
16230 # commands through without removal of \ escapes.
16231 if test -n "${ZSH_VERSION+set}" ; then
16232 setopt NO_GLOB_SUBST
16235 cfgfile="${ofile}T"
16236 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16239 cat <<_LT_EOF >> "$cfgfile"
16242 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16243 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16245 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16247 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16248 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16249 # Written by Gordon Matzigkeit, 1996
16251 # This file is part of GNU Libtool.
16253 # GNU Libtool is free software; you can redistribute it and/or
16254 # modify it under the terms of the GNU General Public License as
16255 # published by the Free Software Foundation; either version 2 of
16256 # the License, or (at your option) any later version.
16258 # As a special exception to the GNU General Public License,
16259 # if you distribute this file as part of a program or library that
16260 # is built using GNU Libtool, you may include this file under the
16261 # same distribution terms that you use for the rest of that program.
16263 # GNU Libtool is distributed in the hope that it will be useful,
16264 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16266 # GNU General Public License for more details.
16268 # You should have received a copy of the GNU General Public License
16269 # along with GNU Libtool; see the file COPYING. If not, a copy
16270 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16271 # obtained by writing to the Free Software Foundation, Inc.,
16272 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16275 # The names of the tagged configurations supported by this script.
16276 available_tags="GO "
16278 # ### BEGIN LIBTOOL CONFIG
16280 # A sed program that does not truncate output.
16283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16284 Xsed="\$SED -e 1s/^X//"
16286 # A grep program that handles long lines.
16292 # A literal string matcher.
16295 # Shell to use when invoking shell scripts.
16298 # An echo program that protects backslashes.
16301 # Which release of libtool.m4 was used?
16302 macro_version=$macro_version
16303 macro_revision=$macro_revision
16305 # Whether or not to build shared libraries.
16306 build_libtool_libs=$enable_shared
16308 # Whether or not to build static libraries.
16309 build_old_libs=$enable_static
16311 # What type of objects to build.
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16318 host_alias=$host_alias
16322 # The build system.
16323 build_alias=$build_alias
16327 # A BSD- or MS-compatible name lister.
16330 # Whether we need soft or hard links.
16333 # What is the maximum length of a command?
16334 max_cmd_len=$max_cmd_len
16336 # Object file suffix (normally "o").
16339 # Executable file suffix (normally "").
16342 # whether the shell understands "unset".
16345 # turn spaces into newlines.
16348 # turn newlines into spaces.
16351 # An object symbol dumper.
16352 OBJDUMP=$lt_OBJDUMP
16354 # Method to check whether dependent libraries are shared objects.
16355 deplibs_check_method=$lt_deplibs_check_method
16357 # Command to use when deplibs_check_method == "file_magic".
16358 file_magic_cmd=$lt_file_magic_cmd
16362 AR_FLAGS=$lt_AR_FLAGS
16364 # A symbol stripping program.
16367 # Commands used to install an old-style archive.
16369 old_postinstall_cmds=$lt_old_postinstall_cmds
16370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16372 # Whether to use a lock for old archive extraction.
16373 lock_old_archive_extraction=$lock_old_archive_extraction
16378 # LTCC compiler flags.
16379 LTCFLAGS=$lt_CFLAGS
16381 # Take the output of nm and produce a listing of raw symbols and C names.
16382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16384 # Transform the output of nm in a proper C declaration.
16385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16387 # Transform the output of nm in a C name address pair.
16388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16390 # Transform the output of nm in a C name address pair when lib prefix is needed.
16391 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16393 # The name of the directory that contains temporary libtool files.
16396 # Used to examine libraries when file_magic_cmd begins with "file".
16397 MAGIC_CMD=$MAGIC_CMD
16399 # Must we lock files when doing compilation?
16400 need_locks=$lt_need_locks
16402 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16403 DSYMUTIL=$lt_DSYMUTIL
16405 # Tool to change global to local symbols on Mac OS X.
16408 # Tool to manipulate fat objects and archives on Mac OS X.
16411 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16414 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16415 OTOOL64=$lt_OTOOL64
16417 # Old archive suffix (normally "a").
16420 # Shared library suffix (normally ".so").
16421 shrext_cmds=$lt_shrext_cmds
16423 # The commands to extract the exported symbol list from a shared archive.
16424 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16426 # Variables whose values should be saved in libtool wrapper scripts and
16427 # restored at link time.
16428 variables_saved_for_relink=$lt_variables_saved_for_relink
16430 # Do we need the "lib" prefix for modules?
16431 need_lib_prefix=$need_lib_prefix
16433 # Do we need a version for libraries?
16434 need_version=$need_version
16436 # Library versioning type.
16437 version_type=$version_type
16439 # Shared library runtime path variable.
16440 runpath_var=$runpath_var
16442 # Shared library path variable.
16443 shlibpath_var=$shlibpath_var
16445 # Is shlibpath searched before the hard-coded library search path?
16446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16448 # Format of library name prefix.
16449 libname_spec=$lt_libname_spec
16451 # List of archive names. First name is the real one, the rest are links.
16452 # The last name is the one that the linker finds with -lNAME
16453 library_names_spec=$lt_library_names_spec
16455 # The coded name of the library, if different from the real name.
16456 soname_spec=$lt_soname_spec
16458 # Permission mode override for installation of shared libraries.
16459 install_override_mode=$lt_install_override_mode
16461 # Command to use after installation of a shared archive.
16462 postinstall_cmds=$lt_postinstall_cmds
16464 # Command to use after uninstallation of a shared archive.
16465 postuninstall_cmds=$lt_postuninstall_cmds
16467 # Commands used to finish a libtool library installation in a directory.
16468 finish_cmds=$lt_finish_cmds
16470 # As "finish_cmds", except a single script fragment to be evaled but
16472 finish_eval=$lt_finish_eval
16474 # Whether we should hardcode library paths into libraries.
16475 hardcode_into_libs=$hardcode_into_libs
16477 # Compile-time system search path for libraries.
16478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16480 # Run-time system search path for libraries.
16481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16483 # Whether dlopen is supported.
16484 dlopen_support=$enable_dlopen
16486 # Whether dlopen of programs is supported.
16487 dlopen_self=$enable_dlopen_self
16489 # Whether dlopen of statically linked programs is supported.
16490 dlopen_self_static=$enable_dlopen_self_static
16492 # Commands to strip libraries.
16493 old_striplib=$lt_old_striplib
16494 striplib=$lt_striplib
16497 # The linker used to build libraries.
16500 # How to create reloadable object files.
16501 reload_flag=$lt_reload_flag
16502 reload_cmds=$lt_reload_cmds
16504 # Commands used to build an old-style archive.
16505 old_archive_cmds=$lt_old_archive_cmds
16507 # A language specific compiler.
16510 # Is the compiler the GNU compiler?
16513 # Compiler flag to turn off builtin functions.
16514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16516 # How to pass a linker flag through the compiler.
16517 wl=$lt_lt_prog_compiler_wl
16519 # Additional compiler flags for building library objects.
16520 pic_flag=$lt_lt_prog_compiler_pic
16522 # Compiler flag to prevent dynamic linking.
16523 link_static_flag=$lt_lt_prog_compiler_static
16525 # Does compiler simultaneously support -c and -o options?
16526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16528 # Whether or not to add -lc for building shared libraries.
16529 build_libtool_need_lc=$archive_cmds_need_lc
16531 # Whether or not to disallow shared libs when runtime libs are static.
16532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16534 # Compiler flag to allow reflexive dlopens.
16535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16537 # Compiler flag to generate shared objects directly from archives.
16538 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16540 # Whether the compiler copes with passing no objects directly.
16541 compiler_needs_object=$lt_compiler_needs_object
16543 # Create an old-style archive from a shared archive.
16544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16546 # Create a temporary old-style archive to link instead of a shared archive.
16547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16549 # Commands used to build a shared archive.
16550 archive_cmds=$lt_archive_cmds
16551 archive_expsym_cmds=$lt_archive_expsym_cmds
16553 # Commands used to build a loadable module if different from building
16554 # a shared archive.
16555 module_cmds=$lt_module_cmds
16556 module_expsym_cmds=$lt_module_expsym_cmds
16558 # Whether we are building with GNU ld or not.
16559 with_gnu_ld=$lt_with_gnu_ld
16561 # Flag that allows shared libraries with undefined symbols to be built.
16562 allow_undefined_flag=$lt_allow_undefined_flag
16564 # Flag that enforces no undefined symbols.
16565 no_undefined_flag=$lt_no_undefined_flag
16567 # Flag to hardcode \$libdir into a binary during linking.
16568 # This must work even if \$libdir does not exist
16569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16571 # If ld is used when linking, flag to hardcode \$libdir into a binary
16572 # during linking. This must work even if \$libdir does not exist.
16573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16575 # Whether we need a single "-rpath" flag with a separated argument.
16576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16579 # DIR into the resulting binary.
16580 hardcode_direct=$hardcode_direct
16582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16583 # DIR into the resulting binary and the resulting library dependency is
16584 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16585 # library is relocated.
16586 hardcode_direct_absolute=$hardcode_direct_absolute
16588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16589 # into the resulting binary.
16590 hardcode_minus_L=$hardcode_minus_L
16592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16593 # into the resulting binary.
16594 hardcode_shlibpath_var=$hardcode_shlibpath_var
16596 # Set to "yes" if building a shared library automatically hardcodes DIR
16597 # into the library and all subsequent libraries and executables linked
16599 hardcode_automatic=$hardcode_automatic
16601 # Set to yes if linker adds runtime paths of dependent libraries
16602 # to runtime path list.
16603 inherit_rpath=$inherit_rpath
16605 # Whether libtool must link a program against all its dependency libraries.
16606 link_all_deplibs=$link_all_deplibs
16608 # Fix the shell variable \$srcfile for the compiler.
16609 fix_srcfile_path=$lt_fix_srcfile_path
16611 # Set to "yes" if exported symbols are required.
16612 always_export_symbols=$always_export_symbols
16614 # The commands to list exported symbols.
16615 export_symbols_cmds=$lt_export_symbols_cmds
16617 # Symbols that should not be listed in the preloaded symbols.
16618 exclude_expsyms=$lt_exclude_expsyms
16620 # Symbols that must always be exported.
16621 include_expsyms=$lt_include_expsyms
16623 # Commands necessary for linking programs (against libraries) with templates.
16624 prelink_cmds=$lt_prelink_cmds
16626 # Specify filename containing input files.
16627 file_list_spec=$lt_file_list_spec
16629 # How to hardcode a shared library path into an executable.
16630 hardcode_action=$hardcode_action
16632 # ### END LIBTOOL CONFIG
16638 cat <<\_LT_EOF >> "$cfgfile"
16639 # AIX sometimes has problems with the GCC collect2 program. For some
16640 # reason, if we set the COLLECT_NAMES environment variable, the problems
16641 # vanish in a puff of smoke.
16642 if test "X${COLLECT_NAMES+set}" != Xset; then
16644 export COLLECT_NAMES
16651 ltmain="$ac_aux_dir/ltmain.sh"
16654 # We use sed instead of cat because bash on DJGPP gets confused if
16655 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16656 # text mode, it properly converts lines to CR/LF. This bash problem
16657 # is reportedly fixed, but why not run on old versions too?
16658 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16659 || (rm -f "$cfgfile"; exit 1)
16663 cat << \_LT_EOF >> "$cfgfile"
16665 # func_dirname file append nondir_replacement
16666 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16667 # otherwise set result to NONDIR_REPLACEMENT.
16671 */*) func_dirname_result="${1%/*}${2}" ;;
16672 * ) func_dirname_result="${3}" ;;
16676 # func_basename file
16679 func_basename_result="${1##*/}"
16682 # func_dirname_and_basename file append nondir_replacement
16683 # perform func_basename and func_dirname in a single function
16685 # dirname: Compute the dirname of FILE. If nonempty,
16686 # add APPEND to the result, otherwise set result
16687 # to NONDIR_REPLACEMENT.
16688 # value returned in "$func_dirname_result"
16689 # basename: Compute filename of FILE.
16690 # value retuned in "$func_basename_result"
16691 # Implementation must be kept synchronized with func_dirname
16692 # and func_basename. For efficiency, we do not delegate to
16693 # those functions but instead duplicate the functionality here.
16694 func_dirname_and_basename ()
16697 */*) func_dirname_result="${1%/*}${2}" ;;
16698 * ) func_dirname_result="${3}" ;;
16700 func_basename_result="${1##*/}"
16703 # func_stripname prefix suffix name
16704 # strip PREFIX and SUFFIX off of NAME.
16705 # PREFIX and SUFFIX must not contain globbing or regex special
16706 # characters, hashes, percent signs, but SUFFIX may contain a leading
16707 # dot (in which case that matches only a dot).
16710 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16711 # positional parameters, so assign one to ordinary parameter first.
16712 func_stripname_result=${3}
16713 func_stripname_result=${func_stripname_result#"${1}"}
16714 func_stripname_result=${func_stripname_result%"${2}"}
16720 func_opt_split_opt=${1%%=*}
16721 func_opt_split_arg=${1#*=}
16728 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16729 *) func_lo2o_result=${1} ;;
16733 # func_xform libobj-or-source
16736 func_xform_result=${1%.*}.lo
16739 # func_arith arithmetic-term...
16742 func_arith_result=$(( $* ))
16746 # STRING may not start with a hyphen.
16749 func_len_result=${#1}
16754 *) # Bourne compatible functions.
16755 cat << \_LT_EOF >> "$cfgfile"
16757 # func_dirname file append nondir_replacement
16758 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16759 # otherwise set result to NONDIR_REPLACEMENT.
16762 # Extract subdirectory from the argument.
16763 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16764 if test "X$func_dirname_result" = "X${1}"; then
16765 func_dirname_result="${3}"
16767 func_dirname_result="$func_dirname_result${2}"
16771 # func_basename file
16774 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16778 # func_stripname prefix suffix name
16779 # strip PREFIX and SUFFIX off of NAME.
16780 # PREFIX and SUFFIX must not contain globbing or regex special
16781 # characters, hashes, percent signs, but SUFFIX may contain a leading
16782 # dot (in which case that matches only a dot).
16783 # func_strip_suffix prefix name
16787 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16788 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16793 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16794 my_sed_long_arg='1s/^-[^=]*=//'
16799 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16800 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16806 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16809 # func_xform libobj-or-source
16812 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16815 # func_arith arithmetic-term...
16818 func_arith_result=`expr "$@"`
16822 # STRING may not start with a hyphen.
16825 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16831 case $lt_shell_append in
16833 cat << \_LT_EOF >> "$cfgfile"
16835 # func_append var value
16836 # Append VALUE to the end of shell variable VAR.
16844 cat << \_LT_EOF >> "$cfgfile"
16846 # func_append var value
16847 # Append VALUE to the end of shell variable VAR.
16858 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16859 || (rm -f "$cfgfile"; exit 1)
16861 mv -f "$cfgfile" "$ofile" ||
16862 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16866 cat <<_LT_EOF >> "$ofile"
16868 # ### BEGIN LIBTOOL TAG CONFIG: GO
16870 # The linker used to build libraries.
16873 # How to create reloadable object files.
16874 reload_flag=$lt_reload_flag_GO
16875 reload_cmds=$lt_reload_cmds_GO
16877 # Commands used to build an old-style archive.
16878 old_archive_cmds=$lt_old_archive_cmds_GO
16880 # A language specific compiler.
16883 # Is the compiler the GNU compiler?
16886 # Compiler flag to turn off builtin functions.
16887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16889 # How to pass a linker flag through the compiler.
16890 wl=$lt_lt_prog_compiler_wl_GO
16892 # Additional compiler flags for building library objects.
16893 pic_flag=$lt_lt_prog_compiler_pic_GO
16895 # Compiler flag to prevent dynamic linking.
16896 link_static_flag=$lt_lt_prog_compiler_static_GO
16898 # Does compiler simultaneously support -c and -o options?
16899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16901 # Whether or not to add -lc for building shared libraries.
16902 build_libtool_need_lc=$archive_cmds_need_lc_GO
16904 # Whether or not to disallow shared libs when runtime libs are static.
16905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16907 # Compiler flag to allow reflexive dlopens.
16908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16910 # Compiler flag to generate shared objects directly from archives.
16911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16913 # Whether the compiler copes with passing no objects directly.
16914 compiler_needs_object=$lt_compiler_needs_object_GO
16916 # Create an old-style archive from a shared archive.
16917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16919 # Create a temporary old-style archive to link instead of a shared archive.
16920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16922 # Commands used to build a shared archive.
16923 archive_cmds=$lt_archive_cmds_GO
16924 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16926 # Commands used to build a loadable module if different from building
16927 # a shared archive.
16928 module_cmds=$lt_module_cmds_GO
16929 module_expsym_cmds=$lt_module_expsym_cmds_GO
16931 # Whether we are building with GNU ld or not.
16932 with_gnu_ld=$lt_with_gnu_ld_GO
16934 # Flag that allows shared libraries with undefined symbols to be built.
16935 allow_undefined_flag=$lt_allow_undefined_flag_GO
16937 # Flag that enforces no undefined symbols.
16938 no_undefined_flag=$lt_no_undefined_flag_GO
16940 # Flag to hardcode \$libdir into a binary during linking.
16941 # This must work even if \$libdir does not exist
16942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16944 # If ld is used when linking, flag to hardcode \$libdir into a binary
16945 # during linking. This must work even if \$libdir does not exist.
16946 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16948 # Whether we need a single "-rpath" flag with a separated argument.
16949 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16952 # DIR into the resulting binary.
16953 hardcode_direct=$hardcode_direct_GO
16955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16956 # DIR into the resulting binary and the resulting library dependency is
16957 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16958 # library is relocated.
16959 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16962 # into the resulting binary.
16963 hardcode_minus_L=$hardcode_minus_L_GO
16965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16966 # into the resulting binary.
16967 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16969 # Set to "yes" if building a shared library automatically hardcodes DIR
16970 # into the library and all subsequent libraries and executables linked
16972 hardcode_automatic=$hardcode_automatic_GO
16974 # Set to yes if linker adds runtime paths of dependent libraries
16975 # to runtime path list.
16976 inherit_rpath=$inherit_rpath_GO
16978 # Whether libtool must link a program against all its dependency libraries.
16979 link_all_deplibs=$link_all_deplibs_GO
16981 # Fix the shell variable \$srcfile for the compiler.
16982 fix_srcfile_path=$lt_fix_srcfile_path_GO
16984 # Set to "yes" if exported symbols are required.
16985 always_export_symbols=$always_export_symbols_GO
16987 # The commands to list exported symbols.
16988 export_symbols_cmds=$lt_export_symbols_cmds_GO
16990 # Symbols that should not be listed in the preloaded symbols.
16991 exclude_expsyms=$lt_exclude_expsyms_GO
16993 # Symbols that must always be exported.
16994 include_expsyms=$lt_include_expsyms_GO
16996 # Commands necessary for linking programs (against libraries) with templates.
16997 prelink_cmds=$lt_prelink_cmds_GO
16999 # Specify filename containing input files.
17000 file_list_spec=$lt_file_list_spec_GO
17002 # How to hardcode a shared library path into an executable.
17003 hardcode_action=$hardcode_action_GO
17005 # ### END LIBTOOL TAG CONFIG: GO
17009 "default":C) if test -n "$CONFIG_FILES"; then
17010 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17011 # that multilib installs will end up installed in the correct place.
17012 # The testsuite needs it for multilib-aware ABI baseline files.
17013 # To work around this not being passed down from config-ml.in ->
17014 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17015 # append it here. Only modify Makefiles that have just been created.
17017 # Also, get rid of this simulated-VPATH thing that automake does.
17018 cat > vpsed << \_EOF
17019 s!`test -f '$<' || echo '$(srcdir)/'`!!
17021 for i in $SUBDIRS; do
17022 case $CONFIG_FILES in
17024 #echo "Adding MULTISUBDIR to $i/Makefile"
17025 sed -f vpsed $i/Makefile > tmp
17026 grep '^MULTISUBDIR =' Makefile >> tmp
17041 ac_clean_files=$ac_clean_files_save
17043 test $ac_write_fail = 0 ||
17044 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17047 # configure is writing to config.log, and then calls config.status.
17048 # config.status does its own redirection, appending to config.log.
17049 # Unfortunately, on DOS this fails, as config.log is still kept open
17050 # by configure, so config.status won't be able to write to it; its
17051 # output is simply discarded. So we exec the FD to /dev/null,
17052 # effectively closing config.log, so it can be properly (re)opened and
17053 # appended to by config.status. When coming back to configure, we
17054 # need to make the FD available again.
17055 if test "$no_create" != yes; then
17057 ac_config_status_args=
17058 test "$silent" = yes &&
17059 ac_config_status_args="$ac_config_status_args --quiet"
17061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17064 # would make configure fail if this is the last instruction.
17065 $ac_cs_success || as_fn_exit $?
17067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}