2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
608 HAVE_STRERROR_R_FALSE
610 HAVE_SYS_MMAN_H_FALSE
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
620 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
621 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
623 LIBGO_IS_X86_64_FALSE
625 LIBGO_IS_SPARC64_FALSE
626 LIBGO_IS_SPARC64_TRUE
633 LIBGO_IS_MIPSO64_FALSE
634 LIBGO_IS_MIPSO64_TRUE
635 LIBGO_IS_MIPSN64_FALSE
636 LIBGO_IS_MIPSN64_TRUE
637 LIBGO_IS_MIPSN32_FALSE
638 LIBGO_IS_MIPSN32_TRUE
639 LIBGO_IS_MIPSO32_FALSE
640 LIBGO_IS_MIPSO32_TRUE
650 LIBGO_IS_SOLARIS_FALSE
651 LIBGO_IS_SOLARIS_TRUE
658 LIBGO_IS_FREEBSD_FALSE
659 LIBGO_IS_FREEBSD_TRUE
660 LIBGO_IS_DARWIN_FALSE
664 glibgo_toolexeclibdir
692 MAINTAINER_MODE_FALSE
720 INSTALL_STRIP_PROGRAM
776 program_transform_name
789 enable_option_checking
791 enable_dependency_tracking
792 enable_maintainer_mode
799 enable_version_specific_runtime_libs
801 with_system_libunwind
802 enable_sjlj_exceptions
804 ac_precious_vars='build_alias
811 # Initialize some variables set by options.
813 ac_init_version=false
814 ac_unrecognized_opts=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval with_$ac_useropt=no ;;
1176 # Obsolete; use --with-x.
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1350 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of package-unused version-unused:";;
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-multilib build many library versions (default)
1430 --disable-dependency-tracking speeds up one-time build
1431 --enable-dependency-tracking do not reject slow dependency extractors
1432 --enable-maintainer-mode enable make rules and dependencies not useful
1433 (and sometimes confusing) to the casual installer
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-static[=PKGS] build static libraries [default=yes]
1436 --enable-fast-install[=PKGS]
1437 optimize for fast installation [default=yes]
1438 --disable-libtool-lock avoid locking (might break parallel builds)
1439 --enable-version-specific-runtime-libs
1440 Specify that runtime libraries should be installed
1441 in a compiler-specific directory
1442 --enable-sjlj-exceptions
1443 force use of builtin_setjmp for exceptions
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449 --with-pic try to use only PIC/non-PIC objects [default=use
1451 --without-libffi don't use libffi
1452 --with-system-libunwind use installed libunwind
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 GOC Go compiler command
1463 GOCFLAGS Go compiler flags
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1469 Report bugs to the package provider.
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1532 package-unused configure version-unused
1533 generated by GNU Autoconf 2.64
1535 Copyright (C) 2009 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 } # ac_fn_c_try_compile
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 $as_test_x conftest$ac_exeext
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622 # interfere with the next link command; also delete a directory that is
1623 # left behind by Apple's compiler. We do this before executing the actions.
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 } # ac_fn_c_try_link
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640 $as_echo_n "(cached) " >&6
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1647 if ac_fn_c_try_compile "$LINENO"; then :
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 } # ac_fn_c_check_header_compile
1661 # ac_fn_c_try_cpp LINENO
1662 # ----------------------
1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 if { { ac_try="$ac_cpp conftest.$ac_ext"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } >/dev/null && {
1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 if { { ac_try="$ac_link"
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>&5
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716 { { case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_try") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; }; }; then :
1728 $as_echo "$as_me: program exited with status $ac_status" >&5
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1732 ac_retval=$ac_status
1734 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 $as_echo_n "(cached) " >&6
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1755 #define $2 innocuous_$2
1757 /* System header to define __stub macros and hopefully few prototypes,
1758 which can conflict with char $2 (); below.
1759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760 <limits.h> exists even on freestanding compilers. */
1763 # include <limits.h>
1765 # include <assert.h>
1770 /* Override any GCC internal prototype to avoid an error.
1771 Use char because int might match the return type of a GCC
1772 builtin and then its argument prototype would still apply. */
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined __stub_$2 || defined __stub___$2
1792 if ac_fn_c_try_link "$LINENO"; then :
1797 rm -f core conftest.err conftest.$ac_objext \
1798 conftest$ac_exeext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 } # ac_fn_c_check_func
1807 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810 # the include files in INCLUDES and setting the cache variable VAR
1812 ac_fn_c_check_header_mongrel ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1825 # Is the header compilable?
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827 $as_echo_n "checking $2 usability... " >&6; }
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834 ac_header_compiler=yes
1836 ac_header_compiler=no
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840 $as_echo "$ac_header_compiler" >&6; }
1842 # Is the header present?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844 $as_echo_n "checking $2 presence... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1849 if ac_fn_c_try_cpp "$LINENO"; then :
1850 ac_header_preproc=yes
1852 ac_header_preproc=no
1854 rm -f conftest.err conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856 $as_echo "$ac_header_preproc" >&6; }
1858 # So? What about this header?
1859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1870 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1874 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1884 eval "$3=\$ac_header_compiler"
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 } # ac_fn_c_check_header_mongrel
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 } # ac_fn_c_check_type
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1951 It was created by package-unused $as_me version-unused, which was
1952 generated by GNU Autoconf 2.64. Invocation command line was
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1973 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1974 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1977 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1978 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1979 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 $as_echo "PATH: $as_dir"
2004 # Keep a trace of the command line.
2005 # Strip out --no-create and --no-recursion so they do not pile up.
2006 # Strip out --silent because we don't want to record it for future runs.
2007 # Also quote any args containing shell meta-characters.
2008 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_must_keep_next=false
2018 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020 | -silent | --silent | --silen | --sile | --sil)
2023 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028 as_fn_append ac_configure_args1 " '$ac_arg'"
2029 if test $ac_must_keep_next = true; then
2030 ac_must_keep_next=false # Got value, back to normal.
2033 *=* | --config-cache | -C | -disable-* | --disable-* \
2034 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036 | -with-* | --with-* | -without-* | --without-* | --x)
2037 case "$ac_configure_args0 " in
2038 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041 -* ) ac_must_keep_next=true ;;
2044 as_fn_append ac_configure_args " '$ac_arg'"
2049 { ac_configure_args0=; unset ac_configure_args0;}
2050 { ac_configure_args1=; unset ac_configure_args1;}
2052 # When interrupted or exit'd, cleanup temporary files, and complete
2053 # config.log. We remove comments because anyway the quotes in there
2054 # would cause problems or look ugly.
2055 # WARNING: Use '\'' to represent an apostrophe within the trap.
2056 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057 trap 'exit_status=$?
2058 # Save into config.log some information that might help in debugging.
2063 ## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##
2068 # The following way of writing the cache mishandles newlines in values,
2070 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071 eval ac_val=\$$ac_var
2075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 _ | IFS | as_nl) ;; #(
2080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081 *) { eval $ac_var=; unset $ac_var;} ;;
2086 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087 *${as_nl}ac_space=\ *)
2089 "s/'\''/'\''\\\\'\'''\''/g;
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 ## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##
2106 for ac_var in $ac_subst_vars
2108 eval ac_val=\$$ac_var
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 $as_echo "$ac_var='\''$ac_val'\''"
2116 if test -n "$ac_subst_files"; then
2118 ## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##
2123 for ac_var in $ac_subst_files
2125 eval ac_val=\$$ac_var
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 $as_echo "$ac_var='\''$ac_val'\''"
2134 if test -s confdefs.h; then
2144 test "$ac_signal" != 0 &&
2145 $as_echo "$as_me: caught signal $ac_signal"
2146 $as_echo "$as_me: exit $exit_status"
2148 rm -f core *.core core.conftest.* &&
2149 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152 for ac_signal in 1 2 13 15; do
2153 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2160 $as_echo "/* confdefs.h */" > confdefs.h
2162 # Predefined preprocessor variables.
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2193 if test -n "$CONFIG_SITE"; then
2194 ac_site_file1=$CONFIG_SITE
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_file1=$prefix/share/config.site
2197 ac_site_file2=$prefix/etc/config.site
2199 ac_site_file1=$ac_default_prefix/share/config.site
2200 ac_site_file2=$ac_default_prefix/etc/config.site
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 test "x$ac_site_file" = xNONE && continue
2205 if test -r "$ac_site_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208 sed 's/^/| /' "$ac_site_file" >&5
2213 if test -r "$cache_file"; then
2214 # Some versions of bash will fail to source /dev/null (special
2215 # files actually), so we avoid doing that.
2216 if test -f "$cache_file"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218 $as_echo "$as_me: loading cache $cache_file" >&6;}
2220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221 *) . "./$cache_file";;
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226 $as_echo "$as_me: creating cache $cache_file" >&6;}
2230 # Check that the precious variables saved in the cache have kept the same
2232 ac_cache_corrupted=false
2233 for ac_var in $ac_precious_vars; do
2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235 eval ac_new_set=\$ac_env_${ac_var}_set
2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237 eval ac_new_val=\$ac_env_${ac_var}_value
2238 case $ac_old_set,$ac_new_set in
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242 ac_cache_corrupted=: ;;
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2249 if test "x$ac_old_val" != "x$ac_new_val"; then
2250 # differences in whitespace do not lead to failure.
2251 ac_old_val_w=`echo x $ac_old_val`
2252 ac_new_val_w=`echo x $ac_new_val`
2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256 ac_cache_corrupted=:
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260 eval $ac_var=\$ac_old_val
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2268 # Pass precious variables to config.status.
2269 if test "$ac_new_set" = set; then
2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 *) ac_arg=$ac_var=$ac_new_val ;;
2274 case " $ac_configure_args " in
2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280 if $ac_cache_corrupted; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302 ac_config_headers="$ac_config_headers config.h"
2305 libtool_VERSION=1:0:0
2308 # Default to --enable-multilib
2309 # Check whether --enable-multilib was given.
2310 if test "${enable_multilib+set}" = set; then :
2311 enableval=$enable_multilib; case "$enableval" in
2312 yes) multilib=yes ;;
2314 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2321 # We may get other options which we leave undocumented:
2322 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2323 # See config-ml.in if you want the gory details.
2325 if test "$srcdir" = "."; then
2326 if test "$with_target_subdir" != "."; then
2327 multi_basedir="$srcdir/$with_multisrctop../.."
2329 multi_basedir="$srcdir/$with_multisrctop.."
2332 multi_basedir="$srcdir/.."
2336 # Even if the default multilib is not a cross compilation,
2337 # it may be that some of the other multilibs are.
2338 if test $cross_compiling = no && test $multilib = yes \
2339 && test "x${with_multisubdir}" != x ; then
2340 cross_compiling=maybe
2343 ac_config_commands="$ac_config_commands default-1"
2347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348 for ac_t in install-sh install.sh shtool; do
2349 if test -f "$ac_dir/$ac_t"; then
2351 ac_install_sh="$ac_aux_dir/$ac_t -c"
2356 if test -z "$ac_aux_dir"; then
2357 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2360 # These three variables are undocumented and unsupported,
2361 # and are intended to be withdrawn in a future Autoconf release.
2362 # They can cause serious problems if a builder's source tree is in a directory
2363 # whose full name contains unusual characters.
2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2366 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2369 # Make sure we can run config.sub.
2370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2371 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2374 $as_echo_n "checking build system type... " >&6; }
2375 if test "${ac_cv_build+set}" = set; then :
2376 $as_echo_n "(cached) " >&6
2378 ac_build_alias=$build_alias
2379 test "x$ac_build_alias" = x &&
2380 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2381 test "x$ac_build_alias" = x &&
2382 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2384 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2388 $as_echo "$ac_cv_build" >&6; }
2389 case $ac_cv_build in
2391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2394 ac_save_IFS=$IFS; IFS='-'
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2408 $as_echo_n "checking host system type... " >&6; }
2409 if test "${ac_cv_host+set}" = set; then :
2410 $as_echo_n "(cached) " >&6
2412 if test "x$host_alias" = x; then
2413 ac_cv_host=$ac_cv_build
2415 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2416 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2427 ac_save_IFS=$IFS; IFS='-'
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if test "${ac_cv_target+set}" = set; then :
2443 $as_echo_n "(cached) " >&6
2445 if test "x$target_alias" = x; then
2446 ac_cv_target=$ac_cv_host
2448 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2454 $as_echo "$ac_cv_target" >&6; }
2455 case $ac_cv_target in
2457 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2459 target=$ac_cv_target
2460 ac_save_IFS=$IFS; IFS='-'
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2473 # The aliases save the names the user supplied, while $host etc.
2474 # will get canonicalized.
2475 test -n "$target_alias" &&
2476 test "$program_prefix$program_suffix$program_transform_name" = \
2478 program_prefix=${target_alias}-
2480 target_alias=${target_alias-$host_alias}
2482 am__api_version='1.11'
2484 # Find a good install program. We prefer a C program (faster),
2485 # so one script is as good as another. But avoid the broken or
2486 # incompatible versions:
2487 # SysV /etc/install, /usr/sbin/install
2488 # SunOS /usr/etc/install
2489 # IRIX /sbin/install
2491 # AmigaOS /C/install, which installs bootblocks on floppy discs
2492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2495 # OS/2's system install, which has a completely different semantic
2496 # ./install, which can be erroneously created by make from ./install.sh.
2497 # Reject install programs that cannot install multiple files.
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in #((
2511 ./ | .// | /[cC]/* | \
2512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 # Don't use installbsd from OSF since it installs stuff as root
2519 for ac_prog in ginstall scoinst install; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2522 if test $ac_prog = install &&
2523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # AIX install. It has an incompatible calling convention.
2526 elif test $ac_prog = install &&
2527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # program-specific install script used by HP pwplus--don't use.
2531 rm -rf conftest.one conftest.two conftest.dir
2532 echo one > conftest.one
2533 echo two > conftest.two
2535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2536 test -s conftest.one && test -s conftest.two &&
2537 test -s conftest.dir/conftest.one &&
2538 test -s conftest.dir/conftest.two
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2553 rm -rf conftest.one conftest.two conftest.dir
2556 if test "${ac_cv_path_install+set}" = set; then
2557 INSTALL=$ac_cv_path_install
2559 # As a last resort, use the slow shell script. Don't cache a
2560 # value for INSTALL within a source directory, because that will
2561 # break other packages using the cache if that directory is
2562 # removed, or if the value is a relative name.
2563 INSTALL=$ac_install_sh
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2567 $as_echo "$INSTALL" >&6; }
2569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2570 # It thinks the first close brace ends the variable substitution.
2571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2578 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 echo timestamp > conftest.file
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name. Accept space and tab only in the latter.
2587 *[\\\"\#\$\&\'\`$am_lf]*)
2588 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2595 # Do `set' in a subshell so we don't clobber the current shell's
2596 # arguments. Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2601 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2602 if test "$*" = "X"; then
2604 set X `ls -t "$srcdir/configure" conftest.file`
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2618 test "$2" = conftest.file
2624 as_fn_error "newly created file is older than distributed files!
2625 Check your system clock" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 test "$program_prefix" != NONE &&
2630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2631 # Use a double $ so make ignores it.
2632 test "$program_suffix" != NONE &&
2633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2634 # Double any \ or $.
2635 # By default was `s,x,x', remove it if useless.
2636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2639 # expand $ac_aux_dir to an absolute path
2640 am_aux_dir=`cd $ac_aux_dir && pwd`
2642 if test x"${MISSING+set}" != xset; then
2645 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2647 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650 # Use eval to expand $SHELL
2651 if eval "$MISSING --run true"; then
2652 am_missing_run="$MISSING --run "
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2659 if test x"${install_sh}" != xset; then
2662 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2664 install_sh="\${SHELL} $am_aux_dir/install-sh"
2668 # Installed binaries are usually stripped using `strip' when the user
2669 # run `make install-strip'. However `strip' might not be the right
2670 # tool to use in cross-compilation environments, therefore Automake
2671 # will honor the `STRIP' environment variable to overrule this program.
2672 if test "$cross_compiling" != no; then
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_STRIP+set}" = set; then :
2679 $as_echo_n "(cached) " >&6
2681 if test -n "$STRIP"; then
2682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701 STRIP=$ac_cv_prog_STRIP
2702 if test -n "$STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2704 $as_echo "$STRIP" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2712 if test -z "$ac_cv_prog_STRIP"; then
2714 # Extract the first word of "strip", so it can be a program name with args.
2715 set dummy strip; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$ac_ct_STRIP"; then
2722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731 ac_cv_prog_ac_ct_STRIP="strip"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2742 if test -n "$ac_ct_STRIP"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2744 $as_echo "$ac_ct_STRIP" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2750 if test "x$ac_ct_STRIP" = x; then
2753 case $cross_compiling:$ac_tool_warned in
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2762 STRIP="$ac_cv_prog_STRIP"
2766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2770 if test -z "$MKDIR_P"; then
2771 if test "${ac_cv_path_mkdir+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 test -z "$as_dir" && as_dir=.
2779 for ac_prog in mkdir gmkdir; do
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2782 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2783 'mkdir (GNU coreutils) '* | \
2784 'mkdir (coreutils) '* | \
2785 'mkdir (fileutils) '4.1*)
2786 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2796 if test "${ac_cv_path_mkdir+set}" = set; then
2797 MKDIR_P="$ac_cv_path_mkdir -p"
2799 # As a last resort, use the slow shell script. Don't cache a
2800 # value for MKDIR_P within a source directory, because that will
2801 # break other packages using the cache if that directory is
2802 # removed, or if the value is a relative name.
2803 test -d ./--version && rmdir ./--version
2804 MKDIR_P="$ac_install_sh -d"
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2808 $as_echo "$MKDIR_P" >&6; }
2812 [\\/$]* | ?:[\\/]*) ;;
2813 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2816 for ac_prog in gawk mawk nawk awk
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_AWK+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$AWK"; then
2826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_AWK="$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$AWK"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$AWK" && break
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2863 $as_echo_n "(cached) " >&6
2865 cat >conftest.make <<\_ACEOF
2868 @echo '@@@%%%=$(MAKE)=@@@%%%'
2870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 eval ac_cv_prog_make_${ac_make}_set=yes;;
2875 eval ac_cv_prog_make_${ac_make}_set=no;;
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 SET_MAKE="MAKE=${MAKE-make}"
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2896 rmdir .tst 2>/dev/null
2898 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2899 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2900 # is not polluted with repeated "-I."
2901 am__isrc=' -I$(srcdir)'
2902 # test to see if srcdir already configured
2903 if test -f $srcdir/config.status; then
2904 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2908 # test whether we have cygpath
2909 if test -z "$CYGPATH_W"; then
2910 if (cygpath --version) >/dev/null 2>/dev/null; then
2911 CYGPATH_W='cygpath -w'
2918 # Define the identity of the package.
2920 VERSION='version-unused'
2923 # Some tools Automake needs.
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939 # We need awk for the "check" target. The system "awk" is bad on
2941 # Always define AMTAR for backward compatibility.
2943 AMTAR=${AMTAR-"${am_missing_run}tar"}
2945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3000 if test -z "$ac_cv_prog_CC"; then
3002 # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_ac_ct_CC="gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3038 if test "x$ac_ct_CC" = x; then
3041 case $cross_compiling:$ac_tool_warned in
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_CC="${ac_tool_prefix}cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3094 if test -z "$CC"; then
3095 # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114 ac_prog_rejected=yes
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 if test $ac_prog_rejected = yes; then
3126 # We found a bogon in the path, so make sure we never use it.
3127 set dummy $ac_cv_prog_CC
3129 if test $# != 0; then
3130 # We chose a different compiler from the bogus one.
3131 # However, it has the same basename, so the bogon will be chosen
3132 # first if we set CC to just the basename; use the full file name.
3134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 for ac_prog in cl.exe
3154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3191 test -n "$CC" && break
3194 if test -z "$CC"; then
3196 for ac_prog in cl.exe
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_ac_ct_CC="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$ac_ct_CC" && break
3238 if test "x$ac_ct_CC" = x; then
3241 case $cross_compiling:$ac_tool_warned in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." "$LINENO" 5; }
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 for ac_option in --version -v -V -qversion; do
3264 { { ac_try="$ac_compiler $ac_option >&5"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273 if test -s conftest.err; then
3275 ... rest of stderr output deleted ...
3276 10q' conftest.err >conftest.er1
3277 cat conftest.er1 >&5
3278 rm -f conftest.er1 conftest.err
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3301 $as_echo_n "checking for C compiler default output file name... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308 for ac_file in $ac_files
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3317 if { { ac_try="$ac_link_default"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link_default") 2>&5
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3333 for ac_file in $ac_files ''
3335 test -f "$ac_file" || continue
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340 # We found the default executable, but exeext='' is most
3344 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 # We set ac_cv_exeext here because the later test for it is not
3349 # safe: cross compilers may not add the suffix if given an `-o'
3350 # argument, so we may need to know it at that point already.
3351 # Even if this section looks crufty: it has the advantage of
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3364 $as_echo "$ac_file" >&6; }
3365 if test -z "$ac_file"; then :
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { as_fn_set_status 77
3372 as_fn_error "C compiler cannot create executables
3373 See \`config.log' for more details." "$LINENO" 5; }; }
3375 ac_exeext=$ac_cv_exeext
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383 if { ac_try='./$ac_file'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3396 if test "$cross_compiling" = maybe; then
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." "$LINENO" 5; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3410 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 # Check that the compiler produces executables we can run. If not, either
3413 # the compiler is broken, or we cross compile.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415 $as_echo_n "checking whether we are cross compiling... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417 $as_echo "$cross_compiling" >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 for ac_file in conftest.exe conftest conftest.*; do
3437 test -f "$ac_file" || continue
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details." "$LINENO" 5; }
3451 rm -f conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if test "${ac_cv_objext+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compile") 2>&5
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details." "$LINENO" 5; }
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3528 if ac_fn_c_try_compile "$LINENO"; then :
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if test "${ac_cv_prog_cc_g+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_c_try_compile "$LINENO"; then :
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3581 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3597 if ac_fn_c_try_compile "$LINENO"; then :
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3618 if test "$GCC" = yes; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3629 ac_cv_prog_cc_c89=no
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3635 #include <sys/types.h>
3636 #include <sys/stat.h>
3637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3638 struct buf { int x; };
3639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3640 static char *e (p, i)
3646 static char *f (char * (*g) (char **, int), char **p, ...)
3651 s = g (p, va_arg (v,int));
3656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3657 function prototypes and stuff, but not '\xHH' hex character constants.
3658 These don't provoke an error unfortunately, instead are silently treated
3659 as 'x'. The following induces an error, until -std is added to get
3660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3661 array size at least. It's necessary to write '\x00'==0 to get something
3662 that's true only with -std. */
3663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3666 inside strings and character constants. */
3668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670 int test (int i, double x);
3671 struct s1 {int (*f) (int a);};
3672 struct s2 {int (*f) (double a);};
3673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687 CC="$ac_save_CC $ac_arg"
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_prog_cc_c89=$ac_arg
3691 rm -f core conftest.err conftest.$ac_objext
3692 test "x$ac_cv_prog_cc_c89" != "xno" && break
3694 rm -f conftest.$ac_ext
3699 case "x$ac_cv_prog_cc_c89" in
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3702 $as_echo "none needed" >&6; } ;;
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3705 $as_echo "unsupported" >&6; } ;;
3707 CC="$CC $ac_cv_prog_cc_c89"
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3709 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711 if test "x$ac_cv_prog_cc_c89" != xno; then :
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 DEPDIR="${am__leading_dot}deps"
3722 ac_config_commands="$ac_config_commands depfiles"
3725 am_make=${MAKE-make}
3726 cat > confinc << 'END'
3728 @echo this is the am__doit target
3731 # If we don't find an include directive, just comment out the code.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3733 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3737 # First try GNU make style include.
3738 echo "include confinc" > confmf
3739 # Ignore all kinds of additional output from `make'.
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3747 # Now try BSD make style include.
3748 if test "$am__include" = "#"; then
3749 echo '.include "confinc"' > confmf
3750 case `$am_make -s -f confmf 2> /dev/null` in #(
3751 *the\ am__doit\ target*)
3752 am__include=.include
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3761 $as_echo "$_am_result" >&6; }
3762 rm -f confinc confmf
3764 # Check whether --enable-dependency-tracking was given.
3765 if test "${enable_dependency_tracking+set}" = set; then :
3766 enableval=$enable_dependency_tracking;
3769 if test "x$enable_dependency_tracking" != xno; then
3770 am_depcomp="$ac_aux_dir/depcomp"
3773 if test "x$enable_dependency_tracking" != xno; then
3783 depcc="$CC" am_compiler_list=
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786 $as_echo_n "checking dependency style of $depcc... " >&6; }
3787 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791 # We make a subdir and do the tests there. Otherwise we can end up
3792 # making bogus files that we don't know about and never remove. For
3793 # instance it was reported that on HP-UX the gcc test will end up
3794 # making a dummy file named `D' -- because `-MD' means `put the output
3797 # Copy depcomp to subdir because otherwise we won't find it if we're
3798 # using a relative directory.
3799 cp "$am_depcomp" conftest.dir
3801 # We will build objects and dependencies in a subdirectory because
3802 # it helps to detect inapplicable dependency modes. For instance
3803 # both Tru64's cc and ICC support -MD to output dependencies as a
3804 # side effect of compilation, but ICC will put the dependencies in
3805 # the current directory while Tru64 will put them in the object
3809 am_cv_CC_dependencies_compiler_type=none
3810 if test "$am_compiler_list" = ""; then
3811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814 case " $depcc " in #(
3815 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3818 for depmode in $am_compiler_list; do
3819 # Setup a source with many dependencies, because some compilers
3820 # like to wrap large dependency lists on column 80 (with \), and
3821 # we should not choose a depcomp mode which is confused by this.
3823 # We need to recreate these files for each test, as the compiler may
3824 # overwrite some of them when testing with obscure command lines.
3825 # This happens at least with the AIX C compiler.
3827 for i in 1 2 3 4 5 6; do
3828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830 # Solaris 8's {/usr,}/bin/sh.
3831 touch sub/conftst$i.h
3833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3836 # mode. It turns out that the SunPro C++ compiler does not properly
3837 # handle `-M -o', and we need to detect this. Also, some Intel
3838 # versions had trouble with output in subdirs
3839 am__obj=sub/conftest.${OBJEXT-o}
3840 am__minus_obj="-o $am__obj"
3843 # This depmode causes a compiler race in universal mode.
3844 test "$am__universal" = false || continue
3847 # after this tag, mechanisms are not by side-effect, so they'll
3848 # only be used when explicitly requested
3849 if test "x$enable_dependency_tracking" = xyes; then
3855 msvisualcpp | msvcmsys)
3856 # This compiler won't grok `-c -o', but also, the minuso test has
3857 # not run yet. These depmodes are late enough in the game, and
3858 # so weak that their functioning should not be impacted.
3859 am__obj=conftest.${OBJEXT-o}
3864 if depmode=$depmode \
3865 source=sub/conftest.c object=$am__obj \
3866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3867 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3868 >/dev/null 2>conftest.err &&
3869 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3871 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3873 # icc doesn't choke on unknown options, it will just issue warnings
3874 # or remarks (even with -Werror). So we grep stderr for any message
3875 # that says an option was ignored or not supported.
3876 # When given -MP, icc 7.0 and 7.1 complain thusly:
3877 # icc: Command line warning: ignoring option '-M'; no argument required
3878 # The diagnosis changed in icc 8.0:
3879 # icc: Command line remark: option '-MP' not supported
3880 if (grep 'ignoring option' conftest.err ||
3881 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3882 am_cv_CC_dependencies_compiler_type=$depmode
3891 am_cv_CC_dependencies_compiler_type=none
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3896 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3897 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900 test "x$enable_dependency_tracking" != xno \
3901 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3903 am__fastdepCC_FALSE='#'
3905 am__fastdepCC_TRUE='#'
3906 am__fastdepCC_FALSE=
3911 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3912 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_GOC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3922 if test -n "$GOC"; then
3923 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 if test -n "$GOC"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3945 $as_echo "$GOC" >&6; }
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3953 if test -z "$ac_cv_prog_GOC"; then
3955 # Extract the first word of "gccgo", so it can be a program name with args.
3956 set dummy gccgo; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$ac_ct_GOC"; then
3963 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_prog_ac_ct_GOC="gccgo"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3983 if test -n "$ac_ct_GOC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3985 $as_echo "$ac_ct_GOC" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3991 if test "x$ac_ct_GOC" = x; then
3994 case $cross_compiling:$ac_tool_warned in
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998 ac_tool_warned=yes ;;
4003 GOC="$ac_cv_prog_GOC"
4006 if test -z "$GOC"; then
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_GOC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4015 if test -n "$GOC"; then
4016 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 if test -n "$GOC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4038 $as_echo "$GOC" >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4047 if test -z "$GOC"; then
4048 # Extract the first word of "gccgo", so it can be a program name with args.
4049 set dummy gccgo; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_GOC+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 if test -n "$GOC"; then
4056 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4067 ac_prog_rejected=yes
4070 ac_cv_prog_GOC="gccgo"
4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 if test $ac_prog_rejected = yes; then
4079 # We found a bogon in the path, so make sure we never use it.
4080 set dummy $ac_cv_prog_GOC
4082 if test $# != 0; then
4083 # We chose a different compiler from the bogus one.
4084 # However, it has the same basename, so the bogon will be chosen
4085 # first if we set GOC to just the basename; use the full file name.
4087 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4093 if test -n "$GOC"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4095 $as_echo "$GOC" >&6; }
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4105 # Provide some information about the compiler.
4106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4109 { { ac_try="$ac_compiler --version >&5"
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_compiler --version >&5") 2>conftest.err
4118 if test -s conftest.err; then
4120 ... rest of stderr output deleted ...
4121 10q' conftest.err >conftest.er1
4122 cat conftest.er1 >&5
4123 rm -f conftest.er1 conftest.err
4125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126 test $ac_status = 0; }
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4140 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4141 # Check whether --enable-maintainer-mode was given.
4142 if test "${enable_maintainer_mode+set}" = set; then :
4143 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4145 USE_MAINTAINER_MODE=no
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4149 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4150 if test $USE_MAINTAINER_MODE = yes; then
4151 MAINTAINER_MODE_TRUE=
4152 MAINTAINER_MODE_FALSE='#'
4154 MAINTAINER_MODE_TRUE='#'
4155 MAINTAINER_MODE_FALSE=
4158 MAINT=$MAINTAINER_MODE_TRUE
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4163 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4164 if test "${ac_cv_path_SED+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4168 for ac_i in 1 2 3 4 5 6 7; do
4169 ac_script="$ac_script$as_nl$ac_script"
4171 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4172 { ac_script=; unset ac_script;}
4173 if test -z "$SED"; then
4174 ac_path_SED_found=false
4175 # Loop through the user's path and test for each of PROGNAME-LIST
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_prog in sed gsed; do
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4184 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4185 # Check for GNU ac_path_SED and select it if it is found.
4186 # Check for GNU $ac_path_SED
4187 case `"$ac_path_SED" --version 2>&1` in
4189 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192 $as_echo_n 0123456789 >"conftest.in"
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
4198 $as_echo '' >> "conftest.nl"
4199 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4201 as_fn_arith $ac_count + 1 && ac_count=$as_val
4202 if test $ac_count -gt ${ac_path_SED_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_SED="$ac_path_SED"
4205 ac_path_SED_max=$ac_count
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 $ac_path_SED_found && break 3
4218 if test -z "$ac_cv_path_SED"; then
4219 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4227 $as_echo "$ac_cv_path_SED" >&6; }
4228 SED="$ac_cv_path_SED"
4231 test -z "$SED" && SED=sed
4232 Xsed="$SED -e 1s/^X//"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4245 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4246 if test "${ac_cv_path_GREP+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -z "$GREP"; then
4250 ac_path_GREP_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in grep ggrep; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4261 # Check for GNU ac_path_GREP and select it if it is found.
4262 # Check for GNU $ac_path_GREP
4263 case `"$ac_path_GREP" --version 2>&1` in
4265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4268 $as_echo_n 0123456789 >"conftest.in"
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo 'GREP' >> "conftest.nl"
4275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 as_fn_arith $ac_count + 1 && ac_count=$as_val
4278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_GREP="$ac_path_GREP"
4281 ac_path_GREP_max=$ac_count
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 $ac_path_GREP_found && break 3
4294 if test -z "$ac_cv_path_GREP"; then
4295 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 ac_cv_path_GREP=$GREP
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4303 $as_echo "$ac_cv_path_GREP" >&6; }
4304 GREP="$ac_cv_path_GREP"
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4308 $as_echo_n "checking for egrep... " >&6; }
4309 if test "${ac_cv_path_EGREP+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4313 then ac_cv_path_EGREP="$GREP -E"
4315 if test -z "$EGREP"; then
4316 ac_path_EGREP_found=false
4317 # Loop through the user's path and test for each of PROGNAME-LIST
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 test -z "$as_dir" && as_dir=.
4323 for ac_prog in egrep; do
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4326 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4327 # Check for GNU ac_path_EGREP and select it if it is found.
4328 # Check for GNU $ac_path_EGREP
4329 case `"$ac_path_EGREP" --version 2>&1` in
4331 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334 $as_echo_n 0123456789 >"conftest.in"
4337 cat "conftest.in" "conftest.in" >"conftest.tmp"
4338 mv "conftest.tmp" "conftest.in"
4339 cp "conftest.in" "conftest.nl"
4340 $as_echo 'EGREP' >> "conftest.nl"
4341 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343 as_fn_arith $ac_count + 1 && ac_count=$as_val
4344 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4345 # Best one so far, save it but keep looking for a better one
4346 ac_cv_path_EGREP="$ac_path_EGREP"
4347 ac_path_EGREP_max=$ac_count
4349 # 10*(2^10) chars as input seems more than enough
4350 test $ac_count -gt 10 && break
4352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 $ac_path_EGREP_found && break 3
4360 if test -z "$ac_cv_path_EGREP"; then
4361 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 ac_cv_path_EGREP=$EGREP
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4370 $as_echo "$ac_cv_path_EGREP" >&6; }
4371 EGREP="$ac_cv_path_EGREP"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4375 $as_echo_n "checking for fgrep... " >&6; }
4376 if test "${ac_cv_path_FGREP+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4379 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4380 then ac_cv_path_FGREP="$GREP -F"
4382 if test -z "$FGREP"; then
4383 ac_path_FGREP_found=false
4384 # Loop through the user's path and test for each of PROGNAME-LIST
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 test -z "$as_dir" && as_dir=.
4390 for ac_prog in fgrep; do
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4393 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4394 # Check for GNU ac_path_FGREP and select it if it is found.
4395 # Check for GNU $ac_path_FGREP
4396 case `"$ac_path_FGREP" --version 2>&1` in
4398 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4401 $as_echo_n 0123456789 >"conftest.in"
4404 cat "conftest.in" "conftest.in" >"conftest.tmp"
4405 mv "conftest.tmp" "conftest.in"
4406 cp "conftest.in" "conftest.nl"
4407 $as_echo 'FGREP' >> "conftest.nl"
4408 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4410 as_fn_arith $ac_count + 1 && ac_count=$as_val
4411 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4412 # Best one so far, save it but keep looking for a better one
4413 ac_cv_path_FGREP="$ac_path_FGREP"
4414 ac_path_FGREP_max=$ac_count
4416 # 10*(2^10) chars as input seems more than enough
4417 test $ac_count -gt 10 && break
4419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 $ac_path_FGREP_found && break 3
4427 if test -z "$ac_cv_path_FGREP"; then
4428 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 ac_cv_path_FGREP=$FGREP
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4437 $as_echo "$ac_cv_path_FGREP" >&6; }
4438 FGREP="$ac_cv_path_FGREP"
4441 test -z "$GREP" && GREP=grep
4459 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4460 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4461 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4464 $as_echo_n "checking how to print strings... " >&6; }
4465 # Test print first, because it will be a builtin if present.
4466 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4467 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4469 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4472 # Use this function as a fallback that always works.
4473 func_fallback_echo ()
4475 eval 'cat <<_LTECHO_EOF
4479 ECHO='func_fallback_echo'
4482 # func_echo_all arg...
4483 # Invoke $ECHO with all args, space-separated.
4490 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4491 $as_echo "printf" >&6; } ;;
4492 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4493 $as_echo "print -r" >&6; } ;;
4494 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4495 $as_echo "cat" >&6; } ;;
4513 # Check whether --with-gnu-ld was given.
4514 if test "${with_gnu_ld+set}" = set; then :
4515 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4521 if test "$GCC" = yes; then
4522 # Check if gcc -print-prog-name=ld gives a path.
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4524 $as_echo_n "checking for ld used by $CC... " >&6; }
4527 # gcc leaves a trailing carriage return which upsets mingw
4528 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4530 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4533 # Accept absolute paths.
4535 re_direlt='/[^/][^/]*/\.\./'
4536 # Canonicalize the pathname of ld
4537 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4538 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4539 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4541 test -z "$LD" && LD="$ac_prog"
4544 # If it fails, then pretend we aren't using GCC.
4548 # If it is relative, then search for the first ld in PATH.
4552 elif test "$with_gnu_ld" = yes; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4554 $as_echo_n "checking for GNU ld... " >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4557 $as_echo_n "checking for non-GNU ld... " >&6; }
4559 if test "${lt_cv_path_LD+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -z "$LD"; then
4563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4564 for ac_dir in $PATH; do
4566 test -z "$ac_dir" && ac_dir=.
4567 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4568 lt_cv_path_LD="$ac_dir/$ac_prog"
4569 # Check to see if the program is GNU ld. I'd rather use --version,
4570 # but apparently some variants of GNU ld only accept -v.
4571 # Break only if it was the GNU/non-GNU ld that we prefer.
4572 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4573 *GNU* | *'with BFD'*)
4574 test "$with_gnu_ld" != no && break
4577 test "$with_gnu_ld" != yes && break
4584 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4589 if test -n "$LD"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4591 $as_echo "$LD" >&6; }
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4596 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4598 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4599 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4602 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4603 case `$LD -v 2>&1 </dev/null` in
4604 *GNU* | *'with BFD'*)
4605 lt_cv_prog_gnu_ld=yes
4608 lt_cv_prog_gnu_ld=no
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4613 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4614 with_gnu_ld=$lt_cv_prog_gnu_ld
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -n "$RANLIB"; then
4633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 RANLIB=$ac_cv_prog_RANLIB
4653 if test -n "$RANLIB"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4655 $as_echo "$RANLIB" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4663 if test -z "$ac_cv_prog_RANLIB"; then
4664 ac_ct_RANLIB=$RANLIB
4665 # Extract the first word of "ranlib", so it can be a program name with args.
4666 set dummy ranlib; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4672 if test -n "$ac_ct_RANLIB"; then
4673 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_ac_ct_RANLIB="ranlib"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4693 if test -n "$ac_ct_RANLIB"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4695 $as_echo "$ac_ct_RANLIB" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4701 if test "x$ac_ct_RANLIB" = x; then
4704 case $cross_compiling:$ac_tool_warned in
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4710 RANLIB=$ac_ct_RANLIB
4713 RANLIB="$ac_cv_prog_RANLIB"
4716 if test -n "$ac_tool_prefix"; then
4717 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 if test -n "$OBJCOPY"; then
4725 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 OBJCOPY=$ac_cv_prog_OBJCOPY
4745 if test -n "$OBJCOPY"; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4747 $as_echo "$OBJCOPY" >&6; }
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4755 if test -z "$ac_cv_prog_OBJCOPY"; then
4756 ac_ct_OBJCOPY=$OBJCOPY
4757 # Extract the first word of "objcopy", so it can be a program name with args.
4758 set dummy objcopy; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -n "$ac_ct_OBJCOPY"; then
4765 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4785 if test -n "$ac_ct_OBJCOPY"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4787 $as_echo "$ac_ct_OBJCOPY" >&6; }
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4793 if test "x$ac_ct_OBJCOPY" = x; then
4794 OBJCOPY="missing-objcopy"
4796 case $cross_compiling:$ac_tool_warned in
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4802 OBJCOPY=$ac_ct_OBJCOPY
4805 OBJCOPY="$ac_cv_prog_OBJCOPY"
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4816 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4821 macro_version='2.2.7a'
4822 macro_revision='1.3134'
4836 ltmain="$ac_aux_dir/ltmain.sh"
4838 # Backslashify metacharacters that are still active within
4839 # double-quoted strings.
4840 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4842 # Same as above, but do not quote variable references.
4843 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4845 # Sed substitution to delay expansion of an escaped shell variable in a
4846 # double_quote_subst'ed string.
4847 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4849 # Sed substitution to delay expansion of an escaped single quote.
4850 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4852 # Sed substitution to avoid accidental globbing in evaled expressions
4853 no_glob_subst='s/\*/\\\*/g'
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4856 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4857 if test "${lt_cv_path_NM+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$NM"; then
4861 # Let the user override the test.
4864 lt_nm_to_check="${ac_tool_prefix}nm"
4865 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4866 lt_nm_to_check="$lt_nm_to_check nm"
4868 for lt_tmp_nm in $lt_nm_to_check; do
4869 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4870 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4872 test -z "$ac_dir" && ac_dir=.
4873 tmp_nm="$ac_dir/$lt_tmp_nm"
4874 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4875 # Check to see if the nm accepts a BSD-compat flag.
4876 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4877 # nm: unknown option "B" ignored
4878 # Tru64's nm complains that /dev/null is an invalid object file
4879 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4880 */dev/null* | *'Invalid file or object type'*)
4881 lt_cv_path_NM="$tmp_nm -B"
4885 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4887 lt_cv_path_NM="$tmp_nm -p"
4891 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4892 continue # so that we can try to find one that supports BSD flags
4901 : ${lt_cv_path_NM=no}
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4905 $as_echo "$lt_cv_path_NM" >&6; }
4906 if test "$lt_cv_path_NM" != "no"; then
4909 # Didn't find any BSD compatible name lister, look for dumpbin.
4910 if test -n "$DUMPBIN"; then :
4911 # Let the user override the test.
4913 if test -n "$ac_tool_prefix"; then
4914 for ac_prog in dumpbin "link -dump"
4916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4921 $as_echo_n "(cached) " >&6
4923 if test -n "$DUMPBIN"; then
4924 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 DUMPBIN=$ac_cv_prog_DUMPBIN
4944 if test -n "$DUMPBIN"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4946 $as_echo "$DUMPBIN" >&6; }
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4953 test -n "$DUMPBIN" && break
4956 if test -z "$DUMPBIN"; then
4957 ac_ct_DUMPBIN=$DUMPBIN
4958 for ac_prog in dumpbin "link -dump"
4960 # Extract the first word of "$ac_prog", so it can be a program name with args.
4961 set dummy $ac_prog; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4967 if test -n "$ac_ct_DUMPBIN"; then
4968 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4988 if test -n "$ac_ct_DUMPBIN"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4990 $as_echo "$ac_ct_DUMPBIN" >&6; }
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4997 test -n "$ac_ct_DUMPBIN" && break
5000 if test "x$ac_ct_DUMPBIN" = x; then
5003 case $cross_compiling:$ac_tool_warned in
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5007 ac_tool_warned=yes ;;
5009 DUMPBIN=$ac_ct_DUMPBIN
5013 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5015 DUMPBIN="$DUMPBIN -symbols"
5023 if test "$DUMPBIN" != ":"; then
5027 test -z "$NM" && NM=nm
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5035 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5036 if test "${lt_cv_nm_interface+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5039 lt_cv_nm_interface="BSD nm"
5040 echo "int some_variable = 0;" > conftest.$ac_ext
5041 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5042 (eval "$ac_compile" 2>conftest.err)
5043 cat conftest.err >&5
5044 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5045 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5046 cat conftest.err >&5
5047 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5048 cat conftest.out >&5
5049 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5050 lt_cv_nm_interface="MS dumpbin"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5055 $as_echo "$lt_cv_nm_interface" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5058 $as_echo_n "checking whether ln -s works... " >&6; }
5060 if test "$LN_S" = "ln -s"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5062 $as_echo "yes" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5065 $as_echo "no, using $LN_S" >&6; }
5068 # find the maximum length of command line arguments
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5070 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5071 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5079 # On DJGPP, this test can blow up pretty badly due to problems in libc
5080 # (any single argument exceeding 2000 bytes causes a buffer overrun
5081 # during glob expansion). Even if it were fixed, the result of this
5082 # check would be larger than it should be.
5083 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5087 # Under GNU Hurd, this test is not required because there is
5088 # no limit to the length of command line arguments.
5089 # Libtool will interpret -1 as no limit whatsoever
5090 lt_cv_sys_max_cmd_len=-1;
5093 cygwin* | mingw* | cegcc*)
5094 # On Win9x/ME, this test blows up -- it succeeds, but takes
5095 # about 5 minutes as the teststring grows exponentially.
5096 # Worse, since 9x/ME are not pre-emptively multitasking,
5097 # you end up with a "frozen" computer, even though with patience
5098 # the test eventually succeeds (with a max line length of 256k).
5099 # Instead, let's just punt: use the minimum linelength reported by
5100 # all of the supported platforms: 8192 (on NT/2K/XP).
5101 lt_cv_sys_max_cmd_len=8192;
5105 # On MiNT this can take a long time and run out of memory.
5106 lt_cv_sys_max_cmd_len=8192;
5110 # On AmigaOS with pdksh, this test takes hours, literally.
5111 # So we just punt and use a minimum line length of 8192.
5112 lt_cv_sys_max_cmd_len=8192;
5115 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5116 # This has been around since 386BSD, at least. Likely further.
5117 if test -x /sbin/sysctl; then
5118 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5119 elif test -x /usr/sbin/sysctl; then
5120 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5122 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5124 # And add a safety zone
5125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5130 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5131 lt_cv_sys_max_cmd_len=196608
5135 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5136 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5137 # nice to cause kernel panics so lets avoid the loop below.
5138 # First set a reasonable default.
5139 lt_cv_sys_max_cmd_len=16384
5141 if test -x /sbin/sysconfig; then
5142 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5143 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5148 lt_cv_sys_max_cmd_len=102400
5150 sysv5* | sco5v6* | sysv4.2uw2*)
5151 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5152 if test -n "$kargmax"; then
5153 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5155 lt_cv_sys_max_cmd_len=32768
5159 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5160 if test -n "$lt_cv_sys_max_cmd_len"; then
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5164 # Make teststring a little bigger before we do anything with it.
5165 # a 1K string should be a reasonable start.
5166 for i in 1 2 3 4 5 6 7 8 ; do
5167 teststring=$teststring$teststring
5169 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5170 # If test is not a shell built-in, we'll probably end up computing a
5171 # maximum length that is only half of the actual maximum length, but
5173 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5174 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5175 test $i != 17 # 1/2 MB should be enough
5178 teststring=$teststring$teststring
5180 # Only check the string length outside the loop.
5181 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5183 # Add a significant safety factor because C++ compilers can tack on
5184 # massive amounts of additional arguments before passing them to the
5185 # linker. It appears as though 1/2 is a usable value.
5186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5193 if test -n $lt_cv_sys_max_cmd_len ; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5198 $as_echo "none" >&6; }
5200 max_cmd_len=$lt_cv_sys_max_cmd_len
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5213 # Try some XSI features
5216 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5218 && eval 'test $(( 1 + 1 )) -eq 2 \
5219 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5222 $as_echo "$xsi_shell" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5226 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5228 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5230 && lt_shell_append=yes
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5232 $as_echo "$lt_shell_append" >&6; }
5235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5245 # test EBCDIC or ASCII
5246 case `echo X|tr X '\101'` in
5247 A) # ASCII based system
5248 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5249 lt_SP2NL='tr \040 \012'
5250 lt_NL2SP='tr \015\012 \040\040'
5252 *) # EBCDIC based system
5253 lt_SP2NL='tr \100 \n'
5254 lt_NL2SP='tr \r\n \100\100'
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5268 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5271 lt_cv_ld_reload_flag='-r'
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5275 reload_flag=$lt_cv_ld_reload_flag
5276 case $reload_flag in
5278 *) reload_flag=" $reload_flag" ;;
5280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5283 if test "$GCC" = yes; then
5284 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5299 if test -n "$ac_tool_prefix"; then
5300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5307 if test -n "$OBJDUMP"; then
5308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 OBJDUMP=$ac_cv_prog_OBJDUMP
5328 if test -n "$OBJDUMP"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5330 $as_echo "$OBJDUMP" >&6; }
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5338 if test -z "$ac_cv_prog_OBJDUMP"; then
5339 ac_ct_OBJDUMP=$OBJDUMP
5340 # Extract the first word of "objdump", so it can be a program name with args.
5341 set dummy objdump; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5345 $as_echo_n "(cached) " >&6
5347 if test -n "$ac_ct_OBJDUMP"; then
5348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5368 if test -n "$ac_ct_OBJDUMP"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5370 $as_echo "$ac_ct_OBJDUMP" >&6; }
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5376 if test "x$ac_ct_OBJDUMP" = x; then
5379 case $cross_compiling:$ac_tool_warned in
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5385 OBJDUMP=$ac_ct_OBJDUMP
5388 OBJDUMP="$ac_cv_prog_OBJDUMP"
5391 test -z "$OBJDUMP" && OBJDUMP=objdump
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5402 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5403 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5406 lt_cv_file_magic_cmd='$MAGIC_CMD'
5407 lt_cv_file_magic_test_file=
5408 lt_cv_deplibs_check_method='unknown'
5409 # Need to set the preceding variable on all platforms that support
5410 # interlibrary dependencies.
5411 # 'none' -- dependencies not supported.
5412 # `unknown' -- same as none, but documents that we really don't know.
5413 # 'pass_all' -- all dependencies passed with no checks.
5414 # 'test_compile' -- check by making test program.
5415 # 'file_magic [[regex]]' -- check by looking for files in library path
5416 # which responds to the $file_magic_cmd with a given extended regex.
5417 # If you have `file' or equivalent on your system and you're not sure
5418 # whether `pass_all' will *always* work, you probably want this one.
5422 lt_cv_deplibs_check_method=pass_all
5426 lt_cv_deplibs_check_method=pass_all
5430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5431 lt_cv_file_magic_cmd='/usr/bin/file -L'
5432 lt_cv_file_magic_test_file=/shlib/libc.so
5436 # func_win32_libid is a shell function defined in ltmain.sh
5437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5438 lt_cv_file_magic_cmd='func_win32_libid'
5442 # Base MSYS/MinGW do not provide the 'file' command needed by
5443 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5444 # unless we find 'file', for example because we are cross-compiling.
5445 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5446 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5447 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448 lt_cv_file_magic_cmd='func_win32_libid'
5450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5451 lt_cv_file_magic_cmd='$OBJDUMP -f'
5456 # use the weaker test based on 'objdump'. See mingw*.
5457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5458 lt_cv_file_magic_cmd='$OBJDUMP -f'
5461 darwin* | rhapsody*)
5462 lt_cv_deplibs_check_method=pass_all
5465 freebsd* | dragonfly*)
5466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5469 # Not sure whether the presence of OpenBSD here was a mistake.
5470 # Let's accept both of them until this is cleared up.
5471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5472 lt_cv_file_magic_cmd=/usr/bin/file
5473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5477 lt_cv_deplibs_check_method=pass_all
5482 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5489 hpux10.20* | hpux11*)
5490 lt_cv_file_magic_cmd=/usr/bin/file
5493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5497 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]'
5498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5502 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5508 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5512 irix5* | irix6* | nonstopux*)
5514 *-32|*"-32 ") libmagic=32-bit;;
5515 *-n32|*"-n32 ") libmagic=N32;;
5516 *-64|*"-64 ") libmagic=64-bit;;
5517 *) libmagic=never-match;;
5519 lt_cv_deplibs_check_method=pass_all
5522 # This must be Linux ELF.
5523 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5524 lt_cv_deplibs_check_method=pass_all
5528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5537 lt_cv_file_magic_cmd=/usr/bin/file
5538 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5542 lt_cv_deplibs_check_method=pass_all
5546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553 osf3* | osf4* | osf5*)
5554 lt_cv_deplibs_check_method=pass_all
5558 lt_cv_deplibs_check_method=pass_all
5562 lt_cv_deplibs_check_method=pass_all
5565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5566 lt_cv_deplibs_check_method=pass_all
5570 case $host_vendor in
5572 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]'
5573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5576 lt_cv_deplibs_check_method=pass_all
5579 lt_cv_file_magic_cmd='/bin/file'
5580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5583 lt_cv_file_magic_cmd='/bin/file'
5584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5585 lt_cv_file_magic_test_file=/lib/libc.so
5588 lt_cv_deplibs_check_method=pass_all
5591 lt_cv_deplibs_check_method=pass_all
5597 lt_cv_deplibs_check_method=pass_all
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5603 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5604 file_magic_cmd=$lt_cv_file_magic_cmd
5605 deplibs_check_method=$lt_cv_deplibs_check_method
5606 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5619 if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}ar; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if test "${ac_cv_prog_AR+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5627 if test -n "$AR"; then
5628 ac_cv_prog_AR="$AR" # Let the user override the test.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_AR="${ac_tool_prefix}ar"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 if test -n "$AR"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5650 $as_echo "$AR" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5658 if test -z "$ac_cv_prog_AR"; then
5660 # Extract the first word of "ar", so it can be a program name with args.
5661 set dummy ar; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5667 if test -n "$ac_ct_AR"; then
5668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_ac_ct_AR="ar"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5688 if test -n "$ac_ct_AR"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5690 $as_echo "$ac_ct_AR" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5696 if test "x$ac_ct_AR" = x; then
5699 case $cross_compiling:$ac_tool_warned in
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703 ac_tool_warned=yes ;;
5711 test -z "$AR" && AR=ar
5712 test -z "$AR_FLAGS" && AR_FLAGS=cru
5724 if test -n "$ac_tool_prefix"; then
5725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}strip; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if test "${ac_cv_prog_STRIP+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5732 if test -n "$STRIP"; then
5733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 STRIP=$ac_cv_prog_STRIP
5753 if test -n "$STRIP"; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5755 $as_echo "$STRIP" >&6; }
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5763 if test -z "$ac_cv_prog_STRIP"; then
5765 # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5795 $as_echo "$ac_ct_STRIP" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5801 if test "x$ac_ct_STRIP" = x; then
5804 case $cross_compiling:$ac_tool_warned in
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5813 STRIP="$ac_cv_prog_STRIP"
5816 test -z "$STRIP" && STRIP=:
5823 if test -n "$ac_tool_prefix"; then
5824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5831 if test -n "$RANLIB"; then
5832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 RANLIB=$ac_cv_prog_RANLIB
5852 if test -n "$RANLIB"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5854 $as_echo "$RANLIB" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5862 if test -z "$ac_cv_prog_RANLIB"; then
5863 ac_ct_RANLIB=$RANLIB
5864 # Extract the first word of "ranlib", so it can be a program name with args.
5865 set dummy ranlib; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5871 if test -n "$ac_ct_RANLIB"; then
5872 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_ac_ct_RANLIB="ranlib"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5892 if test -n "$ac_ct_RANLIB"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5894 $as_echo "$ac_ct_RANLIB" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5900 if test "x$ac_ct_RANLIB" = x; then
5903 case $cross_compiling:$ac_tool_warned in
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907 ac_tool_warned=yes ;;
5909 RANLIB=$ac_ct_RANLIB
5912 RANLIB="$ac_cv_prog_RANLIB"
5915 test -z "$RANLIB" && RANLIB=:
5922 # Determine commands to create old-style static archives.
5923 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5924 old_postinstall_cmds='chmod 644 $oldlib'
5925 old_postuninstall_cmds=
5927 if test -n "$RANLIB"; then
5930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5933 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5936 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5941 lock_old_archive_extraction=yes ;;
5943 lock_old_archive_extraction=no ;;
5984 # If no C compiler was specified, use CC.
5987 # If no C compiler flags were specified, use CFLAGS.
5988 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5990 # Allow CC to be a program name with arguments.
5994 # Check for command to grab the raw symbol name followed by C symbol from nm.
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5996 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5997 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6001 # These are sane defaults that work on at least a few old systems.
6002 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6004 # Character class describing NM global symbol codes.
6005 symcode='[BCDEGRST]'
6007 # Regexp to match symbols that can be accessed directly from C.
6008 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6010 # Define system-specific variables.
6015 cygwin* | mingw* | pw32* | cegcc*)
6016 symcode='[ABCDGISTW]'
6019 if test "$host_cpu" = ia64; then
6020 symcode='[ABCDEGRST]'
6024 symcode='[BCDEGRST]'
6027 symcode='[BCDEGQRST]'
6038 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6046 # If we're using GNU nm, then use its standard symbol codes.
6047 case `$NM -V 2>&1` in
6048 *GNU* | *'with BFD'*)
6049 symcode='[ABCDGIRSTW]' ;;
6052 # Transform an extracted symbol line into a proper C declaration.
6053 # Some systems (esp. on ia64) link data and code symbols differently,
6054 # so use this general approach.
6055 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6057 # Transform an extracted symbol line into symbol name and symbol address
6058 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6059 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'"
6061 # Handle CRLF in mingw tool chain
6065 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6069 # Try without a prefix underscore, then with it.
6070 for ac_symprfx in "" "_"; do
6072 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6073 symxfrm="\\1 $ac_symprfx\\2 \\2"
6075 # Write the raw and C identifiers.
6076 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6077 # Fake it for dumpbin and say T for any non-static function
6078 # and D for any global variable.
6079 # Also find C++ and __fastcall symbols from MSVC++,
6080 # which start with @ or ?.
6081 lt_cv_sys_global_symbol_pipe="$AWK '"\
6082 " {last_section=section; section=\$ 3};"\
6083 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6084 " \$ 0!~/External *\|/{next};"\
6085 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6086 " {if(hide[section]) next};"\
6087 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6088 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6089 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6090 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6091 " ' prfx=^$ac_symprfx"
6093 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6096 # Check to see that the pipe works correctly.
6100 cat > conftest.$ac_ext <<_LT_EOF
6105 void nm_test_func(void);
6106 void nm_test_func(void){}
6110 int main(){nm_test_var='a';nm_test_func();return(0);}
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114 (eval $ac_compile) 2>&5
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; }; then
6118 # Now try to grab the symbols.
6120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6121 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124 test $ac_status = 0; } && test -s "$nlist"; then
6125 # Try sorting and uniquifying the output.
6126 if sort "$nlist" | uniq > "$nlist"T; then
6127 mv -f "$nlist"T "$nlist"
6132 # Make sure that we snagged all the symbols we need.
6133 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6134 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6135 cat <<_LT_EOF > conftest.$ac_ext
6141 # Now generate the symbol file.
6142 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6144 cat <<_LT_EOF >> conftest.$ac_ext
6146 /* The mapping between symbol names and symbols. */
6151 lt__PROGRAM__LTX_preloaded_symbols[] =
6153 { "@PROGRAM@", (void *) 0 },
6155 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6156 cat <<\_LT_EOF >> conftest.$ac_ext
6160 /* This works around a problem in FreeBSD linker */
6161 #ifdef FREEBSD_WORKAROUND
6162 static const void *lt_preloaded_setup() {
6163 return lt__PROGRAM__LTX_preloaded_symbols;
6171 # Now try linking the two files.
6172 mv conftest.$ac_objext conftstm.$ac_objext
6173 lt_save_LIBS="$LIBS"
6174 lt_save_CFLAGS="$CFLAGS"
6175 LIBS="conftstm.$ac_objext"
6176 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6178 (eval $ac_link) 2>&5
6180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6184 LIBS="$lt_save_LIBS"
6185 CFLAGS="$lt_save_CFLAGS"
6187 echo "cannot find nm_test_func in $nlist" >&5
6190 echo "cannot find nm_test_var in $nlist" >&5
6193 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6196 echo "$progname: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 rm -rf conftest* conftst*
6201 # Do not use the global_symbol_pipe unless it works.
6202 if test "$pipe_works" = yes; then
6205 lt_cv_sys_global_symbol_pipe=
6211 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6212 lt_cv_sys_global_symbol_to_cdecl=
6214 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6216 $as_echo "failed" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6219 $as_echo "ok" >&6; }
6244 # Check whether --enable-libtool-lock was given.
6245 if test "${enable_libtool_lock+set}" = set; then :
6246 enableval=$enable_libtool_lock;
6249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6251 # Some flags need to be propagated to the compiler or linker for good
6255 # Find out which ABI we are using.
6256 echo 'int i;' > conftest.$ac_ext
6257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6258 (eval $ac_compile) 2>&5
6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261 test $ac_status = 0; }; then
6262 case `/usr/bin/file conftest.$ac_objext` in
6274 # Find out which ABI we are using.
6275 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6277 (eval $ac_compile) 2>&5
6279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280 test $ac_status = 0; }; then
6281 if test "$lt_cv_prog_gnu_ld" = yes; then
6282 case `/usr/bin/file conftest.$ac_objext` in
6284 LD="${LD-ld} -melf32bsmip"
6287 LD="${LD-ld} -melf32bmipn32"
6290 LD="${LD-ld} -melf64bmip"
6294 case `/usr/bin/file conftest.$ac_objext` in
6310 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6311 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6312 # Find out which ABI we are using.
6313 echo 'int i;' > conftest.$ac_ext
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315 (eval $ac_compile) 2>&5
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }; then
6319 case `/usr/bin/file conftest.o` in
6322 x86_64-*kfreebsd*-gnu)
6323 LD="${LD-ld} -m elf_i386_fbsd"
6326 LD="${LD-ld} -m elf_i386"
6328 ppc64-*linux*|powerpc64-*linux*)
6329 LD="${LD-ld} -m elf32ppclinux"
6332 LD="${LD-ld} -m elf_s390"
6335 LD="${LD-ld} -m elf32_sparc"
6341 x86_64-*kfreebsd*-gnu)
6342 LD="${LD-ld} -m elf_x86_64_fbsd"
6345 LD="${LD-ld} -m elf_x86_64"
6347 ppc*-*linux*|powerpc*-*linux*)
6348 LD="${LD-ld} -m elf64ppc"
6350 s390*-*linux*|s390*-*tpf*)
6351 LD="${LD-ld} -m elf64_s390"
6354 LD="${LD-ld} -m elf64_sparc"
6364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365 SAVE_CFLAGS="$CFLAGS"
6366 CFLAGS="$CFLAGS -belf"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6389 if ac_fn_c_try_link "$LINENO"; then :
6390 lt_cv_cc_needs_belf=yes
6392 lt_cv_cc_needs_belf=no
6394 rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407 CFLAGS="$SAVE_CFLAGS"
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.o` in
6420 case $lt_cv_prog_gnu_ld in
6424 LD="${LD-ld} -m elf_x86_64"
6427 LD="${LD-ld} -m elf64_sparc"
6430 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6431 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6436 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6448 need_locks="$enable_libtool_lock"
6452 rhapsody* | darwin*)
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$DSYMUTIL"; then
6462 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6482 if test -n "$DSYMUTIL"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6484 $as_echo "$DSYMUTIL" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6492 if test -z "$ac_cv_prog_DSYMUTIL"; then
6493 ac_ct_DSYMUTIL=$DSYMUTIL
6494 # Extract the first word of "dsymutil", so it can be a program name with args.
6495 set dummy dsymutil; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$ac_ct_DSYMUTIL"; then
6502 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6522 if test -n "$ac_ct_DSYMUTIL"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6524 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6530 if test "x$ac_ct_DSYMUTIL" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6539 DSYMUTIL=$ac_ct_DSYMUTIL
6542 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6553 if test -n "$NMEDIT"; then
6554 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 NMEDIT=$ac_cv_prog_NMEDIT
6574 if test -n "$NMEDIT"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6576 $as_echo "$NMEDIT" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6584 if test -z "$ac_cv_prog_NMEDIT"; then
6585 ac_ct_NMEDIT=$NMEDIT
6586 # Extract the first word of "nmedit", so it can be a program name with args.
6587 set dummy nmedit; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$ac_ct_NMEDIT"; then
6594 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6614 if test -n "$ac_ct_NMEDIT"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6616 $as_echo "$ac_ct_NMEDIT" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6622 if test "x$ac_ct_NMEDIT" = x; then
6625 case $cross_compiling:$ac_tool_warned in
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6631 NMEDIT=$ac_ct_NMEDIT
6634 NMEDIT="$ac_cv_prog_NMEDIT"
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_LIPO+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 if test -n "$LIPO"; then
6646 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 LIPO=$ac_cv_prog_LIPO
6666 if test -n "$LIPO"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6668 $as_echo "$LIPO" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6676 if test -z "$ac_cv_prog_LIPO"; then
6678 # Extract the first word of "lipo", so it can be a program name with args.
6679 set dummy lipo; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6685 if test -n "$ac_ct_LIPO"; then
6686 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_ac_ct_LIPO="lipo"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6706 if test -n "$ac_ct_LIPO"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6708 $as_echo "$ac_ct_LIPO" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6714 if test "x$ac_ct_LIPO" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6726 LIPO="$ac_cv_prog_LIPO"
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}otool; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6737 if test -n "$OTOOL"; then
6738 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 OTOOL=$ac_cv_prog_OTOOL
6758 if test -n "$OTOOL"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6760 $as_echo "$OTOOL" >&6; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6768 if test -z "$ac_cv_prog_OTOOL"; then
6770 # Extract the first word of "otool", so it can be a program name with args.
6771 set dummy otool; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6777 if test -n "$ac_ct_OTOOL"; then
6778 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_ac_ct_OTOOL="otool"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6798 if test -n "$ac_ct_OTOOL"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6800 $as_echo "$ac_ct_OTOOL" >&6; }
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6806 if test "x$ac_ct_OTOOL" = x; then
6809 case $cross_compiling:$ac_tool_warned in
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6818 OTOOL="$ac_cv_prog_OTOOL"
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$OTOOL64"; then
6830 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 OTOOL64=$ac_cv_prog_OTOOL64
6850 if test -n "$OTOOL64"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6852 $as_echo "$OTOOL64" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_OTOOL64"; then
6861 ac_ct_OTOOL64=$OTOOL64
6862 # Extract the first word of "otool64", so it can be a program name with args.
6863 set dummy otool64; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6869 if test -n "$ac_ct_OTOOL64"; then
6870 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_OTOOL64="otool64"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6890 if test -n "$ac_ct_OTOOL64"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6892 $as_echo "$ac_ct_OTOOL64" >&6; }
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_OTOOL64" = x; then
6901 case $cross_compiling:$ac_tool_warned in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6907 OTOOL64=$ac_ct_OTOOL64
6910 OTOOL64="$ac_cv_prog_OTOOL64"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6940 $as_echo_n "checking for -single_module linker flag... " >&6; }
6941 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6944 lt_cv_apple_cc_single_mod=no
6945 if test -z "${LT_MULTI_MODULE}"; then
6946 # By default we will add the -single_module flag. You can override
6947 # by either setting the environment variable LT_MULTI_MODULE
6948 # non-empty at configure time, or by adding -multi_module to the
6950 rm -rf libconftest.dylib*
6951 echo "int foo(void){return 1;}" > conftest.c
6952 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6953 -dynamiclib -Wl,-single_module conftest.c" >&5
6954 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6955 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6957 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6958 lt_cv_apple_cc_single_mod=yes
6960 cat conftest.err >&5
6962 rm -rf libconftest.dylib*
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6967 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6969 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6970 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6971 $as_echo_n "(cached) " >&6
6973 lt_cv_ld_exported_symbols_list=no
6974 save_LDFLAGS=$LDFLAGS
6975 echo "_main" > conftest.sym
6976 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6988 if ac_fn_c_try_link "$LINENO"; then :
6989 lt_cv_ld_exported_symbols_list=yes
6991 lt_cv_ld_exported_symbols_list=no
6993 rm -f core conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6995 LDFLAGS="$save_LDFLAGS"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6999 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7001 $as_echo_n "checking for -force_load linker flag... " >&6; }
7002 if test "${lt_cv_ld_force_load+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7005 lt_cv_ld_force_load=no
7006 cat > conftest.c << _LT_EOF
7007 int forced_loaded() { return 2;}
7009 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7010 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7011 echo "$AR cru libconftest.a conftest.o" >&5
7012 $AR cru libconftest.a conftest.o 2>&5
7013 cat > conftest.c << _LT_EOF
7014 int main() { return 0;}
7016 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7017 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7019 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7020 lt_cv_ld_force_load=yes
7022 cat conftest.err >&5
7024 rm -f conftest.err libconftest.a conftest conftest.c
7025 rm -rf conftest.dSYM
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7029 $as_echo "$lt_cv_ld_force_load" >&6; }
7031 rhapsody* | darwin1.[012])
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7034 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035 darwin*) # darwin 5.x on
7036 # if running on 10.5 or later, the deployment target defaults
7037 # to the OS version, if on x86, and 10.4, the deployment
7038 # target defaults to 10.4. Don't you love it?
7039 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7040 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7041 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7043 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7045 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7049 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7050 _lt_dar_single_mod='$single_module'
7052 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7053 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7055 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7057 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7058 _lt_dsymutil='~$DSYMUTIL $lib || :'
7066 ac_cpp='$CPP $CPPFLAGS'
7067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7072 # On Suns, sometimes $CPP names a directory.
7073 if test -n "$CPP" && test -d "$CPP"; then
7076 if test -z "$CPP"; then
7077 if test "${ac_cv_prog_CPP+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7080 # Double quotes because CPP needs to be expanded
7081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7084 for ac_c_preproc_warn_flag in '' yes
7086 # Use a header file that comes with gcc, so configuring glibc
7087 # with a fresh cross-compiler works.
7088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089 # <limits.h> exists even on freestanding compilers.
7090 # On the NeXT, cc -E runs the code through the compiler's parser,
7091 # not just through cpp. "Syntax error" is here to catch this case.
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7095 # include <limits.h>
7097 # include <assert.h>
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7104 # Broken: fails on valid input.
7107 rm -f conftest.err conftest.$ac_ext
7109 # OK, works on sane cases. Now check whether nonexistent headers
7110 # can be detected and how.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <ac_nonexistent.h>
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116 # Broken: success on invalid input.
7119 # Passes both tests.
7123 rm -f conftest.err conftest.$ac_ext
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7141 $as_echo "$CPP" >&6; }
7143 for ac_c_preproc_warn_flag in '' yes
7145 # Use a header file that comes with gcc, so configuring glibc
7146 # with a fresh cross-compiler works.
7147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148 # <limits.h> exists even on freestanding compilers.
7149 # On the NeXT, cc -E runs the code through the compiler's parser,
7150 # not just through cpp. "Syntax error" is here to catch this case.
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7154 # include <limits.h>
7156 # include <assert.h>
7160 if ac_fn_c_try_cpp "$LINENO"; then :
7163 # Broken: fails on valid input.
7166 rm -f conftest.err conftest.$ac_ext
7168 # OK, works on sane cases. Now check whether nonexistent headers
7169 # can be detected and how.
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #include <ac_nonexistent.h>
7174 if ac_fn_c_try_cpp "$LINENO"; then :
7175 # Broken: success on invalid input.
7178 # Passes both tests.
7182 rm -f conftest.err conftest.$ac_ext
7185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7186 rm -f conftest.err conftest.$ac_ext
7187 if $ac_preproc_ok; then :
7190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7192 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7193 See \`config.log' for more details." "$LINENO" 5; }
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7204 $as_echo_n "checking for ANSI C header files... " >&6; }
7205 if test "${ac_cv_header_stdc+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7223 if ac_fn_c_try_compile "$LINENO"; then :
7224 ac_cv_header_stdc=yes
7226 ac_cv_header_stdc=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 if test $ac_cv_header_stdc = yes; then
7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "memchr" >/dev/null 2>&1; then :
7241 ac_cv_header_stdc=no
7247 if test $ac_cv_header_stdc = yes; then
7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "free" >/dev/null 2>&1; then :
7258 ac_cv_header_stdc=no
7264 if test $ac_cv_header_stdc = yes; then
7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266 if test "$cross_compiling" = yes; then :
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7273 #if ((' ' & 0x0FF) == 0x020)
7274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7277 # define ISLOWER(c) \
7278 (('a' <= (c) && (c) <= 'i') \
7279 || ('j' <= (c) && (c) <= 'r') \
7280 || ('s' <= (c) && (c) <= 'z'))
7281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7289 for (i = 0; i < 256; i++)
7290 if (XOR (islower (i), ISLOWER (i))
7291 || toupper (i) != TOUPPER (i))
7296 if ac_fn_c_try_run "$LINENO"; then :
7299 ac_cv_header_stdc=no
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302 conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7308 $as_echo "$ac_cv_header_stdc" >&6; }
7309 if test $ac_cv_header_stdc = yes; then
7311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7317 inttypes.h stdint.h unistd.h
7319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7322 eval as_val=\$$as_ac_Header
7323 if test "x$as_val" = x""yes; then :
7324 cat >>confdefs.h <<_ACEOF
7325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7333 for ac_header in dlfcn.h
7335 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7337 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7338 cat >>confdefs.h <<_ACEOF
7339 #define HAVE_DLFCN_H 1
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_GOC+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$GOC"; then
7355 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 if test -n "$GOC"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7377 $as_echo "$GOC" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_GOC"; then
7387 # Extract the first word of "gccgo", so it can be a program name with args.
7388 set dummy gccgo; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$ac_ct_GOC"; then
7395 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_ac_ct_GOC="gccgo"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7415 if test -n "$ac_ct_GOC"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7417 $as_echo "$ac_ct_GOC" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_GOC" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7435 GOC="$ac_cv_prog_GOC"
7451 # Check whether --enable-shared was given.
7452 if test "${enable_shared+set}" = set; then :
7453 enableval=$enable_shared; p=${PACKAGE-default}
7455 yes) enable_shared=yes ;;
7456 no) enable_shared=no ;;
7459 # Look at the argument we got. We use all the common list separators.
7460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7461 for pkg in $enableval; do
7463 if test "X$pkg" = "X$p"; then
7482 # Check whether --enable-static was given.
7483 if test "${enable_static+set}" = set; then :
7484 enableval=$enable_static; p=${PACKAGE-default}
7486 yes) enable_static=yes ;;
7487 no) enable_static=no ;;
7490 # Look at the argument we got. We use all the common list separators.
7491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492 for pkg in $enableval; do
7494 if test "X$pkg" = "X$p"; then
7514 # Check whether --with-pic was given.
7515 if test "${with_pic+set}" = set; then :
7516 withval=$with_pic; pic_mode="$withval"
7522 test -z "$pic_mode" && pic_mode=default
7530 # Check whether --enable-fast-install was given.
7531 if test "${enable_fast_install+set}" = set; then :
7532 enableval=$enable_fast_install; p=${PACKAGE-default}
7534 yes) enable_fast_install=yes ;;
7535 no) enable_fast_install=no ;;
7537 enable_fast_install=no
7538 # Look at the argument we got. We use all the common list separators.
7539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7540 for pkg in $enableval; do
7542 if test "X$pkg" = "X$p"; then
7543 enable_fast_install=yes
7550 enable_fast_install=yes
7563 # This can be used to rebuild libtool when needed
7564 LIBTOOL_DEPS="$ltmain"
7566 # Always use our own libtool.
7567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7594 test -z "$LN_S" && LN_S="ln -s"
7609 if test -n "${ZSH_VERSION+set}" ; then
7610 setopt NO_GLOB_SUBST
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7614 $as_echo_n "checking for objdir... " >&6; }
7615 if test "${lt_cv_objdir+set}" = set; then :
7616 $as_echo_n "(cached) " >&6
7618 rm -f .libs 2>/dev/null
7619 mkdir .libs 2>/dev/null
7620 if test -d .libs; then
7623 # MS-DOS does not allow filenames that begin with a dot.
7626 rmdir .libs 2>/dev/null
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7629 $as_echo "$lt_cv_objdir" >&6; }
7630 objdir=$lt_cv_objdir
7636 cat >>confdefs.h <<_ACEOF
7637 #define LT_OBJDIR "$lt_cv_objdir/"
7645 # AIX sometimes has problems with the GCC collect2 program. For some
7646 # reason, if we set the COLLECT_NAMES environment variable, the problems
7647 # vanish in a puff of smoke.
7648 if test "X${COLLECT_NAMES+set}" != Xset; then
7650 export COLLECT_NAMES
7657 can_build_shared=yes
7659 # All known linkers require a `.a' archive for static linking (except MSVC,
7660 # which needs '.lib').
7663 with_gnu_ld="$lt_cv_prog_gnu_ld"
7666 old_CFLAGS="$CFLAGS"
7668 # Set sane defaults for various variables
7669 test -z "$CC" && CC=cc
7670 test -z "$LTCC" && LTCC=$CC
7671 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7672 test -z "$LD" && LD=ld
7673 test -z "$ac_objext" && ac_objext=o
7675 for cc_temp in $compiler""; do
7677 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7678 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7683 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7686 # Only perform the check for file, if the check method requires it
7687 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7688 case $deplibs_check_method in
7690 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7692 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701 lt_save_MAGIC_CMD="$MAGIC_CMD"
7702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7704 for ac_dir in $ac_dummy; do
7706 test -z "$ac_dir" && ac_dir=.
7707 if test -f $ac_dir/${ac_tool_prefix}file; then
7708 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7709 if test -n "$file_magic_test_file"; then
7710 case $deplibs_check_method in
7712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7715 $EGREP "$file_magic_regex" > /dev/null; then
7720 *** Warning: the command libtool uses to detect shared libraries,
7721 *** $file_magic_cmd, produces output that libtool cannot recognize.
7722 *** The result is that libtool may fail to recognize shared libraries
7723 *** as such. This will affect the creation of libtool libraries that
7724 *** depend on shared libraries, but programs linked with such libtool
7725 *** libraries will work regardless of this problem. Nevertheless, you
7726 *** may want to report the problem to your system manager and/or to
7727 *** bug-libtool@gnu.org
7737 MAGIC_CMD="$lt_save_MAGIC_CMD"
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if test -n "$MAGIC_CMD"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7745 $as_echo "$MAGIC_CMD" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7755 if test -z "$lt_cv_path_MAGIC_CMD"; then
7756 if test -n "$ac_tool_prefix"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7758 $as_echo_n "checking for file... " >&6; }
7759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7767 lt_save_MAGIC_CMD="$MAGIC_CMD"
7768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770 for ac_dir in $ac_dummy; do
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/file; then
7774 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7775 if test -n "$file_magic_test_file"; then
7776 case $deplibs_check_method in
7778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781 $EGREP "$file_magic_regex" > /dev/null; then
7786 *** Warning: the command libtool uses to detect shared libraries,
7787 *** $file_magic_cmd, produces output that libtool cannot recognize.
7788 *** The result is that libtool may fail to recognize shared libraries
7789 *** as such. This will affect the creation of libtool libraries that
7790 *** depend on shared libraries, but programs linked with such libtool
7791 *** libraries will work regardless of this problem. Nevertheless, you
7792 *** may want to report the problem to your system manager and/or to
7793 *** bug-libtool@gnu.org
7803 MAGIC_CMD="$lt_save_MAGIC_CMD"
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if test -n "$MAGIC_CMD"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811 $as_echo "$MAGIC_CMD" >&6; }
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7827 # Use C for the default configuration in the libtool script
7831 ac_cpp='$CPP $CPPFLAGS'
7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837 # Source file extension for C test sources.
7840 # Object file extension for compiled C test sources.
7844 # Code to be used in simple compile tests
7845 lt_simple_compile_test_code="int some_variable = 0;"
7847 # Code to be used in simple link tests
7848 lt_simple_link_test_code='int main(){return(0);}'
7856 # If no C compiler was specified, use CC.
7859 # If no C compiler flags were specified, use CFLAGS.
7860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7862 # Allow CC to be a program name with arguments.
7865 # Save the default compiler, since it gets overwritten when the other
7866 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7867 compiler_DEFAULT=$CC
7869 # save warnings/boilerplate of simple test code
7870 ac_outfile=conftest.$ac_objext
7871 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7873 _lt_compiler_boilerplate=`cat conftest.err`
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879 _lt_linker_boilerplate=`cat conftest.err`
7884 ## There is no encapsulation within the following macros, do not change
7885 ## the running order or otherwise move them around unless you know exactly
7886 ## what you are doing...
7887 if test -n "$compiler"; then
7889 lt_prog_compiler_no_builtin_flag=
7891 if test "$GCC" = yes; then
7892 case $cc_basename in
7894 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7896 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7900 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7904 lt_cv_prog_compiler_rtti_exceptions=no
7905 ac_outfile=conftest.$ac_objext
7906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7907 lt_compiler_flag="-fno-rtti -fno-exceptions"
7908 # Insert the option either (1) after the last *FLAGS variable, or
7909 # (2) before a word containing "conftest.", or (3) at the end.
7910 # Note that $ac_compile itself does not contain backslashes and begins
7911 # with a dollar sign (not a hyphen), so the echo should work correctly.
7912 # The option is referenced via a variable to avoid confusing sed.
7913 lt_compile=`echo "$ac_compile" | $SED \
7914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7916 -e 's:$: $lt_compiler_flag:'`
7917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7918 (eval "$lt_compile" 2>conftest.err)
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 if (exit $ac_status) && test -s "$ac_outfile"; then
7923 # The compiler can only warn and ignore the option if not recognized
7924 # So say no if there are warnings other than the usual output.
7925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7928 lt_cv_prog_compiler_rtti_exceptions=yes
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7935 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7950 lt_prog_compiler_wl=
7951 lt_prog_compiler_pic=
7952 lt_prog_compiler_static=
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7957 if test "$GCC" = yes; then
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_static='-static'
7963 # All AIX code is PIC.
7964 if test "$host_cpu" = ia64; then
7965 # AIX 5 now supports IA64 processor
7966 lt_prog_compiler_static='-Bstatic'
7973 # see comment about AmigaOS4 .so support
7974 lt_prog_compiler_pic='-fPIC'
7977 # FIXME: we need at least 68020 code to build shared libraries, but
7978 # adding the `-m68020' flag to GCC prevents building anything better,
7980 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7985 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986 # PIC is the default for these OSes.
7989 mingw* | cygwin* | pw32* | os2* | cegcc*)
7990 # This hack is so that the source file can tell whether it is being
7991 # built for inclusion in a dll (and should export symbols for example).
7992 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7993 # (--disable-auto-import) libraries
7994 lt_prog_compiler_pic='-DDLL_EXPORT'
7997 darwin* | rhapsody*)
7998 # PIC is the default on this platform
7999 # Common symbols not allowed in MH_DYLIB files
8000 lt_prog_compiler_pic='-fno-common'
8004 # PIC is the default for Haiku.
8005 # The "-static" flag exists, but is broken.
8006 lt_prog_compiler_static=
8010 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8011 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8012 # sets the default TLS model and affects inlining.
8018 lt_prog_compiler_pic='-fPIC'
8024 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8025 # Instead, we relocate shared libraries at runtime.
8029 # Just because we use GCC doesn't mean we suddenly get shared libraries
8030 # on systems that don't support them.
8031 lt_prog_compiler_can_build_shared=no
8036 # QNX uses GNU C++, but need to define -shared option too, otherwise
8038 lt_prog_compiler_pic='-fPIC -shared'
8042 if test -d /usr/nec; then
8043 lt_prog_compiler_pic=-Kconform_pic
8048 lt_prog_compiler_pic='-fPIC'
8052 case $cc_basename in
8053 nvcc*) # Cuda Compiler Driver 2.2
8054 lt_prog_compiler_wl='-Xlinker '
8055 lt_prog_compiler_pic='-Xcompiler -fPIC'
8059 # PORTME Check for flag to pass linker flags through the system compiler.
8062 lt_prog_compiler_wl='-Wl,'
8063 if test "$host_cpu" = ia64; then
8064 # AIX 5 now supports IA64 processor
8065 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8071 mingw* | cygwin* | pw32* | os2* | cegcc*)
8072 # This hack is so that the source file can tell whether it is being
8073 # built for inclusion in a dll (and should export symbols for example).
8074 lt_prog_compiler_pic='-DDLL_EXPORT'
8077 hpux9* | hpux10* | hpux11*)
8078 lt_prog_compiler_wl='-Wl,'
8079 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8086 lt_prog_compiler_pic='+Z'
8089 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8090 lt_prog_compiler_static='${wl}-a ${wl}archive'
8093 irix5* | irix6* | nonstopux*)
8094 lt_prog_compiler_wl='-Wl,'
8095 # PIC (with -KPIC) is the default.
8096 lt_prog_compiler_static='-non_shared'
8099 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8100 case $cc_basename in
8101 # old Intel for x86_64 which still supported -KPIC.
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='-KPIC'
8105 lt_prog_compiler_static='-static'
8107 # icc used to be incompatible with GCC.
8108 # ICC 10 doesn't accept -KPIC any more.
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-fPIC'
8112 lt_prog_compiler_static='-static'
8114 # Lahey Fortran 8.1.
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='--shared'
8118 lt_prog_compiler_static='--static'
8120 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8121 # Portland Group compilers (*not* the Pentium gcc compiler,
8122 # which looks to be a dead project)
8123 lt_prog_compiler_wl='-Wl,'
8124 lt_prog_compiler_pic='-fpic'
8125 lt_prog_compiler_static='-Bstatic'
8128 lt_prog_compiler_wl='-Wl,'
8129 # All Alpha code is PIC.
8130 lt_prog_compiler_static='-non_shared'
8132 xl* | bgxl* | bgf* | mpixl*)
8133 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_pic='-qpic'
8136 lt_prog_compiler_static='-qstaticlink'
8139 case `$CC -V 2>&1 | sed 5q` in
8140 *Sun\ F* | *Sun*Fortran*)
8141 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8142 lt_prog_compiler_pic='-KPIC'
8143 lt_prog_compiler_static='-Bstatic'
8144 lt_prog_compiler_wl=''
8148 lt_prog_compiler_pic='-KPIC'
8149 lt_prog_compiler_static='-Bstatic'
8150 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_pic='-KPIC'
8159 lt_prog_compiler_static='-Bstatic'
8163 # QNX uses GNU C++, but need to define -shared option too, otherwise
8165 lt_prog_compiler_pic='-fPIC -shared'
8168 osf3* | osf4* | osf5*)
8169 lt_prog_compiler_wl='-Wl,'
8170 # All OSF/1 code is PIC.
8171 lt_prog_compiler_static='-non_shared'
8175 lt_prog_compiler_static='-non_shared'
8179 lt_prog_compiler_pic='-KPIC'
8180 lt_prog_compiler_static='-Bstatic'
8181 case $cc_basename in
8183 lt_prog_compiler_wl='-Qoption ld ';;
8185 lt_prog_compiler_wl='-Wl,';;
8190 lt_prog_compiler_wl='-Qoption ld '
8191 lt_prog_compiler_pic='-PIC'
8192 lt_prog_compiler_static='-Bstatic'
8195 sysv4 | sysv4.2uw2* | sysv4.3*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8202 if test -d /usr/nec ;then
8203 lt_prog_compiler_pic='-Kconform_pic'
8204 lt_prog_compiler_static='-Bstatic'
8208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8209 lt_prog_compiler_wl='-Wl,'
8210 lt_prog_compiler_pic='-KPIC'
8211 lt_prog_compiler_static='-Bstatic'
8215 lt_prog_compiler_wl='-Wl,'
8216 lt_prog_compiler_can_build_shared=no
8220 lt_prog_compiler_pic='-pic'
8221 lt_prog_compiler_static='-Bstatic'
8225 lt_prog_compiler_can_build_shared=no
8231 # For platforms which do not support PIC, -DPIC is meaningless:
8233 lt_prog_compiler_pic=
8236 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8240 $as_echo "$lt_prog_compiler_pic" >&6; }
8248 # Check to make sure the PIC flag actually works.
8250 if test -n "$lt_prog_compiler_pic"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8252 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8253 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8256 lt_cv_prog_compiler_pic_works=no
8257 ac_outfile=conftest.$ac_objext
8258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8259 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8260 # Insert the option either (1) after the last *FLAGS variable, or
8261 # (2) before a word containing "conftest.", or (3) at the end.
8262 # Note that $ac_compile itself does not contain backslashes and begins
8263 # with a dollar sign (not a hyphen), so the echo should work correctly.
8264 # The option is referenced via a variable to avoid confusing sed.
8265 lt_compile=`echo "$ac_compile" | $SED \
8266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8268 -e 's:$: $lt_compiler_flag:'`
8269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8270 (eval "$lt_compile" 2>conftest.err)
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 if (exit $ac_status) && test -s "$ac_outfile"; then
8275 # The compiler can only warn and ignore the option if not recognized
8276 # So say no if there are warnings other than the usual output.
8277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8280 lt_cv_prog_compiler_pic_works=yes
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8287 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8289 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8290 case $lt_prog_compiler_pic in
8292 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8295 lt_prog_compiler_pic=
8296 lt_prog_compiler_can_build_shared=no
8307 # Check to make sure the static flag actually works.
8309 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8311 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8312 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8313 $as_echo_n "(cached) " >&6
8315 lt_cv_prog_compiler_static_works=no
8316 save_LDFLAGS="$LDFLAGS"
8317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8320 # The linker can only warn and ignore the option if not recognized
8321 # So say no if there are warnings
8322 if test -s conftest.err; then
8323 # Append any errors to the config.log.
8324 cat conftest.err 1>&5
8325 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327 if diff conftest.exp conftest.er2 >/dev/null; then
8328 lt_cv_prog_compiler_static_works=yes
8331 lt_cv_prog_compiler_static_works=yes
8335 LDFLAGS="$save_LDFLAGS"
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8339 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8341 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8344 lt_prog_compiler_static=
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8354 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8355 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8358 lt_cv_prog_compiler_c_o=no
8359 $RM -r conftest 2>/dev/null
8363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8365 lt_compiler_flag="-o out/conftest2.$ac_objext"
8366 # Insert the option either (1) after the last *FLAGS variable, or
8367 # (2) before a word containing "conftest.", or (3) at the end.
8368 # Note that $ac_compile itself does not contain backslashes and begins
8369 # with a dollar sign (not a hyphen), so the echo should work correctly.
8370 lt_compile=`echo "$ac_compile" | $SED \
8371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373 -e 's:$: $lt_compiler_flag:'`
8374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8375 (eval "$lt_compile" 2>out/conftest.err)
8377 cat out/conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8381 # The compiler can only warn and ignore the option if not recognized
8382 # So say no if there are warnings
8383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8386 lt_cv_prog_compiler_c_o=yes
8391 # SGI C++ compiler will create directory out/ii_files/ for
8392 # template instantiation
8393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8394 $RM out/* && rmdir out
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8401 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8413 lt_cv_prog_compiler_c_o=no
8414 $RM -r conftest 2>/dev/null
8418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8420 lt_compiler_flag="-o out/conftest2.$ac_objext"
8421 # Insert the option either (1) after the last *FLAGS variable, or
8422 # (2) before a word containing "conftest.", or (3) at the end.
8423 # Note that $ac_compile itself does not contain backslashes and begins
8424 # with a dollar sign (not a hyphen), so the echo should work correctly.
8425 lt_compile=`echo "$ac_compile" | $SED \
8426 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428 -e 's:$: $lt_compiler_flag:'`
8429 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430 (eval "$lt_compile" 2>out/conftest.err)
8432 cat out/conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8436 # The compiler can only warn and ignore the option if not recognized
8437 # So say no if there are warnings
8438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8439 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441 lt_cv_prog_compiler_c_o=yes
8446 # SGI C++ compiler will create directory out/ii_files/ for
8447 # template instantiation
8448 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449 $RM out/* && rmdir out
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8461 hard_links="nottested"
8462 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8463 # do not overwrite the value of need_locks provided by the user
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8465 $as_echo_n "checking if we can lock with hard links... " >&6; }
8468 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8470 ln conftest.a conftest.b 2>&5 || hard_links=no
8471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8473 $as_echo "$hard_links" >&6; }
8474 if test "$hard_links" = no; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8476 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8489 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8492 allow_undefined_flag=
8493 always_export_symbols=no
8495 archive_expsym_cmds=
8496 compiler_needs_object=no
8497 enable_shared_with_static_runtimes=no
8498 export_dynamic_flag_spec=
8499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8500 hardcode_automatic=no
8502 hardcode_direct_absolute=no
8503 hardcode_libdir_flag_spec=
8504 hardcode_libdir_flag_spec_ld=
8505 hardcode_libdir_separator=
8507 hardcode_shlibpath_var=unsupported
8509 link_all_deplibs=unknown
8512 old_archive_from_new_cmds=
8513 old_archive_from_expsyms_cmds=
8514 thread_safe_flag_spec=
8515 whole_archive_flag_spec=
8516 # include_expsyms should be a list of space-separated symbols to be *always*
8517 # included in the symbol list
8519 # exclude_expsyms can be an extended regexp of symbols to exclude
8520 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8521 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8522 # as well as any symbol that contains `d'.
8523 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8525 # platforms (ab)use it in PIC code, but their linkers get confused if
8526 # the symbol is explicitly referenced. Since portable code cannot
8527 # rely on this symbol name, it's probably fine to never include it in
8528 # preloaded symbol tables.
8529 # Exclude shared library initialization/finalization symbols.
8530 extract_expsyms_cmds=
8533 cygwin* | mingw* | pw32* | cegcc*)
8534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8535 # When not using gcc, we currently assume that we are using
8536 # Microsoft Visual C++.
8537 if test "$GCC" != yes; then
8542 # we just hope/assume this is gcc and not c89 (= MSVC++)
8552 # On some targets, GNU ld is compatible enough with the native linker
8553 # that we're better off using the native interface for both.
8554 lt_use_gnu_ld_interface=no
8555 if test "$with_gnu_ld" = yes; then
8558 # The AIX port of GNU ld has always aspired to compatibility
8559 # with the native linker. However, as the warning in the GNU ld
8560 # block says, versions before 2.19.5* couldn't really create working
8561 # shared libraries, regardless of the interface used.
8562 case `$LD -v 2>&1` in
8563 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8564 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8565 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8567 lt_use_gnu_ld_interface=yes
8572 lt_use_gnu_ld_interface=yes
8577 if test "$lt_use_gnu_ld_interface" = yes; then
8578 # If archive_cmds runs LD, not CC, wlarc should be empty
8581 # Set some defaults for GNU ld with shared library support. These
8582 # are reset later if shared libraries are not supported. Putting them
8583 # here allows them to be overridden if necessary.
8584 runpath_var=LD_RUN_PATH
8585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8586 export_dynamic_flag_spec='${wl}--export-dynamic'
8587 # ancient GNU ld didn't support --whole-archive et. al.
8588 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8589 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8591 whole_archive_flag_spec=
8593 supports_anon_versioning=no
8594 case `$LD -v 2>&1` in
8595 *GNU\ gold*) supports_anon_versioning=yes ;;
8596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8599 *\ 2.11.*) ;; # other 2.11 versions
8600 *) supports_anon_versioning=yes ;;
8603 # See if GNU ld supports shared libraries.
8606 # On AIX/PPC, the GNU linker is very broken
8607 if test "$host_cpu" != ia64; then
8611 *** Warning: the GNU linker, at least up to release 2.19, is reported
8612 *** to be unable to reliably create shared libraries on AIX.
8613 *** Therefore, libtool is disabling shared libraries support. If you
8614 *** really care for shared libraries, you may want to install binutils
8615 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8616 *** You will then need to restart the configuration process.
8625 # see comment about AmigaOS4 .so support
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds=''
8630 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)'
8631 hardcode_libdir_flag_spec='-L$libdir'
8632 hardcode_minus_L=yes
8638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8639 allow_undefined_flag=unsupported
8640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8641 # support --undefined. This deserves some investigation. FIXME
8642 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648 cygwin* | mingw* | pw32* | cegcc*)
8649 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8650 # as there is no search path for DLLs.
8651 hardcode_libdir_flag_spec='-L$libdir'
8652 export_dynamic_flag_spec='${wl}--export-all-symbols'
8653 allow_undefined_flag=unsupported
8654 always_export_symbols=no
8655 enable_shared_with_static_runtimes=yes
8656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8658 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8660 # If the export-symbols file already is a .def file (1st line
8661 # is EXPORTS), use it as is; otherwise, prepend...
8662 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8663 cp $export_symbols $output_objdir/$soname.def;
8665 echo EXPORTS > $output_objdir/$soname.def;
8666 cat $export_symbols >> $output_objdir/$soname.def;
8668 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 link_all_deplibs=yes
8681 hardcode_shlibpath_var=no
8682 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8683 export_dynamic_flag_spec='${wl}-E'
8684 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8685 # Instead, shared libraries are loaded at an image base (0x10000000 by
8686 # default) and relocated if they conflict, which is a slow very memory
8687 # consuming and fragmenting process. To avoid this, we pick a random,
8688 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8689 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8690 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8691 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'
8694 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8696 if test "$host_os" = linux-dietlibc; then
8697 case $cc_basename in
8698 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8701 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8702 && test "$tmp_diet" = no
8705 tmp_sharedflag='-shared'
8706 case $cc_basename,$host_cpu in
8707 pgcc*) # Portland Group C compiler
8708 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'
8709 tmp_addflag=' $pic_flag'
8711 pgf77* | pgf90* | pgf95* | pgfortran*)
8712 # Portland Group f77 and f90 compilers
8713 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8714 tmp_addflag=' $pic_flag -Mnomain' ;;
8715 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8716 tmp_addflag=' -i_dynamic' ;;
8717 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8718 tmp_addflag=' -i_dynamic -nofor_main' ;;
8719 ifc* | ifort*) # Intel Fortran compiler
8720 tmp_addflag=' -nofor_main' ;;
8721 lf95*) # Lahey Fortran 8.1
8722 whole_archive_flag_spec=
8723 tmp_sharedflag='--shared' ;;
8724 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8725 tmp_sharedflag='-qmkshrobj'
8727 nvcc*) # Cuda Compiler Driver 2.2
8728 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'
8729 compiler_needs_object=yes
8732 case `$CC -V 2>&1 | sed 5q` in
8733 *Sun\ C*) # Sun C 5.9
8734 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'
8735 compiler_needs_object=yes
8736 tmp_sharedflag='-G' ;;
8737 *Sun\ F*) # Sun Fortran 8.3
8738 tmp_sharedflag='-G' ;;
8740 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742 if test "x$supports_anon_versioning" = xyes; then
8743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745 echo "local: *; };" >> $output_objdir/$libname.ver~
8746 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8749 case $cc_basename in
8750 xlf* | bgf* | bgxlf* | mpixlf*)
8751 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8752 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8753 hardcode_libdir_flag_spec=
8754 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8755 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8756 if test "x$supports_anon_versioning" = xyes; then
8757 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8758 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8759 echo "local: *; };" >> $output_objdir/$libname.ver~
8760 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8771 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8780 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8785 *** create shared libraries on Solaris systems. Therefore, libtool
8786 *** is disabling shared libraries support. We urge you to upgrade GNU
8787 *** binutils to release 2.9.1 or newer. Another option is to modify
8788 *** your PATH or compiler configuration so that the native linker is
8789 *** used, and then restart.
8792 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8801 case `$LD -v 2>&1` in
8802 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8807 *** reliably create shared libraries on SCO systems. Therefore, libtool
8808 *** is disabling shared libraries support. We urge you to upgrade GNU
8809 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8810 *** your PATH or compiler configuration so that the native linker is
8811 *** used, and then restart.
8816 # For security reasons, it is highly recommended that you always
8817 # use absolute paths for naming shared libraries, and exclude the
8818 # DT_RUNPATH tag from executables and libraries. But doing so
8819 # requires that you compile everything twice, which is a pain.
8820 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8835 hardcode_shlibpath_var=no
8839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8848 if test "$ld_shlibs" = no; then
8850 hardcode_libdir_flag_spec=
8851 export_dynamic_flag_spec=
8852 whole_archive_flag_spec=
8855 # PORTME fill in a description of your system's linker (not GNU ld)
8858 allow_undefined_flag=unsupported
8859 always_export_symbols=yes
8860 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'
8861 # Note: this linker hardcodes the directories in LIBPATH if there
8862 # are no directories specified by -L.
8863 hardcode_minus_L=yes
8864 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8865 # Neither direct hardcoding nor static linking is supported with a
8867 hardcode_direct=unsupported
8872 if test "$host_cpu" = ia64; then
8873 # On IA64, the linker does run time linking by default, so we don't
8874 # have to do anything special.
8875 aix_use_runtimelinking=no
8876 exp_sym_flag='-Bexport'
8879 # If we're using GNU nm, then we don't want the "-C" option.
8880 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8881 # Also, AIX nm treats weak defined symbols like other global
8882 # defined symbols, whereas GNU nm marks them as "W".
8883 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8884 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'
8886 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'
8888 aix_use_runtimelinking=no
8890 # Test if we are trying to use run time linking or normal
8891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8892 # need to do runtime linking.
8893 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8894 for ld_flag in $LDFLAGS; do
8895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8896 aix_use_runtimelinking=yes
8903 exp_sym_flag='-bexport'
8904 no_entry_flag='-bnoentry'
8907 # When large executables or shared objects are built, AIX ld can
8908 # have problems creating the table of contents. If linking a library
8909 # or program results in "error TOC overflow" add -mminimal-toc to
8910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8915 hardcode_direct_absolute=yes
8916 hardcode_libdir_separator=':'
8917 link_all_deplibs=yes
8918 file_list_spec='${wl}-f,'
8920 if test "$GCC" = yes; then
8921 case $host_os in aix4.[012]|aix4.[012].*)
8922 # We only want to do this on AIX 4.2 and lower, the check
8923 # below for broken collect2 doesn't work under 4.3+
8924 collect2name=`${CC} -print-prog-name=collect2`
8925 if test -f "$collect2name" &&
8926 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8928 # We have reworked collect2
8931 # We have old collect2
8932 hardcode_direct=unsupported
8933 # It fails to find uninstalled libraries when the uninstalled
8934 # path is not listed in the libpath. Setting hardcode_minus_L
8935 # to unsupported forces relinking
8936 hardcode_minus_L=yes
8937 hardcode_libdir_flag_spec='-L$libdir'
8938 hardcode_libdir_separator=
8942 shared_flag='-shared'
8943 if test "$aix_use_runtimelinking" = yes; then
8944 shared_flag="$shared_flag "'${wl}-G'
8948 if test "$host_cpu" = ia64; then
8949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8950 # chokes on -Wl,-G. The following line is correct:
8953 if test "$aix_use_runtimelinking" = yes; then
8954 shared_flag='${wl}-G'
8956 shared_flag='${wl}-bM:SRE'
8961 export_dynamic_flag_spec='${wl}-bexpall'
8962 # It seems that -bexpall does not export symbols beginning with
8963 # underscore (_), so it is better to generate a list of symbols to export.
8964 always_export_symbols=yes
8965 if test "$aix_use_runtimelinking" = yes; then
8966 # Warning - without using the other runtime loading flags (-brtl),
8967 # -berok will link without error, but may produce a broken library.
8968 allow_undefined_flag='-berok'
8969 # Determine the default libpath from the value encoded in an
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8982 if ac_fn_c_try_link "$LINENO"; then :
8984 lt_aix_libpath_sed='
8985 /Import File Strings/,/^$/ {
8991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8992 # Check for a 64-bit object if we didn't find anything.
8993 if test -z "$aix_libpath"; then
8994 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9001 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9002 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"
9004 if test "$host_cpu" = ia64; then
9005 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9006 allow_undefined_flag="-z nodefs"
9007 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"
9009 # Determine the default libpath from the value encoded in an
9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9022 if ac_fn_c_try_link "$LINENO"; then :
9024 lt_aix_libpath_sed='
9025 /Import File Strings/,/^$/ {
9031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032 # Check for a 64-bit object if we didn't find anything.
9033 if test -z "$aix_libpath"; then
9034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9037 rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9042 # Warning - without using the other run time loading flags,
9043 # -berok will link without error, but may produce a broken library.
9044 no_undefined_flag=' ${wl}-bernotok'
9045 allow_undefined_flag=' ${wl}-berok'
9046 if test "$with_gnu_ld" = yes; then
9047 # We only use this code for GNU lds that support --whole-archive.
9048 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9050 # Exported symbols can be pulled into shared objects from archives
9051 whole_archive_flag_spec='$convenience'
9053 archive_cmds_need_lc=yes
9054 # This is similar to how AIX traditionally builds its shared libraries.
9055 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'
9063 # see comment about AmigaOS4 .so support
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 archive_expsym_cmds=''
9068 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)'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_minus_L=yes
9076 export_dynamic_flag_spec=-rdynamic
9079 cygwin* | mingw* | pw32* | cegcc*)
9080 # When not using gcc, we currently assume that we are using
9081 # Microsoft Visual C++.
9082 # hardcode_libdir_flag_spec is actually meaningless, as there is
9083 # no search path for DLLs.
9084 hardcode_libdir_flag_spec=' '
9085 allow_undefined_flag=unsupported
9086 # Tell ltmain to make .lib files, not .a files.
9088 # Tell ltmain to make .dll files, not .so files.
9090 # FIXME: Setting linknames here is a bad hack.
9091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9092 # The linker will automatically build a .lib file if we build a DLL.
9093 old_archive_from_new_cmds='true'
9094 # FIXME: Should let the user specify the lib program.
9095 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9096 fix_srcfile_path='`cygpath -w "$srcfile"`'
9097 enable_shared_with_static_runtimes=yes
9100 darwin* | rhapsody*)
9103 archive_cmds_need_lc=no
9105 hardcode_automatic=yes
9106 hardcode_shlibpath_var=unsupported
9107 if test "$lt_cv_ld_force_load" = "yes"; then
9108 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\"`'
9110 whole_archive_flag_spec=''
9112 link_all_deplibs=yes
9113 allow_undefined_flag="$_lt_dar_allow_undefined"
9114 case $cc_basename in
9115 ifort*) _lt_dar_can_shared=yes ;;
9116 *) _lt_dar_can_shared=$GCC ;;
9118 if test "$_lt_dar_can_shared" = "yes"; then
9119 output_verbose_link_cmd=func_echo_all
9120 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9121 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9122 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}"
9123 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}"
9132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 hardcode_shlibpath_var=no
9137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9138 # support. Future versions do this automatically, but an explicit c++rt0.o
9139 # does not break anything, and helps significantly (at the cost of a little
9142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9143 hardcode_libdir_flag_spec='-R$libdir'
9145 hardcode_shlibpath_var=no
9148 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_minus_L=yes
9153 hardcode_shlibpath_var=no
9156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9157 freebsd* | dragonfly*)
9158 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9159 hardcode_libdir_flag_spec='-R$libdir'
9161 hardcode_shlibpath_var=no
9165 if test "$GCC" = yes; then
9166 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'
9168 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'
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
9174 # hardcode_minus_L: Not really in the search PATH,
9175 # but as the default location of the library.
9176 hardcode_minus_L=yes
9177 export_dynamic_flag_spec='${wl}-E'
9181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9186 if test "$with_gnu_ld" = no; then
9187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9188 hardcode_libdir_flag_spec_ld='+b $libdir'
9189 hardcode_libdir_separator=:
9191 hardcode_direct_absolute=yes
9192 export_dynamic_flag_spec='${wl}-E'
9193 # hardcode_minus_L: Not really in the search PATH,
9194 # but as the default location of the library.
9195 hardcode_minus_L=yes
9200 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9203 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9218 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9222 # Older versions of the 11.00 compiler do not understand -b yet
9223 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9225 $as_echo_n "checking if $CC understands -b... " >&6; }
9226 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9229 lt_cv_prog_compiler__b=no
9230 save_LDFLAGS="$LDFLAGS"
9231 LDFLAGS="$LDFLAGS -b"
9232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9234 # The linker can only warn and ignore the option if not recognized
9235 # So say no if there are warnings
9236 if test -s conftest.err; then
9237 # Append any errors to the config.log.
9238 cat conftest.err 1>&5
9239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9241 if diff conftest.exp conftest.er2 >/dev/null; then
9242 lt_cv_prog_compiler__b=yes
9245 lt_cv_prog_compiler__b=yes
9249 LDFLAGS="$save_LDFLAGS"
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9253 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9255 if test x"$lt_cv_prog_compiler__b" = xyes; then
9256 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9264 if test "$with_gnu_ld" = no; then
9265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9266 hardcode_libdir_separator=:
9271 hardcode_shlibpath_var=no
9275 hardcode_direct_absolute=yes
9276 export_dynamic_flag_spec='${wl}-E'
9278 # hardcode_minus_L: Not really in the search PATH,
9279 # but as the default location of the library.
9280 hardcode_minus_L=yes
9286 irix5* | irix6* | nonstopux*)
9287 if test "$GCC" = yes; then
9288 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'
9289 # Try to use the -exported_symbol ld option, if it does not
9290 # work, assume that -exports_file does not work either and
9291 # implicitly export all symbols.
9292 save_LDFLAGS="$LDFLAGS"
9293 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 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'
9302 rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304 LDFLAGS="$save_LDFLAGS"
9306 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'
9307 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'
9309 archive_cmds_need_lc='no'
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 hardcode_libdir_separator=:
9313 link_all_deplibs=yes
9317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9320 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9322 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_shlibpath_var=no
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 hardcode_libdir_separator=:
9332 hardcode_shlibpath_var=no
9339 if test -f /usr/libexec/ld.so; then
9341 hardcode_shlibpath_var=no
9342 hardcode_direct_absolute=yes
9343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 export_dynamic_flag_spec='${wl}-E'
9350 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 hardcode_minus_L=yes
9368 allow_undefined_flag=unsupported
9369 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'
9370 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9374 if test "$GCC" = yes; then
9375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376 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'
9378 allow_undefined_flag=' -expect_unresolved \*'
9379 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'
9381 archive_cmds_need_lc='no'
9382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9383 hardcode_libdir_separator=:
9386 osf4* | osf5*) # as osf3* with the addition of -msym flag
9387 if test "$GCC" = yes; then
9388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9389 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'
9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 allow_undefined_flag=' -expect_unresolved \*'
9393 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'
9394 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~
9395 $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'
9397 # Both c and cxx compiler support -rpath directly
9398 hardcode_libdir_flag_spec='-rpath $libdir'
9400 archive_cmds_need_lc='no'
9401 hardcode_libdir_separator=:
9405 no_undefined_flag=' -z defs'
9406 if test "$GCC" = yes; then
9408 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9412 case `$CC -V 2>&1` in
9415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9421 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9423 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9427 hardcode_libdir_flag_spec='-R$libdir'
9428 hardcode_shlibpath_var=no
9430 solaris2.[0-5] | solaris2.[0-5].*) ;;
9432 # The compiler driver will combine and reorder linker options,
9433 # but understands `-z linker_flag'. GCC discards it without `$wl',
9434 # but is careful enough not to reorder.
9435 # Supported since Solaris 2.6 (maybe 2.5.1?)
9436 if test "$GCC" = yes; then
9437 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9439 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9443 link_all_deplibs=yes
9447 if test "x$host_vendor" = xsequent; then
9448 # Use $CC to link under sequent, because it throws in some extra .o
9449 # files that make .init and .fini sections work.
9450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_minus_L=yes
9457 hardcode_shlibpath_var=no
9461 case $host_vendor in
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_direct=yes # is this really true???
9467 ## LD is ld it makes a PLAMLIB
9468 ## CC just makes a GrossModule.
9469 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9470 reload_cmds='$CC -r -o $output$reload_objs'
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9478 runpath_var='LD_RUN_PATH'
9479 hardcode_shlibpath_var=no
9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484 hardcode_shlibpath_var=no
9485 export_dynamic_flag_spec='-Bexport'
9489 if test -d /usr/nec; then
9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_shlibpath_var=no
9492 runpath_var=LD_RUN_PATH
9493 hardcode_runpath_var=yes
9498 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9499 no_undefined_flag='${wl}-z,text'
9500 archive_cmds_need_lc=no
9501 hardcode_shlibpath_var=no
9502 runpath_var='LD_RUN_PATH'
9504 if test "$GCC" = yes; then
9505 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 sysv5* | sco3.2v5* | sco5v6*)
9514 # Note: We can NOT use -z defs as we might desire, because we do not
9515 # link with -lc, and that would cause any symbols used from libc to
9516 # always be unresolved, which means just about no library would
9517 # ever link correctly. If we're not using GNU ld we use -z text
9518 # though, which does catch some bad symbols but isn't as heavy-handed
9520 no_undefined_flag='${wl}-z,text'
9521 allow_undefined_flag='${wl}-z,nodefs'
9522 archive_cmds_need_lc=no
9523 hardcode_shlibpath_var=no
9524 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9525 hardcode_libdir_separator=':'
9526 link_all_deplibs=yes
9527 export_dynamic_flag_spec='${wl}-Bexport'
9528 runpath_var='LD_RUN_PATH'
9530 if test "$GCC" = yes; then
9531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_libdir_flag_spec='-L$libdir'
9542 hardcode_shlibpath_var=no
9550 if test x$host_vendor = xsni; then
9552 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9553 export_dynamic_flag_spec='${wl}-Blargedynsym'
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9560 $as_echo "$ld_shlibs" >&6; }
9561 test "$ld_shlibs" = no && can_build_shared=no
9563 with_gnu_ld=$with_gnu_ld
9580 # Do we need to explicitly link libc?
9582 case "x$archive_cmds_need_lc" in
9584 # Assume -lc should be added
9585 archive_cmds_need_lc=yes
9587 if test "$enable_shared" = yes && test "$GCC" = yes; then
9588 case $archive_cmds in
9590 # FIXME: we may have to deal with multi-command sequences.
9593 # Test whether the compiler implicitly links with -lc since on some
9594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9595 # to ld, don't add -lc before -lgcc.
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9597 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9598 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9605 (eval $ac_compile) 2>&5
9607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9608 test $ac_status = 0; } 2>conftest.err; then
9611 libobjs=conftest.$ac_objext
9613 wl=$lt_prog_compiler_wl
9614 pic_flag=$lt_prog_compiler_pic
9620 lt_save_allow_undefined_flag=$allow_undefined_flag
9621 allow_undefined_flag=
9622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9626 test $ac_status = 0; }
9628 lt_cv_archive_cmds_need_lc=no
9630 lt_cv_archive_cmds_need_lc=yes
9632 allow_undefined_flag=$lt_save_allow_undefined_flag
9634 cat conftest.err 1>&5
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9640 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9641 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9805 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9807 if test "$GCC" = yes; then
9809 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9810 *) lt_awk_arg="/^libraries:/" ;;
9813 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9814 *) lt_sed_strip_eq="s,=/,/,g" ;;
9816 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9817 case $lt_search_path_spec in
9819 # if the path contains ";" then we assume it to be the separator
9820 # otherwise default to the standard path separator (i.e. ":") - it is
9821 # assumed that no part of a normal pathname contains ";" but that should
9822 # okay in the real world where ";" in dirpaths is itself problematic.
9823 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9826 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9829 # Ok, now we have the path, separated by spaces, we can step through it
9830 # and add multilib dir if necessary.
9831 lt_tmp_lt_search_path_spec=
9832 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9833 for lt_sys_path in $lt_search_path_spec; do
9834 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9835 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9837 test -d "$lt_sys_path" && \
9838 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9841 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9842 BEGIN {RS=" "; FS="/|\n";} {
9845 for (lt_i = NF; lt_i > 0; lt_i--) {
9846 if ($lt_i != "" && $lt_i != ".") {
9847 if ($lt_i == "..") {
9850 if (lt_count == 0) {
9851 lt_foo="/" $lt_i lt_foo;
9858 if (lt_foo != "") { lt_freq[lt_foo]++; }
9859 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9861 # AWK program above erroneously prepends '/' to C:/dos/paths
9864 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9865 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9867 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9869 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9872 libname_spec='lib$name'
9880 shlibpath_overrides_runpath=unknown
9882 dynamic_linker="$host_os ld.so"
9883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9884 need_lib_prefix=unknown
9885 hardcode_into_libs=no
9887 # when you set need_version to no, make sure it does not cause -set_version
9888 # flags to be left without arguments
9889 need_version=unknown
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9895 shlibpath_var=LIBPATH
9897 # AIX 3 has no versioning support, so we append a major version to the name.
9898 soname_spec='${libname}${release}${shared_ext}$major'
9905 hardcode_into_libs=yes
9906 if test "$host_cpu" = ia64; then
9907 # AIX 5 supports IA64
9908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9909 shlibpath_var=LD_LIBRARY_PATH
9911 # With GCC up to 2.95.x, collect2 would create an import file
9912 # for dependence libraries. The import file would start with
9913 # the line `#! .'. This would cause the generated library to
9914 # depend on `.', always an invalid library. This was fixed in
9915 # development snapshots of GCC prior to 3.0.
9917 aix4 | aix4.[01] | aix4.[01].*)
9918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9920 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9928 # soname into executable. Probably we can add versioning support to
9929 # collect2, so additional links can be useful in future.
9930 if test "$aix_use_runtimelinking" = yes; then
9931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9932 # instead of lib<name>.a to let people know that these are not
9933 # typical AIX shared libraries.
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 # We preserve .a as extension for shared libraries through AIX4.2
9937 # and later when we are not doing run time linking.
9938 library_names_spec='${libname}${release}.a $libname.a'
9939 soname_spec='${libname}${release}${shared_ext}$major'
9941 shlibpath_var=LIBPATH
9948 # Since July 2007 AmigaOS4 officially supports .so libraries.
9949 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 library_names_spec='$libname.ixlibrary $libname.a'
9954 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9955 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'
9961 library_names_spec='${libname}${shared_ext}'
9962 dynamic_linker="$host_os ld.so"
9963 shlibpath_var=LIBRARY_PATH
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9974 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9975 # the default ld.so.conf also contains /usr/contrib/lib and
9976 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9977 # libtool to hard-code these into programs
9980 cygwin* | mingw* | pw32* | cegcc*)
9981 version_type=windows
9986 case $GCC,$host_os in
9987 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9988 library_names_spec='$libname.dll.a'
9989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9990 postinstall_cmds='base_file=`basename \${file}`~
9991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9992 dldir=$destdir/`dirname \$dlpath`~
9993 test -d \$dldir || mkdir -p \$dldir~
9994 $install_prog $dir/$dlname \$dldir/$dlname~
9995 chmod a+x \$dldir/$dlname~
9996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10000 dlpath=$dir/\$dldll~
10002 shlibpath_overrides_runpath=yes
10006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10007 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10012 # MinGW DLLs use traditional 'lib' prefix
10013 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 # pw32 DLLs use 'pw' prefix rather than 'lib'
10017 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10026 dynamic_linker='Win32 ld.exe'
10027 # FIXME: first we should search . and the directory the executable is in
10031 darwin* | rhapsody*)
10032 dynamic_linker="$host_os dyld"
10033 version_type=darwin
10036 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10037 soname_spec='${libname}${release}${major}$shared_ext'
10038 shlibpath_overrides_runpath=yes
10039 shlibpath_var=DYLD_LIBRARY_PATH
10040 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10042 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LD_LIBRARY_PATH
10055 freebsd* | dragonfly*)
10056 # DragonFly does not have aout. When/if they implement a new
10057 # versioning mechanism, adjust this.
10058 if test -x /usr/bin/objformat; then
10059 objformat=`/usr/bin/objformat`
10062 freebsd[123]*) objformat=aout ;;
10063 *) objformat=elf ;;
10066 version_type=freebsd-$objformat
10067 case $version_type in
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10078 shlibpath_var=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath=yes
10083 freebsd3.[01]* | freebsdelf3.[01]*)
10084 shlibpath_overrides_runpath=yes
10085 hardcode_into_libs=yes
10087 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10088 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10089 shlibpath_overrides_runpath=no
10090 hardcode_into_libs=yes
10092 *) # from 4.6 on, and DragonFly
10093 shlibpath_overrides_runpath=yes
10094 hardcode_into_libs=yes
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LD_LIBRARY_PATH
10106 hardcode_into_libs=yes
10113 dynamic_linker="$host_os runtime_loader"
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10116 shlibpath_var=LIBRARY_PATH
10117 shlibpath_overrides_runpath=yes
10118 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10119 hardcode_into_libs=yes
10122 hpux9* | hpux10* | hpux11*)
10123 # Give a soname corresponding to the major version so that dld.sl refuses to
10124 # link against other versions.
10131 hardcode_into_libs=yes
10132 dynamic_linker="$host_os dld.so"
10133 shlibpath_var=LD_LIBRARY_PATH
10134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 if test "X$HPUX_IA64_MODE" = X32; then
10138 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10140 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10146 hardcode_into_libs=yes
10147 dynamic_linker="$host_os dld.sl"
10148 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10157 dynamic_linker="$host_os dld.sl"
10158 shlibpath_var=SHLIB_PATH
10159 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10164 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10165 postinstall_cmds='chmod 555 $lib'
10166 # or fails outright, so override atomically:
10167 install_override_mode=555
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 shlibpath_overrides_runpath=no
10179 hardcode_into_libs=yes
10182 irix5* | irix6* | nonstopux*)
10184 nonstopux*) version_type=nonstopux ;;
10186 if test "$lt_cv_prog_gnu_ld" = yes; then
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10197 irix5* | nonstopux*)
10198 libsuff= shlibsuff=
10201 case $LD in # libtool.m4 will add one of these switches to LD
10202 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10203 libsuff= shlibsuff= libmagic=32-bit;;
10204 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10205 libsuff=32 shlibsuff=N32 libmagic=N32;;
10206 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10207 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10208 *) libsuff= shlibsuff= libmagic=never-match;;
10212 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10213 shlibpath_overrides_runpath=no
10214 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10215 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10216 hardcode_into_libs=yes
10219 # No shared lib support for Linux oldld, aout, or coff.
10220 linux*oldld* | linux*aout* | linux*coff*)
10224 # This must be Linux ELF.
10225 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=no
10235 # Some binutils ld are patched to set DT_RUNPATH
10236 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10239 lt_cv_shlibpath_overrides_runpath=no
10240 save_LDFLAGS=$LDFLAGS
10241 save_libdir=$libdir
10242 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10243 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10257 lt_cv_shlibpath_overrides_runpath=yes
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LDFLAGS=$save_LDFLAGS
10263 libdir=$save_libdir
10267 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10269 # This implies no fast_install, which is unacceptable.
10270 # Some rework will be needed to allow for fast_install
10271 # before this can be enabled.
10272 hardcode_into_libs=yes
10274 # Append ld.so.conf contents to the search path
10275 if test -f /etc/ld.so.conf; then
10276 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' ' '`
10277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10280 # We used to test for /lib/ld.so.1 and disable shared libraries on
10281 # powerpc, because MkLinux only supported shared libraries with the
10282 # GNU dynamic linker. Since this was broken with cross compilers,
10283 # most powerpc-linux boxes support dynamic linking these days and
10284 # people can always --disable-shared, the test was removed, and we
10285 # assume the GNU/Linux dynamic linker is in use.
10286 dynamic_linker='GNU/Linux ld.so'
10293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296 dynamic_linker='NetBSD (a.out) ld.so'
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 dynamic_linker='NetBSD ld.elf_so'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=no
10322 hardcode_into_libs=yes
10323 dynamic_linker='ldqnx.so'
10328 sys_lib_dlsearch_path_spec="/usr/lib"
10330 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10332 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10333 *) need_version=no ;;
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10340 openbsd2.[89] | openbsd2.[89].*)
10341 shlibpath_overrides_runpath=no
10344 shlibpath_overrides_runpath=yes
10348 shlibpath_overrides_runpath=yes
10353 libname_spec='$name'
10356 library_names_spec='$libname${shared_ext} $libname.a'
10357 dynamic_linker='OS/2 ld.exe'
10358 shlibpath_var=LIBPATH
10361 osf3* | osf4* | osf5*)
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes
10384 hardcode_into_libs=yes
10385 # ldd complains unless libraries are executable
10386 postinstall_cmds='chmod +x $lib'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=yes
10395 if test "$with_gnu_ld" = yes; then
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 case $host_vendor in
10408 shlibpath_overrides_runpath=no
10410 runpath_var=LD_RUN_PATH
10418 shlibpath_overrides_runpath=no
10419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10425 if test -d /usr/nec ;then
10427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10428 soname_spec='$libname${shared_ext}.$major'
10429 shlibpath_var=LD_LIBRARY_PATH
10433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10434 version_type=freebsd-elf
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 hardcode_into_libs=yes
10442 if test "$with_gnu_ld" = yes; then
10443 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10445 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10452 sys_lib_dlsearch_path_spec='/usr/lib'
10456 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath=no
10463 hardcode_into_libs=yes
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 soname_spec='${libname}${release}${shared_ext}$major'
10470 shlibpath_var=LD_LIBRARY_PATH
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10478 $as_echo "$dynamic_linker" >&6; }
10479 test "$dynamic_linker" = no && can_build_shared=no
10481 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10482 if test "$GCC" = yes; then
10483 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10486 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10487 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10489 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10490 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10585 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10587 if test -n "$hardcode_libdir_flag_spec" ||
10588 test -n "$runpath_var" ||
10589 test "X$hardcode_automatic" = "Xyes" ; then
10591 # We can hardcode non-existent directories.
10592 if test "$hardcode_direct" != no &&
10593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594 # have to relink, otherwise we might link with an installed library
10595 # when we should be linking with a yet-to-be-installed one
10596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597 test "$hardcode_minus_L" != no; then
10598 # Linking always hardcodes the temporary library directory.
10599 hardcode_action=relink
10601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602 hardcode_action=immediate
10605 # We cannot hardcode anything, or else we can only hardcode existing
10607 hardcode_action=unsupported
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10610 $as_echo "$hardcode_action" >&6; }
10612 if test "$hardcode_action" = relink ||
10613 test "$inherit_rpath" = yes; then
10614 # Fast installation is not supported
10615 enable_fast_install=no
10616 elif test "$shlibpath_overrides_runpath" = yes ||
10617 test "$enable_shared" = no; then
10618 # Fast installation is not necessary
10619 enable_fast_install=needless
10627 if test "x$enable_dlopen" != xyes; then
10628 enable_dlopen=unknown
10629 enable_dlopen_self=unknown
10630 enable_dlopen_self_static=unknown
10637 lt_cv_dlopen="load_add_on"
10639 lt_cv_dlopen_self=yes
10642 mingw* | pw32* | cegcc*)
10643 lt_cv_dlopen="LoadLibrary"
10648 lt_cv_dlopen="dlopen"
10653 # if libdl is installed we need to link against it
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10659 ac_check_lib_save_LIBS=$LIBS
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10679 if ac_fn_c_try_link "$LINENO"; then :
10680 ac_cv_lib_dl_dlopen=yes
10682 ac_cv_lib_dl_dlopen=no
10684 rm -f core conftest.err conftest.$ac_objext \
10685 conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10689 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10690 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10694 lt_cv_dlopen="dyld"
10696 lt_cv_dlopen_self=yes
10703 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10704 if test "x$ac_cv_func_shl_load" = x""yes; then :
10705 lt_cv_dlopen="shl_load"
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10708 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10712 ac_check_lib_save_LIBS=$LIBS
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10717 /* Override any GCC internal prototype to avoid an error.
10718 Use char because int might match the return type of a GCC
10719 builtin and then its argument prototype would still apply. */
10727 return shl_load ();
10732 if ac_fn_c_try_link "$LINENO"; then :
10733 ac_cv_lib_dld_shl_load=yes
10735 ac_cv_lib_dld_shl_load=no
10737 rm -f core conftest.err conftest.$ac_objext \
10738 conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10742 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10743 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10744 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10746 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10747 if test "x$ac_cv_func_dlopen" = x""yes; then :
10748 lt_cv_dlopen="dlopen"
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10751 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10753 $as_echo_n "(cached) " >&6
10755 ac_check_lib_save_LIBS=$LIBS
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_lib_dl_dlopen=yes
10778 ac_cv_lib_dl_dlopen=no
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10785 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10786 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10787 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10790 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10794 ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lsvld $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h. */
10799 /* Override any GCC internal prototype to avoid an error.
10800 Use char because int might match the return type of a GCC
10801 builtin and then its argument prototype would still apply. */
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ac_cv_lib_svld_dlopen=yes
10817 ac_cv_lib_svld_dlopen=no
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10824 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10825 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10826 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10829 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10830 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10831 $as_echo_n "(cached) " >&6
10833 ac_check_lib_save_LIBS=$LIBS
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10838 /* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10848 return dld_link ();
10853 if ac_fn_c_try_link "$LINENO"; then :
10854 ac_cv_lib_dld_dld_link=yes
10856 ac_cv_lib_dld_dld_link=no
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10863 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10864 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10865 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10886 if test "x$lt_cv_dlopen" != xno; then
10892 case $lt_cv_dlopen in
10894 save_CPPFLAGS="$CPPFLAGS"
10895 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10897 save_LDFLAGS="$LDFLAGS"
10898 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10901 LIBS="$lt_cv_dlopen_libs $LIBS"
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10904 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10905 if test "${lt_cv_dlopen_self+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
10908 if test "$cross_compiling" = yes; then :
10909 lt_cv_dlopen_self=cross
10911 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10912 lt_status=$lt_dlunknown
10913 cat > conftest.$ac_ext <<_LT_EOF
10914 #line 10914 "configure"
10915 #include "confdefs.h"
10924 # define LT_DLGLOBAL RTLD_GLOBAL
10927 # define LT_DLGLOBAL DL_GLOBAL
10929 # define LT_DLGLOBAL 0
10933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10934 find out it does not work in some platform. */
10935 #ifndef LT_DLLAZY_OR_NOW
10937 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10940 # define LT_DLLAZY_OR_NOW DL_LAZY
10943 # define LT_DLLAZY_OR_NOW RTLD_NOW
10946 # define LT_DLLAZY_OR_NOW DL_NOW
10948 # define LT_DLLAZY_OR_NOW 0
10955 /* When -fvisbility=hidden is used, assume the code has been annotated
10956 correspondingly for the symbols needed. */
10957 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10958 void fnord () __attribute__((visibility("default")));
10961 void fnord () { int i=42; }
10964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10965 int status = $lt_dlunknown;
10969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10972 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10973 else puts (dlerror ());
10975 /* dlclose (self); */
10983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10984 (eval $ac_link) 2>&5
10986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10987 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10988 (./conftest; exit; ) >&5 2>/dev/null
10990 case x$lt_status in
10991 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10992 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10993 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10996 # compilation failed
10997 lt_cv_dlopen_self=no
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11005 $as_echo "$lt_cv_dlopen_self" >&6; }
11007 if test "x$lt_cv_dlopen_self" = xyes; then
11008 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11010 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11011 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11012 $as_echo_n "(cached) " >&6
11014 if test "$cross_compiling" = yes; then :
11015 lt_cv_dlopen_self_static=cross
11017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11018 lt_status=$lt_dlunknown
11019 cat > conftest.$ac_ext <<_LT_EOF
11020 #line 11020 "configure"
11021 #include "confdefs.h"
11030 # define LT_DLGLOBAL RTLD_GLOBAL
11033 # define LT_DLGLOBAL DL_GLOBAL
11035 # define LT_DLGLOBAL 0
11039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11040 find out it does not work in some platform. */
11041 #ifndef LT_DLLAZY_OR_NOW
11043 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11046 # define LT_DLLAZY_OR_NOW DL_LAZY
11049 # define LT_DLLAZY_OR_NOW RTLD_NOW
11052 # define LT_DLLAZY_OR_NOW DL_NOW
11054 # define LT_DLLAZY_OR_NOW 0
11061 /* When -fvisbility=hidden is used, assume the code has been annotated
11062 correspondingly for the symbols needed. */
11063 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11064 void fnord () __attribute__((visibility("default")));
11067 void fnord () { int i=42; }
11070 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11071 int status = $lt_dlunknown;
11075 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11078 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11079 else puts (dlerror ());
11081 /* dlclose (self); */
11089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11090 (eval $ac_link) 2>&5
11092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11093 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11094 (./conftest; exit; ) >&5 2>/dev/null
11096 case x$lt_status in
11097 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11098 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11099 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11102 # compilation failed
11103 lt_cv_dlopen_self_static=no
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11111 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11114 CPPFLAGS="$save_CPPFLAGS"
11115 LDFLAGS="$save_LDFLAGS"
11120 case $lt_cv_dlopen_self in
11121 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11122 *) enable_dlopen_self=unknown ;;
11125 case $lt_cv_dlopen_self_static in
11126 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11127 *) enable_dlopen_self_static=unknown ;;
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11150 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11151 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11152 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11153 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11155 $as_echo "yes" >&6; }
11157 # FIXME - insert some real tests, host_os isn't really good enough
11160 if test -n "$STRIP" ; then
11161 striplib="$STRIP -x"
11162 old_striplib="$STRIP -S"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; }
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11188 # Report which library types will actually be built
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11190 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11192 $as_echo "$can_build_shared" >&6; }
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11195 $as_echo_n "checking whether to build shared libraries... " >&6; }
11196 test "$can_build_shared" = "no" && enable_shared=no
11198 # On AIX, shared libraries and static libraries use the same namespace, and
11199 # are all built from PIC.
11202 test "$enable_shared" = yes && enable_static=no
11203 if test -n "$RANLIB"; then
11204 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11205 postinstall_cmds='$RANLIB $lib'
11210 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11211 test "$enable_shared" = yes && enable_static=no
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11216 $as_echo "$enable_shared" >&6; }
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11219 $as_echo_n "checking whether to build static libraries... " >&6; }
11220 # Make sure either enable_shared or enable_static is yes.
11221 test "$enable_shared" = yes || enable_static=yes
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11223 $as_echo "$enable_static" >&6; }
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11249 # Source file extension for Go test sources.
11252 # Object file extension for compiled Go test sources.
11256 # Code to be used in simple compile tests
11257 lt_simple_compile_test_code="package main; func main() { }"
11259 # Code to be used in simple link tests
11260 lt_simple_link_test_code='package main; func main() { }'
11262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11269 # If no C compiler was specified, use CC.
11272 # If no C compiler flags were specified, use CFLAGS.
11273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11275 # Allow CC to be a program name with arguments.
11279 # save warnings/boilerplate of simple test code
11280 ac_outfile=conftest.$ac_objext
11281 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11283 _lt_compiler_boilerplate=`cat conftest.err`
11286 ac_outfile=conftest.$ac_objext
11287 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11289 _lt_linker_boilerplate=`cat conftest.err`
11293 # Allow CC to be a program name with arguments.
11301 for cc_temp in $compiler""; do
11303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11309 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11312 # Go did not exist at the time GCC didn't implicitly link libc in.
11313 archive_cmds_need_lc_GO=no
11315 old_archive_cmds_GO=$old_archive_cmds
11318 ## There is no encapsulation within the following macros, do not change
11319 ## the running order or otherwise move them around unless you know exactly
11320 ## what you are doing...
11321 if test -n "$compiler"; then
11323 lt_prog_compiler_no_builtin_flag_GO=
11325 if test "$GCC" = yes; then
11326 case $cc_basename in
11328 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11330 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11334 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11338 lt_cv_prog_compiler_rtti_exceptions=no
11339 ac_outfile=conftest.$ac_objext
11340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11341 lt_compiler_flag="-fno-rtti -fno-exceptions"
11342 # Insert the option either (1) after the last *FLAGS variable, or
11343 # (2) before a word containing "conftest.", or (3) at the end.
11344 # Note that $ac_compile itself does not contain backslashes and begins
11345 # with a dollar sign (not a hyphen), so the echo should work correctly.
11346 # The option is referenced via a variable to avoid confusing sed.
11347 lt_compile=`echo "$ac_compile" | $SED \
11348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11350 -e 's:$: $lt_compiler_flag:'`
11351 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11352 (eval "$lt_compile" 2>conftest.err)
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 if (exit $ac_status) && test -s "$ac_outfile"; then
11357 # The compiler can only warn and ignore the option if not recognized
11358 # So say no if there are warnings other than the usual output.
11359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11362 lt_cv_prog_compiler_rtti_exceptions=yes
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11369 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11372 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11381 lt_prog_compiler_wl_GO=
11382 lt_prog_compiler_pic_GO=
11383 lt_prog_compiler_static_GO=
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11386 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11388 if test "$GCC" = yes; then
11389 lt_prog_compiler_wl_GO='-Wl,'
11390 lt_prog_compiler_static_GO='-static'
11394 # All AIX code is PIC.
11395 if test "$host_cpu" = ia64; then
11396 # AIX 5 now supports IA64 processor
11397 lt_prog_compiler_static_GO='-Bstatic'
11404 # see comment about AmigaOS4 .so support
11405 lt_prog_compiler_pic_GO='-fPIC'
11408 # FIXME: we need at least 68020 code to build shared libraries, but
11409 # adding the `-m68020' flag to GCC prevents building anything better,
11411 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11417 # PIC is the default for these OSes.
11420 mingw* | cygwin* | pw32* | os2* | cegcc*)
11421 # This hack is so that the source file can tell whether it is being
11422 # built for inclusion in a dll (and should export symbols for example).
11423 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11424 # (--disable-auto-import) libraries
11425 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11428 darwin* | rhapsody*)
11429 # PIC is the default on this platform
11430 # Common symbols not allowed in MH_DYLIB files
11431 lt_prog_compiler_pic_GO='-fno-common'
11435 # PIC is the default for Haiku.
11436 # The "-static" flag exists, but is broken.
11437 lt_prog_compiler_static_GO=
11441 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11442 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11443 # sets the default TLS model and affects inlining.
11449 lt_prog_compiler_pic_GO='-fPIC'
11455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11456 # Instead, we relocate shared libraries at runtime.
11460 # Just because we use GCC doesn't mean we suddenly get shared libraries
11461 # on systems that don't support them.
11462 lt_prog_compiler_can_build_shared_GO=no
11467 # QNX uses GNU C++, but need to define -shared option too, otherwise
11468 # it will coredump.
11469 lt_prog_compiler_pic_GO='-fPIC -shared'
11473 if test -d /usr/nec; then
11474 lt_prog_compiler_pic_GO=-Kconform_pic
11479 lt_prog_compiler_pic_GO='-fPIC'
11483 case $cc_basename in
11484 nvcc*) # Cuda Compiler Driver 2.2
11485 lt_prog_compiler_wl_GO='-Xlinker '
11486 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11490 # PORTME Check for flag to pass linker flags through the system compiler.
11493 lt_prog_compiler_wl_GO='-Wl,'
11494 if test "$host_cpu" = ia64; then
11495 # AIX 5 now supports IA64 processor
11496 lt_prog_compiler_static_GO='-Bstatic'
11498 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11502 mingw* | cygwin* | pw32* | os2* | cegcc*)
11503 # This hack is so that the source file can tell whether it is being
11504 # built for inclusion in a dll (and should export symbols for example).
11505 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11508 hpux9* | hpux10* | hpux11*)
11509 lt_prog_compiler_wl_GO='-Wl,'
11510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11511 # not for PA HP-UX.
11517 lt_prog_compiler_pic_GO='+Z'
11520 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11521 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11524 irix5* | irix6* | nonstopux*)
11525 lt_prog_compiler_wl_GO='-Wl,'
11526 # PIC (with -KPIC) is the default.
11527 lt_prog_compiler_static_GO='-non_shared'
11530 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11531 case $cc_basename in
11532 # old Intel for x86_64 which still supported -KPIC.
11534 lt_prog_compiler_wl_GO='-Wl,'
11535 lt_prog_compiler_pic_GO='-KPIC'
11536 lt_prog_compiler_static_GO='-static'
11538 # icc used to be incompatible with GCC.
11539 # ICC 10 doesn't accept -KPIC any more.
11541 lt_prog_compiler_wl_GO='-Wl,'
11542 lt_prog_compiler_pic_GO='-fPIC'
11543 lt_prog_compiler_static_GO='-static'
11545 # Lahey Fortran 8.1.
11547 lt_prog_compiler_wl_GO='-Wl,'
11548 lt_prog_compiler_pic_GO='--shared'
11549 lt_prog_compiler_static_GO='--static'
11551 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11552 # Portland Group compilers (*not* the Pentium gcc compiler,
11553 # which looks to be a dead project)
11554 lt_prog_compiler_wl_GO='-Wl,'
11555 lt_prog_compiler_pic_GO='-fpic'
11556 lt_prog_compiler_static_GO='-Bstatic'
11559 lt_prog_compiler_wl_GO='-Wl,'
11560 # All Alpha code is PIC.
11561 lt_prog_compiler_static_GO='-non_shared'
11563 xl* | bgxl* | bgf* | mpixl*)
11564 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11565 lt_prog_compiler_wl_GO='-Wl,'
11566 lt_prog_compiler_pic_GO='-qpic'
11567 lt_prog_compiler_static_GO='-qstaticlink'
11570 case `$CC -V 2>&1 | sed 5q` in
11571 *Sun\ F* | *Sun*Fortran*)
11572 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11573 lt_prog_compiler_pic_GO='-KPIC'
11574 lt_prog_compiler_static_GO='-Bstatic'
11575 lt_prog_compiler_wl_GO=''
11579 lt_prog_compiler_pic_GO='-KPIC'
11580 lt_prog_compiler_static_GO='-Bstatic'
11581 lt_prog_compiler_wl_GO='-Wl,'
11589 lt_prog_compiler_pic_GO='-KPIC'
11590 lt_prog_compiler_static_GO='-Bstatic'
11594 # QNX uses GNU C++, but need to define -shared option too, otherwise
11595 # it will coredump.
11596 lt_prog_compiler_pic_GO='-fPIC -shared'
11599 osf3* | osf4* | osf5*)
11600 lt_prog_compiler_wl_GO='-Wl,'
11601 # All OSF/1 code is PIC.
11602 lt_prog_compiler_static_GO='-non_shared'
11606 lt_prog_compiler_static_GO='-non_shared'
11610 lt_prog_compiler_pic_GO='-KPIC'
11611 lt_prog_compiler_static_GO='-Bstatic'
11612 case $cc_basename in
11613 f77* | f90* | f95*)
11614 lt_prog_compiler_wl_GO='-Qoption ld ';;
11616 lt_prog_compiler_wl_GO='-Wl,';;
11621 lt_prog_compiler_wl_GO='-Qoption ld '
11622 lt_prog_compiler_pic_GO='-PIC'
11623 lt_prog_compiler_static_GO='-Bstatic'
11626 sysv4 | sysv4.2uw2* | sysv4.3*)
11627 lt_prog_compiler_wl_GO='-Wl,'
11628 lt_prog_compiler_pic_GO='-KPIC'
11629 lt_prog_compiler_static_GO='-Bstatic'
11633 if test -d /usr/nec ;then
11634 lt_prog_compiler_pic_GO='-Kconform_pic'
11635 lt_prog_compiler_static_GO='-Bstatic'
11639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11640 lt_prog_compiler_wl_GO='-Wl,'
11641 lt_prog_compiler_pic_GO='-KPIC'
11642 lt_prog_compiler_static_GO='-Bstatic'
11646 lt_prog_compiler_wl_GO='-Wl,'
11647 lt_prog_compiler_can_build_shared_GO=no
11651 lt_prog_compiler_pic_GO='-pic'
11652 lt_prog_compiler_static_GO='-Bstatic'
11656 lt_prog_compiler_can_build_shared_GO=no
11662 # For platforms which do not support PIC, -DPIC is meaningless:
11664 lt_prog_compiler_pic_GO=
11667 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11671 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11676 # Check to make sure the PIC flag actually works.
11678 if test -n "$lt_prog_compiler_pic_GO"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11680 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11681 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11684 lt_cv_prog_compiler_pic_works_GO=no
11685 ac_outfile=conftest.$ac_objext
11686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11687 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11688 # Insert the option either (1) after the last *FLAGS variable, or
11689 # (2) before a word containing "conftest.", or (3) at the end.
11690 # Note that $ac_compile itself does not contain backslashes and begins
11691 # with a dollar sign (not a hyphen), so the echo should work correctly.
11692 # The option is referenced via a variable to avoid confusing sed.
11693 lt_compile=`echo "$ac_compile" | $SED \
11694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11696 -e 's:$: $lt_compiler_flag:'`
11697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11698 (eval "$lt_compile" 2>conftest.err)
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 if (exit $ac_status) && test -s "$ac_outfile"; then
11703 # The compiler can only warn and ignore the option if not recognized
11704 # So say no if there are warnings other than the usual output.
11705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11708 lt_cv_prog_compiler_pic_works_GO=yes
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11715 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11717 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11718 case $lt_prog_compiler_pic_GO in
11720 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11723 lt_prog_compiler_pic_GO=
11724 lt_prog_compiler_can_build_shared_GO=no
11732 # Check to make sure the static flag actually works.
11734 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11736 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11737 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 lt_cv_prog_compiler_static_works_GO=no
11741 save_LDFLAGS="$LDFLAGS"
11742 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11743 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11744 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11745 # The linker can only warn and ignore the option if not recognized
11746 # So say no if there are warnings
11747 if test -s conftest.err; then
11748 # Append any errors to the config.log.
11749 cat conftest.err 1>&5
11750 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11752 if diff conftest.exp conftest.er2 >/dev/null; then
11753 lt_cv_prog_compiler_static_works_GO=yes
11756 lt_cv_prog_compiler_static_works_GO=yes
11760 LDFLAGS="$save_LDFLAGS"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11764 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11766 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11769 lt_prog_compiler_static_GO=
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11777 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
11780 lt_cv_prog_compiler_c_o_GO=no
11781 $RM -r conftest 2>/dev/null
11785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11787 lt_compiler_flag="-o out/conftest2.$ac_objext"
11788 # Insert the option either (1) after the last *FLAGS variable, or
11789 # (2) before a word containing "conftest.", or (3) at the end.
11790 # Note that $ac_compile itself does not contain backslashes and begins
11791 # with a dollar sign (not a hyphen), so the echo should work correctly.
11792 lt_compile=`echo "$ac_compile" | $SED \
11793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11795 -e 's:$: $lt_compiler_flag:'`
11796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11797 (eval "$lt_compile" 2>out/conftest.err)
11799 cat out/conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11803 # The compiler can only warn and ignore the option if not recognized
11804 # So say no if there are warnings
11805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11808 lt_cv_prog_compiler_c_o_GO=yes
11813 # SGI C++ compiler will create directory out/ii_files/ for
11814 # template instantiation
11815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11816 $RM out/* && rmdir out
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11823 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11829 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
11832 lt_cv_prog_compiler_c_o_GO=no
11833 $RM -r conftest 2>/dev/null
11837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11839 lt_compiler_flag="-o out/conftest2.$ac_objext"
11840 # Insert the option either (1) after the last *FLAGS variable, or
11841 # (2) before a word containing "conftest.", or (3) at the end.
11842 # Note that $ac_compile itself does not contain backslashes and begins
11843 # with a dollar sign (not a hyphen), so the echo should work correctly.
11844 lt_compile=`echo "$ac_compile" | $SED \
11845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11847 -e 's:$: $lt_compiler_flag:'`
11848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11849 (eval "$lt_compile" 2>out/conftest.err)
11851 cat out/conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11855 # The compiler can only warn and ignore the option if not recognized
11856 # So say no if there are warnings
11857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11860 lt_cv_prog_compiler_c_o_GO=yes
11865 # SGI C++ compiler will create directory out/ii_files/ for
11866 # template instantiation
11867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11868 $RM out/* && rmdir out
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11875 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11880 hard_links="nottested"
11881 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11882 # do not overwrite the value of need_locks provided by the user
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11884 $as_echo_n "checking if we can lock with hard links... " >&6; }
11887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11889 ln conftest.a conftest.b 2>&5 || hard_links=no
11890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11892 $as_echo "$hard_links" >&6; }
11893 if test "$hard_links" = no; then
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11895 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11905 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11908 allow_undefined_flag_GO=
11909 always_export_symbols_GO=no
11911 archive_expsym_cmds_GO=
11912 compiler_needs_object_GO=no
11913 enable_shared_with_static_runtimes_GO=no
11914 export_dynamic_flag_spec_GO=
11915 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11916 hardcode_automatic_GO=no
11917 hardcode_direct_GO=no
11918 hardcode_direct_absolute_GO=no
11919 hardcode_libdir_flag_spec_GO=
11920 hardcode_libdir_flag_spec_ld_GO=
11921 hardcode_libdir_separator_GO=
11922 hardcode_minus_L_GO=no
11923 hardcode_shlibpath_var_GO=unsupported
11924 inherit_rpath_GO=no
11925 link_all_deplibs_GO=unknown
11927 module_expsym_cmds_GO=
11928 old_archive_from_new_cmds_GO=
11929 old_archive_from_expsyms_cmds_GO=
11930 thread_safe_flag_spec_GO=
11931 whole_archive_flag_spec_GO=
11932 # include_expsyms should be a list of space-separated symbols to be *always*
11933 # included in the symbol list
11934 include_expsyms_GO=
11935 # exclude_expsyms can be an extended regexp of symbols to exclude
11936 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11937 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11938 # as well as any symbol that contains `d'.
11939 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11940 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11941 # platforms (ab)use it in PIC code, but their linkers get confused if
11942 # the symbol is explicitly referenced. Since portable code cannot
11943 # rely on this symbol name, it's probably fine to never include it in
11944 # preloaded symbol tables.
11945 # Exclude shared library initialization/finalization symbols.
11946 extract_expsyms_cmds=
11949 cygwin* | mingw* | pw32* | cegcc*)
11950 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11951 # When not using gcc, we currently assume that we are using
11952 # Microsoft Visual C++.
11953 if test "$GCC" != yes; then
11958 # we just hope/assume this is gcc and not c89 (= MSVC++)
11968 # On some targets, GNU ld is compatible enough with the native linker
11969 # that we're better off using the native interface for both.
11970 lt_use_gnu_ld_interface=no
11971 if test "$with_gnu_ld" = yes; then
11974 # The AIX port of GNU ld has always aspired to compatibility
11975 # with the native linker. However, as the warning in the GNU ld
11976 # block says, versions before 2.19.5* couldn't really create working
11977 # shared libraries, regardless of the interface used.
11978 case `$LD -v 2>&1` in
11979 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11980 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11981 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11983 lt_use_gnu_ld_interface=yes
11988 lt_use_gnu_ld_interface=yes
11993 if test "$lt_use_gnu_ld_interface" = yes; then
11994 # If archive_cmds runs LD, not CC, wlarc should be empty
11997 # Set some defaults for GNU ld with shared library support. These
11998 # are reset later if shared libraries are not supported. Putting them
11999 # here allows them to be overridden if necessary.
12000 runpath_var=LD_RUN_PATH
12001 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12002 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12003 # ancient GNU ld didn't support --whole-archive et. al.
12004 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12005 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12007 whole_archive_flag_spec_GO=
12009 supports_anon_versioning=no
12010 case `$LD -v 2>&1` in
12011 *GNU\ gold*) supports_anon_versioning=yes ;;
12012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12015 *\ 2.11.*) ;; # other 2.11 versions
12016 *) supports_anon_versioning=yes ;;
12019 # See if GNU ld supports shared libraries.
12022 # On AIX/PPC, the GNU linker is very broken
12023 if test "$host_cpu" != ia64; then
12027 *** Warning: the GNU linker, at least up to release 2.19, is reported
12028 *** to be unable to reliably create shared libraries on AIX.
12029 *** Therefore, libtool is disabling shared libraries support. If you
12030 *** really care for shared libraries, you may want to install binutils
12031 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12032 *** You will then need to restart the configuration process.
12041 # see comment about AmigaOS4 .so support
12042 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12043 archive_expsym_cmds_GO=''
12046 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)'
12047 hardcode_libdir_flag_spec_GO='-L$libdir'
12048 hardcode_minus_L_GO=yes
12054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12055 allow_undefined_flag_GO=unsupported
12056 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12057 # support --undefined. This deserves some investigation. FIXME
12058 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12064 cygwin* | mingw* | pw32* | cegcc*)
12065 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12066 # as there is no search path for DLLs.
12067 hardcode_libdir_flag_spec_GO='-L$libdir'
12068 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12069 allow_undefined_flag_GO=unsupported
12070 always_export_symbols_GO=no
12071 enable_shared_with_static_runtimes_GO=yes
12072 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12075 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12076 # If the export-symbols file already is a .def file (1st line
12077 # is EXPORTS), use it as is; otherwise, prepend...
12078 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12079 cp $export_symbols $output_objdir/$soname.def;
12081 echo EXPORTS > $output_objdir/$soname.def;
12082 cat $export_symbols >> $output_objdir/$soname.def;
12084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12091 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12092 link_all_deplibs_GO=yes
12096 hardcode_direct_GO=no
12097 hardcode_shlibpath_var_GO=no
12098 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12099 export_dynamic_flag_spec_GO='${wl}-E'
12100 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12101 # Instead, shared libraries are loaded at an image base (0x10000000 by
12102 # default) and relocated if they conflict, which is a slow very memory
12103 # consuming and fragmenting process. To avoid this, we pick a random,
12104 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12105 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12106 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'
12107 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'
12110 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12112 if test "$host_os" = linux-dietlibc; then
12113 case $cc_basename in
12114 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12117 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12118 && test "$tmp_diet" = no
12121 tmp_sharedflag='-shared'
12122 case $cc_basename,$host_cpu in
12123 pgcc*) # Portland Group C compiler
12124 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'
12125 tmp_addflag=' $pic_flag'
12127 pgf77* | pgf90* | pgf95* | pgfortran*)
12128 # Portland Group f77 and f90 compilers
12129 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12130 tmp_addflag=' $pic_flag -Mnomain' ;;
12131 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12132 tmp_addflag=' -i_dynamic' ;;
12133 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12134 tmp_addflag=' -i_dynamic -nofor_main' ;;
12135 ifc* | ifort*) # Intel Fortran compiler
12136 tmp_addflag=' -nofor_main' ;;
12137 lf95*) # Lahey Fortran 8.1
12138 whole_archive_flag_spec_GO=
12139 tmp_sharedflag='--shared' ;;
12140 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12141 tmp_sharedflag='-qmkshrobj'
12143 nvcc*) # Cuda Compiler Driver 2.2
12144 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'
12145 compiler_needs_object_GO=yes
12148 case `$CC -V 2>&1 | sed 5q` in
12149 *Sun\ C*) # Sun C 5.9
12150 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'
12151 compiler_needs_object_GO=yes
12152 tmp_sharedflag='-G' ;;
12153 *Sun\ F*) # Sun Fortran 8.3
12154 tmp_sharedflag='-G' ;;
12156 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12158 if test "x$supports_anon_versioning" = xyes; then
12159 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12160 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12161 echo "local: *; };" >> $output_objdir/$libname.ver~
12162 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12165 case $cc_basename in
12166 xlf* | bgf* | bgxlf* | mpixlf*)
12167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12168 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12169 hardcode_libdir_flag_spec_GO=
12170 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12171 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12172 if test "x$supports_anon_versioning" = xyes; then
12173 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12175 echo "local: *; };" >> $output_objdir/$libname.ver~
12176 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12187 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12190 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12196 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12200 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12201 *** create shared libraries on Solaris systems. Therefore, libtool
12202 *** is disabling shared libraries support. We urge you to upgrade GNU
12203 *** binutils to release 2.9.1 or newer. Another option is to modify
12204 *** your PATH or compiler configuration so that the native linker is
12205 *** used, and then restart.
12208 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12209 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12210 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12216 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12217 case `$LD -v 2>&1` in
12218 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12222 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12223 *** reliably create shared libraries on SCO systems. Therefore, libtool
12224 *** is disabling shared libraries support. We urge you to upgrade GNU
12225 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12226 *** your PATH or compiler configuration so that the native linker is
12227 *** used, and then restart.
12232 # For security reasons, it is highly recommended that you always
12233 # use absolute paths for naming shared libraries, and exclude the
12234 # DT_RUNPATH tag from executables and libraries. But doing so
12235 # requires that you compile everything twice, which is a pain.
12236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12237 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12238 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12248 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12250 hardcode_direct_GO=yes
12251 hardcode_shlibpath_var_GO=no
12255 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12256 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12264 if test "$ld_shlibs_GO" = no; then
12266 hardcode_libdir_flag_spec_GO=
12267 export_dynamic_flag_spec_GO=
12268 whole_archive_flag_spec_GO=
12271 # PORTME fill in a description of your system's linker (not GNU ld)
12274 allow_undefined_flag_GO=unsupported
12275 always_export_symbols_GO=yes
12276 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'
12277 # Note: this linker hardcodes the directories in LIBPATH if there
12278 # are no directories specified by -L.
12279 hardcode_minus_L_GO=yes
12280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12281 # Neither direct hardcoding nor static linking is supported with a
12283 hardcode_direct_GO=unsupported
12288 if test "$host_cpu" = ia64; then
12289 # On IA64, the linker does run time linking by default, so we don't
12290 # have to do anything special.
12291 aix_use_runtimelinking=no
12292 exp_sym_flag='-Bexport'
12295 # If we're using GNU nm, then we don't want the "-C" option.
12296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12297 # Also, AIX nm treats weak defined symbols like other global
12298 # defined symbols, whereas GNU nm marks them as "W".
12299 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12300 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'
12302 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'
12304 aix_use_runtimelinking=no
12306 # Test if we are trying to use run time linking or normal
12307 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12308 # need to do runtime linking.
12309 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12310 for ld_flag in $LDFLAGS; do
12311 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12312 aix_use_runtimelinking=yes
12319 exp_sym_flag='-bexport'
12320 no_entry_flag='-bnoentry'
12323 # When large executables or shared objects are built, AIX ld can
12324 # have problems creating the table of contents. If linking a library
12325 # or program results in "error TOC overflow" add -mminimal-toc to
12326 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12327 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12330 hardcode_direct_GO=yes
12331 hardcode_direct_absolute_GO=yes
12332 hardcode_libdir_separator_GO=':'
12333 link_all_deplibs_GO=yes
12334 file_list_spec_GO='${wl}-f,'
12336 if test "$GCC" = yes; then
12337 case $host_os in aix4.[012]|aix4.[012].*)
12338 # We only want to do this on AIX 4.2 and lower, the check
12339 # below for broken collect2 doesn't work under 4.3+
12340 collect2name=`${CC} -print-prog-name=collect2`
12341 if test -f "$collect2name" &&
12342 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12344 # We have reworked collect2
12347 # We have old collect2
12348 hardcode_direct_GO=unsupported
12349 # It fails to find uninstalled libraries when the uninstalled
12350 # path is not listed in the libpath. Setting hardcode_minus_L
12351 # to unsupported forces relinking
12352 hardcode_minus_L_GO=yes
12353 hardcode_libdir_flag_spec_GO='-L$libdir'
12354 hardcode_libdir_separator_GO=
12358 shared_flag='-shared'
12359 if test "$aix_use_runtimelinking" = yes; then
12360 shared_flag="$shared_flag "'${wl}-G'
12364 if test "$host_cpu" = ia64; then
12365 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12366 # chokes on -Wl,-G. The following line is correct:
12369 if test "$aix_use_runtimelinking" = yes; then
12370 shared_flag='${wl}-G'
12372 shared_flag='${wl}-bM:SRE'
12377 export_dynamic_flag_spec_GO='${wl}-bexpall'
12378 # It seems that -bexpall does not export symbols beginning with
12379 # underscore (_), so it is better to generate a list of symbols to export.
12380 always_export_symbols_GO=yes
12381 if test "$aix_use_runtimelinking" = yes; then
12382 # Warning - without using the other runtime loading flags (-brtl),
12383 # -berok will link without error, but may produce a broken library.
12384 allow_undefined_flag_GO='-berok'
12385 # Determine the default libpath from the value encoded in an
12386 # empty executable.
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12398 if ac_fn_c_try_link "$LINENO"; then :
12400 lt_aix_libpath_sed='
12401 /Import File Strings/,/^$/ {
12407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12408 # Check for a 64-bit object if we didn't find anything.
12409 if test -z "$aix_libpath"; then
12410 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
12415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12417 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12418 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"
12420 if test "$host_cpu" = ia64; then
12421 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12422 allow_undefined_flag_GO="-z nodefs"
12423 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"
12425 # Determine the default libpath from the value encoded in an
12426 # empty executable.
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12438 if ac_fn_c_try_link "$LINENO"; then :
12440 lt_aix_libpath_sed='
12441 /Import File Strings/,/^$/ {
12447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12448 # Check for a 64-bit object if we didn't find anything.
12449 if test -z "$aix_libpath"; then
12450 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12457 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12458 # Warning - without using the other run time loading flags,
12459 # -berok will link without error, but may produce a broken library.
12460 no_undefined_flag_GO=' ${wl}-bernotok'
12461 allow_undefined_flag_GO=' ${wl}-berok'
12462 if test "$with_gnu_ld" = yes; then
12463 # We only use this code for GNU lds that support --whole-archive.
12464 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12466 # Exported symbols can be pulled into shared objects from archives
12467 whole_archive_flag_spec_GO='$convenience'
12469 archive_cmds_need_lc_GO=yes
12470 # This is similar to how AIX traditionally builds its shared libraries.
12471 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'
12479 # see comment about AmigaOS4 .so support
12480 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12481 archive_expsym_cmds_GO=''
12484 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)'
12485 hardcode_libdir_flag_spec_GO='-L$libdir'
12486 hardcode_minus_L_GO=yes
12492 export_dynamic_flag_spec_GO=-rdynamic
12495 cygwin* | mingw* | pw32* | cegcc*)
12496 # When not using gcc, we currently assume that we are using
12497 # Microsoft Visual C++.
12498 # hardcode_libdir_flag_spec is actually meaningless, as there is
12499 # no search path for DLLs.
12500 hardcode_libdir_flag_spec_GO=' '
12501 allow_undefined_flag_GO=unsupported
12502 # Tell ltmain to make .lib files, not .a files.
12504 # Tell ltmain to make .dll files, not .so files.
12506 # FIXME: Setting linknames here is a bad hack.
12507 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12508 # The linker will automatically build a .lib file if we build a DLL.
12509 old_archive_from_new_cmds_GO='true'
12510 # FIXME: Should let the user specify the lib program.
12511 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12512 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12513 enable_shared_with_static_runtimes_GO=yes
12516 darwin* | rhapsody*)
12519 archive_cmds_need_lc_GO=no
12520 hardcode_direct_GO=no
12521 hardcode_automatic_GO=yes
12522 hardcode_shlibpath_var_GO=unsupported
12523 if test "$lt_cv_ld_force_load" = "yes"; then
12524 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\"`'
12526 whole_archive_flag_spec_GO=''
12528 link_all_deplibs_GO=yes
12529 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12530 case $cc_basename in
12531 ifort*) _lt_dar_can_shared=yes ;;
12532 *) _lt_dar_can_shared=$GCC ;;
12534 if test "$_lt_dar_can_shared" = "yes"; then
12535 output_verbose_link_cmd=func_echo_all
12536 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}"
12537 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12538 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}"
12539 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}"
12548 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12549 hardcode_libdir_flag_spec_GO='-L$libdir'
12550 hardcode_shlibpath_var_GO=no
12553 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12554 # support. Future versions do this automatically, but an explicit c++rt0.o
12555 # does not break anything, and helps significantly (at the cost of a little
12558 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12559 hardcode_libdir_flag_spec_GO='-R$libdir'
12560 hardcode_direct_GO=yes
12561 hardcode_shlibpath_var_GO=no
12564 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12566 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12567 hardcode_direct_GO=yes
12568 hardcode_minus_L_GO=yes
12569 hardcode_shlibpath_var_GO=no
12572 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12573 freebsd* | dragonfly*)
12574 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12575 hardcode_libdir_flag_spec_GO='-R$libdir'
12576 hardcode_direct_GO=yes
12577 hardcode_shlibpath_var_GO=no
12581 if test "$GCC" = yes; then
12582 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'
12584 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'
12586 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12587 hardcode_libdir_separator_GO=:
12588 hardcode_direct_GO=yes
12590 # hardcode_minus_L: Not really in the search PATH,
12591 # but as the default location of the library.
12592 hardcode_minus_L_GO=yes
12593 export_dynamic_flag_spec_GO='${wl}-E'
12597 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12598 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12600 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12602 if test "$with_gnu_ld" = no; then
12603 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12604 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12605 hardcode_libdir_separator_GO=:
12606 hardcode_direct_GO=yes
12607 hardcode_direct_absolute_GO=yes
12608 export_dynamic_flag_spec_GO='${wl}-E'
12609 # hardcode_minus_L: Not really in the search PATH,
12610 # but as the default location of the library.
12611 hardcode_minus_L_GO=yes
12616 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12619 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12622 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12625 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12631 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12634 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12637 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12641 if test "$with_gnu_ld" = no; then
12642 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12643 hardcode_libdir_separator_GO=:
12647 hardcode_direct_GO=no
12648 hardcode_shlibpath_var_GO=no
12651 hardcode_direct_GO=yes
12652 hardcode_direct_absolute_GO=yes
12653 export_dynamic_flag_spec_GO='${wl}-E'
12655 # hardcode_minus_L: Not really in the search PATH,
12656 # but as the default location of the library.
12657 hardcode_minus_L_GO=yes
12663 irix5* | irix6* | nonstopux*)
12664 if test "$GCC" = yes; then
12665 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'
12666 # Try to use the -exported_symbol ld option, if it does not
12667 # work, assume that -exports_file does not work either and
12668 # implicitly export all symbols.
12669 save_LDFLAGS="$LDFLAGS"
12670 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 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'
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681 LDFLAGS="$save_LDFLAGS"
12683 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'
12684 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'
12686 archive_cmds_need_lc_GO='no'
12687 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12688 hardcode_libdir_separator_GO=:
12689 inherit_rpath_GO=yes
12690 link_all_deplibs_GO=yes
12694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12695 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12697 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12699 hardcode_libdir_flag_spec_GO='-R$libdir'
12700 hardcode_direct_GO=yes
12701 hardcode_shlibpath_var_GO=no
12705 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12706 hardcode_direct_GO=yes
12707 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12708 hardcode_libdir_separator_GO=:
12709 hardcode_shlibpath_var_GO=no
12716 if test -f /usr/libexec/ld.so; then
12717 hardcode_direct_GO=yes
12718 hardcode_shlibpath_var_GO=no
12719 hardcode_direct_absolute_GO=yes
12720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12721 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12722 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12723 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12724 export_dynamic_flag_spec_GO='${wl}-E'
12727 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12728 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12729 hardcode_libdir_flag_spec_GO='-R$libdir'
12732 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12733 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12743 hardcode_libdir_flag_spec_GO='-L$libdir'
12744 hardcode_minus_L_GO=yes
12745 allow_undefined_flag_GO=unsupported
12746 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'
12747 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12751 if test "$GCC" = yes; then
12752 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12753 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'
12755 allow_undefined_flag_GO=' -expect_unresolved \*'
12756 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'
12758 archive_cmds_need_lc_GO='no'
12759 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12760 hardcode_libdir_separator_GO=:
12763 osf4* | osf5*) # as osf3* with the addition of -msym flag
12764 if test "$GCC" = yes; then
12765 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12766 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'
12767 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12769 allow_undefined_flag_GO=' -expect_unresolved \*'
12770 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'
12771 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~
12772 $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'
12774 # Both c and cxx compiler support -rpath directly
12775 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12777 archive_cmds_need_lc_GO='no'
12778 hardcode_libdir_separator_GO=:
12782 no_undefined_flag_GO=' -z defs'
12783 if test "$GCC" = yes; then
12785 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12786 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12787 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12789 case `$CC -V 2>&1` in
12792 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12793 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12794 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12798 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12799 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12800 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12804 hardcode_libdir_flag_spec_GO='-R$libdir'
12805 hardcode_shlibpath_var_GO=no
12807 solaris2.[0-5] | solaris2.[0-5].*) ;;
12809 # The compiler driver will combine and reorder linker options,
12810 # but understands `-z linker_flag'. GCC discards it without `$wl',
12811 # but is careful enough not to reorder.
12812 # Supported since Solaris 2.6 (maybe 2.5.1?)
12813 if test "$GCC" = yes; then
12814 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12816 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12820 link_all_deplibs_GO=yes
12824 if test "x$host_vendor" = xsequent; then
12825 # Use $CC to link under sequent, because it throws in some extra .o
12826 # files that make .init and .fini sections work.
12827 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12829 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12831 hardcode_libdir_flag_spec_GO='-L$libdir'
12832 hardcode_direct_GO=yes
12833 hardcode_minus_L_GO=yes
12834 hardcode_shlibpath_var_GO=no
12838 case $host_vendor in
12840 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12841 hardcode_direct_GO=yes # is this really true???
12844 ## LD is ld it makes a PLAMLIB
12845 ## CC just makes a GrossModule.
12846 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12847 reload_cmds_GO='$CC -r -o $output$reload_objs'
12848 hardcode_direct_GO=no
12851 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12855 runpath_var='LD_RUN_PATH'
12856 hardcode_shlibpath_var_GO=no
12860 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861 hardcode_shlibpath_var_GO=no
12862 export_dynamic_flag_spec_GO='-Bexport'
12866 if test -d /usr/nec; then
12867 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12868 hardcode_shlibpath_var_GO=no
12869 runpath_var=LD_RUN_PATH
12870 hardcode_runpath_var=yes
12875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12876 no_undefined_flag_GO='${wl}-z,text'
12877 archive_cmds_need_lc_GO=no
12878 hardcode_shlibpath_var_GO=no
12879 runpath_var='LD_RUN_PATH'
12881 if test "$GCC" = yes; then
12882 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12885 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12886 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12890 sysv5* | sco3.2v5* | sco5v6*)
12891 # Note: We can NOT use -z defs as we might desire, because we do not
12892 # link with -lc, and that would cause any symbols used from libc to
12893 # always be unresolved, which means just about no library would
12894 # ever link correctly. If we're not using GNU ld we use -z text
12895 # though, which does catch some bad symbols but isn't as heavy-handed
12897 no_undefined_flag_GO='${wl}-z,text'
12898 allow_undefined_flag_GO='${wl}-z,nodefs'
12899 archive_cmds_need_lc_GO=no
12900 hardcode_shlibpath_var_GO=no
12901 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12902 hardcode_libdir_separator_GO=':'
12903 link_all_deplibs_GO=yes
12904 export_dynamic_flag_spec_GO='${wl}-Bexport'
12905 runpath_var='LD_RUN_PATH'
12907 if test "$GCC" = yes; then
12908 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12909 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12911 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12917 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918 hardcode_libdir_flag_spec_GO='-L$libdir'
12919 hardcode_shlibpath_var_GO=no
12927 if test x$host_vendor = xsni; then
12929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12930 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12937 $as_echo "$ld_shlibs_GO" >&6; }
12938 test "$ld_shlibs_GO" = no && can_build_shared=no
12940 with_gnu_ld_GO=$with_gnu_ld
12948 # Do we need to explicitly link libc?
12950 case "x$archive_cmds_need_lc_GO" in
12952 # Assume -lc should be added
12953 archive_cmds_need_lc_GO=yes
12955 if test "$enable_shared" = yes && test "$GCC" = yes; then
12956 case $archive_cmds_GO in
12958 # FIXME: we may have to deal with multi-command sequences.
12961 # Test whether the compiler implicitly links with -lc since on some
12962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12963 # to ld, don't add -lc before -lgcc.
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12966 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12973 (eval $ac_compile) 2>&5
12975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12976 test $ac_status = 0; } 2>conftest.err; then
12979 libobjs=conftest.$ac_objext
12981 wl=$lt_prog_compiler_wl_GO
12982 pic_flag=$lt_prog_compiler_pic_GO
12988 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12989 allow_undefined_flag_GO=
12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12991 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994 test $ac_status = 0; }
12996 lt_cv_archive_cmds_need_lc_GO=no
12998 lt_cv_archive_cmds_need_lc_GO=yes
13000 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13002 cat conftest.err 1>&5
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13008 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13009 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13081 hardcode_action_GO=
13082 if test -n "$hardcode_libdir_flag_spec_GO" ||
13083 test -n "$runpath_var_GO" ||
13084 test "X$hardcode_automatic_GO" = "Xyes" ; then
13086 # We can hardcode non-existent directories.
13087 if test "$hardcode_direct_GO" != no &&
13088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13089 # have to relink, otherwise we might link with an installed library
13090 # when we should be linking with a yet-to-be-installed one
13091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13092 test "$hardcode_minus_L_GO" != no; then
13093 # Linking always hardcodes the temporary library directory.
13094 hardcode_action_GO=relink
13096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13097 hardcode_action_GO=immediate
13100 # We cannot hardcode anything, or else we can only hardcode existing
13102 hardcode_action_GO=unsupported
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13105 $as_echo "$hardcode_action_GO" >&6; }
13107 if test "$hardcode_action_GO" = relink ||
13108 test "$inherit_rpath_GO" = yes; then
13109 # Fast installation is not supported
13110 enable_fast_install=no
13111 elif test "$shlibpath_overrides_runpath" = yes ||
13112 test "$enable_shared" = no; then
13113 # Fast installation is not necessary
13114 enable_fast_install=needless
13126 ac_cpp='$CPP $CPPFLAGS'
13127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138 ac_config_commands="$ac_config_commands libtool"
13143 # Only expand once:
13149 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13155 glibgo_toolexecdir=no
13156 glibgo_toolexeclibdir=no
13157 glibgo_prefixdir=$prefix
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13160 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13161 # Check whether --enable-version-specific-runtime-libs was given.
13162 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13163 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13164 yes) version_specific_libs=yes ;;
13165 no) version_specific_libs=no ;;
13166 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13169 version_specific_libs=no
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13173 $as_echo "$version_specific_libs" >&6; }
13175 # Version-specific runtime libs processing.
13176 if test $version_specific_libs = yes; then
13177 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13178 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13181 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13182 # Install a library built with a cross compiler in tooldir, not libdir.
13183 if test x"$glibgo_toolexecdir" = x"no"; then
13184 if test -n "$with_cross_host" &&
13185 test x"$with_cross_host" != x"no"; then
13186 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13187 glibgo_toolexeclibdir='${toolexecdir}/lib'
13189 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13190 glibgo_toolexeclibdir='${libdir}'
13192 multi_os_directory=`$CC -print-multi-os-directory`
13193 case $multi_os_directory in
13194 .) ;; # Avoid trailing /.
13195 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13203 # See if the user wants to configure without libffi. Some
13204 # architectures don't support it. FIXME: We should set a default
13205 # based on the host.
13207 # Check whether --with-libffi was given.
13208 if test "${with_libffi+set}" = set; then :
13209 withval=$with_libffi; :
13211 with_libffi=${with_libffi_default-yes}
13217 if test "$with_libffi" != no; then
13219 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13221 LIBFFI=../libffi/libffi_convenience.la
13222 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13235 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13236 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13237 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13238 *-*-linux*) is_linux=yes; GOOS=linux ;;
13239 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13240 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13242 if test $is_darwin = yes; then
13243 LIBGO_IS_DARWIN_TRUE=
13244 LIBGO_IS_DARWIN_FALSE='#'
13246 LIBGO_IS_DARWIN_TRUE='#'
13247 LIBGO_IS_DARWIN_FALSE=
13250 if test $is_freebsd = yes; then
13251 LIBGO_IS_FREEBSD_TRUE=
13252 LIBGO_IS_FREEBSD_FALSE='#'
13254 LIBGO_IS_FREEBSD_TRUE='#'
13255 LIBGO_IS_FREEBSD_FALSE=
13258 if test $is_irix = yes; then
13259 LIBGO_IS_IRIX_TRUE=
13260 LIBGO_IS_IRIX_FALSE='#'
13262 LIBGO_IS_IRIX_TRUE='#'
13263 LIBGO_IS_IRIX_FALSE=
13266 if test $is_linux = yes; then
13267 LIBGO_IS_LINUX_TRUE=
13268 LIBGO_IS_LINUX_FALSE='#'
13270 LIBGO_IS_LINUX_TRUE='#'
13271 LIBGO_IS_LINUX_FALSE=
13274 if test $is_rtems = yes; then
13275 LIBGO_IS_RTEMS_TRUE=
13276 LIBGO_IS_RTEMS_FALSE='#'
13278 LIBGO_IS_RTEMS_TRUE='#'
13279 LIBGO_IS_RTEMS_FALSE=
13282 if test $is_solaris = yes; then
13283 LIBGO_IS_SOLARIS_TRUE=
13284 LIBGO_IS_SOLARIS_FALSE='#'
13286 LIBGO_IS_SOLARIS_TRUE='#'
13287 LIBGO_IS_SOLARIS_FALSE=
13303 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13307 i[34567]86-*-* | x86_64-*-*)
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13315 if ac_fn_c_try_compile "$LINENO"; then :
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 if test "$is_386" = "yes"; then
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13335 #if _MIPS_SIM != _ABIO32
13339 if ac_fn_c_try_compile "$LINENO"; then :
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13345 #if _MIPS_SIM != _ABIN32
13349 if ac_fn_c_try_compile "$LINENO"; then :
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13355 #if _MIPS_SIM != _ABI64
13359 if ac_fn_c_try_compile "$LINENO"; then :
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13365 #if _MIPS_SIM != _ABIO64
13369 if ac_fn_c_try_compile "$LINENO"; then :
13372 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 case "$mips_abi" in
13383 "o32") GOARCH=mipso32 ;;
13384 "n32") GOARCH=mipsn32 ;;
13385 "n64") GOARCH=mipsn64 ;;
13386 "o64") GOARCH=mipso64 ;;
13389 rs6000*-*-* | powerpc*-*-*)
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13397 if ac_fn_c_try_compile "$LINENO"; then :
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 if test "$is_ppc" = "yes"; then
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13413 #if defined(__sparcv9) || defined(__arch64__)
13417 if ac_fn_c_try_compile "$LINENO"; then :
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 if test "$is_sparc" = "yes"; then
13430 if test $is_386 = yes; then
13432 LIBGO_IS_386_FALSE='#'
13434 LIBGO_IS_386_TRUE='#'
13435 LIBGO_IS_386_FALSE=
13438 if test $is_arm = yes; then
13440 LIBGO_IS_ARM_FALSE='#'
13442 LIBGO_IS_ARM_TRUE='#'
13443 LIBGO_IS_ARM_FALSE=
13446 if test $is_m68k = yes; then
13447 LIBGO_IS_M68K_TRUE=
13448 LIBGO_IS_M68K_FALSE='#'
13450 LIBGO_IS_M68K_TRUE='#'
13451 LIBGO_IS_M68K_FALSE=
13454 if test $mips_abi != ""; then
13455 LIBGO_IS_MIPS_TRUE=
13456 LIBGO_IS_MIPS_FALSE='#'
13458 LIBGO_IS_MIPS_TRUE='#'
13459 LIBGO_IS_MIPS_FALSE=
13462 if test $mips_abi = o32; then
13463 LIBGO_IS_MIPSO32_TRUE=
13464 LIBGO_IS_MIPSO32_FALSE='#'
13466 LIBGO_IS_MIPSO32_TRUE='#'
13467 LIBGO_IS_MIPSO32_FALSE=
13470 if test $mips_abi = n32; then
13471 LIBGO_IS_MIPSN32_TRUE=
13472 LIBGO_IS_MIPSN32_FALSE='#'
13474 LIBGO_IS_MIPSN32_TRUE='#'
13475 LIBGO_IS_MIPSN32_FALSE=
13478 if test $mips_abi = n64; then
13479 LIBGO_IS_MIPSN64_TRUE=
13480 LIBGO_IS_MIPSN64_FALSE='#'
13482 LIBGO_IS_MIPSN64_TRUE='#'
13483 LIBGO_IS_MIPSN64_FALSE=
13486 if test $mips_abi = o64; then
13487 LIBGO_IS_MIPSO64_TRUE=
13488 LIBGO_IS_MIPSO64_FALSE='#'
13490 LIBGO_IS_MIPSO64_TRUE='#'
13491 LIBGO_IS_MIPSO64_FALSE=
13494 if test $is_ppc = yes; then
13496 LIBGO_IS_PPC_FALSE='#'
13498 LIBGO_IS_PPC_TRUE='#'
13499 LIBGO_IS_PPC_FALSE=
13502 if test $is_ppc64 = yes; then
13503 LIBGO_IS_PPC64_TRUE=
13504 LIBGO_IS_PPC64_FALSE='#'
13506 LIBGO_IS_PPC64_TRUE='#'
13507 LIBGO_IS_PPC64_FALSE=
13510 if test $is_sparc = yes; then
13511 LIBGO_IS_SPARC_TRUE=
13512 LIBGO_IS_SPARC_FALSE='#'
13514 LIBGO_IS_SPARC_TRUE='#'
13515 LIBGO_IS_SPARC_FALSE=
13518 if test $is_sparc64 = yes; then
13519 LIBGO_IS_SPARC64_TRUE=
13520 LIBGO_IS_SPARC64_FALSE='#'
13522 LIBGO_IS_SPARC64_TRUE='#'
13523 LIBGO_IS_SPARC64_FALSE=
13526 if test $is_x86_64 = yes; then
13527 LIBGO_IS_X86_64_TRUE=
13528 LIBGO_IS_X86_64_FALSE='#'
13530 LIBGO_IS_X86_64_TRUE='#'
13531 LIBGO_IS_X86_64_FALSE=
13536 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13537 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13538 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13542 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13543 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13544 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13550 # Solaris 8/9 need this so struct msghdr gets the msg_control
13551 # etc. fields in <sys/socket.h> (_XPG4_2).
13552 OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13554 *-*-solaris2.1[01])
13555 # Solaris 10+ needs this so struct msghdr gets the msg_control
13556 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
13557 # above doesn't work with C99.
13558 OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13564 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13565 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 CFLAGS_hold=$CFLAGS
13569 CFLAGS="$CFLAGS -fsplit-stack"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 libgo_cv_c_split_stack_supported=yes
13577 libgo_cv_c_split_stack_supported=no
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 CFLAGS=$CFLAGS_hold
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13583 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13584 if test "$libgo_cv_c_split_stack_supported" = yes; then
13585 SPLIT_STACK=-fsplit-stack
13587 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13593 if test "$libgo_cv_c_split_stack_supported" = yes; then
13594 USING_SPLIT_STACK_TRUE=
13595 USING_SPLIT_STACK_FALSE='#'
13597 USING_SPLIT_STACK_TRUE='#'
13598 USING_SPLIT_STACK_FALSE=
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13603 $as_echo_n "checking whether linker supports split stack... " >&6; }
13604 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13605 $as_echo_n "(cached) " >&6
13607 libgo_cv_c_linker_supports_split_stack=no
13608 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13609 libgo_cv_c_linker_supports_split_stack=yes
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13613 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13614 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13616 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13622 $as_echo_n "checking for sqrt in -lm... " >&6; }
13623 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13624 $as_echo_n "(cached) " >&6
13626 ac_check_lib_save_LIBS=$LIBS
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13646 if ac_fn_c_try_link "$LINENO"; then :
13647 ac_cv_lib_m_sqrt=yes
13649 ac_cv_lib_m_sqrt=no
13651 rm -f core conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 LIBS=$ac_check_lib_save_LIBS
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13656 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13657 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13664 $as_echo_n "checking for socket libraries... " >&6; }
13665 if test "${libgo_cv_lib_sockets+set}" = set; then :
13666 $as_echo_n "(cached) " >&6
13668 libgo_cv_lib_sockets=
13669 libgo_check_both=no
13670 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13671 if test "x$ac_cv_func_connect" = x""yes; then :
13672 libgo_check_socket=no
13674 libgo_check_socket=yes
13677 if test "$libgo_check_socket" = "yes"; then
13678 unset ac_cv_func_connect
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13680 $as_echo_n "checking for main in -lsocket... " >&6; }
13681 if test "${ac_cv_lib_socket_main+set}" = set; then :
13682 $as_echo_n "(cached) " >&6
13684 ac_check_lib_save_LIBS=$LIBS
13685 LIBS="-lsocket $LIBS"
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13698 if ac_fn_c_try_link "$LINENO"; then :
13699 ac_cv_lib_socket_main=yes
13701 ac_cv_lib_socket_main=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13708 $as_echo "$ac_cv_lib_socket_main" >&6; }
13709 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13710 libgo_cv_lib_sockets="-lsocket"
13712 libgo_check_both=yes
13716 if test "$libgo_check_both" = "yes"; then
13717 libgo_old_libs=$LIBS
13718 LIBS="$LIBS -lsocket -lnsl"
13719 unset ac_cv_func_accept
13720 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13721 if test "x$ac_cv_func_accept" = x""yes; then :
13723 libgo_cv_lib_sockets="-lsocket -lnsl"
13726 unset ac_cv_func_accept
13727 LIBS=$libgo_old_libs
13729 unset ac_cv_func_gethostbyname
13730 libgo_old_libs="$LIBS"
13731 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13732 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13736 $as_echo_n "checking for main in -lnsl... " >&6; }
13737 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13740 ac_check_lib_save_LIBS=$LIBS
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13754 if ac_fn_c_try_link "$LINENO"; then :
13755 ac_cv_lib_nsl_main=yes
13757 ac_cv_lib_nsl_main=no
13759 rm -f core conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13764 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13765 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13766 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13771 unset ac_cv_func_gethostbyname
13772 LIBS=$libgo_old_libs
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13776 $as_echo "$libgo_cv_lib_sockets" >&6; }
13777 NET_LIBS="$libgo_cv_lib_sockets"
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13781 $as_echo_n "checking whether -pthread is supported... " >&6; }
13782 if test "${libgo_cv_lib_pthread+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
13785 CFLAGS_hold=$CFLAGS
13786 CFLAGS="$CFLAGS -pthread"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792 libgo_cv_lib_pthread=yes
13794 libgo_cv_lib_pthread=no
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 CFLAGS=$CFLAGS_hold
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13800 $as_echo "$libgo_cv_lib_pthread" >&6; }
13802 if test "$libgo_cv_lib_pthread" = yes; then
13803 PTHREAD_CFLAGS=-pthread
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13809 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13810 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13811 $as_echo_n "(cached) " >&6
13813 ac_check_lib_save_LIBS=$LIBS
13814 LIBS="-lpthread $LIBS"
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13824 char pthread_create ();
13828 return pthread_create ();
13833 if ac_fn_c_try_link "$LINENO"; then :
13834 ac_cv_lib_pthread_pthread_create=yes
13836 ac_cv_lib_pthread_pthread_create=no
13838 rm -f core conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
13840 LIBS=$ac_check_lib_save_LIBS
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13843 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13844 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13845 PTHREAD_LIBS=-lpthread
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13851 $as_echo_n "checking for library containing sched_yield... " >&6; }
13852 if test "${ac_cv_search_sched_yield+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13855 ac_func_search_save_LIBS=$LIBS
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13859 /* Override any GCC internal prototype to avoid an error.
13860 Use char because int might match the return type of a GCC
13861 builtin and then its argument prototype would still apply. */
13865 char sched_yield ();
13869 return sched_yield ();
13874 for ac_lib in '' rt; do
13875 if test -z "$ac_lib"; then
13876 ac_res="none required"
13879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13881 if ac_fn_c_try_link "$LINENO"; then :
13882 ac_cv_search_sched_yield=$ac_res
13884 rm -f core conftest.err conftest.$ac_objext \
13886 if test "${ac_cv_search_sched_yield+set}" = set; then :
13890 if test "${ac_cv_search_sched_yield+set}" = set; then :
13893 ac_cv_search_sched_yield=no
13895 rm conftest.$ac_ext
13896 LIBS=$ac_func_search_save_LIBS
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13899 $as_echo "$ac_cv_search_sched_yield" >&6; }
13900 ac_res=$ac_cv_search_sched_yield
13901 if test "$ac_res" != no; then :
13902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13908 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13909 if test "${ac_cv_c_bigendian+set}" = set; then :
13910 $as_echo_n "(cached) " >&6
13912 ac_cv_c_bigendian=unknown
13913 # See if we're dealing with a universal compiler.
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916 #ifndef __APPLE_CC__
13917 not a universal capable compiler
13922 if ac_fn_c_try_compile "$LINENO"; then :
13924 # Check for potential -arch flags. It is not universal unless
13925 # there are at least two -arch flags with different values.
13928 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13929 if test -n "$ac_prev"; then
13931 i?86 | x86_64 | ppc | ppc64)
13932 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13935 ac_cv_c_bigendian=universal
13941 elif test "x$ac_word" = "x-arch"; then
13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 if test $ac_cv_c_bigendian = unknown; then
13948 # See if sys/param.h defines the BYTE_ORDER macro.
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 #include <sys/types.h>
13952 #include <sys/param.h>
13957 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13958 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13960 bogus endian macros
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968 # It does; now see whether it defined to BIG_ENDIAN or not.
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971 #include <sys/types.h>
13972 #include <sys/param.h>
13977 #if BYTE_ORDER != BIG_ENDIAN
13985 if ac_fn_c_try_compile "$LINENO"; then :
13986 ac_cv_c_bigendian=yes
13988 ac_cv_c_bigendian=no
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 if test $ac_cv_c_bigendian = unknown; then
13995 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 #include <limits.h>
14003 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14004 bogus endian macros
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 # It does; now see whether it defined to _BIG_ENDIAN or not.
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 #include <limits.h>
14020 #ifndef _BIG_ENDIAN
14028 if ac_fn_c_try_compile "$LINENO"; then :
14029 ac_cv_c_bigendian=yes
14031 ac_cv_c_bigendian=no
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037 if test $ac_cv_c_bigendian = unknown; then
14038 # Compile a test program.
14039 if test "$cross_compiling" = yes; then :
14040 # Try to guess by grepping values from an object file.
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 short int ascii_mm[] =
14044 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14045 short int ascii_ii[] =
14046 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14047 int use_ascii (int i) {
14048 return ascii_mm[i] + ascii_ii[i];
14050 short int ebcdic_ii[] =
14051 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14052 short int ebcdic_mm[] =
14053 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14054 int use_ebcdic (int i) {
14055 return ebcdic_mm[i] + ebcdic_ii[i];
14062 return use_ascii (foo) == use_ebcdic (foo);
14067 if ac_fn_c_try_compile "$LINENO"; then :
14068 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14069 ac_cv_c_bigendian=yes
14071 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14072 if test "$ac_cv_c_bigendian" = unknown; then
14073 ac_cv_c_bigendian=no
14075 # finding both strings is unlikely to happen, but who knows?
14076 ac_cv_c_bigendian=unknown
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 $ac_includes_default
14089 /* Are we little or big endian? From Harbison&Steele. */
14093 char c[sizeof (long int)];
14096 return u.c[sizeof (long int) - 1] == 1;
14102 if ac_fn_c_try_run "$LINENO"; then :
14103 ac_cv_c_bigendian=no
14105 ac_cv_c_bigendian=yes
14107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14108 conftest.$ac_objext conftest.beam conftest.$ac_ext
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14114 $as_echo "$ac_cv_c_bigendian" >&6; }
14115 case $ac_cv_c_bigendian in #(
14117 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14123 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14127 as_fn_error "unknown endianness
14128 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14134 # Check whether --with-system-libunwind was given.
14135 if test "${with_system_libunwind+set}" = set; then :
14136 withval=$with_system_libunwind;
14139 # If system-libunwind was not specifically set, pick a default setting.
14140 if test x$with_system_libunwind = x; then
14142 ia64-*-hpux*) with_system_libunwind=yes ;;
14143 *) with_system_libunwind=no ;;
14146 # Based on system-libunwind and target, do we have ipinfo?
14147 if test x$with_system_libunwind = xyes; then
14149 ia64-*-*) have_unwind_getipinfo=no ;;
14150 *) have_unwind_getipinfo=yes ;;
14153 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14156 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14157 *) have_unwind_getipinfo=yes ;;
14162 if test x$have_unwind_getipinfo = xyes; then
14164 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14169 # Check whether --enable-sjlj-exceptions was given.
14170 if test "${enable_sjlj_exceptions+set}" = set; then :
14171 enableval=$enable_sjlj_exceptions; case "$enableval" in
14173 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14176 enable_sjlj_exceptions=auto
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14181 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14182 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14183 $as_echo_n "(cached) " >&6
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14189 void clean (int *);
14192 int i __attribute__ ((cleanup (clean)));
14197 CFLAGS_hold=$CFLAGS
14198 CFLAGS="--save-temps -fexceptions"
14199 libgo_cv_lib_sjlj_exceptions=unknown
14200 if ac_fn_c_try_compile; then :
14201 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14202 libgo_cv_lib_sjlj_exceptions=yes
14203 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14204 libgo_cv_lib_sjlj_exceptions=no
14207 CFLAGS=$CFLAGS_hold
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14212 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14214 if test "$enable_sjlj_exceptions" = "auto"; then
14215 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14218 case $enable_sjlj_exceptions in
14221 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14227 as_fn_error "unable to detect exception model" "$LINENO" 5
14231 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h
14233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14234 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14235 eval as_val=\$$as_ac_Header
14236 if test "x$as_val" = x""yes; then :
14237 cat >>confdefs.h <<_ACEOF
14238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14245 if test "$ac_cv_header_sys_mman_h" = yes; then
14246 HAVE_SYS_MMAN_H_TRUE=
14247 HAVE_SYS_MMAN_H_FALSE='#'
14249 HAVE_SYS_MMAN_H_TRUE='#'
14250 HAVE_SYS_MMAN_H_FALSE=
14254 for ac_func in srandom random strerror_r strsignal wait4
14256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14258 eval as_val=\$$as_ac_var
14259 if test "x$as_val" = x""yes; then :
14260 cat >>confdefs.h <<_ACEOF
14261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14267 if test "$ac_cv_func_strerror_r" = yes; then
14268 HAVE_STRERROR_R_TRUE=
14269 HAVE_STRERROR_R_FALSE='#'
14271 HAVE_STRERROR_R_TRUE='#'
14272 HAVE_STRERROR_R_FALSE=
14275 if test "$ac_cv_func_wait4" = yes; then
14277 HAVE_WAIT4_FALSE='#'
14279 HAVE_WAIT4_TRUE='#'
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14285 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14286 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14287 $as_echo_n "(cached) " >&6
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14292 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14294 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14297 if ac_fn_c_try_link "$LINENO"; then :
14298 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14300 libgo_cv_func___sync_bool_compare_and_swap_4=no
14302 rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14306 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14307 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14309 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14314 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14315 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14321 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14323 int main() { return __sync_fetch_and_add (&i, 1); }
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 libgo_cv_func___sync_fetch_and_add_4=yes
14329 libgo_cv_func___sync_fetch_and_add_4=no
14331 rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14335 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14336 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14338 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14343 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14344 if test "${libgo_cv_c_stringops+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14347 CFLAGS_hold=$CFLAGS
14348 CFLAGS="$CFLAGS -minline-all-stringops"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354 libgo_cv_c_stringops=yes
14356 libgo_cv_c_stringops=no
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 CFLAGS=$CFLAGS_hold
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14362 $as_echo "$libgo_cv_c_stringops" >&6; }
14364 if test "$libgo_cv_c_stringops" = yes; then
14365 STRINGOPS_FLAG=-minline-all-stringops
14369 CFLAGS_hold=$CFLAGS
14370 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14371 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14372 if test "x$ac_cv_type_off64_t" = x""yes; then :
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_OFF64_T 1
14381 CFLAGS=$CFLAGS_hold
14383 cat >confcache <<\_ACEOF
14384 # This file is a shell script that caches the results of configure
14385 # tests run on this system so they can be shared between configure
14386 # scripts and configure runs, see configure's option --config-cache.
14387 # It is not useful on other systems. If it contains results you don't
14388 # want to keep, you may remove or edit it.
14390 # config.status only pays attention to the cache file if you give it
14391 # the --recheck option to rerun configure.
14393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14395 # following values.
14399 # The following way of writing the cache mishandles newlines in values,
14400 # but we know of no workaround that is simple, portable, and efficient.
14401 # So, we kill variables containing newlines.
14402 # Ultrix sh set writes to stderr and can't be redirected directly,
14403 # and sets the high bit in the cache file unless we assign to the vars.
14405 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14406 eval ac_val=\$$ac_var
14410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14411 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14414 _ | IFS | as_nl) ;; #(
14415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14416 *) { eval $ac_var=; unset $ac_var;} ;;
14422 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14423 *${as_nl}ac_space=\ *)
14424 # `set' does not quote correctly, so add quotes: double-quote
14425 # substitution turns \\\\ into \\, and sed turns \\ into \.
14428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14431 # `set' quotes correctly as required by POSIX, so do not add quotes.
14432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14443 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14445 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14446 if test -w "$cache_file"; then
14447 test "x$cache_file" != "x/dev/null" &&
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14449 $as_echo "$as_me: updating cache $cache_file" >&6;}
14450 cat confcache >$cache_file
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14453 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14458 if test ${multilib} = yes; then
14459 multilib_arg="--enable-multilib"
14464 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14467 ac_config_commands="$ac_config_commands default"
14470 cat >confcache <<\_ACEOF
14471 # This file is a shell script that caches the results of configure
14472 # tests run on this system so they can be shared between configure
14473 # scripts and configure runs, see configure's option --config-cache.
14474 # It is not useful on other systems. If it contains results you don't
14475 # want to keep, you may remove or edit it.
14477 # config.status only pays attention to the cache file if you give it
14478 # the --recheck option to rerun configure.
14480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14482 # following values.
14486 # The following way of writing the cache mishandles newlines in values,
14487 # but we know of no workaround that is simple, portable, and efficient.
14488 # So, we kill variables containing newlines.
14489 # Ultrix sh set writes to stderr and can't be redirected directly,
14490 # and sets the high bit in the cache file unless we assign to the vars.
14492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14493 eval ac_val=\$$ac_var
14497 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14501 _ | IFS | as_nl) ;; #(
14502 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14503 *) { eval $ac_var=; unset $ac_var;} ;;
14509 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14510 *${as_nl}ac_space=\ *)
14511 # `set' does not quote correctly, so add quotes: double-quote
14512 # substitution turns \\\\ into \\, and sed turns \\ into \.
14515 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14518 # `set' quotes correctly as required by POSIX, so do not add quotes.
14519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14528 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14530 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14533 if test -w "$cache_file"; then
14534 test "x$cache_file" != "x/dev/null" &&
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14536 $as_echo "$as_me: updating cache $cache_file" >&6;}
14537 cat confcache >$cache_file
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14540 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14546 # Let make expand exec_prefix.
14547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14549 DEFS=-DHAVE_CONFIG_H
14553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14554 # 1. Remove the extension, and $U if already installed.
14555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14558 # will be set to the directory where LIBOBJS objects are built.
14559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14562 LIBOBJS=$ac_libobjs
14564 LTLIBOBJS=$ac_ltlibobjs
14567 if test -n "$EXEEXT"; then
14569 am__EXEEXT_FALSE='#'
14571 am__EXEEXT_TRUE='#'
14575 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14576 as_fn_error "conditional \"AMDEP\" was never defined.
14577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14580 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14583 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14584 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14587 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14588 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14591 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14592 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14595 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14596 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14599 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14600 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14603 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14604 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14607 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14608 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14611 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14612 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14615 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14616 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14619 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14620 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14623 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14624 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14627 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14628 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14631 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14632 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14635 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14636 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14639 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14640 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14643 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14644 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14647 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14648 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14651 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14652 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14655 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14656 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14660 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14664 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14669 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14672 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14673 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14676 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14677 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681 : ${CONFIG_STATUS=./config.status}
14683 ac_clean_files_save=$ac_clean_files
14684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14690 # Generated by $as_me.
14691 # Run this file to recreate the current configuration.
14692 # Compiler output produced by configure, useful for debugging
14693 # configure, is in config.log if it exists.
14696 ac_cs_recheck=false
14699 SHELL=\${CONFIG_SHELL-$SHELL}
14702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14703 ## -------------------- ##
14704 ## M4sh Initialization. ##
14705 ## -------------------- ##
14707 # Be more Bourne compatible
14708 DUALCASE=1; export DUALCASE # for MKS sh
14709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14712 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14713 # is contrary to our usage. Disable this feature.
14714 alias -g '${1+"$@"}'='"$@"'
14715 setopt NO_GLOB_SUBST
14717 case `(set -o) 2>/dev/null` in #(
14729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14733 # Prefer a ksh shell builtin over an external printf program on Solaris,
14734 # but without wasting forks for bash or zsh.
14735 if test -z "$BASH_VERSION$ZSH_VERSION" \
14736 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14737 as_echo='print -r --'
14738 as_echo_n='print -rn --'
14739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14740 as_echo='printf %s\n'
14741 as_echo_n='printf %s'
14743 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14744 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14745 as_echo_n='/usr/ucb/echo -n'
14747 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14748 as_echo_n_body='eval
14752 expr "X$arg" : "X\\(.*\\)$as_nl";
14753 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14755 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14757 export as_echo_n_body
14758 as_echo_n='sh -c $as_echo_n_body as_echo'
14760 export as_echo_body
14761 as_echo='sh -c $as_echo_body as_echo'
14764 # The user is always right.
14765 if test "${PATH_SEPARATOR+set}" != set; then
14767 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14768 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14775 # We need space, tab and new line, in precisely that order. Quoting is
14776 # there to prevent editors from complaining about space-tab.
14777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14778 # splitting by setting IFS to empty value.)
14781 # Find who we are. Look in the path if we contain no directory separator.
14783 *[\\/]* ) as_myself=$0 ;;
14784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14785 for as_dir in $PATH
14788 test -z "$as_dir" && as_dir=.
14789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14795 # We did not find ourselves, most probably we were run as `sh COMMAND'
14796 # in which case we are not to be found in the path.
14797 if test "x$as_myself" = x; then
14800 if test ! -f "$as_myself"; then
14801 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14805 # Unset variables that we do not need and which cause bugs (e.g. in
14806 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14807 # suppresses any "Segmentation fault" message there. '((' could
14808 # trigger a bug in pdksh 5.2.14.
14809 for as_var in BASH_ENV ENV MAIL MAILPATH
14810 do eval test x\${$as_var+set} = xset \
14811 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14827 # as_fn_error ERROR [LINENO LOG_FD]
14828 # ---------------------------------
14829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14831 # script with status $?, using 1 if that was 0.
14834 as_status=$?; test $as_status -eq 0 && as_status=1
14836 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14837 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14839 $as_echo "$as_me: error: $1" >&2
14840 as_fn_exit $as_status
14844 # as_fn_set_status STATUS
14845 # -----------------------
14846 # Set $? to STATUS, without forking.
14847 as_fn_set_status ()
14850 } # as_fn_set_status
14852 # as_fn_exit STATUS
14853 # -----------------
14854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14858 as_fn_set_status $1
14864 # Portably unset VAR.
14867 { eval $1=; unset $1;}
14869 as_unset=as_fn_unset
14870 # as_fn_append VAR VALUE
14871 # ----------------------
14872 # Append the text in VALUE to the end of the definition contained in VAR. Take
14873 # advantage of any shell optimizations that allow amortized linear growth over
14874 # repeated appends, instead of the typical quadratic growth present in naive
14876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14877 eval 'as_fn_append ()
14888 # as_fn_arith ARG...
14889 # ------------------
14890 # Perform arithmetic evaluation on the ARGs, and store the result in the
14891 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14892 # must be portable across $(()) and expr.
14893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14894 eval 'as_fn_arith ()
14901 as_val=`expr "$@" || test $? -eq 1`
14906 if expr a : '\(a\)' >/dev/null 2>&1 &&
14907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14914 as_basename=basename
14919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14925 as_me=`$as_basename -- "$0" ||
14926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14927 X"$0" : 'X\(//\)$' \| \
14928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14930 sed '/^.*\/\([^/][^/]*\)\/*$/{
14944 # Avoid depending upon Character Ranges.
14945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14948 as_cr_digits='0123456789'
14949 as_cr_alnum=$as_cr_Letters$as_cr_digits
14951 ECHO_C= ECHO_N= ECHO_T=
14952 case `echo -n x` in #(((((
14954 case `echo 'xy\c'` in
14955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14957 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14964 rm -f conf$$ conf$$.exe conf$$.file
14965 if test -d conf$$.dir; then
14966 rm -f conf$$.dir/conf$$.file
14969 mkdir conf$$.dir 2>/dev/null
14971 if (echo >conf$$.file) 2>/dev/null; then
14972 if ln -s conf$$.file conf$$ 2>/dev/null; then
14974 # ... but there are two gotchas:
14975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14977 # In both cases, we have to default to `cp -p'.
14978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14980 elif ln conf$$.file conf$$ 2>/dev/null; then
14988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14989 rmdir conf$$.dir 2>/dev/null
14994 # Create "$as_dir" as a directory, including parents if necessary.
14999 -*) as_dir=./$as_dir;;
15001 test -d "$as_dir" || eval $as_mkdir_p || {
15005 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15006 *) as_qdir=$as_dir;;
15008 as_dirs="'$as_qdir' $as_dirs"
15009 as_dir=`$as_dirname -- "$as_dir" ||
15010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15011 X"$as_dir" : 'X\(//\)[^/]' \| \
15012 X"$as_dir" : 'X\(//\)$' \| \
15013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15014 $as_echo X"$as_dir" |
15015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15019 /^X\(\/\/\)[^/].*/{
15032 test -d "$as_dir" && break
15034 test -z "$as_dirs" || eval "mkdir $as_dirs"
15035 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15039 if mkdir -p . 2>/dev/null; then
15040 as_mkdir_p='mkdir -p "$as_dir"'
15042 test -d ./-p && rmdir ./-p
15046 if test -x / >/dev/null 2>&1; then
15047 as_test_x='test -x'
15049 if ls -dL / >/dev/null 2>&1; then
15056 if test -d "$1"; then
15062 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15063 ???[sx]*):;;*)false;;esac;fi
15067 as_executable_p=$as_test_x
15069 # Sed expression to map a string onto a valid CPP name.
15070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15072 # Sed expression to map a string onto a valid variable name.
15073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15077 ## ----------------------------------- ##
15078 ## Main body of $CONFIG_STATUS script. ##
15079 ## ----------------------------------- ##
15081 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084 # Save the log message, to keep $0 and so on meaningful, and to
15085 # report actual input values of CONFIG_FILES etc. instead of their
15086 # values after options handling.
15088 This file was extended by package-unused $as_me version-unused, which was
15089 generated by GNU Autoconf 2.64. Invocation command line was
15091 CONFIG_FILES = $CONFIG_FILES
15092 CONFIG_HEADERS = $CONFIG_HEADERS
15093 CONFIG_LINKS = $CONFIG_LINKS
15094 CONFIG_COMMANDS = $CONFIG_COMMANDS
15097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15102 case $ac_config_files in *"
15103 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15106 case $ac_config_headers in *"
15107 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112 # Files that config.status was made for.
15113 config_files="$ac_config_files"
15114 config_headers="$ac_config_headers"
15115 config_commands="$ac_config_commands"
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15121 \`$as_me' instantiates files and other configuration actions
15122 from templates according to the current configuration. Unless the files
15123 and actions are specified as TAGs, all are instantiated by default.
15125 Usage: $0 [OPTION]... [TAG]...
15127 -h, --help print this help, then exit
15128 -V, --version print version number and configuration settings, then exit
15129 -q, --quiet, --silent
15130 do not print progress messages
15131 -d, --debug don't remove temporary files
15132 --recheck update $as_me by reconfiguring in the same conditions
15133 --file=FILE[:TEMPLATE]
15134 instantiate the configuration file FILE
15135 --header=FILE[:TEMPLATE]
15136 instantiate the configuration header FILE
15138 Configuration files:
15141 Configuration headers:
15144 Configuration commands:
15147 Report bugs to the package provider."
15150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 package-unused config.status version-unused
15153 configured by $0, generated by GNU Autoconf 2.64,
15154 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15156 Copyright (C) 2009 Free Software Foundation, Inc.
15157 This config.status script is free software; the Free Software Foundation
15158 gives unlimited permission to copy, distribute and modify it."
15165 test -n "\$AWK" || AWK=awk
15168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169 # The default lists apply if the user does not specify any file.
15175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15176 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15187 # Handling of the options.
15188 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15190 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15191 $as_echo "$ac_cs_version"; exit ;;
15192 --debug | --debu | --deb | --de | --d | -d )
15194 --file | --fil | --fi | --f )
15197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15199 as_fn_append CONFIG_FILES " '$ac_optarg'"
15200 ac_need_defaults=false;;
15201 --header | --heade | --head | --hea )
15204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15206 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15207 ac_need_defaults=false;;
15209 # Conflict between --help and --header
15210 as_fn_error "ambiguous option: \`$1'
15211 Try \`$0 --help' for more information.";;
15212 --help | --hel | -h )
15213 $as_echo "$ac_cs_usage"; exit ;;
15214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15215 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15218 # This is an error.
15219 -*) as_fn_error "unrecognized option: \`$1'
15220 Try \`$0 --help' for more information." ;;
15222 *) as_fn_append ac_config_targets " $1"
15223 ac_need_defaults=false ;;
15229 ac_configure_extra_args=
15231 if $ac_cs_silent; then
15233 ac_configure_extra_args="$ac_configure_extra_args --silent"
15237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15238 if \$ac_cs_recheck; then
15239 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15241 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15242 CONFIG_SHELL='$SHELL'
15243 export CONFIG_SHELL
15248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15252 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15253 ## Running $as_me. ##
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15267 with_multisubdir="$with_multisubdir"
15268 with_multisrctop="$with_multisrctop"
15269 with_target_subdir="$with_target_subdir"
15270 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15271 multi_basedir="$multi_basedir"
15272 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15275 GFORTRAN="$GFORTRAN"
15277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15280 # The HP-UX ksh and POSIX shell print the target directory to stdout
15281 # if CDPATH is set.
15282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15284 sed_quote_subst='$sed_quote_subst'
15285 double_quote_subst='$double_quote_subst'
15286 delay_variable_subst='$delay_variable_subst'
15287 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15288 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15289 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15290 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15291 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15294 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15295 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15296 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15297 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15298 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15300 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15315 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15316 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15318 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15319 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15335 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"`'
15336 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15337 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15338 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15339 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15340 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15341 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15342 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15343 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15344 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15345 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15346 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15347 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15348 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15349 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15350 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15351 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15352 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15353 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15354 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15355 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15356 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15357 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15358 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15359 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15360 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15361 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15362 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15363 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15364 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15365 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15366 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15367 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15368 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15369 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15370 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15371 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15372 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15373 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15374 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15375 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15376 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15377 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15378 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15379 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15380 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15381 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15382 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15383 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15384 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15385 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15386 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15387 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15388 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15389 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15390 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15391 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15392 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15393 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15394 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15395 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15396 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15397 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15398 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15399 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15400 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15401 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15402 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15403 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15404 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15405 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15406 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15407 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15408 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15409 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15410 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15411 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15412 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15413 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15414 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15415 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15416 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15417 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15418 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15419 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15420 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15421 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15422 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15423 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15424 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15425 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15426 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15427 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15428 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15429 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15430 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15431 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15432 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15433 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15434 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15435 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15436 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15437 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15438 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15439 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15440 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15441 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15442 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15443 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15444 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15445 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15446 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15447 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15448 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15449 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15452 LTCFLAGS='$LTCFLAGS'
15453 compiler='$compiler_DEFAULT'
15455 # A function that is used when there is no print builtin or printf.
15456 func_fallback_echo ()
15458 eval 'cat <<_LTECHO_EOF
15463 # Quote evaled strings.
15477 deplibs_check_method \
15486 lt_cv_sys_global_symbol_pipe \
15487 lt_cv_sys_global_symbol_to_cdecl \
15488 lt_cv_sys_global_symbol_to_c_name_address \
15489 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15490 lt_prog_compiler_no_builtin_flag \
15491 lt_prog_compiler_wl \
15492 lt_prog_compiler_pic \
15493 lt_prog_compiler_static \
15494 lt_cv_prog_compiler_c_o \
15502 export_dynamic_flag_spec \
15503 whole_archive_flag_spec \
15504 compiler_needs_object \
15506 allow_undefined_flag \
15507 no_undefined_flag \
15508 hardcode_libdir_flag_spec \
15509 hardcode_libdir_flag_spec_ld \
15510 hardcode_libdir_separator \
15515 variables_saved_for_relink \
15517 library_names_spec \
15519 install_override_mode \
15526 lt_prog_compiler_no_builtin_flag_GO \
15527 lt_prog_compiler_wl_GO \
15528 lt_prog_compiler_pic_GO \
15529 lt_prog_compiler_static_GO \
15530 lt_cv_prog_compiler_c_o_GO \
15531 export_dynamic_flag_spec_GO \
15532 whole_archive_flag_spec_GO \
15533 compiler_needs_object_GO \
15535 allow_undefined_flag_GO \
15536 no_undefined_flag_GO \
15537 hardcode_libdir_flag_spec_GO \
15538 hardcode_libdir_flag_spec_ld_GO \
15539 hardcode_libdir_separator_GO \
15540 fix_srcfile_path_GO \
15541 exclude_expsyms_GO \
15542 include_expsyms_GO \
15543 file_list_spec_GO; do
15544 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15545 *[\\\\\\\`\\"\\\$]*)
15546 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15549 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15554 # Double-quote double-evaled strings.
15555 for var in reload_cmds \
15556 old_postinstall_cmds \
15557 old_postuninstall_cmds \
15559 extract_expsyms_cmds \
15560 old_archive_from_new_cmds \
15561 old_archive_from_expsyms_cmds \
15563 archive_expsym_cmds \
15565 module_expsym_cmds \
15566 export_symbols_cmds \
15569 postuninstall_cmds \
15571 sys_lib_search_path_spec \
15572 sys_lib_dlsearch_path_spec \
15574 old_archive_cmds_GO \
15575 old_archive_from_new_cmds_GO \
15576 old_archive_from_expsyms_cmds_GO \
15578 archive_expsym_cmds_GO \
15580 module_expsym_cmds_GO \
15581 export_symbols_cmds_GO \
15582 prelink_cmds_GO; do
15583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15584 *[\\\\\\\`\\"\\\$]*)
15585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15593 ac_aux_dir='$ac_aux_dir'
15594 xsi_shell='$xsi_shell'
15595 lt_shell_append='$lt_shell_append'
15597 # See if we are running on zsh, and set the options which allow our
15598 # commands through without removal of \ escapes INIT.
15599 if test -n "\${ZSH_VERSION+set}" ; then
15600 setopt NO_GLOB_SUBST
15606 TIMESTAMP='$TIMESTAMP'
15615 # Variables needed in config.status (file generation) which aren't already
15616 # passed by autoconf.
15622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15624 # Handling of arguments.
15625 for ac_config_target in $ac_config_targets
15627 case $ac_config_target in
15628 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15629 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15633 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15634 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15636 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15641 # If the user did not use the arguments to specify the items to instantiate,
15642 # then the envvar interface is used. Set only those that are not.
15643 # We use the long form for the default assignment because of an extremely
15644 # bizarre bug on SunOS 4.1.3.
15645 if $ac_need_defaults; then
15646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15651 # Have a temporary directory for convenience. Make it in the build tree
15652 # simply because there is no reason against having it here, and in addition,
15653 # creating and moving files from /tmp can sometimes cause problems.
15654 # Hook for its removal unless debugging.
15655 # Note that there is a small window in which the directory will not be cleaned:
15656 # after its creation but before its name has been assigned to `$tmp'.
15660 trap 'exit_status=$?
15661 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15663 trap 'as_fn_exit 1' 1 2 13 15
15665 # Create a (secure) tmp directory for tmp files.
15668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15669 test -n "$tmp" && test -d "$tmp"
15672 tmp=./conf$$-$RANDOM
15673 (umask 077 && mkdir "$tmp")
15674 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15676 # Set up the scripts for CONFIG_FILES section.
15677 # No need to generate them if there are no CONFIG_FILES.
15678 # This happens for instance with `./config.status config.h'.
15679 if test -n "$CONFIG_FILES"; then
15682 ac_cr=`echo X | tr X '\015'`
15683 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15684 # But we know of no other shell where ac_cr would be empty at this
15685 # point, so we can use a bashism as a fallback.
15686 if test "x$ac_cr" = x; then
15687 eval ac_cr=\$\'\\r\'
15689 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15690 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15693 ac_cs_awk_cr=$ac_cr
15696 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15701 echo "cat >conf$$subs.awk <<_ACEOF" &&
15702 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15704 } >conf$$subs.sh ||
15705 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15706 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15708 for ac_last_try in false false false false false :; do
15709 . ./conf$$subs.sh ||
15710 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15712 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15713 if test $ac_delim_n = $ac_delim_num; then
15715 elif $ac_last_try; then
15716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15721 rm -f conf$$subs.sh
15723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15724 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15728 s/^/S["/; s/!.*/"]=/
15738 s/\(.\{148\}\).*/\1/
15740 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15752 s/\(.\{148\}\).*/\1/
15754 s/["\\]/\\&/g; s/^/"/; s/$/"/
15758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15763 ' <conf$$subs.awk | sed '
15768 ' >>$CONFIG_STATUS || ac_write_fail=1
15769 rm -f conf$$subs.awk
15770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15772 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15773 for (key in S) S_is_set[key] = 1
15779 nfields = split(line, field, "@")
15781 len = length(field[1])
15782 for (i = 2; i < nfields; i++) {
15784 keylen = length(key)
15785 if (S_is_set[key]) {
15787 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15788 len += length(value) + length(field[++i])
15799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15800 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15801 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15804 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15805 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15808 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15809 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15810 # trailing colons and then remove the whole line if VPATH becomes empty
15811 # (actually we leave an empty line to preserve line numbers).
15812 if test "x$srcdir" = x.; then
15813 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15814 s/:*\$(srcdir):*/:/
15815 s/:*\${srcdir}:*/:/
15817 s/^\([^=]*=[ ]*\):*/\1/
15823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15824 fi # test -n "$CONFIG_FILES"
15826 # Set up the scripts for CONFIG_HEADERS section.
15827 # No need to generate them if there are no CONFIG_HEADERS.
15828 # This happens for instance with `./config.status Makefile'.
15829 if test -n "$CONFIG_HEADERS"; then
15830 cat >"$tmp/defines.awk" <<\_ACAWK ||
15834 # Transform confdefs.h into an awk script `defines.awk', embedded as
15835 # here-document in config.status, that substitutes the proper values into
15836 # config.h.in to produce config.h.
15838 # Create a delimiter string that does not exist in confdefs.h, to ease
15839 # handling of long lines.
15841 for ac_last_try in false false :; do
15842 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15843 if test -z "$ac_t"; then
15845 elif $ac_last_try; then
15846 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15852 # For the awk script, D is an array of macro values keyed by name,
15853 # likewise P contains macro parameters if any. Preserve backslash
15854 # newline sequences.
15856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15858 s/.\{148\}/&'"$ac_delim"'/g
15861 s/^[ ]*#[ ]*define[ ][ ]*/ /
15868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15875 D["\1"]=" \3\\\\\\n"\\/p
15877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15882 s/.\{148\}/&'"$ac_delim"'/g
15887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15892 ' <confdefs.h | sed '
15893 s/'"$ac_delim"'/"\\\
15894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 for (key in D) D_is_set[key] = 1
15900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15902 split(line, arg, " ")
15903 if (arg[1] == "#") {
15907 defundef = substr(arg[1], 2)
15910 split(mac1, mac2, "(") #)
15912 prefix = substr(line, 1, index(line, defundef) - 1)
15913 if (D_is_set[macro]) {
15914 # Preserve the white space surrounding the "#".
15915 print prefix "define", macro P[macro] D[macro]
15918 # Replace #undef with comments. This is necessary, for example,
15919 # in the case of _POSIX_SOURCE, which is predefined and required
15920 # on some systems where configure will not decide to define it.
15921 if (defundef == "undef") {
15922 print "/*", prefix defundef, macro, "*/"
15930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15931 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15932 fi # test -n "$CONFIG_HEADERS"
15935 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15940 :[FHLC]) ac_mode=$ac_tag; continue;;
15942 case $ac_mode$ac_tag in
15944 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15945 :[FH]-) ac_tag=-:-;;
15946 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15963 -) ac_f="$tmp/stdin";;
15964 *) # Look for the file first in the build tree, then in the source tree
15965 # (if the path is not absolute). The absolute path cannot be DOS-style,
15966 # because $ac_f cannot contain `:'.
15970 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15972 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15974 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15975 as_fn_append ac_file_inputs " '$ac_f'"
15978 # Let's still pretend it is `configure' which instantiates (i.e., don't
15979 # use $as_me), people would be surprised to read:
15980 # /* config.h. Generated by config.status. */
15981 configure_input='Generated from '`
15982 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15984 if test x"$ac_file" != x-; then
15985 configure_input="$ac_file. $configure_input"
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15987 $as_echo "$as_me: creating $ac_file" >&6;}
15989 # Neutralize special characters interpreted by sed in replacement strings.
15990 case $configure_input in #(
15991 *\&* | *\|* | *\\* )
15992 ac_sed_conf_input=`$as_echo "$configure_input" |
15993 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15994 *) ac_sed_conf_input=$configure_input;;
15998 *:-:* | *:-) cat >"$tmp/stdin" \
15999 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16004 ac_dir=`$as_dirname -- "$ac_file" ||
16005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16006 X"$ac_file" : 'X\(//\)[^/]' \| \
16007 X"$ac_file" : 'X\(//\)$' \| \
16008 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16009 $as_echo X"$ac_file" |
16010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16014 /^X\(\/\/\)[^/].*/{
16027 as_dir="$ac_dir"; as_fn_mkdir_p
16031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16033 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16034 # A ".." for each directory in $ac_dir_suffix.
16035 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16036 case $ac_top_builddir_sub in
16037 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16038 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16041 ac_abs_top_builddir=$ac_pwd
16042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16043 # for backward compatibility:
16044 ac_top_builddir=$ac_top_build_prefix
16047 .) # We are building in place.
16049 ac_top_srcdir=$ac_top_builddir_sub
16050 ac_abs_top_srcdir=$ac_pwd ;;
16051 [\\/]* | ?:[\\/]* ) # Absolute name.
16052 ac_srcdir=$srcdir$ac_dir_suffix;
16053 ac_top_srcdir=$srcdir
16054 ac_abs_top_srcdir=$srcdir ;;
16055 *) # Relative name.
16056 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16057 ac_top_srcdir=$ac_top_build_prefix$srcdir
16058 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16070 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16071 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16073 ac_MKDIR_P=$MKDIR_P
16075 [\\/$]* | ?:[\\/]* ) ;;
16076 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 # If the template does not know about datarootdir, expand it.
16082 # FIXME: This hack should be removed a few years after 2.60.
16083 ac_datarootdir_hack=; ac_datarootdir_seen=
16094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16095 *datarootdir*) ac_datarootdir_seen=yes;;
16096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16098 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101 ac_datarootdir_hack='
16102 s&@datadir@&$datadir&g
16103 s&@docdir@&$docdir&g
16104 s&@infodir@&$infodir&g
16105 s&@localedir@&$localedir&g
16106 s&@mandir@&$mandir&g
16107 s&\\\${datarootdir}&$datarootdir&g' ;;
16111 # Neutralize VPATH when `$srcdir' = `.'.
16112 # Shell code in configure.ac might set extrasub.
16113 # FIXME: do we really want to maintain this feature?
16114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16115 ac_sed_extra="$ac_vpsub
16118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16121 s|@configure_input@|$ac_sed_conf_input|;t t
16122 s&@top_builddir@&$ac_top_builddir_sub&;t t
16123 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16124 s&@srcdir@&$ac_srcdir&;t t
16125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16126 s&@top_srcdir@&$ac_top_srcdir&;t t
16127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16128 s&@builddir@&$ac_builddir&;t t
16129 s&@abs_builddir@&$ac_abs_builddir&;t t
16130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16131 s&@INSTALL@&$ac_INSTALL&;t t
16132 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16133 $ac_datarootdir_hack
16135 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16136 || as_fn_error "could not create $ac_file" "$LINENO" 5
16138 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16139 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16140 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16142 which seems to be undefined. Please make sure it is defined." >&5
16143 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16144 which seems to be undefined. Please make sure it is defined." >&2;}
16148 -) cat "$tmp/out" && rm -f "$tmp/out";;
16149 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16151 || as_fn_error "could not create $ac_file" "$LINENO" 5
16157 if test x"$ac_file" != x-; then
16159 $as_echo "/* $configure_input */" \
16160 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16161 } >"$tmp/config.h" \
16162 || as_fn_error "could not create $ac_file" "$LINENO" 5
16163 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16165 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16168 mv "$tmp/config.h" "$ac_file" \
16169 || as_fn_error "could not create $ac_file" "$LINENO" 5
16172 $as_echo "/* $configure_input */" \
16173 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16174 || as_fn_error "could not create -" "$LINENO" 5
16176 # Compute "$ac_file"'s index in $config_headers.
16179 for _am_header in $config_headers :; do
16180 case $_am_header in
16181 $_am_arg | $_am_arg:* )
16184 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16189 X"$_am_arg" : 'X\(//\)[^/]' \| \
16190 X"$_am_arg" : 'X\(//\)$' \| \
16191 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16192 $as_echo X"$_am_arg" |
16193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16197 /^X\(\/\/\)[^/].*/{
16209 s/.*/./; q'`/stamp-h$_am_stamp_count
16212 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16213 $as_echo "$as_me: executing $ac_file commands" >&6;}
16218 case $ac_file$ac_mode in
16220 # Only add multilib support code if we just rebuilt the top-level
16222 case " $CONFIG_FILES " in
16224 ac_file=Makefile . ${multi_basedir}/config-ml.in
16227 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16228 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16229 # are listed without --file. Let's play safe and only enable the eval
16230 # if we detect the quoting.
16231 case $CONFIG_FILES in
16232 *\'*) eval set x "$CONFIG_FILES" ;;
16233 *) set x $CONFIG_FILES ;;
16238 # Strip MF so we end up with the name of the file.
16239 mf=`echo "$mf" | sed -e 's/:.*$//'`
16240 # Check whether this is an Automake generated Makefile or not.
16241 # We used to match only the files named `Makefile.in', but
16242 # some people rename them; so instead we look at the file content.
16243 # Grep'ing the first line is not enough: some people post-process
16244 # each Makefile.in and add a new line on top of each file to say so.
16245 # Grep'ing the whole file is not good either: AIX grep has a line
16246 # limit of 2048, but all sed's we know have understand at least 4000.
16247 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16248 dirpart=`$as_dirname -- "$mf" ||
16249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16250 X"$mf" : 'X\(//\)[^/]' \| \
16251 X"$mf" : 'X\(//\)$' \| \
16252 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16258 /^X\(\/\/\)[^/].*/{
16274 # Extract the definition of DEPDIR, am__include, and am__quote
16275 # from the Makefile without running `make'.
16276 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16277 test -z "$DEPDIR" && continue
16278 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16279 test -z "am__include" && continue
16280 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16281 # When using ansi2knr, U may be empty or an underscore; expand it
16282 U=`sed -n 's/^U = //p' < "$mf"`
16283 # Find all dependency output files, they are included files with
16284 # $(DEPDIR) in their names. We invoke sed twice because it is the
16285 # simplest approach to changing $(DEPDIR) to its actual value in the
16287 for file in `sed -n "
16288 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16289 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16290 # Make sure the directory exists.
16291 test -f "$dirpart/$file" && continue
16292 fdir=`$as_dirname -- "$file" ||
16293 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16294 X"$file" : 'X\(//\)[^/]' \| \
16295 X"$file" : 'X\(//\)$' \| \
16296 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16297 $as_echo X"$file" |
16298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16302 /^X\(\/\/\)[^/].*/{
16315 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16316 # echo "creating $dirpart/$file"
16317 echo '# dummy' > "$dirpart/$file"
16324 # See if we are running on zsh, and set the options which allow our
16325 # commands through without removal of \ escapes.
16326 if test -n "${ZSH_VERSION+set}" ; then
16327 setopt NO_GLOB_SUBST
16330 cfgfile="${ofile}T"
16331 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16334 cat <<_LT_EOF >> "$cfgfile"
16337 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16338 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16342 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16343 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16344 # Written by Gordon Matzigkeit, 1996
16346 # This file is part of GNU Libtool.
16348 # GNU Libtool is free software; you can redistribute it and/or
16349 # modify it under the terms of the GNU General Public License as
16350 # published by the Free Software Foundation; either version 2 of
16351 # the License, or (at your option) any later version.
16353 # As a special exception to the GNU General Public License,
16354 # if you distribute this file as part of a program or library that
16355 # is built using GNU Libtool, you may include this file under the
16356 # same distribution terms that you use for the rest of that program.
16358 # GNU Libtool is distributed in the hope that it will be useful,
16359 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16360 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16361 # GNU General Public License for more details.
16363 # You should have received a copy of the GNU General Public License
16364 # along with GNU Libtool; see the file COPYING. If not, a copy
16365 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16366 # obtained by writing to the Free Software Foundation, Inc.,
16367 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16370 # The names of the tagged configurations supported by this script.
16371 available_tags="GO "
16373 # ### BEGIN LIBTOOL CONFIG
16375 # A sed program that does not truncate output.
16378 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16379 Xsed="\$SED -e 1s/^X//"
16381 # A grep program that handles long lines.
16387 # A literal string matcher.
16390 # Shell to use when invoking shell scripts.
16393 # An echo program that protects backslashes.
16396 # Which release of libtool.m4 was used?
16397 macro_version=$macro_version
16398 macro_revision=$macro_revision
16400 # Whether or not to build shared libraries.
16401 build_libtool_libs=$enable_shared
16403 # Whether or not to build static libraries.
16404 build_old_libs=$enable_static
16406 # What type of objects to build.
16409 # Whether or not to optimize for fast installation.
16410 fast_install=$enable_fast_install
16413 host_alias=$host_alias
16417 # The build system.
16418 build_alias=$build_alias
16422 # A BSD- or MS-compatible name lister.
16425 # Whether we need soft or hard links.
16428 # What is the maximum length of a command?
16429 max_cmd_len=$max_cmd_len
16431 # Object file suffix (normally "o").
16434 # Executable file suffix (normally "").
16437 # whether the shell understands "unset".
16440 # turn spaces into newlines.
16443 # turn newlines into spaces.
16446 # An object symbol dumper.
16447 OBJDUMP=$lt_OBJDUMP
16449 # Method to check whether dependent libraries are shared objects.
16450 deplibs_check_method=$lt_deplibs_check_method
16452 # Command to use when deplibs_check_method == "file_magic".
16453 file_magic_cmd=$lt_file_magic_cmd
16457 AR_FLAGS=$lt_AR_FLAGS
16459 # A symbol stripping program.
16462 # Commands used to install an old-style archive.
16464 old_postinstall_cmds=$lt_old_postinstall_cmds
16465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16467 # Whether to use a lock for old archive extraction.
16468 lock_old_archive_extraction=$lock_old_archive_extraction
16473 # LTCC compiler flags.
16474 LTCFLAGS=$lt_CFLAGS
16476 # Take the output of nm and produce a listing of raw symbols and C names.
16477 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16479 # Transform the output of nm in a proper C declaration.
16480 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16482 # Transform the output of nm in a C name address pair.
16483 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16485 # Transform the output of nm in a C name address pair when lib prefix is needed.
16486 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16488 # The name of the directory that contains temporary libtool files.
16491 # Used to examine libraries when file_magic_cmd begins with "file".
16492 MAGIC_CMD=$MAGIC_CMD
16494 # Must we lock files when doing compilation?
16495 need_locks=$lt_need_locks
16497 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16498 DSYMUTIL=$lt_DSYMUTIL
16500 # Tool to change global to local symbols on Mac OS X.
16503 # Tool to manipulate fat objects and archives on Mac OS X.
16506 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16509 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16510 OTOOL64=$lt_OTOOL64
16512 # Old archive suffix (normally "a").
16515 # Shared library suffix (normally ".so").
16516 shrext_cmds=$lt_shrext_cmds
16518 # The commands to extract the exported symbol list from a shared archive.
16519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16521 # Variables whose values should be saved in libtool wrapper scripts and
16522 # restored at link time.
16523 variables_saved_for_relink=$lt_variables_saved_for_relink
16525 # Do we need the "lib" prefix for modules?
16526 need_lib_prefix=$need_lib_prefix
16528 # Do we need a version for libraries?
16529 need_version=$need_version
16531 # Library versioning type.
16532 version_type=$version_type
16534 # Shared library runtime path variable.
16535 runpath_var=$runpath_var
16537 # Shared library path variable.
16538 shlibpath_var=$shlibpath_var
16540 # Is shlibpath searched before the hard-coded library search path?
16541 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16543 # Format of library name prefix.
16544 libname_spec=$lt_libname_spec
16546 # List of archive names. First name is the real one, the rest are links.
16547 # The last name is the one that the linker finds with -lNAME
16548 library_names_spec=$lt_library_names_spec
16550 # The coded name of the library, if different from the real name.
16551 soname_spec=$lt_soname_spec
16553 # Permission mode override for installation of shared libraries.
16554 install_override_mode=$lt_install_override_mode
16556 # Command to use after installation of a shared archive.
16557 postinstall_cmds=$lt_postinstall_cmds
16559 # Command to use after uninstallation of a shared archive.
16560 postuninstall_cmds=$lt_postuninstall_cmds
16562 # Commands used to finish a libtool library installation in a directory.
16563 finish_cmds=$lt_finish_cmds
16565 # As "finish_cmds", except a single script fragment to be evaled but
16567 finish_eval=$lt_finish_eval
16569 # Whether we should hardcode library paths into libraries.
16570 hardcode_into_libs=$hardcode_into_libs
16572 # Compile-time system search path for libraries.
16573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16575 # Run-time system search path for libraries.
16576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16578 # Whether dlopen is supported.
16579 dlopen_support=$enable_dlopen
16581 # Whether dlopen of programs is supported.
16582 dlopen_self=$enable_dlopen_self
16584 # Whether dlopen of statically linked programs is supported.
16585 dlopen_self_static=$enable_dlopen_self_static
16587 # Commands to strip libraries.
16588 old_striplib=$lt_old_striplib
16589 striplib=$lt_striplib
16592 # The linker used to build libraries.
16595 # How to create reloadable object files.
16596 reload_flag=$lt_reload_flag
16597 reload_cmds=$lt_reload_cmds
16599 # Commands used to build an old-style archive.
16600 old_archive_cmds=$lt_old_archive_cmds
16602 # A language specific compiler.
16605 # Is the compiler the GNU compiler?
16608 # Compiler flag to turn off builtin functions.
16609 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16611 # How to pass a linker flag through the compiler.
16612 wl=$lt_lt_prog_compiler_wl
16614 # Additional compiler flags for building library objects.
16615 pic_flag=$lt_lt_prog_compiler_pic
16617 # Compiler flag to prevent dynamic linking.
16618 link_static_flag=$lt_lt_prog_compiler_static
16620 # Does compiler simultaneously support -c and -o options?
16621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16623 # Whether or not to add -lc for building shared libraries.
16624 build_libtool_need_lc=$archive_cmds_need_lc
16626 # Whether or not to disallow shared libs when runtime libs are static.
16627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16629 # Compiler flag to allow reflexive dlopens.
16630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16632 # Compiler flag to generate shared objects directly from archives.
16633 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16635 # Whether the compiler copes with passing no objects directly.
16636 compiler_needs_object=$lt_compiler_needs_object
16638 # Create an old-style archive from a shared archive.
16639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16641 # Create a temporary old-style archive to link instead of a shared archive.
16642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16644 # Commands used to build a shared archive.
16645 archive_cmds=$lt_archive_cmds
16646 archive_expsym_cmds=$lt_archive_expsym_cmds
16648 # Commands used to build a loadable module if different from building
16649 # a shared archive.
16650 module_cmds=$lt_module_cmds
16651 module_expsym_cmds=$lt_module_expsym_cmds
16653 # Whether we are building with GNU ld or not.
16654 with_gnu_ld=$lt_with_gnu_ld
16656 # Flag that allows shared libraries with undefined symbols to be built.
16657 allow_undefined_flag=$lt_allow_undefined_flag
16659 # Flag that enforces no undefined symbols.
16660 no_undefined_flag=$lt_no_undefined_flag
16662 # Flag to hardcode \$libdir into a binary during linking.
16663 # This must work even if \$libdir does not exist
16664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16666 # If ld is used when linking, flag to hardcode \$libdir into a binary
16667 # during linking. This must work even if \$libdir does not exist.
16668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16670 # Whether we need a single "-rpath" flag with a separated argument.
16671 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16674 # DIR into the resulting binary.
16675 hardcode_direct=$hardcode_direct
16677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16678 # DIR into the resulting binary and the resulting library dependency is
16679 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16680 # library is relocated.
16681 hardcode_direct_absolute=$hardcode_direct_absolute
16683 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16684 # into the resulting binary.
16685 hardcode_minus_L=$hardcode_minus_L
16687 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16688 # into the resulting binary.
16689 hardcode_shlibpath_var=$hardcode_shlibpath_var
16691 # Set to "yes" if building a shared library automatically hardcodes DIR
16692 # into the library and all subsequent libraries and executables linked
16694 hardcode_automatic=$hardcode_automatic
16696 # Set to yes if linker adds runtime paths of dependent libraries
16697 # to runtime path list.
16698 inherit_rpath=$inherit_rpath
16700 # Whether libtool must link a program against all its dependency libraries.
16701 link_all_deplibs=$link_all_deplibs
16703 # Fix the shell variable \$srcfile for the compiler.
16704 fix_srcfile_path=$lt_fix_srcfile_path
16706 # Set to "yes" if exported symbols are required.
16707 always_export_symbols=$always_export_symbols
16709 # The commands to list exported symbols.
16710 export_symbols_cmds=$lt_export_symbols_cmds
16712 # Symbols that should not be listed in the preloaded symbols.
16713 exclude_expsyms=$lt_exclude_expsyms
16715 # Symbols that must always be exported.
16716 include_expsyms=$lt_include_expsyms
16718 # Commands necessary for linking programs (against libraries) with templates.
16719 prelink_cmds=$lt_prelink_cmds
16721 # Specify filename containing input files.
16722 file_list_spec=$lt_file_list_spec
16724 # How to hardcode a shared library path into an executable.
16725 hardcode_action=$hardcode_action
16727 # ### END LIBTOOL CONFIG
16733 cat <<\_LT_EOF >> "$cfgfile"
16734 # AIX sometimes has problems with the GCC collect2 program. For some
16735 # reason, if we set the COLLECT_NAMES environment variable, the problems
16736 # vanish in a puff of smoke.
16737 if test "X${COLLECT_NAMES+set}" != Xset; then
16739 export COLLECT_NAMES
16746 ltmain="$ac_aux_dir/ltmain.sh"
16749 # We use sed instead of cat because bash on DJGPP gets confused if
16750 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16751 # text mode, it properly converts lines to CR/LF. This bash problem
16752 # is reportedly fixed, but why not run on old versions too?
16753 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16754 || (rm -f "$cfgfile"; exit 1)
16758 cat << \_LT_EOF >> "$cfgfile"
16760 # func_dirname file append nondir_replacement
16761 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16762 # otherwise set result to NONDIR_REPLACEMENT.
16766 */*) func_dirname_result="${1%/*}${2}" ;;
16767 * ) func_dirname_result="${3}" ;;
16771 # func_basename file
16774 func_basename_result="${1##*/}"
16777 # func_dirname_and_basename file append nondir_replacement
16778 # perform func_basename and func_dirname in a single function
16780 # dirname: Compute the dirname of FILE. If nonempty,
16781 # add APPEND to the result, otherwise set result
16782 # to NONDIR_REPLACEMENT.
16783 # value returned in "$func_dirname_result"
16784 # basename: Compute filename of FILE.
16785 # value retuned in "$func_basename_result"
16786 # Implementation must be kept synchronized with func_dirname
16787 # and func_basename. For efficiency, we do not delegate to
16788 # those functions but instead duplicate the functionality here.
16789 func_dirname_and_basename ()
16792 */*) func_dirname_result="${1%/*}${2}" ;;
16793 * ) func_dirname_result="${3}" ;;
16795 func_basename_result="${1##*/}"
16798 # func_stripname prefix suffix name
16799 # strip PREFIX and SUFFIX off of NAME.
16800 # PREFIX and SUFFIX must not contain globbing or regex special
16801 # characters, hashes, percent signs, but SUFFIX may contain a leading
16802 # dot (in which case that matches only a dot).
16805 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16806 # positional parameters, so assign one to ordinary parameter first.
16807 func_stripname_result=${3}
16808 func_stripname_result=${func_stripname_result#"${1}"}
16809 func_stripname_result=${func_stripname_result%"${2}"}
16815 func_opt_split_opt=${1%%=*}
16816 func_opt_split_arg=${1#*=}
16823 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16824 *) func_lo2o_result=${1} ;;
16828 # func_xform libobj-or-source
16831 func_xform_result=${1%.*}.lo
16834 # func_arith arithmetic-term...
16837 func_arith_result=$(( $* ))
16841 # STRING may not start with a hyphen.
16844 func_len_result=${#1}
16849 *) # Bourne compatible functions.
16850 cat << \_LT_EOF >> "$cfgfile"
16852 # func_dirname file append nondir_replacement
16853 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16854 # otherwise set result to NONDIR_REPLACEMENT.
16857 # Extract subdirectory from the argument.
16858 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16859 if test "X$func_dirname_result" = "X${1}"; then
16860 func_dirname_result="${3}"
16862 func_dirname_result="$func_dirname_result${2}"
16866 # func_basename file
16869 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16873 # func_stripname prefix suffix name
16874 # strip PREFIX and SUFFIX off of NAME.
16875 # PREFIX and SUFFIX must not contain globbing or regex special
16876 # characters, hashes, percent signs, but SUFFIX may contain a leading
16877 # dot (in which case that matches only a dot).
16878 # func_strip_suffix prefix name
16882 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16883 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16888 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16889 my_sed_long_arg='1s/^-[^=]*=//'
16894 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16895 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16901 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16904 # func_xform libobj-or-source
16907 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16910 # func_arith arithmetic-term...
16913 func_arith_result=`expr "$@"`
16917 # STRING may not start with a hyphen.
16920 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16926 case $lt_shell_append in
16928 cat << \_LT_EOF >> "$cfgfile"
16930 # func_append var value
16931 # Append VALUE to the end of shell variable VAR.
16939 cat << \_LT_EOF >> "$cfgfile"
16941 # func_append var value
16942 # Append VALUE to the end of shell variable VAR.
16953 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16954 || (rm -f "$cfgfile"; exit 1)
16956 mv -f "$cfgfile" "$ofile" ||
16957 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16961 cat <<_LT_EOF >> "$ofile"
16963 # ### BEGIN LIBTOOL TAG CONFIG: GO
16965 # The linker used to build libraries.
16968 # How to create reloadable object files.
16969 reload_flag=$lt_reload_flag_GO
16970 reload_cmds=$lt_reload_cmds_GO
16972 # Commands used to build an old-style archive.
16973 old_archive_cmds=$lt_old_archive_cmds_GO
16975 # A language specific compiler.
16978 # Is the compiler the GNU compiler?
16981 # Compiler flag to turn off builtin functions.
16982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16984 # How to pass a linker flag through the compiler.
16985 wl=$lt_lt_prog_compiler_wl_GO
16987 # Additional compiler flags for building library objects.
16988 pic_flag=$lt_lt_prog_compiler_pic_GO
16990 # Compiler flag to prevent dynamic linking.
16991 link_static_flag=$lt_lt_prog_compiler_static_GO
16993 # Does compiler simultaneously support -c and -o options?
16994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16996 # Whether or not to add -lc for building shared libraries.
16997 build_libtool_need_lc=$archive_cmds_need_lc_GO
16999 # Whether or not to disallow shared libs when runtime libs are static.
17000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17002 # Compiler flag to allow reflexive dlopens.
17003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17005 # Compiler flag to generate shared objects directly from archives.
17006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17008 # Whether the compiler copes with passing no objects directly.
17009 compiler_needs_object=$lt_compiler_needs_object_GO
17011 # Create an old-style archive from a shared archive.
17012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17014 # Create a temporary old-style archive to link instead of a shared archive.
17015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17017 # Commands used to build a shared archive.
17018 archive_cmds=$lt_archive_cmds_GO
17019 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17021 # Commands used to build a loadable module if different from building
17022 # a shared archive.
17023 module_cmds=$lt_module_cmds_GO
17024 module_expsym_cmds=$lt_module_expsym_cmds_GO
17026 # Whether we are building with GNU ld or not.
17027 with_gnu_ld=$lt_with_gnu_ld_GO
17029 # Flag that allows shared libraries with undefined symbols to be built.
17030 allow_undefined_flag=$lt_allow_undefined_flag_GO
17032 # Flag that enforces no undefined symbols.
17033 no_undefined_flag=$lt_no_undefined_flag_GO
17035 # Flag to hardcode \$libdir into a binary during linking.
17036 # This must work even if \$libdir does not exist
17037 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17039 # If ld is used when linking, flag to hardcode \$libdir into a binary
17040 # during linking. This must work even if \$libdir does not exist.
17041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17043 # Whether we need a single "-rpath" flag with a separated argument.
17044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17046 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17047 # DIR into the resulting binary.
17048 hardcode_direct=$hardcode_direct_GO
17050 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17051 # DIR into the resulting binary and the resulting library dependency is
17052 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17053 # library is relocated.
17054 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17056 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17057 # into the resulting binary.
17058 hardcode_minus_L=$hardcode_minus_L_GO
17060 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17061 # into the resulting binary.
17062 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17064 # Set to "yes" if building a shared library automatically hardcodes DIR
17065 # into the library and all subsequent libraries and executables linked
17067 hardcode_automatic=$hardcode_automatic_GO
17069 # Set to yes if linker adds runtime paths of dependent libraries
17070 # to runtime path list.
17071 inherit_rpath=$inherit_rpath_GO
17073 # Whether libtool must link a program against all its dependency libraries.
17074 link_all_deplibs=$link_all_deplibs_GO
17076 # Fix the shell variable \$srcfile for the compiler.
17077 fix_srcfile_path=$lt_fix_srcfile_path_GO
17079 # Set to "yes" if exported symbols are required.
17080 always_export_symbols=$always_export_symbols_GO
17082 # The commands to list exported symbols.
17083 export_symbols_cmds=$lt_export_symbols_cmds_GO
17085 # Symbols that should not be listed in the preloaded symbols.
17086 exclude_expsyms=$lt_exclude_expsyms_GO
17088 # Symbols that must always be exported.
17089 include_expsyms=$lt_include_expsyms_GO
17091 # Commands necessary for linking programs (against libraries) with templates.
17092 prelink_cmds=$lt_prelink_cmds_GO
17094 # Specify filename containing input files.
17095 file_list_spec=$lt_file_list_spec_GO
17097 # How to hardcode a shared library path into an executable.
17098 hardcode_action=$hardcode_action_GO
17100 # ### END LIBTOOL TAG CONFIG: GO
17104 "default":C) if test -n "$CONFIG_FILES"; then
17105 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17106 # that multilib installs will end up installed in the correct place.
17107 # The testsuite needs it for multilib-aware ABI baseline files.
17108 # To work around this not being passed down from config-ml.in ->
17109 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17110 # append it here. Only modify Makefiles that have just been created.
17112 # Also, get rid of this simulated-VPATH thing that automake does.
17113 cat > vpsed << \_EOF
17114 s!`test -f '$<' || echo '$(srcdir)/'`!!
17116 for i in $SUBDIRS; do
17117 case $CONFIG_FILES in
17119 #echo "Adding MULTISUBDIR to $i/Makefile"
17120 sed -f vpsed $i/Makefile > tmp
17121 grep '^MULTISUBDIR =' Makefile >> tmp
17136 ac_clean_files=$ac_clean_files_save
17138 test $ac_write_fail = 0 ||
17139 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17142 # configure is writing to config.log, and then calls config.status.
17143 # config.status does its own redirection, appending to config.log.
17144 # Unfortunately, on DOS this fails, as config.log is still kept open
17145 # by configure, so config.status won't be able to write to it; its
17146 # output is simply discarded. So we exec the FD to /dev/null,
17147 # effectively closing config.log, so it can be properly (re)opened and
17148 # appended to by config.status. When coming back to configure, we
17149 # need to make the FD available again.
17150 if test "$no_create" != yes; then
17152 ac_config_status_args=
17153 test "$silent" = yes &&
17154 ac_config_status_args="$ac_config_status_args --quiet"
17156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17159 # would make configure fail if this is the last instruction.
17160 $ac_cs_success || as_fn_exit $?
17162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}