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
606 HAVE_SYS_MMAN_H_FALSE
611 USING_SPLIT_STACK_FALSE
612 USING_SPLIT_STACK_TRUE
617 LIBGO_IS_X86_64_FALSE
626 LIBGO_IS_FREEBSD_FALSE
627 LIBGO_IS_FREEBSD_TRUE
628 LIBGO_IS_DARWIN_FALSE
632 glibgo_toolexeclibdir
660 MAINTAINER_MODE_FALSE
688 INSTALL_STRIP_PROGRAM
744 program_transform_name
757 enable_option_checking
759 enable_dependency_tracking
760 enable_maintainer_mode
767 enable_version_specific_runtime_libs
769 with_system_libunwind
771 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 # Accept the important Cygnus configure options, so we can diagnose typos.
844 case $ac_dashdash$ac_option in
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
866 cache_file=config.cache ;;
868 -datadir | --datadir | --datadi | --datad)
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
935 -help | --help | --hel | --he | -h)
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 # Obsolete; use --without-fp.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1084 -site=* | --site=* | --sit=*)
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1124 eval with_$ac_useropt=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval with_$ac_useropt=no ;;
1143 # Obsolete; use --with-x.
1146 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147 | --x-incl | --x-inc | --x-in | --x-i)
1148 ac_prev=x_includes ;;
1149 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151 x_includes=$ac_optarg ;;
1153 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155 ac_prev=x_libraries ;;
1156 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;;
1160 -*) as_fn_error "unrecognized option: \`$ac_option'
1161 Try \`$0 --help' for more information."
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #(
1168 '' | [0-9]* | *[!_$as_cr_alnum]* )
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1171 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;;
1175 # FIXME: should be removed in autoconf 3.0.
1176 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1185 if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option"
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 # Check all directory arguments for consistency.
1199 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
1204 eval ac_val=\$$ac_var
1205 # Remove trailing slashes.
1208 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209 eval $ac_var=\$ac_val;;
1211 # Be sure to have absolute directory names.
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined"
1247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory"
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$as_myself" ||
1256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$as_myself" : 'X\(//\)[^/]' \| \
1258 X"$as_myself" : 'X\(//\)$' \| \
1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1260 $as_echo X"$as_myself" |
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of package-unused version-unused:";;
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-multilib build many library versions (default)
1397 --disable-dependency-tracking speeds up one-time build
1398 --enable-dependency-tracking do not reject slow dependency extractors
1399 --enable-maintainer-mode enable make rules and dependencies not useful
1400 (and sometimes confusing) to the casual installer
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --enable-version-specific-runtime-libs
1407 Specify that runtime libraries should be installed
1408 in a compiler-specific directory
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1414 --with-pic try to use only PIC/non-PIC objects [default=use
1416 --without-libffi don't use libffi
1417 --with-system-libunwind use installed libunwind
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 GOC Go compiler command
1428 GOCFLAGS Go compiler flags
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to the package provider.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1464 .) # We are building in place.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1497 package-unused configure version-unused
1498 generated by GNU Autoconf 2.64
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1547 } # ac_fn_c_try_compile
1549 # ac_fn_c_try_link LINENO
1550 # -----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded.
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest$ac_exeext
1556 if { { ac_try="$ac_link"
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>conftest.err
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest$ac_exeext && {
1575 test "$cross_compiling" = yes ||
1576 $as_test_x conftest$ac_exeext
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587 # interfere with the next link command; also delete a directory that is
1588 # left behind by Apple's compiler. We do this before executing the actions.
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 } # ac_fn_c_try_link
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605 $as_echo_n "(cached) " >&6
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1612 if ac_fn_c_try_compile "$LINENO"; then :
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 } # ac_fn_c_check_header_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } >/dev/null && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_link"
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>&5
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681 { { case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_try") 2>&5
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; }; }; then :
1693 $as_echo "$as_me: program exited with status $ac_status" >&5
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 ac_retval=$ac_status
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 # ac_fn_c_check_func LINENO FUNC VAR
1706 # ----------------------------------
1707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1708 ac_fn_c_check_func ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1720 #define $2 innocuous_$2
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $2 (); below.
1724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1725 <limits.h> exists even on freestanding compilers. */
1728 # include <limits.h>
1730 # include <assert.h>
1735 /* Override any GCC internal prototype to avoid an error.
1736 Use char because int might match the return type of a GCC
1737 builtin and then its argument prototype would still apply. */
1742 /* The GNU C library defines this for functions which it implements
1743 to always fail with ENOSYS. Some functions are actually named
1744 something starting with __ and the normal name is an alias. */
1745 #if defined __stub_$2 || defined __stub___$2
1757 if ac_fn_c_try_link "$LINENO"; then :
1762 rm -f core conftest.err conftest.$ac_objext \
1763 conftest$ac_exeext conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 } # ac_fn_c_check_func
1772 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1775 # the include files in INCLUDES and setting the cache variable VAR
1777 ac_fn_c_check_header_mongrel ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1790 # Is the header compilable?
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1792 $as_echo_n "checking $2 usability... " >&6; }
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1798 if ac_fn_c_try_compile "$LINENO"; then :
1799 ac_header_compiler=yes
1801 ac_header_compiler=no
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1805 $as_echo "$ac_header_compiler" >&6; }
1807 # Is the header present?
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1809 $as_echo_n "checking $2 presence... " >&6; }
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1814 if ac_fn_c_try_cpp "$LINENO"; then :
1815 ac_header_preproc=yes
1817 ac_header_preproc=no
1819 rm -f conftest.err conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1821 $as_echo "$ac_header_preproc" >&6; }
1823 # So? What about this header?
1824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1827 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1829 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1833 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1835 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1837 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1839 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1849 eval "$3=\$ac_header_compiler"
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857 } # ac_fn_c_check_header_mongrel
1859 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860 # -------------------------------------------
1861 # Tests whether TYPE exists after having included INCLUDES, setting cache
1862 # variable VAR accordingly.
1863 ac_fn_c_check_type ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1897 if ac_fn_c_try_compile "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 } # ac_fn_c_check_type
1912 cat >config.log <<_ACEOF
1913 This file contains any messages produced by compilers while
1914 running configure, to aid debugging if configure makes a mistake.
1916 It was created by package-unused $as_me version-unused, which was
1917 generated by GNU Autoconf 2.64. Invocation command line was
1929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1938 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1942 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 $as_echo "PATH: $as_dir"
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_must_keep_next=false
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1993 as_fn_append ac_configure_args1 " '$ac_arg'"
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006 -* ) ac_must_keep_next=true ;;
2009 as_fn_append ac_configure_args " '$ac_arg'"
2014 { ac_configure_args0=; unset ac_configure_args0;}
2015 { ac_configure_args1=; unset ac_configure_args1;}
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log. We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2028 ## ---------------- ##
2029 ## Cache variables. ##
2030 ## ---------------- ##
2033 # The following way of writing the cache mishandles newlines in values,
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2041 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2044 _ | IFS | as_nl) ;; #(
2045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2046 *) { eval $ac_var=; unset $ac_var;} ;;
2051 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2052 *${as_nl}ac_space=\ *)
2054 "s/'\''/'\''\\\\'\'''\''/g;
2055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2066 ## ----------------- ##
2067 ## Output variables. ##
2068 ## ----------------- ##
2071 for ac_var in $ac_subst_vars
2073 eval ac_val=\$$ac_var
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 $as_echo "$ac_var='\''$ac_val'\''"
2081 if test -n "$ac_subst_files"; then
2083 ## ------------------- ##
2084 ## File substitutions. ##
2085 ## ------------------- ##
2088 for ac_var in $ac_subst_files
2090 eval ac_val=\$$ac_var
2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 $as_echo "$ac_var='\''$ac_val'\''"
2099 if test -s confdefs.h; then
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 for ac_signal in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest* confdefs.h
2125 $as_echo "/* confdefs.h */" > confdefs.h
2127 # Predefined preprocessor variables.
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2158 if test -n "$CONFIG_SITE"; then
2159 ac_site_file1=$CONFIG_SITE
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2178 if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special
2180 # files actually), so we avoid doing that.
2181 if test -f "$cache_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 # Check that the precious variables saved in the cache have kept the same
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
2203 case $ac_old_set,$ac_new_set in
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 if $ac_cache_corrupted; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267 ac_config_headers="$ac_config_headers config.h"
2270 libtool_VERSION=1:0:0
2273 # Default to --enable-multilib
2274 # Check whether --enable-multilib was given.
2275 if test "${enable_multilib+set}" = set; then :
2276 enableval=$enable_multilib; case "$enableval" in
2277 yes) multilib=yes ;;
2279 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2286 # We may get other options which we leave undocumented:
2287 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2288 # See config-ml.in if you want the gory details.
2290 if test "$srcdir" = "."; then
2291 if test "$with_target_subdir" != "."; then
2292 multi_basedir="$srcdir/$with_multisrctop../.."
2294 multi_basedir="$srcdir/$with_multisrctop.."
2297 multi_basedir="$srcdir/.."
2301 # Even if the default multilib is not a cross compilation,
2302 # it may be that some of the other multilibs are.
2303 if test $cross_compiling = no && test $multilib = yes \
2304 && test "x${with_multisubdir}" != x ; then
2305 cross_compiling=maybe
2308 ac_config_commands="$ac_config_commands default-1"
2312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313 for ac_t in install-sh install.sh shtool; do
2314 if test -f "$ac_dir/$ac_t"; then
2316 ac_install_sh="$ac_aux_dir/$ac_t -c"
2321 if test -z "$ac_aux_dir"; then
2322 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2325 # These three variables are undocumented and unsupported,
2326 # and are intended to be withdrawn in a future Autoconf release.
2327 # They can cause serious problems if a builder's source tree is in a directory
2328 # whose full name contains unusual characters.
2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2331 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334 # Make sure we can run config.sub.
2335 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2336 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2339 $as_echo_n "checking build system type... " >&6; }
2340 if test "${ac_cv_build+set}" = set; then :
2341 $as_echo_n "(cached) " >&6
2343 ac_build_alias=$build_alias
2344 test "x$ac_build_alias" = x &&
2345 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2346 test "x$ac_build_alias" = x &&
2347 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2349 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2353 $as_echo "$ac_cv_build" >&6; }
2354 case $ac_cv_build in
2356 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2359 ac_save_IFS=$IFS; IFS='-'
2365 # Remember, the first character of IFS is used to create $*,
2366 # except with old shells:
2369 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2373 $as_echo_n "checking host system type... " >&6; }
2374 if test "${ac_cv_host+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
2377 if test "x$host_alias" = x; then
2378 ac_cv_host=$ac_cv_build
2380 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2381 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2386 $as_echo "$ac_cv_host" >&6; }
2389 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2392 ac_save_IFS=$IFS; IFS='-'
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2402 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2406 $as_echo_n "checking target system type... " >&6; }
2407 if test "${ac_cv_target+set}" = set; then :
2408 $as_echo_n "(cached) " >&6
2410 if test "x$target_alias" = x; then
2411 ac_cv_target=$ac_cv_host
2413 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2414 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2419 $as_echo "$ac_cv_target" >&6; }
2420 case $ac_cv_target in
2422 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2424 target=$ac_cv_target
2425 ac_save_IFS=$IFS; IFS='-'
2431 # Remember, the first character of IFS is used to create $*,
2432 # except with old shells:
2435 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2438 # The aliases save the names the user supplied, while $host etc.
2439 # will get canonicalized.
2440 test -n "$target_alias" &&
2441 test "$program_prefix$program_suffix$program_transform_name" = \
2443 program_prefix=${target_alias}-
2445 target_alias=${target_alias-$host_alias}
2447 am__api_version='1.11'
2449 # Find a good install program. We prefer a C program (faster),
2450 # so one script is as good as another. But avoid the broken or
2451 # incompatible versions:
2452 # SysV /etc/install, /usr/sbin/install
2453 # SunOS /usr/etc/install
2454 # IRIX /sbin/install
2456 # AmigaOS /C/install, which installs bootblocks on floppy discs
2457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2460 # OS/2's system install, which has a completely different semantic
2461 # ./install, which can be erroneously created by make from ./install.sh.
2462 # Reject install programs that cannot install multiple files.
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2464 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2465 if test -z "$INSTALL"; then
2466 if test "${ac_cv_path_install+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 # Account for people who put trailing slashes in PATH elements.
2475 case $as_dir/ in #((
2476 ./ | .// | /[cC]/* | \
2477 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2478 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2481 # OSF1 and SCO ODT 3.0 have their own names for install.
2482 # Don't use installbsd from OSF since it installs stuff as root
2484 for ac_prog in ginstall scoinst install; do
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2487 if test $ac_prog = install &&
2488 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2489 # AIX install. It has an incompatible calling convention.
2491 elif test $ac_prog = install &&
2492 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493 # program-specific install script used by HP pwplus--don't use.
2496 rm -rf conftest.one conftest.two conftest.dir
2497 echo one > conftest.one
2498 echo two > conftest.two
2500 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2501 test -s conftest.one && test -s conftest.two &&
2502 test -s conftest.dir/conftest.one &&
2503 test -s conftest.dir/conftest.two
2505 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 rm -rf conftest.one conftest.two conftest.dir
2521 if test "${ac_cv_path_install+set}" = set; then
2522 INSTALL=$ac_cv_path_install
2524 # As a last resort, use the slow shell script. Don't cache a
2525 # value for INSTALL within a source directory, because that will
2526 # break other packages using the cache if that directory is
2527 # removed, or if the value is a relative name.
2528 INSTALL=$ac_install_sh
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2532 $as_echo "$INSTALL" >&6; }
2534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2535 # It thinks the first close brace ends the variable substitution.
2536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2543 $as_echo_n "checking whether build environment is sane... " >&6; }
2546 echo timestamp > conftest.file
2547 # Reject unsafe characters in $srcdir or the absolute working directory
2548 # name. Accept space and tab only in the latter.
2552 *[\\\"\#\$\&\'\`$am_lf]*)
2553 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2556 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2557 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2560 # Do `set' in a subshell so we don't clobber the current shell's
2561 # arguments. Must try -L first in case configure is actually a
2562 # symlink; some systems play weird games with the mod time of symlinks
2563 # (eg FreeBSD returns the mod time of the symlink's containing
2566 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2567 if test "$*" = "X"; then
2569 set X `ls -t "$srcdir/configure" conftest.file`
2572 if test "$*" != "X $srcdir/configure conftest.file" \
2573 && test "$*" != "X conftest.file $srcdir/configure"; then
2575 # If neither matched, then we have a broken ls. This can happen
2576 # if, for instance, CONFIG_SHELL is bash and it inherits a
2577 # broken ls alias from the environment. This has actually
2578 # happened. Such a system could not be considered "sane".
2579 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2580 alias in your environment" "$LINENO" 5
2583 test "$2" = conftest.file
2589 as_fn_error "newly created file is older than distributed files!
2590 Check your system clock" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2593 $as_echo "yes" >&6; }
2594 test "$program_prefix" != NONE &&
2595 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2596 # Use a double $ so make ignores it.
2597 test "$program_suffix" != NONE &&
2598 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2599 # Double any \ or $.
2600 # By default was `s,x,x', remove it if useless.
2601 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2602 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2604 # expand $ac_aux_dir to an absolute path
2605 am_aux_dir=`cd $ac_aux_dir && pwd`
2607 if test x"${MISSING+set}" != xset; then
2610 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2612 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2615 # Use eval to expand $SHELL
2616 if eval "$MISSING --run true"; then
2617 am_missing_run="$MISSING --run "
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2621 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2624 if test x"${install_sh}" != xset; then
2627 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2629 install_sh="\${SHELL} $am_aux_dir/install-sh"
2633 # Installed binaries are usually stripped using `strip' when the user
2634 # run `make install-strip'. However `strip' might not be the right
2635 # tool to use in cross-compilation environments, therefore Automake
2636 # will honor the `STRIP' environment variable to overrule this program.
2637 if test "$cross_compiling" != no; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}strip; ac_word=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_STRIP+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$STRIP"; then
2647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 STRIP=$ac_cv_prog_STRIP
2667 if test -n "$STRIP"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2669 $as_echo "$STRIP" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2677 if test -z "$ac_cv_prog_STRIP"; then
2679 # Extract the first word of "strip", so it can be a program name with args.
2680 set dummy strip; ac_word=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$ac_ct_STRIP"; then
2687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_ac_ct_STRIP="strip"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2707 if test -n "$ac_ct_STRIP"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2709 $as_echo "$ac_ct_STRIP" >&6; }
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2715 if test "x$ac_ct_STRIP" = x; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned=yes ;;
2727 STRIP="$ac_cv_prog_STRIP"
2731 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2734 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2735 if test -z "$MKDIR_P"; then
2736 if test "${ac_cv_path_mkdir+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2743 test -z "$as_dir" && as_dir=.
2744 for ac_prog in mkdir gmkdir; do
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2747 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2748 'mkdir (GNU coreutils) '* | \
2749 'mkdir (coreutils) '* | \
2750 'mkdir (fileutils) '4.1*)
2751 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2761 if test "${ac_cv_path_mkdir+set}" = set; then
2762 MKDIR_P="$ac_cv_path_mkdir -p"
2764 # As a last resort, use the slow shell script. Don't cache a
2765 # value for MKDIR_P within a source directory, because that will
2766 # break other packages using the cache if that directory is
2767 # removed, or if the value is a relative name.
2768 test -d ./--version && rmdir ./--version
2769 MKDIR_P="$ac_install_sh -d"
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2773 $as_echo "$MKDIR_P" >&6; }
2777 [\\/$]* | ?:[\\/]*) ;;
2778 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2781 for ac_prog in gawk mawk nawk awk
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_AWK+set}" = set; then :
2788 $as_echo_n "(cached) " >&6
2790 if test -n "$AWK"; then
2791 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_AWK="$ac_prog"
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$AWK"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2813 $as_echo "$AWK" >&6; }
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2820 test -n "$AWK" && break
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2824 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2826 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2827 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2828 $as_echo_n "(cached) " >&6
2830 cat >conftest.make <<\_ACEOF
2833 @echo '@@@%%%=$(MAKE)=@@@%%%'
2835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2838 eval ac_cv_prog_make_${ac_make}_set=yes;;
2840 eval ac_cv_prog_make_${ac_make}_set=no;;
2844 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2846 $as_echo "yes" >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 SET_MAKE="MAKE=${MAKE-make}"
2854 rm -rf .tst 2>/dev/null
2855 mkdir .tst 2>/dev/null
2856 if test -d .tst; then
2861 rmdir .tst 2>/dev/null
2863 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2864 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2865 # is not polluted with repeated "-I."
2866 am__isrc=' -I$(srcdir)'
2867 # test to see if srcdir already configured
2868 if test -f $srcdir/config.status; then
2869 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2873 # test whether we have cygpath
2874 if test -z "$CYGPATH_W"; then
2875 if (cygpath --version) >/dev/null 2>/dev/null; then
2876 CYGPATH_W='cygpath -w'
2883 # Define the identity of the package.
2885 VERSION='version-unused'
2888 # Some tools Automake needs.
2890 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2893 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2896 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2899 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2902 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2904 # We need awk for the "check" target. The system "awk" is bad on
2906 # Always define AMTAR for backward compatibility.
2908 AMTAR=${AMTAR-"${am_missing_run}tar"}
2910 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 if test -n "$CC"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2957 $as_echo "$CC" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2965 if test -z "$ac_cv_prog_CC"; then
2967 # Extract the first word of "gcc", so it can be a program name with args.
2968 set dummy gcc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_CC"; then
2975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_CC="gcc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 $as_echo "$ac_ct_CC" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3003 if test "x$ac_ct_CC" = x; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}cc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_CC="${ac_tool_prefix}cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3059 if test -z "$CC"; then
3060 # Extract the first word of "cc", so it can be a program name with args.
3061 set dummy cc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3079 ac_prog_rejected=yes
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test $ac_prog_rejected = yes; then
3091 # We found a bogon in the path, so make sure we never use it.
3092 set dummy $ac_cv_prog_CC
3094 if test $# != 0; then
3095 # We chose a different compiler from the bogus one.
3096 # However, it has the same basename, so the bogon will be chosen
3097 # first if we set CC to just the basename; use the full file name.
3099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3115 if test -z "$CC"; then
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in cl.exe
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if test "${ac_cv_prog_CC+set}" = set; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3156 test -n "$CC" && break
3159 if test -z "$CC"; then
3161 for ac_prog in cl.exe
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$ac_ct_CC" && break
3203 if test "x$ac_ct_CC" = x; then
3206 case $cross_compiling:$ac_tool_warned in
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error "no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." "$LINENO" 5; }
3224 # Provide some information about the compiler.
3225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228 for ac_option in --version -v -V -qversion; do
3229 { { ac_try="$ac_compiler $ac_option >&5"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3238 if test -s conftest.err; then
3240 ... rest of stderr output deleted ...
3241 10q' conftest.err >conftest.er1
3242 cat conftest.er1 >&5
3243 rm -f conftest.er1 conftest.err
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3260 ac_clean_files_save=$ac_clean_files
3261 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3262 # Try to create an executable without -o first, disregard a.out.
3263 # It will help us diagnose broken compilers, and finding out an intuition
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3266 $as_echo_n "checking for C compiler default output file name... " >&6; }
3267 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3269 # The possible output files:
3270 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273 for ac_file in $ac_files
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282 if { { ac_try="$ac_link_default"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link_default") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3294 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3295 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3296 # so that the user can short-circuit this test for compilers unknown to
3298 for ac_file in $ac_files ''
3300 test -f "$ac_file" || continue
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305 # We found the default executable, but exeext='' is most
3309 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 # We set ac_cv_exeext here because the later test for it is not
3314 # safe: cross compilers may not add the suffix if given an `-o'
3315 # argument, so we may need to know it at that point already.
3316 # Even if this section looks crufty: it has the advantage of
3323 test "$ac_cv_exeext" = no && ac_cv_exeext=
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329 $as_echo "$ac_file" >&6; }
3330 if test -z "$ac_file"; then :
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336 { as_fn_set_status 77
3337 as_fn_error "C compiler cannot create executables
3338 See \`config.log' for more details." "$LINENO" 5; }; }
3340 ac_exeext=$ac_cv_exeext
3342 # Check that the compiler produces executables we can run. If not, either
3343 # the compiler is broken, or we cross compile.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3345 $as_echo_n "checking whether the C compiler works... " >&6; }
3346 # If not cross compiling, check that we can run a simple program.
3347 if test "$cross_compiling" != yes; then
3348 if { ac_try='./$ac_file'
3349 { { case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_try") 2>&5
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; }; then
3361 if test "$cross_compiling" = maybe; then
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error "cannot run C compiled programs.
3367 If you meant to cross compile, use \`--host'.
3368 See \`config.log' for more details." "$LINENO" 5; }
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3375 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3376 ac_clean_files=$ac_clean_files_save
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 we are cross compiling" >&5
3380 $as_echo_n "checking whether we are cross compiling... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3382 $as_echo "$cross_compiling" >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3385 $as_echo_n "checking for suffix of executables... " >&6; }
3386 if { { ac_try="$ac_link"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; then :
3397 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3398 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3399 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 for ac_file in conftest.exe conftest conftest.*; do
3402 test -f "$ac_file" || continue
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error "cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details." "$LINENO" 5; }
3416 rm -f conftest$ac_cv_exeext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3418 $as_echo "$ac_cv_exeext" >&6; }
3420 rm -f conftest.$ac_ext
3421 EXEEXT=$ac_cv_exeext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if test "${ac_cv_objext+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 rm -f conftest.o conftest.obj
3440 if { { ac_try="$ac_compile"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compile") 2>&5
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error "cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details." "$LINENO" 5; }
3468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 $as_echo "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3476 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3493 if ac_fn_c_try_compile "$LINENO"; then :
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504 if test $ac_compiler_gnu = yes; then
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3513 if test "${ac_cv_prog_cc_g+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3516 ac_save_c_werror_flag=$ac_c_werror_flag
3517 ac_c_werror_flag=yes
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3531 if ac_fn_c_try_compile "$LINENO"; then :
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3562 if ac_fn_c_try_compile "$LINENO"; then :
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575 CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3583 if test "$GCC" = yes; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3594 ac_cv_prog_cc_c89=no
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3616 s = g (p, va_arg (v,int));
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
3624 as 'x'. The following induces an error, until -std is added to get
3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
3627 that's true only with -std. */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 CC="$ac_save_CC $ac_arg"
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_c89=$ac_arg
3656 rm -f core conftest.err conftest.$ac_objext
3657 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 rm -f conftest.$ac_ext
3664 case "x$ac_cv_prog_cc_c89" in
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 $as_echo "none needed" >&6; } ;;
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3670 $as_echo "unsupported" >&6; } ;;
3672 CC="$CC $ac_cv_prog_cc_c89"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 if test "x$ac_cv_prog_cc_c89" != xno; then :
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685 DEPDIR="${am__leading_dot}deps"
3687 ac_config_commands="$ac_config_commands depfiles"
3690 am_make=${MAKE-make}
3691 cat > confinc << 'END'
3693 @echo this is the am__doit target
3696 # If we don't find an include directive, just comment out the code.
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3698 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3702 # First try GNU make style include.
3703 echo "include confinc" > confmf
3704 # Ignore all kinds of additional output from `make'.
3705 case `$am_make -s -f confmf 2> /dev/null` in #(
3706 *the\ am__doit\ target*)
3712 # Now try BSD make style include.
3713 if test "$am__include" = "#"; then
3714 echo '.include "confinc"' > confmf
3715 case `$am_make -s -f confmf 2> /dev/null` in #(
3716 *the\ am__doit\ target*)
3717 am__include=.include
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3726 $as_echo "$_am_result" >&6; }
3727 rm -f confinc confmf
3729 # Check whether --enable-dependency-tracking was given.
3730 if test "${enable_dependency_tracking+set}" = set; then :
3731 enableval=$enable_dependency_tracking;
3734 if test "x$enable_dependency_tracking" != xno; then
3735 am_depcomp="$ac_aux_dir/depcomp"
3738 if test "x$enable_dependency_tracking" != xno; then
3748 depcc="$CC" am_compiler_list=
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3751 $as_echo_n "checking dependency style of $depcc... " >&6; }
3752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3756 # We make a subdir and do the tests there. Otherwise we can end up
3757 # making bogus files that we don't know about and never remove. For
3758 # instance it was reported that on HP-UX the gcc test will end up
3759 # making a dummy file named `D' -- because `-MD' means `put the output
3762 # Copy depcomp to subdir because otherwise we won't find it if we're
3763 # using a relative directory.
3764 cp "$am_depcomp" conftest.dir
3766 # We will build objects and dependencies in a subdirectory because
3767 # it helps to detect inapplicable dependency modes. For instance
3768 # both Tru64's cc and ICC support -MD to output dependencies as a
3769 # side effect of compilation, but ICC will put the dependencies in
3770 # the current directory while Tru64 will put them in the object
3774 am_cv_CC_dependencies_compiler_type=none
3775 if test "$am_compiler_list" = ""; then
3776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3779 case " $depcc " in #(
3780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3783 for depmode in $am_compiler_list; do
3784 # Setup a source with many dependencies, because some compilers
3785 # like to wrap large dependency lists on column 80 (with \), and
3786 # we should not choose a depcomp mode which is confused by this.
3788 # We need to recreate these files for each test, as the compiler may
3789 # overwrite some of them when testing with obscure command lines.
3790 # This happens at least with the AIX C compiler.
3792 for i in 1 2 3 4 5 6; do
3793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3795 # Solaris 8's {/usr,}/bin/sh.
3796 touch sub/conftst$i.h
3798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801 # mode. It turns out that the SunPro C++ compiler does not properly
3802 # handle `-M -o', and we need to detect this. Also, some Intel
3803 # versions had trouble with output in subdirs
3804 am__obj=sub/conftest.${OBJEXT-o}
3805 am__minus_obj="-o $am__obj"
3808 # This depmode causes a compiler race in universal mode.
3809 test "$am__universal" = false || continue
3812 # after this tag, mechanisms are not by side-effect, so they'll
3813 # only be used when explicitly requested
3814 if test "x$enable_dependency_tracking" = xyes; then
3820 msvisualcpp | msvcmsys)
3821 # This compiler won't grok `-c -o', but also, the minuso test has
3822 # not run yet. These depmodes are late enough in the game, and
3823 # so weak that their functioning should not be impacted.
3824 am__obj=conftest.${OBJEXT-o}
3829 if depmode=$depmode \
3830 source=sub/conftest.c object=$am__obj \
3831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3833 >/dev/null 2>conftest.err &&
3834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838 # icc doesn't choke on unknown options, it will just issue warnings
3839 # or remarks (even with -Werror). So we grep stderr for any message
3840 # that says an option was ignored or not supported.
3841 # When given -MP, icc 7.0 and 7.1 complain thusly:
3842 # icc: Command line warning: ignoring option '-M'; no argument required
3843 # The diagnosis changed in icc 8.0:
3844 # icc: Command line remark: option '-MP' not supported
3845 if (grep 'ignoring option' conftest.err ||
3846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847 am_cv_CC_dependencies_compiler_type=$depmode
3856 am_cv_CC_dependencies_compiler_type=none
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3865 test "x$enable_dependency_tracking" != xno \
3866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3868 am__fastdepCC_FALSE='#'
3870 am__fastdepCC_TRUE='#'
3871 am__fastdepCC_FALSE=
3876 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3877 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 if test -n "$ac_tool_prefix"; then
3880 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3881 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_GOC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3887 if test -n "$GOC"; then
3888 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 if test -n "$GOC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3910 $as_echo "$GOC" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3918 if test -z "$ac_cv_prog_GOC"; then
3920 # Extract the first word of "gccgo", so it can be a program name with args.
3921 set dummy gccgo; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$ac_ct_GOC"; then
3928 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_GOC="gccgo"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3948 if test -n "$ac_ct_GOC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3950 $as_echo "$ac_ct_GOC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3956 if test "x$ac_ct_GOC" = x; then
3959 case $cross_compiling:$ac_tool_warned in
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3963 ac_tool_warned=yes ;;
3968 GOC="$ac_cv_prog_GOC"
3971 if test -z "$GOC"; then
3972 if test -n "$ac_tool_prefix"; then
3973 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3974 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_prog_GOC+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 if test -n "$GOC"; then
3981 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 if test -n "$GOC"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4003 $as_echo "$GOC" >&6; }
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4012 if test -z "$GOC"; then
4013 # Extract the first word of "gccgo", so it can be a program name with args.
4014 set dummy gccgo; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_prog_GOC+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4020 if test -n "$GOC"; then
4021 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4032 ac_prog_rejected=yes
4035 ac_cv_prog_GOC="gccgo"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 if test $ac_prog_rejected = yes; then
4044 # We found a bogon in the path, so make sure we never use it.
4045 set dummy $ac_cv_prog_GOC
4047 if test $# != 0; then
4048 # We chose a different compiler from the bogus one.
4049 # However, it has the same basename, so the bogon will be chosen
4050 # first if we set GOC to just the basename; use the full file name.
4052 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4058 if test -n "$GOC"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4060 $as_echo "$GOC" >&6; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4070 # Provide some information about the compiler.
4071 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4074 { { ac_try="$ac_compiler --version >&5"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compiler --version >&5") 2>conftest.err
4083 if test -s conftest.err; then
4085 ... rest of stderr output deleted ...
4086 10q' conftest.err >conftest.er1
4087 cat conftest.er1 >&5
4088 rm -f conftest.er1 conftest.err
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4105 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4106 # Check whether --enable-maintainer-mode was given.
4107 if test "${enable_maintainer_mode+set}" = set; then :
4108 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4110 USE_MAINTAINER_MODE=no
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4114 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4115 if test $USE_MAINTAINER_MODE = yes; then
4116 MAINTAINER_MODE_TRUE=
4117 MAINTAINER_MODE_FALSE='#'
4119 MAINTAINER_MODE_TRUE='#'
4120 MAINTAINER_MODE_FALSE=
4123 MAINT=$MAINTAINER_MODE_TRUE
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4128 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4129 if test "${ac_cv_path_SED+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4132 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4133 for ac_i in 1 2 3 4 5 6 7; do
4134 ac_script="$ac_script$as_nl$ac_script"
4136 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4137 { ac_script=; unset ac_script;}
4138 if test -z "$SED"; then
4139 ac_path_SED_found=false
4140 # Loop through the user's path and test for each of PROGNAME-LIST
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_prog in sed gsed; do
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4149 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4150 # Check for GNU ac_path_SED and select it if it is found.
4151 # Check for GNU $ac_path_SED
4152 case `"$ac_path_SED" --version 2>&1` in
4154 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4157 $as_echo_n 0123456789 >"conftest.in"
4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
4161 mv "conftest.tmp" "conftest.in"
4162 cp "conftest.in" "conftest.nl"
4163 $as_echo '' >> "conftest.nl"
4164 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166 as_fn_arith $ac_count + 1 && ac_count=$as_val
4167 if test $ac_count -gt ${ac_path_SED_max-0}; then
4168 # Best one so far, save it but keep looking for a better one
4169 ac_cv_path_SED="$ac_path_SED"
4170 ac_path_SED_max=$ac_count
4172 # 10*(2^10) chars as input seems more than enough
4173 test $ac_count -gt 10 && break
4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178 $ac_path_SED_found && break 3
4183 if test -z "$ac_cv_path_SED"; then
4184 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4192 $as_echo "$ac_cv_path_SED" >&6; }
4193 SED="$ac_cv_path_SED"
4196 test -z "$SED" && SED=sed
4197 Xsed="$SED -e 1s/^X//"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4210 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4211 if test "${ac_cv_path_GREP+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4214 if test -z "$GREP"; then
4215 ac_path_GREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in grep ggrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4225 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4226 # Check for GNU ac_path_GREP and select it if it is found.
4227 # Check for GNU $ac_path_GREP
4228 case `"$ac_path_GREP" --version 2>&1` in
4230 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4233 $as_echo_n 0123456789 >"conftest.in"
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'GREP' >> "conftest.nl"
4240 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_GREP="$ac_path_GREP"
4246 ac_path_GREP_max=$ac_count
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254 $ac_path_GREP_found && break 3
4259 if test -z "$ac_cv_path_GREP"; then
4260 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4263 ac_cv_path_GREP=$GREP
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4268 $as_echo "$ac_cv_path_GREP" >&6; }
4269 GREP="$ac_cv_path_GREP"
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4273 $as_echo_n "checking for egrep... " >&6; }
4274 if test "${ac_cv_path_EGREP+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4277 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4278 then ac_cv_path_EGREP="$GREP -E"
4280 if test -z "$EGREP"; then
4281 ac_path_EGREP_found=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in egrep; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4292 # Check for GNU ac_path_EGREP and select it if it is found.
4293 # Check for GNU $ac_path_EGREP
4294 case `"$ac_path_EGREP" --version 2>&1` in
4296 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4299 $as_echo_n 0123456789 >"conftest.in"
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 $as_echo 'EGREP' >> "conftest.nl"
4306 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308 as_fn_arith $ac_count + 1 && ac_count=$as_val
4309 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_EGREP="$ac_path_EGREP"
4312 ac_path_EGREP_max=$ac_count
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 $ac_path_EGREP_found && break 3
4325 if test -z "$ac_cv_path_EGREP"; then
4326 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4329 ac_cv_path_EGREP=$EGREP
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4335 $as_echo "$ac_cv_path_EGREP" >&6; }
4336 EGREP="$ac_cv_path_EGREP"
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4340 $as_echo_n "checking for fgrep... " >&6; }
4341 if test "${ac_cv_path_FGREP+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4345 then ac_cv_path_FGREP="$GREP -F"
4347 if test -z "$FGREP"; then
4348 ac_path_FGREP_found=false
4349 # Loop through the user's path and test for each of PROGNAME-LIST
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 test -z "$as_dir" && as_dir=.
4355 for ac_prog in fgrep; do
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4358 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4359 # Check for GNU ac_path_FGREP and select it if it is found.
4360 # Check for GNU $ac_path_FGREP
4361 case `"$ac_path_FGREP" --version 2>&1` in
4363 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4366 $as_echo_n 0123456789 >"conftest.in"
4369 cat "conftest.in" "conftest.in" >"conftest.tmp"
4370 mv "conftest.tmp" "conftest.in"
4371 cp "conftest.in" "conftest.nl"
4372 $as_echo 'FGREP' >> "conftest.nl"
4373 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375 as_fn_arith $ac_count + 1 && ac_count=$as_val
4376 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4377 # Best one so far, save it but keep looking for a better one
4378 ac_cv_path_FGREP="$ac_path_FGREP"
4379 ac_path_FGREP_max=$ac_count
4381 # 10*(2^10) chars as input seems more than enough
4382 test $ac_count -gt 10 && break
4384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 $ac_path_FGREP_found && break 3
4392 if test -z "$ac_cv_path_FGREP"; then
4393 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4396 ac_cv_path_FGREP=$FGREP
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4402 $as_echo "$ac_cv_path_FGREP" >&6; }
4403 FGREP="$ac_cv_path_FGREP"
4406 test -z "$GREP" && GREP=grep
4424 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4425 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4426 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4429 $as_echo_n "checking how to print strings... " >&6; }
4430 # Test print first, because it will be a builtin if present.
4431 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4432 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4434 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4437 # Use this function as a fallback that always works.
4438 func_fallback_echo ()
4440 eval 'cat <<_LTECHO_EOF
4444 ECHO='func_fallback_echo'
4447 # func_echo_all arg...
4448 # Invoke $ECHO with all args, space-separated.
4455 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4456 $as_echo "printf" >&6; } ;;
4457 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4458 $as_echo "print -r" >&6; } ;;
4459 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4460 $as_echo "cat" >&6; } ;;
4478 # Check whether --with-gnu-ld was given.
4479 if test "${with_gnu_ld+set}" = set; then :
4480 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4486 if test "$GCC" = yes; then
4487 # Check if gcc -print-prog-name=ld gives a path.
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4489 $as_echo_n "checking for ld used by $CC... " >&6; }
4492 # gcc leaves a trailing carriage return which upsets mingw
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4495 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4498 # Accept absolute paths.
4500 re_direlt='/[^/][^/]*/\.\./'
4501 # Canonicalize the pathname of ld
4502 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4503 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4504 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4506 test -z "$LD" && LD="$ac_prog"
4509 # If it fails, then pretend we aren't using GCC.
4513 # If it is relative, then search for the first ld in PATH.
4517 elif test "$with_gnu_ld" = yes; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4519 $as_echo_n "checking for GNU ld... " >&6; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4522 $as_echo_n "checking for non-GNU ld... " >&6; }
4524 if test "${lt_cv_path_LD+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 if test -z "$LD"; then
4528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4529 for ac_dir in $PATH; do
4531 test -z "$ac_dir" && ac_dir=.
4532 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4533 lt_cv_path_LD="$ac_dir/$ac_prog"
4534 # Check to see if the program is GNU ld. I'd rather use --version,
4535 # but apparently some variants of GNU ld only accept -v.
4536 # Break only if it was the GNU/non-GNU ld that we prefer.
4537 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4538 *GNU* | *'with BFD'*)
4539 test "$with_gnu_ld" != no && break
4542 test "$with_gnu_ld" != yes && break
4549 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4554 if test -n "$LD"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4556 $as_echo "$LD" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4561 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4564 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4568 case `$LD -v 2>&1 </dev/null` in
4569 *GNU* | *'with BFD'*)
4570 lt_cv_prog_gnu_ld=yes
4573 lt_cv_prog_gnu_ld=no
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4579 with_gnu_ld=$lt_cv_prog_gnu_ld
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4593 $as_echo_n "checking for $ac_word... " >&6; }
4594 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4597 if test -n "$RANLIB"; then
4598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 RANLIB=$ac_cv_prog_RANLIB
4618 if test -n "$RANLIB"; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4620 $as_echo "$RANLIB" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4628 if test -z "$ac_cv_prog_RANLIB"; then
4629 ac_ct_RANLIB=$RANLIB
4630 # Extract the first word of "ranlib", so it can be a program name with args.
4631 set dummy ranlib; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4637 if test -n "$ac_ct_RANLIB"; then
4638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_ac_ct_RANLIB="ranlib"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4658 if test -n "$ac_ct_RANLIB"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4660 $as_echo "$ac_ct_RANLIB" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4666 if test "x$ac_ct_RANLIB" = x; then
4669 case $cross_compiling:$ac_tool_warned in
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673 ac_tool_warned=yes ;;
4675 RANLIB=$ac_ct_RANLIB
4678 RANLIB="$ac_cv_prog_RANLIB"
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4683 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 if test -n "$OBJCOPY"; then
4690 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 OBJCOPY=$ac_cv_prog_OBJCOPY
4710 if test -n "$OBJCOPY"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4712 $as_echo "$OBJCOPY" >&6; }
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4720 if test -z "$ac_cv_prog_OBJCOPY"; then
4721 ac_ct_OBJCOPY=$OBJCOPY
4722 # Extract the first word of "objcopy", so it can be a program name with args.
4723 set dummy objcopy; ac_word=$2
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$ac_ct_OBJCOPY"; then
4730 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4750 if test -n "$ac_ct_OBJCOPY"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4752 $as_echo "$ac_ct_OBJCOPY" >&6; }
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4755 $as_echo "no" >&6; }
4758 if test "x$ac_ct_OBJCOPY" = x; then
4759 OBJCOPY="missing-objcopy"
4761 case $cross_compiling:$ac_tool_warned in
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4765 ac_tool_warned=yes ;;
4767 OBJCOPY=$ac_ct_OBJCOPY
4770 OBJCOPY="$ac_cv_prog_OBJCOPY"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4786 macro_version='2.2.7a'
4787 macro_revision='1.3134'
4801 ltmain="$ac_aux_dir/ltmain.sh"
4803 # Backslashify metacharacters that are still active within
4804 # double-quoted strings.
4805 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4807 # Same as above, but do not quote variable references.
4808 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4810 # Sed substitution to delay expansion of an escaped shell variable in a
4811 # double_quote_subst'ed string.
4812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4814 # Sed substitution to delay expansion of an escaped single quote.
4815 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4817 # Sed substitution to avoid accidental globbing in evaled expressions
4818 no_glob_subst='s/\*/\\\*/g'
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4821 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4822 if test "${lt_cv_path_NM+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4825 if test -n "$NM"; then
4826 # Let the user override the test.
4829 lt_nm_to_check="${ac_tool_prefix}nm"
4830 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4831 lt_nm_to_check="$lt_nm_to_check nm"
4833 for lt_tmp_nm in $lt_nm_to_check; do
4834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4835 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4837 test -z "$ac_dir" && ac_dir=.
4838 tmp_nm="$ac_dir/$lt_tmp_nm"
4839 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4840 # Check to see if the nm accepts a BSD-compat flag.
4841 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4842 # nm: unknown option "B" ignored
4843 # Tru64's nm complains that /dev/null is an invalid object file
4844 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4845 */dev/null* | *'Invalid file or object type'*)
4846 lt_cv_path_NM="$tmp_nm -B"
4850 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4852 lt_cv_path_NM="$tmp_nm -p"
4856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4857 continue # so that we can try to find one that supports BSD flags
4866 : ${lt_cv_path_NM=no}
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4870 $as_echo "$lt_cv_path_NM" >&6; }
4871 if test "$lt_cv_path_NM" != "no"; then
4874 # Didn't find any BSD compatible name lister, look for dumpbin.
4875 if test -n "$DUMPBIN"; then :
4876 # Let the user override the test.
4878 if test -n "$ac_tool_prefix"; then
4879 for ac_prog in dumpbin "link -dump"
4881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -n "$DUMPBIN"; then
4889 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 DUMPBIN=$ac_cv_prog_DUMPBIN
4909 if test -n "$DUMPBIN"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4911 $as_echo "$DUMPBIN" >&6; }
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4918 test -n "$DUMPBIN" && break
4921 if test -z "$DUMPBIN"; then
4922 ac_ct_DUMPBIN=$DUMPBIN
4923 for ac_prog in dumpbin "link -dump"
4925 # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 if test -n "$ac_ct_DUMPBIN"; then
4933 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4953 if test -n "$ac_ct_DUMPBIN"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4955 $as_echo "$ac_ct_DUMPBIN" >&6; }
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 test -n "$ac_ct_DUMPBIN" && break
4965 if test "x$ac_ct_DUMPBIN" = x; then
4968 case $cross_compiling:$ac_tool_warned in
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972 ac_tool_warned=yes ;;
4974 DUMPBIN=$ac_ct_DUMPBIN
4978 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4980 DUMPBIN="$DUMPBIN -symbols"
4988 if test "$DUMPBIN" != ":"; then
4992 test -z "$NM" && NM=nm
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5000 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5001 if test "${lt_cv_nm_interface+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5004 lt_cv_nm_interface="BSD nm"
5005 echo "int some_variable = 0;" > conftest.$ac_ext
5006 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5007 (eval "$ac_compile" 2>conftest.err)
5008 cat conftest.err >&5
5009 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5010 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5011 cat conftest.err >&5
5012 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5013 cat conftest.out >&5
5014 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5015 lt_cv_nm_interface="MS dumpbin"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5020 $as_echo "$lt_cv_nm_interface" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5023 $as_echo_n "checking whether ln -s works... " >&6; }
5025 if test "$LN_S" = "ln -s"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5027 $as_echo "yes" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5030 $as_echo "no, using $LN_S" >&6; }
5033 # find the maximum length of command line arguments
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5035 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5036 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5044 # On DJGPP, this test can blow up pretty badly due to problems in libc
5045 # (any single argument exceeding 2000 bytes causes a buffer overrun
5046 # during glob expansion). Even if it were fixed, the result of this
5047 # check would be larger than it should be.
5048 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5052 # Under GNU Hurd, this test is not required because there is
5053 # no limit to the length of command line arguments.
5054 # Libtool will interpret -1 as no limit whatsoever
5055 lt_cv_sys_max_cmd_len=-1;
5058 cygwin* | mingw* | cegcc*)
5059 # On Win9x/ME, this test blows up -- it succeeds, but takes
5060 # about 5 minutes as the teststring grows exponentially.
5061 # Worse, since 9x/ME are not pre-emptively multitasking,
5062 # you end up with a "frozen" computer, even though with patience
5063 # the test eventually succeeds (with a max line length of 256k).
5064 # Instead, let's just punt: use the minimum linelength reported by
5065 # all of the supported platforms: 8192 (on NT/2K/XP).
5066 lt_cv_sys_max_cmd_len=8192;
5070 # On MiNT this can take a long time and run out of memory.
5071 lt_cv_sys_max_cmd_len=8192;
5075 # On AmigaOS with pdksh, this test takes hours, literally.
5076 # So we just punt and use a minimum line length of 8192.
5077 lt_cv_sys_max_cmd_len=8192;
5080 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5081 # This has been around since 386BSD, at least. Likely further.
5082 if test -x /sbin/sysctl; then
5083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5084 elif test -x /usr/sbin/sysctl; then
5085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5089 # And add a safety zone
5090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5095 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5096 lt_cv_sys_max_cmd_len=196608
5100 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5101 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5102 # nice to cause kernel panics so lets avoid the loop below.
5103 # First set a reasonable default.
5104 lt_cv_sys_max_cmd_len=16384
5106 if test -x /sbin/sysconfig; then
5107 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5108 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5113 lt_cv_sys_max_cmd_len=102400
5115 sysv5* | sco5v6* | sysv4.2uw2*)
5116 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5117 if test -n "$kargmax"; then
5118 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5120 lt_cv_sys_max_cmd_len=32768
5124 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5125 if test -n "$lt_cv_sys_max_cmd_len"; then
5126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5129 # Make teststring a little bigger before we do anything with it.
5130 # a 1K string should be a reasonable start.
5131 for i in 1 2 3 4 5 6 7 8 ; do
5132 teststring=$teststring$teststring
5134 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5135 # If test is not a shell built-in, we'll probably end up computing a
5136 # maximum length that is only half of the actual maximum length, but
5138 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5139 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5140 test $i != 17 # 1/2 MB should be enough
5143 teststring=$teststring$teststring
5145 # Only check the string length outside the loop.
5146 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5148 # Add a significant safety factor because C++ compilers can tack on
5149 # massive amounts of additional arguments before passing them to the
5150 # linker. It appears as though 1/2 is a usable value.
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5158 if test -n $lt_cv_sys_max_cmd_len ; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5160 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5163 $as_echo "none" >&6; }
5165 max_cmd_len=$lt_cv_sys_max_cmd_len
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5177 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5178 # Try some XSI features
5181 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5183 && eval 'test $(( 1 + 1 )) -eq 2 \
5184 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5187 $as_echo "$xsi_shell" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5191 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5193 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5195 && lt_shell_append=yes
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5197 $as_echo "$lt_shell_append" >&6; }
5200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5210 # test EBCDIC or ASCII
5211 case `echo X|tr X '\101'` in
5212 A) # ASCII based system
5213 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5214 lt_SP2NL='tr \040 \012'
5215 lt_NL2SP='tr \015\012 \040\040'
5217 *) # EBCDIC based system
5218 lt_SP2NL='tr \100 \n'
5219 lt_NL2SP='tr \r\n \100\100'
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5232 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5233 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 lt_cv_ld_reload_flag='-r'
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5239 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5240 reload_flag=$lt_cv_ld_reload_flag
5241 case $reload_flag in
5243 *) reload_flag=" $reload_flag" ;;
5245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5248 if test "$GCC" = yes; then
5249 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5251 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5272 if test -n "$OBJDUMP"; then
5273 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5282 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 OBJDUMP=$ac_cv_prog_OBJDUMP
5293 if test -n "$OBJDUMP"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5295 $as_echo "$OBJDUMP" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5303 if test -z "$ac_cv_prog_OBJDUMP"; then
5304 ac_ct_OBJDUMP=$OBJDUMP
5305 # Extract the first word of "objdump", so it can be a program name with args.
5306 set dummy objdump; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 if test -n "$ac_ct_OBJDUMP"; then
5313 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5333 if test -n "$ac_ct_OBJDUMP"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5335 $as_echo "$ac_ct_OBJDUMP" >&6; }
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5341 if test "x$ac_ct_OBJDUMP" = x; then
5344 case $cross_compiling:$ac_tool_warned in
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5350 OBJDUMP=$ac_ct_OBJDUMP
5353 OBJDUMP="$ac_cv_prog_OBJDUMP"
5356 test -z "$OBJDUMP" && OBJDUMP=objdump
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5368 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5371 lt_cv_file_magic_cmd='$MAGIC_CMD'
5372 lt_cv_file_magic_test_file=
5373 lt_cv_deplibs_check_method='unknown'
5374 # Need to set the preceding variable on all platforms that support
5375 # interlibrary dependencies.
5376 # 'none' -- dependencies not supported.
5377 # `unknown' -- same as none, but documents that we really don't know.
5378 # 'pass_all' -- all dependencies passed with no checks.
5379 # 'test_compile' -- check by making test program.
5380 # 'file_magic [[regex]]' -- check by looking for files in library path
5381 # which responds to the $file_magic_cmd with a given extended regex.
5382 # If you have `file' or equivalent on your system and you're not sure
5383 # whether `pass_all' will *always* work, you probably want this one.
5387 lt_cv_deplibs_check_method=pass_all
5391 lt_cv_deplibs_check_method=pass_all
5395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5396 lt_cv_file_magic_cmd='/usr/bin/file -L'
5397 lt_cv_file_magic_test_file=/shlib/libc.so
5401 # func_win32_libid is a shell function defined in ltmain.sh
5402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5403 lt_cv_file_magic_cmd='func_win32_libid'
5407 # Base MSYS/MinGW do not provide the 'file' command needed by
5408 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5409 # unless we find 'file', for example because we are cross-compiling.
5410 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5411 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5413 lt_cv_file_magic_cmd='func_win32_libid'
5415 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5416 lt_cv_file_magic_cmd='$OBJDUMP -f'
5421 # use the weaker test based on 'objdump'. See mingw*.
5422 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5423 lt_cv_file_magic_cmd='$OBJDUMP -f'
5426 darwin* | rhapsody*)
5427 lt_cv_deplibs_check_method=pass_all
5430 freebsd* | dragonfly*)
5431 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5434 # Not sure whether the presence of OpenBSD here was a mistake.
5435 # Let's accept both of them until this is cleared up.
5436 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5442 lt_cv_deplibs_check_method=pass_all
5447 lt_cv_deplibs_check_method=pass_all
5451 lt_cv_deplibs_check_method=pass_all
5454 hpux10.20* | hpux11*)
5455 lt_cv_file_magic_cmd=/usr/bin/file
5458 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5459 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5462 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]'
5463 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5466 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5467 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5473 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5477 irix5* | irix6* | nonstopux*)
5479 *-32|*"-32 ") libmagic=32-bit;;
5480 *-n32|*"-n32 ") libmagic=N32;;
5481 *-64|*"-64 ") libmagic=64-bit;;
5482 *) libmagic=never-match;;
5484 lt_cv_deplibs_check_method=pass_all
5487 # This must be Linux ELF.
5488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5489 lt_cv_deplibs_check_method=pass_all
5493 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5501 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5502 lt_cv_file_magic_cmd=/usr/bin/file
5503 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5507 lt_cv_deplibs_check_method=pass_all
5511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5518 osf3* | osf4* | osf5*)
5519 lt_cv_deplibs_check_method=pass_all
5523 lt_cv_deplibs_check_method=pass_all
5527 lt_cv_deplibs_check_method=pass_all
5530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5531 lt_cv_deplibs_check_method=pass_all
5535 case $host_vendor in
5537 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]'
5538 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5541 lt_cv_deplibs_check_method=pass_all
5544 lt_cv_file_magic_cmd='/bin/file'
5545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5548 lt_cv_file_magic_cmd='/bin/file'
5549 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5550 lt_cv_file_magic_test_file=/lib/libc.so
5553 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_deplibs_check_method=pass_all
5562 lt_cv_deplibs_check_method=pass_all
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5568 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5569 file_magic_cmd=$lt_cv_file_magic_cmd
5570 deplibs_check_method=$lt_cv_deplibs_check_method
5571 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}ar; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_AR+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5592 if test -n "$AR"; then
5593 ac_cv_prog_AR="$AR" # Let the user override the test.
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602 ac_cv_prog_AR="${ac_tool_prefix}ar"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 if test -n "$AR"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5615 $as_echo "$AR" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test -z "$ac_cv_prog_AR"; then
5625 # Extract the first word of "ar", so it can be a program name with args.
5626 set dummy ar; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5632 if test -n "$ac_ct_AR"; then
5633 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_ac_ct_AR="ar"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5653 if test -n "$ac_ct_AR"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5655 $as_echo "$ac_ct_AR" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5661 if test "x$ac_ct_AR" = x; then
5664 case $cross_compiling:$ac_tool_warned in
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5676 test -z "$AR" && AR=ar
5677 test -z "$AR_FLAGS" && AR_FLAGS=cru
5689 if test -n "$ac_tool_prefix"; then
5690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5691 set dummy ${ac_tool_prefix}strip; ac_word=$2
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 $as_echo_n "checking for $ac_word... " >&6; }
5694 if test "${ac_cv_prog_STRIP+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5697 if test -n "$STRIP"; then
5698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 STRIP=$ac_cv_prog_STRIP
5718 if test -n "$STRIP"; then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5720 $as_echo "$STRIP" >&6; }
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5728 if test -z "$ac_cv_prog_STRIP"; then
5730 # Extract the first word of "strip", so it can be a program name with args.
5731 set dummy strip; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$ac_ct_STRIP"; then
5738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_ac_ct_STRIP="strip"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5758 if test -n "$ac_ct_STRIP"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5760 $as_echo "$ac_ct_STRIP" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5766 if test "x$ac_ct_STRIP" = x; then
5769 case $cross_compiling:$ac_tool_warned in
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773 ac_tool_warned=yes ;;
5778 STRIP="$ac_cv_prog_STRIP"
5781 test -z "$STRIP" && STRIP=:
5788 if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$RANLIB"; then
5797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 RANLIB=$ac_cv_prog_RANLIB
5817 if test -n "$RANLIB"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5819 $as_echo "$RANLIB" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5827 if test -z "$ac_cv_prog_RANLIB"; then
5828 ac_ct_RANLIB=$RANLIB
5829 # Extract the first word of "ranlib", so it can be a program name with args.
5830 set dummy ranlib; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5836 if test -n "$ac_ct_RANLIB"; then
5837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_ac_ct_RANLIB="ranlib"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5857 if test -n "$ac_ct_RANLIB"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5859 $as_echo "$ac_ct_RANLIB" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5865 if test "x$ac_ct_RANLIB" = x; then
5868 case $cross_compiling:$ac_tool_warned in
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872 ac_tool_warned=yes ;;
5874 RANLIB=$ac_ct_RANLIB
5877 RANLIB="$ac_cv_prog_RANLIB"
5880 test -z "$RANLIB" && RANLIB=:
5887 # Determine commands to create old-style static archives.
5888 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5889 old_postinstall_cmds='chmod 644 $oldlib'
5890 old_postuninstall_cmds=
5892 if test -n "$RANLIB"; then
5895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5901 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5906 lock_old_archive_extraction=yes ;;
5908 lock_old_archive_extraction=no ;;
5949 # If no C compiler was specified, use CC.
5952 # If no C compiler flags were specified, use CFLAGS.
5953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5955 # Allow CC to be a program name with arguments.
5959 # Check for command to grab the raw symbol name followed by C symbol from nm.
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5961 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5962 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5966 # These are sane defaults that work on at least a few old systems.
5967 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5969 # Character class describing NM global symbol codes.
5970 symcode='[BCDEGRST]'
5972 # Regexp to match symbols that can be accessed directly from C.
5973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5975 # Define system-specific variables.
5980 cygwin* | mingw* | pw32* | cegcc*)
5981 symcode='[ABCDGISTW]'
5984 if test "$host_cpu" = ia64; then
5985 symcode='[ABCDEGRST]'
5989 symcode='[BCDEGRST]'
5992 symcode='[BCDEGQRST]'
6003 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6011 # If we're using GNU nm, then use its standard symbol codes.
6012 case `$NM -V 2>&1` in
6013 *GNU* | *'with BFD'*)
6014 symcode='[ABCDGIRSTW]' ;;
6017 # Transform an extracted symbol line into a proper C declaration.
6018 # Some systems (esp. on ia64) link data and code symbols differently,
6019 # so use this general approach.
6020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6022 # Transform an extracted symbol line into symbol name and symbol address
6023 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6024 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'"
6026 # Handle CRLF in mingw tool chain
6030 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6034 # Try without a prefix underscore, then with it.
6035 for ac_symprfx in "" "_"; do
6037 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6038 symxfrm="\\1 $ac_symprfx\\2 \\2"
6040 # Write the raw and C identifiers.
6041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6042 # Fake it for dumpbin and say T for any non-static function
6043 # and D for any global variable.
6044 # Also find C++ and __fastcall symbols from MSVC++,
6045 # which start with @ or ?.
6046 lt_cv_sys_global_symbol_pipe="$AWK '"\
6047 " {last_section=section; section=\$ 3};"\
6048 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6049 " \$ 0!~/External *\|/{next};"\
6050 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6051 " {if(hide[section]) next};"\
6052 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6053 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6054 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6055 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6056 " ' prfx=^$ac_symprfx"
6058 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6061 # Check to see that the pipe works correctly.
6065 cat > conftest.$ac_ext <<_LT_EOF
6070 void nm_test_func(void);
6071 void nm_test_func(void){}
6075 int main(){nm_test_var='a';nm_test_func();return(0);}
6078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6079 (eval $ac_compile) 2>&5
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; }; then
6083 # Now try to grab the symbols.
6085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6086 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; } && test -s "$nlist"; then
6090 # Try sorting and uniquifying the output.
6091 if sort "$nlist" | uniq > "$nlist"T; then
6092 mv -f "$nlist"T "$nlist"
6097 # Make sure that we snagged all the symbols we need.
6098 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6099 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6100 cat <<_LT_EOF > conftest.$ac_ext
6106 # Now generate the symbol file.
6107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6109 cat <<_LT_EOF >> conftest.$ac_ext
6111 /* The mapping between symbol names and symbols. */
6116 lt__PROGRAM__LTX_preloaded_symbols[] =
6118 { "@PROGRAM@", (void *) 0 },
6120 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6121 cat <<\_LT_EOF >> conftest.$ac_ext
6125 /* This works around a problem in FreeBSD linker */
6126 #ifdef FREEBSD_WORKAROUND
6127 static const void *lt_preloaded_setup() {
6128 return lt__PROGRAM__LTX_preloaded_symbols;
6136 # Now try linking the two files.
6137 mv conftest.$ac_objext conftstm.$ac_objext
6138 lt_save_LIBS="$LIBS"
6139 lt_save_CFLAGS="$CFLAGS"
6140 LIBS="conftstm.$ac_objext"
6141 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6143 (eval $ac_link) 2>&5
6145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6149 LIBS="$lt_save_LIBS"
6150 CFLAGS="$lt_save_CFLAGS"
6152 echo "cannot find nm_test_func in $nlist" >&5
6155 echo "cannot find nm_test_var in $nlist" >&5
6158 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6161 echo "$progname: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 rm -rf conftest* conftst*
6166 # Do not use the global_symbol_pipe unless it works.
6167 if test "$pipe_works" = yes; then
6170 lt_cv_sys_global_symbol_pipe=
6176 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6177 lt_cv_sys_global_symbol_to_cdecl=
6179 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6181 $as_echo "failed" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6184 $as_echo "ok" >&6; }
6209 # Check whether --enable-libtool-lock was given.
6210 if test "${enable_libtool_lock+set}" = set; then :
6211 enableval=$enable_libtool_lock;
6214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6216 # Some flags need to be propagated to the compiler or linker for good
6220 # Find out which ABI we are using.
6221 echo 'int i;' > conftest.$ac_ext
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6223 (eval $ac_compile) 2>&5
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; }; then
6227 case `/usr/bin/file conftest.$ac_objext` in
6239 # Find out which ABI we are using.
6240 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242 (eval $ac_compile) 2>&5
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }; then
6246 if test "$lt_cv_prog_gnu_ld" = yes; then
6247 case `/usr/bin/file conftest.$ac_objext` in
6249 LD="${LD-ld} -melf32bsmip"
6252 LD="${LD-ld} -melf32bmipn32"
6255 LD="${LD-ld} -melf64bmip"
6259 case `/usr/bin/file conftest.$ac_objext` in
6275 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6276 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6277 # Find out which ABI we are using.
6278 echo 'int i;' > conftest.$ac_ext
6279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6280 (eval $ac_compile) 2>&5
6282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6283 test $ac_status = 0; }; then
6284 case `/usr/bin/file conftest.o` in
6287 x86_64-*kfreebsd*-gnu)
6288 LD="${LD-ld} -m elf_i386_fbsd"
6291 LD="${LD-ld} -m elf_i386"
6293 ppc64-*linux*|powerpc64-*linux*)
6294 LD="${LD-ld} -m elf32ppclinux"
6297 LD="${LD-ld} -m elf_s390"
6300 LD="${LD-ld} -m elf32_sparc"
6306 x86_64-*kfreebsd*-gnu)
6307 LD="${LD-ld} -m elf_x86_64_fbsd"
6310 LD="${LD-ld} -m elf_x86_64"
6312 ppc*-*linux*|powerpc*-*linux*)
6313 LD="${LD-ld} -m elf64ppc"
6315 s390*-*linux*|s390*-*tpf*)
6316 LD="${LD-ld} -m elf64_s390"
6319 LD="${LD-ld} -m elf64_sparc"
6329 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6330 SAVE_CFLAGS="$CFLAGS"
6331 CFLAGS="$CFLAGS -belf"
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6333 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6334 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6338 ac_cpp='$CPP $CPPFLAGS'
6339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6354 if ac_fn_c_try_link "$LINENO"; then :
6355 lt_cv_cc_needs_belf=yes
6357 lt_cv_cc_needs_belf=no
6359 rm -f core conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6369 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6370 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6371 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6372 CFLAGS="$SAVE_CFLAGS"
6376 # Find out which ABI we are using.
6377 echo 'int i;' > conftest.$ac_ext
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379 (eval $ac_compile) 2>&5
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; }; then
6383 case `/usr/bin/file conftest.o` in
6385 case $lt_cv_prog_gnu_ld in
6386 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6388 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6400 need_locks="$enable_libtool_lock"
6404 rhapsody* | darwin*)
6405 if test -n "$ac_tool_prefix"; then
6406 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6407 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6413 if test -n "$DSYMUTIL"; then
6414 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6434 if test -n "$DSYMUTIL"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6436 $as_echo "$DSYMUTIL" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6444 if test -z "$ac_cv_prog_DSYMUTIL"; then
6445 ac_ct_DSYMUTIL=$DSYMUTIL
6446 # Extract the first word of "dsymutil", so it can be a program name with args.
6447 set dummy dsymutil; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6453 if test -n "$ac_ct_DSYMUTIL"; then
6454 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6474 if test -n "$ac_ct_DSYMUTIL"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6476 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6482 if test "x$ac_ct_DSYMUTIL" = x; then
6485 case $cross_compiling:$ac_tool_warned in
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489 ac_tool_warned=yes ;;
6491 DSYMUTIL=$ac_ct_DSYMUTIL
6494 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$NMEDIT"; then
6506 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 NMEDIT=$ac_cv_prog_NMEDIT
6526 if test -n "$NMEDIT"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6528 $as_echo "$NMEDIT" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6536 if test -z "$ac_cv_prog_NMEDIT"; then
6537 ac_ct_NMEDIT=$NMEDIT
6538 # Extract the first word of "nmedit", so it can be a program name with args.
6539 set dummy nmedit; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6545 if test -n "$ac_ct_NMEDIT"; then
6546 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6566 if test -n "$ac_ct_NMEDIT"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6568 $as_echo "$ac_ct_NMEDIT" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6574 if test "x$ac_ct_NMEDIT" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581 ac_tool_warned=yes ;;
6583 NMEDIT=$ac_ct_NMEDIT
6586 NMEDIT="$ac_cv_prog_NMEDIT"
6589 if test -n "$ac_tool_prefix"; then
6590 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6591 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 $as_echo_n "checking for $ac_word... " >&6; }
6594 if test "${ac_cv_prog_LIPO+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6597 if test -n "$LIPO"; then
6598 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 LIPO=$ac_cv_prog_LIPO
6618 if test -n "$LIPO"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6620 $as_echo "$LIPO" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6628 if test -z "$ac_cv_prog_LIPO"; then
6630 # Extract the first word of "lipo", so it can be a program name with args.
6631 set dummy lipo; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6637 if test -n "$ac_ct_LIPO"; then
6638 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_ac_ct_LIPO="lipo"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6658 if test -n "$ac_ct_LIPO"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6660 $as_echo "$ac_ct_LIPO" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6666 if test "x$ac_ct_LIPO" = x; then
6669 case $cross_compiling:$ac_tool_warned in
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673 ac_tool_warned=yes ;;
6678 LIPO="$ac_cv_prog_LIPO"
6681 if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6683 set dummy ${ac_tool_prefix}otool; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6689 if test -n "$OTOOL"; then
6690 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 OTOOL=$ac_cv_prog_OTOOL
6710 if test -n "$OTOOL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6712 $as_echo "$OTOOL" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6720 if test -z "$ac_cv_prog_OTOOL"; then
6722 # Extract the first word of "otool", so it can be a program name with args.
6723 set dummy otool; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6729 if test -n "$ac_ct_OTOOL"; then
6730 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_ac_ct_OTOOL="otool"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6750 if test -n "$ac_ct_OTOOL"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6752 $as_echo "$ac_ct_OTOOL" >&6; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6758 if test "x$ac_ct_OTOOL" = x; then
6761 case $cross_compiling:$ac_tool_warned in
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765 ac_tool_warned=yes ;;
6770 OTOOL="$ac_cv_prog_OTOOL"
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$OTOOL64"; then
6782 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 OTOOL64=$ac_cv_prog_OTOOL64
6802 if test -n "$OTOOL64"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6804 $as_echo "$OTOOL64" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6812 if test -z "$ac_cv_prog_OTOOL64"; then
6813 ac_ct_OTOOL64=$OTOOL64
6814 # Extract the first word of "otool64", so it can be a program name with args.
6815 set dummy otool64; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6821 if test -n "$ac_ct_OTOOL64"; then
6822 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_OTOOL64="otool64"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6842 if test -n "$ac_ct_OTOOL64"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6844 $as_echo "$ac_ct_OTOOL64" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6850 if test "x$ac_ct_OTOOL64" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6859 OTOOL64=$ac_ct_OTOOL64
6862 OTOOL64="$ac_cv_prog_OTOOL64"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6892 $as_echo_n "checking for -single_module linker flag... " >&6; }
6893 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 lt_cv_apple_cc_single_mod=no
6897 if test -z "${LT_MULTI_MODULE}"; then
6898 # By default we will add the -single_module flag. You can override
6899 # by either setting the environment variable LT_MULTI_MODULE
6900 # non-empty at configure time, or by adding -multi_module to the
6902 rm -rf libconftest.dylib*
6903 echo "int foo(void){return 1;}" > conftest.c
6904 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6905 -dynamiclib -Wl,-single_module conftest.c" >&5
6906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6907 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6909 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6910 lt_cv_apple_cc_single_mod=yes
6912 cat conftest.err >&5
6914 rm -rf libconftest.dylib*
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6919 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6921 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6922 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6925 lt_cv_ld_exported_symbols_list=no
6926 save_LDFLAGS=$LDFLAGS
6927 echo "_main" > conftest.sym
6928 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 lt_cv_ld_exported_symbols_list=yes
6943 lt_cv_ld_exported_symbols_list=no
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 LDFLAGS="$save_LDFLAGS"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6951 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6953 $as_echo_n "checking for -force_load linker flag... " >&6; }
6954 if test "${lt_cv_ld_force_load+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 lt_cv_ld_force_load=no
6958 cat > conftest.c << _LT_EOF
6959 int forced_loaded() { return 2;}
6961 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6962 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6963 echo "$AR cru libconftest.a conftest.o" >&5
6964 $AR cru libconftest.a conftest.o 2>&5
6965 cat > conftest.c << _LT_EOF
6966 int main() { return 0;}
6968 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6969 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6971 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6972 lt_cv_ld_force_load=yes
6974 cat conftest.err >&5
6976 rm -f conftest.err libconftest.a conftest conftest.c
6977 rm -rf conftest.dSYM
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6981 $as_echo "$lt_cv_ld_force_load" >&6; }
6983 rhapsody* | darwin1.[012])
6984 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6986 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6987 darwin*) # darwin 5.x on
6988 # if running on 10.5 or later, the deployment target defaults
6989 # to the OS version, if on x86, and 10.4, the deployment
6990 # target defaults to 10.4. Don't you love it?
6991 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6992 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6993 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6995 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6997 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7001 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7002 _lt_dar_single_mod='$single_module'
7004 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7005 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7007 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7009 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7010 _lt_dsymutil='~$DSYMUTIL $lib || :'
7018 ac_cpp='$CPP $CPPFLAGS'
7019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7024 # On Suns, sometimes $CPP names a directory.
7025 if test -n "$CPP" && test -d "$CPP"; then
7028 if test -z "$CPP"; then
7029 if test "${ac_cv_prog_CPP+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7032 # Double quotes because CPP needs to be expanded
7033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7036 for ac_c_preproc_warn_flag in '' yes
7038 # Use a header file that comes with gcc, so configuring glibc
7039 # with a fresh cross-compiler works.
7040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041 # <limits.h> exists even on freestanding compilers.
7042 # On the NeXT, cc -E runs the code through the compiler's parser,
7043 # not just through cpp. "Syntax error" is here to catch this case.
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7047 # include <limits.h>
7049 # include <assert.h>
7053 if ac_fn_c_try_cpp "$LINENO"; then :
7056 # Broken: fails on valid input.
7059 rm -f conftest.err conftest.$ac_ext
7061 # OK, works on sane cases. Now check whether nonexistent headers
7062 # can be detected and how.
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #include <ac_nonexistent.h>
7067 if ac_fn_c_try_cpp "$LINENO"; then :
7068 # Broken: success on invalid input.
7071 # Passes both tests.
7075 rm -f conftest.err conftest.$ac_ext
7078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7079 rm -f conftest.err conftest.$ac_ext
7080 if $ac_preproc_ok; then :
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7093 $as_echo "$CPP" >&6; }
7095 for ac_c_preproc_warn_flag in '' yes
7097 # Use a header file that comes with gcc, so configuring glibc
7098 # with a fresh cross-compiler works.
7099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7100 # <limits.h> exists even on freestanding compilers.
7101 # On the NeXT, cc -E runs the code through the compiler's parser,
7102 # not just through cpp. "Syntax error" is here to catch this case.
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7106 # include <limits.h>
7108 # include <assert.h>
7112 if ac_fn_c_try_cpp "$LINENO"; then :
7115 # Broken: fails on valid input.
7118 rm -f conftest.err conftest.$ac_ext
7120 # OK, works on sane cases. Now check whether nonexistent headers
7121 # can be detected and how.
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7124 #include <ac_nonexistent.h>
7126 if ac_fn_c_try_cpp "$LINENO"; then :
7127 # Broken: success on invalid input.
7130 # Passes both tests.
7134 rm -f conftest.err conftest.$ac_ext
7137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7138 rm -f conftest.err conftest.$ac_ext
7139 if $ac_preproc_ok; then :
7142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7144 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7145 See \`config.log' for more details." "$LINENO" 5; }
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7156 $as_echo_n "checking for ANSI C header files... " >&6; }
7157 if test "${ac_cv_header_stdc+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7175 if ac_fn_c_try_compile "$LINENO"; then :
7176 ac_cv_header_stdc=yes
7178 ac_cv_header_stdc=no
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182 if test $ac_cv_header_stdc = yes; then
7183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190 $EGREP "memchr" >/dev/null 2>&1; then :
7193 ac_cv_header_stdc=no
7199 if test $ac_cv_header_stdc = yes; then
7200 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207 $EGREP "free" >/dev/null 2>&1; then :
7210 ac_cv_header_stdc=no
7216 if test $ac_cv_header_stdc = yes; then
7217 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7218 if test "$cross_compiling" = yes; then :
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7229 # define ISLOWER(c) \
7230 (('a' <= (c) && (c) <= 'i') \
7231 || ('j' <= (c) && (c) <= 'r') \
7232 || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7241 for (i = 0; i < 256; i++)
7242 if (XOR (islower (i), ISLOWER (i))
7243 || toupper (i) != TOUPPER (i))
7248 if ac_fn_c_try_run "$LINENO"; then :
7251 ac_cv_header_stdc=no
7253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7254 conftest.$ac_objext conftest.beam conftest.$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7260 $as_echo "$ac_cv_header_stdc" >&6; }
7261 if test $ac_cv_header_stdc = yes; then
7263 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7267 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7268 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7269 inttypes.h stdint.h unistd.h
7271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7274 eval as_val=\$$as_ac_Header
7275 if test "x$as_val" = x""yes; then :
7276 cat >>confdefs.h <<_ACEOF
7277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7285 for ac_header in dlfcn.h
7287 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7289 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7290 cat >>confdefs.h <<_ACEOF
7291 #define HAVE_DLFCN_H 1
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_prog_GOC+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7306 if test -n "$GOC"; then
7307 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 if test -n "$GOC"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7329 $as_echo "$GOC" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7337 if test -z "$ac_cv_prog_GOC"; then
7339 # Extract the first word of "gccgo", so it can be a program name with args.
7340 set dummy gccgo; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7346 if test -n "$ac_ct_GOC"; then
7347 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_prog_ac_ct_GOC="gccgo"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7367 if test -n "$ac_ct_GOC"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7369 $as_echo "$ac_ct_GOC" >&6; }
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7375 if test "x$ac_ct_GOC" = x; then
7378 case $cross_compiling:$ac_tool_warned in
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7382 ac_tool_warned=yes ;;
7387 GOC="$ac_cv_prog_GOC"
7403 # Check whether --enable-shared was given.
7404 if test "${enable_shared+set}" = set; then :
7405 enableval=$enable_shared; p=${PACKAGE-default}
7407 yes) enable_shared=yes ;;
7408 no) enable_shared=no ;;
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413 for pkg in $enableval; do
7415 if test "X$pkg" = "X$p"; then
7434 # Check whether --enable-static was given.
7435 if test "${enable_static+set}" = set; then :
7436 enableval=$enable_static; p=${PACKAGE-default}
7438 yes) enable_static=yes ;;
7439 no) enable_static=no ;;
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444 for pkg in $enableval; do
7446 if test "X$pkg" = "X$p"; then
7466 # Check whether --with-pic was given.
7467 if test "${with_pic+set}" = set; then :
7468 withval=$with_pic; pic_mode="$withval"
7474 test -z "$pic_mode" && pic_mode=default
7482 # Check whether --enable-fast-install was given.
7483 if test "${enable_fast_install+set}" = set; then :
7484 enableval=$enable_fast_install; p=${PACKAGE-default}
7486 yes) enable_fast_install=yes ;;
7487 no) enable_fast_install=no ;;
7489 enable_fast_install=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
7495 enable_fast_install=yes
7502 enable_fast_install=yes
7515 # This can be used to rebuild libtool when needed
7516 LIBTOOL_DEPS="$ltmain"
7518 # Always use our own libtool.
7519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7546 test -z "$LN_S" && LN_S="ln -s"
7561 if test -n "${ZSH_VERSION+set}" ; then
7562 setopt NO_GLOB_SUBST
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7566 $as_echo_n "checking for objdir... " >&6; }
7567 if test "${lt_cv_objdir+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7570 rm -f .libs 2>/dev/null
7571 mkdir .libs 2>/dev/null
7572 if test -d .libs; then
7575 # MS-DOS does not allow filenames that begin with a dot.
7578 rmdir .libs 2>/dev/null
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7581 $as_echo "$lt_cv_objdir" >&6; }
7582 objdir=$lt_cv_objdir
7588 cat >>confdefs.h <<_ACEOF
7589 #define LT_OBJDIR "$lt_cv_objdir/"
7597 # AIX sometimes has problems with the GCC collect2 program. For some
7598 # reason, if we set the COLLECT_NAMES environment variable, the problems
7599 # vanish in a puff of smoke.
7600 if test "X${COLLECT_NAMES+set}" != Xset; then
7602 export COLLECT_NAMES
7609 can_build_shared=yes
7611 # All known linkers require a `.a' archive for static linking (except MSVC,
7612 # which needs '.lib').
7615 with_gnu_ld="$lt_cv_prog_gnu_ld"
7618 old_CFLAGS="$CFLAGS"
7620 # Set sane defaults for various variables
7621 test -z "$CC" && CC=cc
7622 test -z "$LTCC" && LTCC=$CC
7623 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7624 test -z "$LD" && LD=ld
7625 test -z "$ac_objext" && ac_objext=o
7627 for cc_temp in $compiler""; do
7629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7635 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7638 # Only perform the check for file, if the check method requires it
7639 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7640 case $deplibs_check_method in
7642 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7644 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7645 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7653 lt_save_MAGIC_CMD="$MAGIC_CMD"
7654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656 for ac_dir in $ac_dummy; do
7658 test -z "$ac_dir" && ac_dir=.
7659 if test -f $ac_dir/${ac_tool_prefix}file; then
7660 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7661 if test -n "$file_magic_test_file"; then
7662 case $deplibs_check_method in
7664 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667 $EGREP "$file_magic_regex" > /dev/null; then
7672 *** Warning: the command libtool uses to detect shared libraries,
7673 *** $file_magic_cmd, produces output that libtool cannot recognize.
7674 *** The result is that libtool may fail to recognize shared libraries
7675 *** as such. This will affect the creation of libtool libraries that
7676 *** depend on shared libraries, but programs linked with such libtool
7677 *** libraries will work regardless of this problem. Nevertheless, you
7678 *** may want to report the problem to your system manager and/or to
7679 *** bug-libtool@gnu.org
7689 MAGIC_CMD="$lt_save_MAGIC_CMD"
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if test -n "$MAGIC_CMD"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7697 $as_echo "$MAGIC_CMD" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7707 if test -z "$lt_cv_path_MAGIC_CMD"; then
7708 if test -n "$ac_tool_prefix"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7710 $as_echo_n "checking for file... " >&6; }
7711 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7719 lt_save_MAGIC_CMD="$MAGIC_CMD"
7720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7721 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7722 for ac_dir in $ac_dummy; do
7724 test -z "$ac_dir" && ac_dir=.
7725 if test -f $ac_dir/file; then
7726 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7727 if test -n "$file_magic_test_file"; then
7728 case $deplibs_check_method in
7730 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7733 $EGREP "$file_magic_regex" > /dev/null; then
7738 *** Warning: the command libtool uses to detect shared libraries,
7739 *** $file_magic_cmd, produces output that libtool cannot recognize.
7740 *** The result is that libtool may fail to recognize shared libraries
7741 *** as such. This will affect the creation of libtool libraries that
7742 *** depend on shared libraries, but programs linked with such libtool
7743 *** libraries will work regardless of this problem. Nevertheless, you
7744 *** may want to report the problem to your system manager and/or to
7745 *** bug-libtool@gnu.org
7755 MAGIC_CMD="$lt_save_MAGIC_CMD"
7760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761 if test -n "$MAGIC_CMD"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7763 $as_echo "$MAGIC_CMD" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7779 # Use C for the default configuration in the libtool script
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 # Source file extension for C test sources.
7792 # Object file extension for compiled C test sources.
7796 # Code to be used in simple compile tests
7797 lt_simple_compile_test_code="int some_variable = 0;"
7799 # Code to be used in simple link tests
7800 lt_simple_link_test_code='int main(){return(0);}'
7808 # If no C compiler was specified, use CC.
7811 # If no C compiler flags were specified, use CFLAGS.
7812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7814 # Allow CC to be a program name with arguments.
7817 # Save the default compiler, since it gets overwritten when the other
7818 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7819 compiler_DEFAULT=$CC
7821 # save warnings/boilerplate of simple test code
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_compiler_boilerplate=`cat conftest.err`
7828 ac_outfile=conftest.$ac_objext
7829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7831 _lt_linker_boilerplate=`cat conftest.err`
7836 ## There is no encapsulation within the following macros, do not change
7837 ## the running order or otherwise move them around unless you know exactly
7838 ## what you are doing...
7839 if test -n "$compiler"; then
7841 lt_prog_compiler_no_builtin_flag=
7843 if test "$GCC" = yes; then
7844 case $cc_basename in
7846 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7848 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7852 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7853 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7856 lt_cv_prog_compiler_rtti_exceptions=no
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859 lt_compiler_flag="-fno-rtti -fno-exceptions"
7860 # Insert the option either (1) after the last *FLAGS variable, or
7861 # (2) before a word containing "conftest.", or (3) at the end.
7862 # Note that $ac_compile itself does not contain backslashes and begins
7863 # with a dollar sign (not a hyphen), so the echo should work correctly.
7864 # The option is referenced via a variable to avoid confusing sed.
7865 lt_compile=`echo "$ac_compile" | $SED \
7866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7868 -e 's:$: $lt_compiler_flag:'`
7869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7870 (eval "$lt_compile" 2>conftest.err)
7872 cat conftest.err >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 if (exit $ac_status) && test -s "$ac_outfile"; then
7875 # The compiler can only warn and ignore the option if not recognized
7876 # So say no if there are warnings other than the usual output.
7877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7880 lt_cv_prog_compiler_rtti_exceptions=yes
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7887 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7889 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7890 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7902 lt_prog_compiler_wl=
7903 lt_prog_compiler_pic=
7904 lt_prog_compiler_static=
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7907 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7909 if test "$GCC" = yes; then
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_static='-static'
7915 # All AIX code is PIC.
7916 if test "$host_cpu" = ia64; then
7917 # AIX 5 now supports IA64 processor
7918 lt_prog_compiler_static='-Bstatic'
7925 # see comment about AmigaOS4 .so support
7926 lt_prog_compiler_pic='-fPIC'
7929 # FIXME: we need at least 68020 code to build shared libraries, but
7930 # adding the `-m68020' flag to GCC prevents building anything better,
7932 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7937 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7938 # PIC is the default for these OSes.
7941 mingw* | cygwin* | pw32* | os2* | cegcc*)
7942 # This hack is so that the source file can tell whether it is being
7943 # built for inclusion in a dll (and should export symbols for example).
7944 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7945 # (--disable-auto-import) libraries
7946 lt_prog_compiler_pic='-DDLL_EXPORT'
7949 darwin* | rhapsody*)
7950 # PIC is the default on this platform
7951 # Common symbols not allowed in MH_DYLIB files
7952 lt_prog_compiler_pic='-fno-common'
7956 # PIC is the default for Haiku.
7957 # The "-static" flag exists, but is broken.
7958 lt_prog_compiler_static=
7962 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7963 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7964 # sets the default TLS model and affects inlining.
7970 lt_prog_compiler_pic='-fPIC'
7976 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7977 # Instead, we relocate shared libraries at runtime.
7981 # Just because we use GCC doesn't mean we suddenly get shared libraries
7982 # on systems that don't support them.
7983 lt_prog_compiler_can_build_shared=no
7988 # QNX uses GNU C++, but need to define -shared option too, otherwise
7990 lt_prog_compiler_pic='-fPIC -shared'
7994 if test -d /usr/nec; then
7995 lt_prog_compiler_pic=-Kconform_pic
8000 lt_prog_compiler_pic='-fPIC'
8004 case $cc_basename in
8005 nvcc*) # Cuda Compiler Driver 2.2
8006 lt_prog_compiler_wl='-Xlinker '
8007 lt_prog_compiler_pic='-Xcompiler -fPIC'
8011 # PORTME Check for flag to pass linker flags through the system compiler.
8014 lt_prog_compiler_wl='-Wl,'
8015 if test "$host_cpu" = ia64; then
8016 # AIX 5 now supports IA64 processor
8017 lt_prog_compiler_static='-Bstatic'
8019 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8023 mingw* | cygwin* | pw32* | os2* | cegcc*)
8024 # This hack is so that the source file can tell whether it is being
8025 # built for inclusion in a dll (and should export symbols for example).
8026 lt_prog_compiler_pic='-DDLL_EXPORT'
8029 hpux9* | hpux10* | hpux11*)
8030 lt_prog_compiler_wl='-Wl,'
8031 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8038 lt_prog_compiler_pic='+Z'
8041 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8042 lt_prog_compiler_static='${wl}-a ${wl}archive'
8045 irix5* | irix6* | nonstopux*)
8046 lt_prog_compiler_wl='-Wl,'
8047 # PIC (with -KPIC) is the default.
8048 lt_prog_compiler_static='-non_shared'
8051 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8052 case $cc_basename in
8053 # old Intel for x86_64 which still supported -KPIC.
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-static'
8059 # icc used to be incompatible with GCC.
8060 # ICC 10 doesn't accept -KPIC any more.
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-fPIC'
8064 lt_prog_compiler_static='-static'
8066 # Lahey Fortran 8.1.
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='--shared'
8070 lt_prog_compiler_static='--static'
8072 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8073 # Portland Group compilers (*not* the Pentium gcc compiler,
8074 # which looks to be a dead project)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='-fpic'
8077 lt_prog_compiler_static='-Bstatic'
8080 lt_prog_compiler_wl='-Wl,'
8081 # All Alpha code is PIC.
8082 lt_prog_compiler_static='-non_shared'
8084 xl* | bgxl* | bgf* | mpixl*)
8085 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_pic='-qpic'
8088 lt_prog_compiler_static='-qstaticlink'
8091 case `$CC -V 2>&1 | sed 5q` in
8092 *Sun\ F* | *Sun*Fortran*)
8093 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 lt_prog_compiler_wl=''
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='-KPIC'
8111 lt_prog_compiler_static='-Bstatic'
8115 # QNX uses GNU C++, but need to define -shared option too, otherwise
8117 lt_prog_compiler_pic='-fPIC -shared'
8120 osf3* | osf4* | osf5*)
8121 lt_prog_compiler_wl='-Wl,'
8122 # All OSF/1 code is PIC.
8123 lt_prog_compiler_static='-non_shared'
8127 lt_prog_compiler_static='-non_shared'
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 case $cc_basename in
8135 lt_prog_compiler_wl='-Qoption ld ';;
8137 lt_prog_compiler_wl='-Wl,';;
8142 lt_prog_compiler_wl='-Qoption ld '
8143 lt_prog_compiler_pic='-PIC'
8144 lt_prog_compiler_static='-Bstatic'
8147 sysv4 | sysv4.2uw2* | sysv4.3*)
8148 lt_prog_compiler_wl='-Wl,'
8149 lt_prog_compiler_pic='-KPIC'
8150 lt_prog_compiler_static='-Bstatic'
8154 if test -d /usr/nec ;then
8155 lt_prog_compiler_pic='-Kconform_pic'
8156 lt_prog_compiler_static='-Bstatic'
8160 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-Bstatic'
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_can_build_shared=no
8172 lt_prog_compiler_pic='-pic'
8173 lt_prog_compiler_static='-Bstatic'
8177 lt_prog_compiler_can_build_shared=no
8183 # For platforms which do not support PIC, -DPIC is meaningless:
8185 lt_prog_compiler_pic=
8188 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8192 $as_echo "$lt_prog_compiler_pic" >&6; }
8200 # Check to make sure the PIC flag actually works.
8202 if test -n "$lt_prog_compiler_pic"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8204 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8205 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
8208 lt_cv_prog_compiler_pic_works=no
8209 ac_outfile=conftest.$ac_objext
8210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8211 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8212 # Insert the option either (1) after the last *FLAGS variable, or
8213 # (2) before a word containing "conftest.", or (3) at the end.
8214 # Note that $ac_compile itself does not contain backslashes and begins
8215 # with a dollar sign (not a hyphen), so the echo should work correctly.
8216 # The option is referenced via a variable to avoid confusing sed.
8217 lt_compile=`echo "$ac_compile" | $SED \
8218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220 -e 's:$: $lt_compiler_flag:'`
8221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8222 (eval "$lt_compile" 2>conftest.err)
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 if (exit $ac_status) && test -s "$ac_outfile"; then
8227 # The compiler can only warn and ignore the option if not recognized
8228 # So say no if there are warnings other than the usual output.
8229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8232 lt_cv_prog_compiler_pic_works=yes
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8239 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8241 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8242 case $lt_prog_compiler_pic in
8244 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8247 lt_prog_compiler_pic=
8248 lt_prog_compiler_can_build_shared=no
8259 # Check to make sure the static flag actually works.
8261 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8263 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8264 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8267 lt_cv_prog_compiler_static_works=no
8268 save_LDFLAGS="$LDFLAGS"
8269 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8270 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8272 # The linker can only warn and ignore the option if not recognized
8273 # So say no if there are warnings
8274 if test -s conftest.err; then
8275 # Append any errors to the config.log.
8276 cat conftest.err 1>&5
8277 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279 if diff conftest.exp conftest.er2 >/dev/null; then
8280 lt_cv_prog_compiler_static_works=yes
8283 lt_cv_prog_compiler_static_works=yes
8287 LDFLAGS="$save_LDFLAGS"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8291 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8293 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8296 lt_prog_compiler_static=
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8307 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8310 lt_cv_prog_compiler_c_o=no
8311 $RM -r conftest 2>/dev/null
8315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317 lt_compiler_flag="-o out/conftest2.$ac_objext"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 lt_compile=`echo "$ac_compile" | $SED \
8323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325 -e 's:$: $lt_compiler_flag:'`
8326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8327 (eval "$lt_compile" 2>out/conftest.err)
8329 cat out/conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings
8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8338 lt_cv_prog_compiler_c_o=yes
8343 # SGI C++ compiler will create directory out/ii_files/ for
8344 # template instantiation
8345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8346 $RM out/* && rmdir out
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8362 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8365 lt_cv_prog_compiler_c_o=no
8366 $RM -r conftest 2>/dev/null
8370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8372 lt_compiler_flag="-o out/conftest2.$ac_objext"
8373 # Insert the option either (1) after the last *FLAGS variable, or
8374 # (2) before a word containing "conftest.", or (3) at the end.
8375 # Note that $ac_compile itself does not contain backslashes and begins
8376 # with a dollar sign (not a hyphen), so the echo should work correctly.
8377 lt_compile=`echo "$ac_compile" | $SED \
8378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380 -e 's:$: $lt_compiler_flag:'`
8381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8382 (eval "$lt_compile" 2>out/conftest.err)
8384 cat out/conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8388 # The compiler can only warn and ignore the option if not recognized
8389 # So say no if there are warnings
8390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8393 lt_cv_prog_compiler_c_o=yes
8398 # SGI C++ compiler will create directory out/ii_files/ for
8399 # template instantiation
8400 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8401 $RM out/* && rmdir out
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8408 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8413 hard_links="nottested"
8414 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8415 # do not overwrite the value of need_locks provided by the user
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8417 $as_echo_n "checking if we can lock with hard links... " >&6; }
8420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8422 ln conftest.a conftest.b 2>&5 || hard_links=no
8423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8425 $as_echo "$hard_links" >&6; }
8426 if test "$hard_links" = no; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8428 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8441 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8444 allow_undefined_flag=
8445 always_export_symbols=no
8447 archive_expsym_cmds=
8448 compiler_needs_object=no
8449 enable_shared_with_static_runtimes=no
8450 export_dynamic_flag_spec=
8451 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8452 hardcode_automatic=no
8454 hardcode_direct_absolute=no
8455 hardcode_libdir_flag_spec=
8456 hardcode_libdir_flag_spec_ld=
8457 hardcode_libdir_separator=
8459 hardcode_shlibpath_var=unsupported
8461 link_all_deplibs=unknown
8464 old_archive_from_new_cmds=
8465 old_archive_from_expsyms_cmds=
8466 thread_safe_flag_spec=
8467 whole_archive_flag_spec=
8468 # include_expsyms should be a list of space-separated symbols to be *always*
8469 # included in the symbol list
8471 # exclude_expsyms can be an extended regexp of symbols to exclude
8472 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8473 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8474 # as well as any symbol that contains `d'.
8475 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8476 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8477 # platforms (ab)use it in PIC code, but their linkers get confused if
8478 # the symbol is explicitly referenced. Since portable code cannot
8479 # rely on this symbol name, it's probably fine to never include it in
8480 # preloaded symbol tables.
8481 # Exclude shared library initialization/finalization symbols.
8482 extract_expsyms_cmds=
8485 cygwin* | mingw* | pw32* | cegcc*)
8486 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8487 # When not using gcc, we currently assume that we are using
8488 # Microsoft Visual C++.
8489 if test "$GCC" != yes; then
8494 # we just hope/assume this is gcc and not c89 (= MSVC++)
8504 # On some targets, GNU ld is compatible enough with the native linker
8505 # that we're better off using the native interface for both.
8506 lt_use_gnu_ld_interface=no
8507 if test "$with_gnu_ld" = yes; then
8510 # The AIX port of GNU ld has always aspired to compatibility
8511 # with the native linker. However, as the warning in the GNU ld
8512 # block says, versions before 2.19.5* couldn't really create working
8513 # shared libraries, regardless of the interface used.
8514 case `$LD -v 2>&1` in
8515 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8516 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8517 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8519 lt_use_gnu_ld_interface=yes
8524 lt_use_gnu_ld_interface=yes
8529 if test "$lt_use_gnu_ld_interface" = yes; then
8530 # If archive_cmds runs LD, not CC, wlarc should be empty
8533 # Set some defaults for GNU ld with shared library support. These
8534 # are reset later if shared libraries are not supported. Putting them
8535 # here allows them to be overridden if necessary.
8536 runpath_var=LD_RUN_PATH
8537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8538 export_dynamic_flag_spec='${wl}--export-dynamic'
8539 # ancient GNU ld didn't support --whole-archive et. al.
8540 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8541 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8543 whole_archive_flag_spec=
8545 supports_anon_versioning=no
8546 case `$LD -v 2>&1` in
8547 *GNU\ gold*) supports_anon_versioning=yes ;;
8548 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8549 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8550 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8551 *\ 2.11.*) ;; # other 2.11 versions
8552 *) supports_anon_versioning=yes ;;
8555 # See if GNU ld supports shared libraries.
8558 # On AIX/PPC, the GNU linker is very broken
8559 if test "$host_cpu" != ia64; then
8563 *** Warning: the GNU linker, at least up to release 2.19, is reported
8564 *** to be unable to reliably create shared libraries on AIX.
8565 *** Therefore, libtool is disabling shared libraries support. If you
8566 *** really care for shared libraries, you may want to install binutils
8567 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8568 *** You will then need to restart the configuration process.
8577 # see comment about AmigaOS4 .so support
8578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds=''
8582 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)'
8583 hardcode_libdir_flag_spec='-L$libdir'
8584 hardcode_minus_L=yes
8590 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8591 allow_undefined_flag=unsupported
8592 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8593 # support --undefined. This deserves some investigation. FIXME
8594 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 cygwin* | mingw* | pw32* | cegcc*)
8601 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8602 # as there is no search path for DLLs.
8603 hardcode_libdir_flag_spec='-L$libdir'
8604 export_dynamic_flag_spec='${wl}--export-all-symbols'
8605 allow_undefined_flag=unsupported
8606 always_export_symbols=no
8607 enable_shared_with_static_runtimes=yes
8608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8610 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8612 # If the export-symbols file already is a .def file (1st line
8613 # is EXPORTS), use it as is; otherwise, prepend...
8614 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8615 cp $export_symbols $output_objdir/$soname.def;
8617 echo EXPORTS > $output_objdir/$soname.def;
8618 cat $export_symbols >> $output_objdir/$soname.def;
8620 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628 link_all_deplibs=yes
8633 hardcode_shlibpath_var=no
8634 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8635 export_dynamic_flag_spec='${wl}-E'
8636 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8637 # Instead, shared libraries are loaded at an image base (0x10000000 by
8638 # default) and relocated if they conflict, which is a slow very memory
8639 # consuming and fragmenting process. To avoid this, we pick a random,
8640 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8641 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8643 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'
8646 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8648 if test "$host_os" = linux-dietlibc; then
8649 case $cc_basename in
8650 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8653 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8654 && test "$tmp_diet" = no
8657 tmp_sharedflag='-shared'
8658 case $cc_basename,$host_cpu in
8659 pgcc*) # Portland Group C compiler
8660 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'
8661 tmp_addflag=' $pic_flag'
8663 pgf77* | pgf90* | pgf95* | pgfortran*)
8664 # Portland Group f77 and f90 compilers
8665 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'
8666 tmp_addflag=' $pic_flag -Mnomain' ;;
8667 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8668 tmp_addflag=' -i_dynamic' ;;
8669 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8670 tmp_addflag=' -i_dynamic -nofor_main' ;;
8671 ifc* | ifort*) # Intel Fortran compiler
8672 tmp_addflag=' -nofor_main' ;;
8673 lf95*) # Lahey Fortran 8.1
8674 whole_archive_flag_spec=
8675 tmp_sharedflag='--shared' ;;
8676 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8677 tmp_sharedflag='-qmkshrobj'
8679 nvcc*) # Cuda Compiler Driver 2.2
8680 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'
8681 compiler_needs_object=yes
8684 case `$CC -V 2>&1 | sed 5q` in
8685 *Sun\ C*) # Sun C 5.9
8686 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'
8687 compiler_needs_object=yes
8688 tmp_sharedflag='-G' ;;
8689 *Sun\ F*) # Sun Fortran 8.3
8690 tmp_sharedflag='-G' ;;
8692 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 if test "x$supports_anon_versioning" = xyes; then
8695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697 echo "local: *; };" >> $output_objdir/$libname.ver~
8698 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8701 case $cc_basename in
8702 xlf* | bgf* | bgxlf* | mpixlf*)
8703 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8704 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8705 hardcode_libdir_flag_spec=
8706 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8707 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8708 if test "x$supports_anon_versioning" = xyes; then
8709 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8710 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8711 echo "local: *; };" >> $output_objdir/$libname.ver~
8712 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8723 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737 *** create shared libraries on Solaris systems. Therefore, libtool
8738 *** is disabling shared libraries support. We urge you to upgrade GNU
8739 *** binutils to release 2.9.1 or newer. Another option is to modify
8740 *** your PATH or compiler configuration so that the native linker is
8741 *** used, and then restart.
8744 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8753 case `$LD -v 2>&1` in
8754 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8759 *** reliably create shared libraries on SCO systems. Therefore, libtool
8760 *** is disabling shared libraries support. We urge you to upgrade GNU
8761 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8762 *** your PATH or compiler configuration so that the native linker is
8763 *** used, and then restart.
8768 # For security reasons, it is highly recommended that you always
8769 # use absolute paths for naming shared libraries, and exclude the
8770 # DT_RUNPATH tag from executables and libraries. But doing so
8771 # requires that you compile everything twice, which is a pain.
8772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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'
8784 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8787 hardcode_shlibpath_var=no
8791 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8800 if test "$ld_shlibs" = no; then
8802 hardcode_libdir_flag_spec=
8803 export_dynamic_flag_spec=
8804 whole_archive_flag_spec=
8807 # PORTME fill in a description of your system's linker (not GNU ld)
8810 allow_undefined_flag=unsupported
8811 always_export_symbols=yes
8812 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'
8813 # Note: this linker hardcodes the directories in LIBPATH if there
8814 # are no directories specified by -L.
8815 hardcode_minus_L=yes
8816 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8817 # Neither direct hardcoding nor static linking is supported with a
8819 hardcode_direct=unsupported
8824 if test "$host_cpu" = ia64; then
8825 # On IA64, the linker does run time linking by default, so we don't
8826 # have to do anything special.
8827 aix_use_runtimelinking=no
8828 exp_sym_flag='-Bexport'
8831 # If we're using GNU nm, then we don't want the "-C" option.
8832 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8833 # Also, AIX nm treats weak defined symbols like other global
8834 # defined symbols, whereas GNU nm marks them as "W".
8835 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8836 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'
8838 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'
8840 aix_use_runtimelinking=no
8842 # Test if we are trying to use run time linking or normal
8843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8844 # need to do runtime linking.
8845 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8846 for ld_flag in $LDFLAGS; do
8847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8848 aix_use_runtimelinking=yes
8855 exp_sym_flag='-bexport'
8856 no_entry_flag='-bnoentry'
8859 # When large executables or shared objects are built, AIX ld can
8860 # have problems creating the table of contents. If linking a library
8861 # or program results in "error TOC overflow" add -mminimal-toc to
8862 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8863 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8867 hardcode_direct_absolute=yes
8868 hardcode_libdir_separator=':'
8869 link_all_deplibs=yes
8870 file_list_spec='${wl}-f,'
8872 if test "$GCC" = yes; then
8873 case $host_os in aix4.[012]|aix4.[012].*)
8874 # We only want to do this on AIX 4.2 and lower, the check
8875 # below for broken collect2 doesn't work under 4.3+
8876 collect2name=`${CC} -print-prog-name=collect2`
8877 if test -f "$collect2name" &&
8878 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8880 # We have reworked collect2
8883 # We have old collect2
8884 hardcode_direct=unsupported
8885 # It fails to find uninstalled libraries when the uninstalled
8886 # path is not listed in the libpath. Setting hardcode_minus_L
8887 # to unsupported forces relinking
8888 hardcode_minus_L=yes
8889 hardcode_libdir_flag_spec='-L$libdir'
8890 hardcode_libdir_separator=
8894 shared_flag='-shared'
8895 if test "$aix_use_runtimelinking" = yes; then
8896 shared_flag="$shared_flag "'${wl}-G'
8900 if test "$host_cpu" = ia64; then
8901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8902 # chokes on -Wl,-G. The following line is correct:
8905 if test "$aix_use_runtimelinking" = yes; then
8906 shared_flag='${wl}-G'
8908 shared_flag='${wl}-bM:SRE'
8913 export_dynamic_flag_spec='${wl}-bexpall'
8914 # It seems that -bexpall does not export symbols beginning with
8915 # underscore (_), so it is better to generate a list of symbols to export.
8916 always_export_symbols=yes
8917 if test "$aix_use_runtimelinking" = yes; then
8918 # Warning - without using the other runtime loading flags (-brtl),
8919 # -berok will link without error, but may produce a broken library.
8920 allow_undefined_flag='-berok'
8921 # Determine the default libpath from the value encoded in an
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8934 if ac_fn_c_try_link "$LINENO"; then :
8936 lt_aix_libpath_sed='
8937 /Import File Strings/,/^$/ {
8943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 # Check for a 64-bit object if we didn't find anything.
8945 if test -z "$aix_libpath"; then
8946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949 rm -f core conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8951 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8954 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"
8956 if test "$host_cpu" = ia64; then
8957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8958 allow_undefined_flag="-z nodefs"
8959 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"
8961 # Determine the default libpath from the value encoded in an
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8974 if ac_fn_c_try_link "$LINENO"; then :
8976 lt_aix_libpath_sed='
8977 /Import File Strings/,/^$/ {
8983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 # Check for a 64-bit object if we didn't find anything.
8985 if test -z "$aix_libpath"; then
8986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8989 rm -f core conftest.err conftest.$ac_objext \
8990 conftest$ac_exeext conftest.$ac_ext
8991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8994 # Warning - without using the other run time loading flags,
8995 # -berok will link without error, but may produce a broken library.
8996 no_undefined_flag=' ${wl}-bernotok'
8997 allow_undefined_flag=' ${wl}-berok'
8998 if test "$with_gnu_ld" = yes; then
8999 # We only use this code for GNU lds that support --whole-archive.
9000 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9002 # Exported symbols can be pulled into shared objects from archives
9003 whole_archive_flag_spec='$convenience'
9005 archive_cmds_need_lc=yes
9006 # This is similar to how AIX traditionally builds its shared libraries.
9007 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'
9015 # see comment about AmigaOS4 .so support
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds=''
9020 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)'
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_minus_L=yes
9028 export_dynamic_flag_spec=-rdynamic
9031 cygwin* | mingw* | pw32* | cegcc*)
9032 # When not using gcc, we currently assume that we are using
9033 # Microsoft Visual C++.
9034 # hardcode_libdir_flag_spec is actually meaningless, as there is
9035 # no search path for DLLs.
9036 hardcode_libdir_flag_spec=' '
9037 allow_undefined_flag=unsupported
9038 # Tell ltmain to make .lib files, not .a files.
9040 # Tell ltmain to make .dll files, not .so files.
9042 # FIXME: Setting linknames here is a bad hack.
9043 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9044 # The linker will automatically build a .lib file if we build a DLL.
9045 old_archive_from_new_cmds='true'
9046 # FIXME: Should let the user specify the lib program.
9047 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9048 fix_srcfile_path='`cygpath -w "$srcfile"`'
9049 enable_shared_with_static_runtimes=yes
9052 darwin* | rhapsody*)
9055 archive_cmds_need_lc=no
9057 hardcode_automatic=yes
9058 hardcode_shlibpath_var=unsupported
9059 if test "$lt_cv_ld_force_load" = "yes"; then
9060 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\"`'
9062 whole_archive_flag_spec=''
9064 link_all_deplibs=yes
9065 allow_undefined_flag="$_lt_dar_allow_undefined"
9066 case $cc_basename in
9067 ifort*) _lt_dar_can_shared=yes ;;
9068 *) _lt_dar_can_shared=$GCC ;;
9070 if test "$_lt_dar_can_shared" = "yes"; then
9071 output_verbose_link_cmd=func_echo_all
9072 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9073 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9074 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}"
9075 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}"
9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085 hardcode_libdir_flag_spec='-L$libdir'
9086 hardcode_shlibpath_var=no
9093 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9094 # support. Future versions do this automatically, but an explicit c++rt0.o
9095 # does not break anything, and helps significantly (at the cost of a little
9098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9099 hardcode_libdir_flag_spec='-R$libdir'
9101 hardcode_shlibpath_var=no
9104 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_minus_L=yes
9109 hardcode_shlibpath_var=no
9112 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9113 freebsd* | dragonfly*)
9114 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9115 hardcode_libdir_flag_spec='-R$libdir'
9117 hardcode_shlibpath_var=no
9121 if test "$GCC" = yes; then
9122 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'
9124 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'
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_separator=:
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9133 export_dynamic_flag_spec='${wl}-E'
9137 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9138 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9142 if test "$with_gnu_ld" = no; then
9143 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9144 hardcode_libdir_flag_spec_ld='+b $libdir'
9145 hardcode_libdir_separator=:
9147 hardcode_direct_absolute=yes
9148 export_dynamic_flag_spec='${wl}-E'
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L=yes
9156 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9159 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9171 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9174 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9178 # Older versions of the 11.00 compiler do not understand -b yet
9179 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9181 $as_echo_n "checking if $CC understands -b... " >&6; }
9182 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9185 lt_cv_prog_compiler__b=no
9186 save_LDFLAGS="$LDFLAGS"
9187 LDFLAGS="$LDFLAGS -b"
9188 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9189 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9190 # The linker can only warn and ignore the option if not recognized
9191 # So say no if there are warnings
9192 if test -s conftest.err; then
9193 # Append any errors to the config.log.
9194 cat conftest.err 1>&5
9195 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9197 if diff conftest.exp conftest.er2 >/dev/null; then
9198 lt_cv_prog_compiler__b=yes
9201 lt_cv_prog_compiler__b=yes
9205 LDFLAGS="$save_LDFLAGS"
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9209 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9211 if test x"$lt_cv_prog_compiler__b" = xyes; then
9212 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9214 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9220 if test "$with_gnu_ld" = no; then
9221 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9222 hardcode_libdir_separator=:
9227 hardcode_shlibpath_var=no
9231 hardcode_direct_absolute=yes
9232 export_dynamic_flag_spec='${wl}-E'
9234 # hardcode_minus_L: Not really in the search PATH,
9235 # but as the default location of the library.
9236 hardcode_minus_L=yes
9242 irix5* | irix6* | nonstopux*)
9243 if test "$GCC" = yes; then
9244 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'
9245 # Try to use the -exported_symbol ld option, if it does not
9246 # work, assume that -exports_file does not work either and
9247 # implicitly export all symbols.
9248 save_LDFLAGS="$LDFLAGS"
9249 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9254 if ac_fn_c_try_link "$LINENO"; then :
9255 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'
9258 rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
9260 LDFLAGS="$save_LDFLAGS"
9262 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'
9263 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'
9265 archive_cmds_need_lc='no'
9266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9267 hardcode_libdir_separator=:
9269 link_all_deplibs=yes
9273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9276 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9278 hardcode_libdir_flag_spec='-R$libdir'
9280 hardcode_shlibpath_var=no
9284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287 hardcode_libdir_separator=:
9288 hardcode_shlibpath_var=no
9295 if test -f /usr/libexec/ld.so; then
9297 hardcode_shlibpath_var=no
9298 hardcode_direct_absolute=yes
9299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9302 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9303 export_dynamic_flag_spec='${wl}-E'
9306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_libdir_flag_spec='-R$libdir'
9311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322 hardcode_libdir_flag_spec='-L$libdir'
9323 hardcode_minus_L=yes
9324 allow_undefined_flag=unsupported
9325 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'
9326 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9330 if test "$GCC" = yes; then
9331 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9332 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'
9334 allow_undefined_flag=' -expect_unresolved \*'
9335 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'
9337 archive_cmds_need_lc='no'
9338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339 hardcode_libdir_separator=:
9342 osf4* | osf5*) # as osf3* with the addition of -msym flag
9343 if test "$GCC" = yes; then
9344 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9345 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'
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9348 allow_undefined_flag=' -expect_unresolved \*'
9349 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'
9350 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~
9351 $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'
9353 # Both c and cxx compiler support -rpath directly
9354 hardcode_libdir_flag_spec='-rpath $libdir'
9356 archive_cmds_need_lc='no'
9357 hardcode_libdir_separator=:
9361 no_undefined_flag=' -z defs'
9362 if test "$GCC" = yes; then
9364 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9366 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9368 case `$CC -V 2>&1` in
9371 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9373 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9377 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9383 hardcode_libdir_flag_spec='-R$libdir'
9384 hardcode_shlibpath_var=no
9386 solaris2.[0-5] | solaris2.[0-5].*) ;;
9388 # The compiler driver will combine and reorder linker options,
9389 # but understands `-z linker_flag'. GCC discards it without `$wl',
9390 # but is careful enough not to reorder.
9391 # Supported since Solaris 2.6 (maybe 2.5.1?)
9392 if test "$GCC" = yes; then
9393 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9395 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9399 link_all_deplibs=yes
9403 if test "x$host_vendor" = xsequent; then
9404 # Use $CC to link under sequent, because it throws in some extra .o
9405 # files that make .init and .fini sections work.
9406 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9408 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_minus_L=yes
9413 hardcode_shlibpath_var=no
9417 case $host_vendor in
9419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9420 hardcode_direct=yes # is this really true???
9423 ## LD is ld it makes a PLAMLIB
9424 ## CC just makes a GrossModule.
9425 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9426 reload_cmds='$CC -r -o $output$reload_objs'
9430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9434 runpath_var='LD_RUN_PATH'
9435 hardcode_shlibpath_var=no
9439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_shlibpath_var=no
9441 export_dynamic_flag_spec='-Bexport'
9445 if test -d /usr/nec; then
9446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_shlibpath_var=no
9448 runpath_var=LD_RUN_PATH
9449 hardcode_runpath_var=yes
9454 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9455 no_undefined_flag='${wl}-z,text'
9456 archive_cmds_need_lc=no
9457 hardcode_shlibpath_var=no
9458 runpath_var='LD_RUN_PATH'
9460 if test "$GCC" = yes; then
9461 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9464 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 sysv5* | sco3.2v5* | sco5v6*)
9470 # Note: We can NOT use -z defs as we might desire, because we do not
9471 # link with -lc, and that would cause any symbols used from libc to
9472 # always be unresolved, which means just about no library would
9473 # ever link correctly. If we're not using GNU ld we use -z text
9474 # though, which does catch some bad symbols but isn't as heavy-handed
9476 no_undefined_flag='${wl}-z,text'
9477 allow_undefined_flag='${wl}-z,nodefs'
9478 archive_cmds_need_lc=no
9479 hardcode_shlibpath_var=no
9480 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9481 hardcode_libdir_separator=':'
9482 link_all_deplibs=yes
9483 export_dynamic_flag_spec='${wl}-Bexport'
9484 runpath_var='LD_RUN_PATH'
9486 if test "$GCC" = yes; then
9487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_shlibpath_var=no
9506 if test x$host_vendor = xsni; then
9508 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9509 export_dynamic_flag_spec='${wl}-Blargedynsym'
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9516 $as_echo "$ld_shlibs" >&6; }
9517 test "$ld_shlibs" = no && can_build_shared=no
9519 with_gnu_ld=$with_gnu_ld
9536 # Do we need to explicitly link libc?
9538 case "x$archive_cmds_need_lc" in
9540 # Assume -lc should be added
9541 archive_cmds_need_lc=yes
9543 if test "$enable_shared" = yes && test "$GCC" = yes; then
9544 case $archive_cmds in
9546 # FIXME: we may have to deal with multi-command sequences.
9549 # Test whether the compiler implicitly links with -lc since on some
9550 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9551 # to ld, don't add -lc before -lgcc.
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9553 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9554 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9555 $as_echo_n "(cached) " >&6
9558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9561 (eval $ac_compile) 2>&5
9563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9564 test $ac_status = 0; } 2>conftest.err; then
9567 libobjs=conftest.$ac_objext
9569 wl=$lt_prog_compiler_wl
9570 pic_flag=$lt_prog_compiler_pic
9576 lt_save_allow_undefined_flag=$allow_undefined_flag
9577 allow_undefined_flag=
9578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9579 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9582 test $ac_status = 0; }
9584 lt_cv_archive_cmds_need_lc=no
9586 lt_cv_archive_cmds_need_lc=yes
9588 allow_undefined_flag=$lt_save_allow_undefined_flag
9590 cat conftest.err 1>&5
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9596 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9597 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9761 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9763 if test "$GCC" = yes; then
9765 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9766 *) lt_awk_arg="/^libraries:/" ;;
9769 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9770 *) lt_sed_strip_eq="s,=/,/,g" ;;
9772 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9773 case $lt_search_path_spec in
9775 # if the path contains ";" then we assume it to be the separator
9776 # otherwise default to the standard path separator (i.e. ":") - it is
9777 # assumed that no part of a normal pathname contains ";" but that should
9778 # okay in the real world where ";" in dirpaths is itself problematic.
9779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9782 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9785 # Ok, now we have the path, separated by spaces, we can step through it
9786 # and add multilib dir if necessary.
9787 lt_tmp_lt_search_path_spec=
9788 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9789 for lt_sys_path in $lt_search_path_spec; do
9790 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9791 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9793 test -d "$lt_sys_path" && \
9794 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9797 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9798 BEGIN {RS=" "; FS="/|\n";} {
9801 for (lt_i = NF; lt_i > 0; lt_i--) {
9802 if ($lt_i != "" && $lt_i != ".") {
9803 if ($lt_i == "..") {
9806 if (lt_count == 0) {
9807 lt_foo="/" $lt_i lt_foo;
9814 if (lt_foo != "") { lt_freq[lt_foo]++; }
9815 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9817 # AWK program above erroneously prepends '/' to C:/dos/paths
9820 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9821 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9823 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9825 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9828 libname_spec='lib$name'
9836 shlibpath_overrides_runpath=unknown
9838 dynamic_linker="$host_os ld.so"
9839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9840 need_lib_prefix=unknown
9841 hardcode_into_libs=no
9843 # when you set need_version to no, make sure it does not cause -set_version
9844 # flags to be left without arguments
9845 need_version=unknown
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9851 shlibpath_var=LIBPATH
9853 # AIX 3 has no versioning support, so we append a major version to the name.
9854 soname_spec='${libname}${release}${shared_ext}$major'
9861 hardcode_into_libs=yes
9862 if test "$host_cpu" = ia64; then
9863 # AIX 5 supports IA64
9864 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9865 shlibpath_var=LD_LIBRARY_PATH
9867 # With GCC up to 2.95.x, collect2 would create an import file
9868 # for dependence libraries. The import file would start with
9869 # the line `#! .'. This would cause the generated library to
9870 # depend on `.', always an invalid library. This was fixed in
9871 # development snapshots of GCC prior to 3.0.
9873 aix4 | aix4.[01] | aix4.[01].*)
9874 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9876 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9883 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9884 # soname into executable. Probably we can add versioning support to
9885 # collect2, so additional links can be useful in future.
9886 if test "$aix_use_runtimelinking" = yes; then
9887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9888 # instead of lib<name>.a to let people know that these are not
9889 # typical AIX shared libraries.
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 # We preserve .a as extension for shared libraries through AIX4.2
9893 # and later when we are not doing run time linking.
9894 library_names_spec='${libname}${release}.a $libname.a'
9895 soname_spec='${libname}${release}${shared_ext}$major'
9897 shlibpath_var=LIBPATH
9904 # Since July 2007 AmigaOS4 officially supports .so libraries.
9905 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 library_names_spec='$libname.ixlibrary $libname.a'
9910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9911 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'
9917 library_names_spec='${libname}${shared_ext}'
9918 dynamic_linker="$host_os ld.so"
9919 shlibpath_var=LIBRARY_PATH
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9931 # the default ld.so.conf also contains /usr/contrib/lib and
9932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9933 # libtool to hard-code these into programs
9936 cygwin* | mingw* | pw32* | cegcc*)
9937 version_type=windows
9942 case $GCC,$host_os in
9943 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9944 library_names_spec='$libname.dll.a'
9945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9946 postinstall_cmds='base_file=`basename \${file}`~
9947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9948 dldir=$destdir/`dirname \$dlpath`~
9949 test -d \$dldir || mkdir -p \$dldir~
9950 $install_prog $dir/$dlname \$dldir/$dlname~
9951 chmod a+x \$dldir/$dlname~
9952 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9953 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9956 dlpath=$dir/\$dldll~
9958 shlibpath_overrides_runpath=yes
9962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9968 # MinGW DLLs use traditional 'lib' prefix
9969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 # pw32 DLLs use 'pw' prefix rather than 'lib'
9973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9982 dynamic_linker='Win32 ld.exe'
9983 # FIXME: first we should search . and the directory the executable is in
9987 darwin* | rhapsody*)
9988 dynamic_linker="$host_os dyld"
9992 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9993 soname_spec='${libname}${release}${major}$shared_ext'
9994 shlibpath_overrides_runpath=yes
9995 shlibpath_var=DYLD_LIBRARY_PATH
9996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 shlibpath_var=LD_LIBRARY_PATH
10015 freebsd* | dragonfly*)
10016 # DragonFly does not have aout. When/if they implement a new
10017 # versioning mechanism, adjust this.
10018 if test -x /usr/bin/objformat; then
10019 objformat=`/usr/bin/objformat`
10022 freebsd[123]*) objformat=aout ;;
10023 *) objformat=elf ;;
10026 version_type=freebsd-$objformat
10027 case $version_type in
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10038 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes
10043 freebsd3.[01]* | freebsdelf3.[01]*)
10044 shlibpath_overrides_runpath=yes
10045 hardcode_into_libs=yes
10047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10052 *) # from 4.6 on, and DragonFly
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 hardcode_into_libs=yes
10073 dynamic_linker="$host_os runtime_loader"
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 shlibpath_var=LIBRARY_PATH
10077 shlibpath_overrides_runpath=yes
10078 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10079 hardcode_into_libs=yes
10082 hpux9* | hpux10* | hpux11*)
10083 # Give a soname corresponding to the major version so that dld.sl refuses to
10084 # link against other versions.
10091 hardcode_into_libs=yes
10092 dynamic_linker="$host_os dld.so"
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 if test "X$HPUX_IA64_MODE" = X32; then
10098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 hardcode_into_libs=yes
10107 dynamic_linker="$host_os dld.sl"
10108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 dynamic_linker="$host_os dld.sl"
10118 shlibpath_var=SHLIB_PATH
10119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10124 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10125 postinstall_cmds='chmod 555 $lib'
10126 # or fails outright, so override atomically:
10127 install_override_mode=555
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
10139 hardcode_into_libs=yes
10142 irix5* | irix6* | nonstopux*)
10144 nonstopux*) version_type=nonstopux ;;
10146 if test "$lt_cv_prog_gnu_ld" = yes; then
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10157 irix5* | nonstopux*)
10158 libsuff= shlibsuff=
10161 case $LD in # libtool.m4 will add one of these switches to LD
10162 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10163 libsuff= shlibsuff= libmagic=32-bit;;
10164 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10165 libsuff=32 shlibsuff=N32 libmagic=N32;;
10166 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10167 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10168 *) libsuff= shlibsuff= libmagic=never-match;;
10172 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10173 shlibpath_overrides_runpath=no
10174 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10175 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10176 hardcode_into_libs=yes
10179 # No shared lib support for Linux oldld, aout, or coff.
10180 linux*oldld* | linux*aout* | linux*coff*)
10184 # This must be Linux ELF.
10185 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=no
10195 # Some binutils ld are patched to set DT_RUNPATH
10196 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10199 lt_cv_shlibpath_overrides_runpath=no
10200 save_LDFLAGS=$LDFLAGS
10201 save_libdir=$libdir
10202 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10203 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10217 lt_cv_shlibpath_overrides_runpath=yes
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LDFLAGS=$save_LDFLAGS
10223 libdir=$save_libdir
10227 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10229 # This implies no fast_install, which is unacceptable.
10230 # Some rework will be needed to allow for fast_install
10231 # before this can be enabled.
10232 hardcode_into_libs=yes
10234 # Append ld.so.conf contents to the search path
10235 if test -f /etc/ld.so.conf; then
10236 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' ' '`
10237 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10240 # We used to test for /lib/ld.so.1 and disable shared libraries on
10241 # powerpc, because MkLinux only supported shared libraries with the
10242 # GNU dynamic linker. Since this was broken with cross compilers,
10243 # most powerpc-linux boxes support dynamic linking these days and
10244 # people can always --disable-shared, the test was removed, and we
10245 # assume the GNU/Linux dynamic linker is in use.
10246 dynamic_linker='GNU/Linux ld.so'
10253 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10256 dynamic_linker='NetBSD (a.out) ld.so'
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 dynamic_linker='NetBSD ld.elf_so'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 shlibpath_overrides_runpath=yes
10264 hardcode_into_libs=yes
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=no
10282 hardcode_into_libs=yes
10283 dynamic_linker='ldqnx.so'
10288 sys_lib_dlsearch_path_spec="/usr/lib"
10290 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10292 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10293 *) need_version=no ;;
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10300 openbsd2.[89] | openbsd2.[89].*)
10301 shlibpath_overrides_runpath=no
10304 shlibpath_overrides_runpath=yes
10308 shlibpath_overrides_runpath=yes
10313 libname_spec='$name'
10316 library_names_spec='$libname${shared_ext} $libname.a'
10317 dynamic_linker='OS/2 ld.exe'
10318 shlibpath_var=LIBPATH
10321 osf3* | osf4* | osf5*)
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10329 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 hardcode_into_libs=yes
10345 # ldd complains unless libraries are executable
10346 postinstall_cmds='chmod +x $lib'
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 shlibpath_overrides_runpath=yes
10355 if test "$with_gnu_ld" = yes; then
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 case $host_vendor in
10368 shlibpath_overrides_runpath=no
10370 runpath_var=LD_RUN_PATH
10378 shlibpath_overrides_runpath=no
10379 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10385 if test -d /usr/nec ;then
10387 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10388 soname_spec='$libname${shared_ext}.$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10394 version_type=freebsd-elf
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 shlibpath_var=LD_LIBRARY_PATH
10400 shlibpath_overrides_runpath=yes
10401 hardcode_into_libs=yes
10402 if test "$with_gnu_ld" = yes; then
10403 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10405 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10408 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10412 sys_lib_dlsearch_path_spec='/usr/lib'
10416 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
10423 hardcode_into_libs=yes
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 shlibpath_var=LD_LIBRARY_PATH
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10438 $as_echo "$dynamic_linker" >&6; }
10439 test "$dynamic_linker" = no && can_build_shared=no
10441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10442 if test "$GCC" = yes; then
10443 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10446 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10447 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10449 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10450 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10545 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10547 if test -n "$hardcode_libdir_flag_spec" ||
10548 test -n "$runpath_var" ||
10549 test "X$hardcode_automatic" = "Xyes" ; then
10551 # We can hardcode non-existent directories.
10552 if test "$hardcode_direct" != no &&
10553 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10554 # have to relink, otherwise we might link with an installed library
10555 # when we should be linking with a yet-to-be-installed one
10556 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10557 test "$hardcode_minus_L" != no; then
10558 # Linking always hardcodes the temporary library directory.
10559 hardcode_action=relink
10561 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10562 hardcode_action=immediate
10565 # We cannot hardcode anything, or else we can only hardcode existing
10567 hardcode_action=unsupported
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10570 $as_echo "$hardcode_action" >&6; }
10572 if test "$hardcode_action" = relink ||
10573 test "$inherit_rpath" = yes; then
10574 # Fast installation is not supported
10575 enable_fast_install=no
10576 elif test "$shlibpath_overrides_runpath" = yes ||
10577 test "$enable_shared" = no; then
10578 # Fast installation is not necessary
10579 enable_fast_install=needless
10587 if test "x$enable_dlopen" != xyes; then
10588 enable_dlopen=unknown
10589 enable_dlopen_self=unknown
10590 enable_dlopen_self_static=unknown
10597 lt_cv_dlopen="load_add_on"
10599 lt_cv_dlopen_self=yes
10602 mingw* | pw32* | cegcc*)
10603 lt_cv_dlopen="LoadLibrary"
10608 lt_cv_dlopen="dlopen"
10613 # if libdl is installed we need to link against it
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10619 ac_check_lib_save_LIBS=$LIBS
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 ac_cv_lib_dl_dlopen=yes
10642 ac_cv_lib_dl_dlopen=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10650 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10654 lt_cv_dlopen="dyld"
10656 lt_cv_dlopen_self=yes
10663 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10664 if test "x$ac_cv_func_shl_load" = x""yes; then :
10665 lt_cv_dlopen="shl_load"
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10668 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10669 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10670 $as_echo_n "(cached) " >&6
10672 ac_check_lib_save_LIBS=$LIBS
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10687 return shl_load ();
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 ac_cv_lib_dld_shl_load=yes
10695 ac_cv_lib_dld_shl_load=no
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10702 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10703 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10704 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10706 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10707 if test "x$ac_cv_func_dlopen" = x""yes; then :
10708 lt_cv_dlopen="dlopen"
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10715 ac_check_lib_save_LIBS=$LIBS
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_lib_dl_dlopen=yes
10738 ac_cv_lib_dl_dlopen=no
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10750 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10751 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10754 ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lsvld $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 ac_cv_lib_svld_dlopen=yes
10777 ac_cv_lib_svld_dlopen=no
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10784 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10785 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10789 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10793 ac_check_lib_save_LIBS=$LIBS
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10808 return dld_link ();
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 ac_cv_lib_dld_dld_link=yes
10816 ac_cv_lib_dld_dld_link=no
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 LIBS=$ac_check_lib_save_LIBS
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10823 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10824 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10825 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10846 if test "x$lt_cv_dlopen" != xno; then
10852 case $lt_cv_dlopen in
10854 save_CPPFLAGS="$CPPFLAGS"
10855 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10857 save_LDFLAGS="$LDFLAGS"
10858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10861 LIBS="$lt_cv_dlopen_libs $LIBS"
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10864 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10865 if test "${lt_cv_dlopen_self+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
10868 if test "$cross_compiling" = yes; then :
10869 lt_cv_dlopen_self=cross
10871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10872 lt_status=$lt_dlunknown
10873 cat > conftest.$ac_ext <<_LT_EOF
10874 #line 10874 "configure"
10875 #include "confdefs.h"
10884 # define LT_DLGLOBAL RTLD_GLOBAL
10887 # define LT_DLGLOBAL DL_GLOBAL
10889 # define LT_DLGLOBAL 0
10893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10894 find out it does not work in some platform. */
10895 #ifndef LT_DLLAZY_OR_NOW
10897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10900 # define LT_DLLAZY_OR_NOW DL_LAZY
10903 # define LT_DLLAZY_OR_NOW RTLD_NOW
10906 # define LT_DLLAZY_OR_NOW DL_NOW
10908 # define LT_DLLAZY_OR_NOW 0
10915 /* When -fvisbility=hidden is used, assume the code has been annotated
10916 correspondingly for the symbols needed. */
10917 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10918 void fnord () __attribute__((visibility("default")));
10921 void fnord () { int i=42; }
10924 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10925 int status = $lt_dlunknown;
10929 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10932 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10933 else puts (dlerror ());
10935 /* dlclose (self); */
10943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10944 (eval $ac_link) 2>&5
10946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10947 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10948 (./conftest; exit; ) >&5 2>/dev/null
10950 case x$lt_status in
10951 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10952 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10953 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10956 # compilation failed
10957 lt_cv_dlopen_self=no
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10965 $as_echo "$lt_cv_dlopen_self" >&6; }
10967 if test "x$lt_cv_dlopen_self" = xyes; then
10968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10970 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10971 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10974 if test "$cross_compiling" = yes; then :
10975 lt_cv_dlopen_self_static=cross
10977 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10978 lt_status=$lt_dlunknown
10979 cat > conftest.$ac_ext <<_LT_EOF
10980 #line 10980 "configure"
10981 #include "confdefs.h"
10990 # define LT_DLGLOBAL RTLD_GLOBAL
10993 # define LT_DLGLOBAL DL_GLOBAL
10995 # define LT_DLGLOBAL 0
10999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11000 find out it does not work in some platform. */
11001 #ifndef LT_DLLAZY_OR_NOW
11003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11006 # define LT_DLLAZY_OR_NOW DL_LAZY
11009 # define LT_DLLAZY_OR_NOW RTLD_NOW
11012 # define LT_DLLAZY_OR_NOW DL_NOW
11014 # define LT_DLLAZY_OR_NOW 0
11021 /* When -fvisbility=hidden is used, assume the code has been annotated
11022 correspondingly for the symbols needed. */
11023 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11024 void fnord () __attribute__((visibility("default")));
11027 void fnord () { int i=42; }
11030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11031 int status = $lt_dlunknown;
11035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11039 else puts (dlerror ());
11041 /* dlclose (self); */
11049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11050 (eval $ac_link) 2>&5
11052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11053 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11054 (./conftest; exit; ) >&5 2>/dev/null
11056 case x$lt_status in
11057 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11058 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11059 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11062 # compilation failed
11063 lt_cv_dlopen_self_static=no
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11071 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11074 CPPFLAGS="$save_CPPFLAGS"
11075 LDFLAGS="$save_LDFLAGS"
11080 case $lt_cv_dlopen_self in
11081 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11082 *) enable_dlopen_self=unknown ;;
11085 case $lt_cv_dlopen_self_static in
11086 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11087 *) enable_dlopen_self_static=unknown ;;
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11110 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11111 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11112 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11113 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11115 $as_echo "yes" >&6; }
11117 # FIXME - insert some real tests, host_os isn't really good enough
11120 if test -n "$STRIP" ; then
11121 striplib="$STRIP -x"
11122 old_striplib="$STRIP -S"
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11124 $as_echo "yes" >&6; }
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11127 $as_echo "no" >&6; }
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11148 # Report which library types will actually be built
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11150 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11152 $as_echo "$can_build_shared" >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11155 $as_echo_n "checking whether to build shared libraries... " >&6; }
11156 test "$can_build_shared" = "no" && enable_shared=no
11158 # On AIX, shared libraries and static libraries use the same namespace, and
11159 # are all built from PIC.
11162 test "$enable_shared" = yes && enable_static=no
11163 if test -n "$RANLIB"; then
11164 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11165 postinstall_cmds='$RANLIB $lib'
11170 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11171 test "$enable_shared" = yes && enable_static=no
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11176 $as_echo "$enable_shared" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11179 $as_echo_n "checking whether to build static libraries... " >&6; }
11180 # Make sure either enable_shared or enable_static is yes.
11181 test "$enable_shared" = yes || enable_static=yes
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11183 $as_echo "$enable_static" >&6; }
11190 ac_cpp='$CPP $CPPFLAGS'
11191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11209 # Source file extension for Go test sources.
11212 # Object file extension for compiled Go test sources.
11216 # Code to be used in simple compile tests
11217 lt_simple_compile_test_code="package main; func main() { }"
11219 # Code to be used in simple link tests
11220 lt_simple_link_test_code='package main; func main() { }'
11222 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11229 # If no C compiler was specified, use CC.
11232 # If no C compiler flags were specified, use CFLAGS.
11233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11235 # Allow CC to be a program name with arguments.
11239 # save warnings/boilerplate of simple test code
11240 ac_outfile=conftest.$ac_objext
11241 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11242 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11243 _lt_compiler_boilerplate=`cat conftest.err`
11246 ac_outfile=conftest.$ac_objext
11247 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11248 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11249 _lt_linker_boilerplate=`cat conftest.err`
11253 # Allow CC to be a program name with arguments.
11261 for cc_temp in $compiler""; do
11263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11269 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11272 # Go did not exist at the time GCC didn't implicitly link libc in.
11273 archive_cmds_need_lc_GO=no
11275 old_archive_cmds_GO=$old_archive_cmds
11278 ## There is no encapsulation within the following macros, do not change
11279 ## the running order or otherwise move them around unless you know exactly
11280 ## what you are doing...
11281 if test -n "$compiler"; then
11283 lt_prog_compiler_no_builtin_flag_GO=
11285 if test "$GCC" = yes; then
11286 case $cc_basename in
11288 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11290 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11294 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11295 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11296 $as_echo_n "(cached) " >&6
11298 lt_cv_prog_compiler_rtti_exceptions=no
11299 ac_outfile=conftest.$ac_objext
11300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11301 lt_compiler_flag="-fno-rtti -fno-exceptions"
11302 # Insert the option either (1) after the last *FLAGS variable, or
11303 # (2) before a word containing "conftest.", or (3) at the end.
11304 # Note that $ac_compile itself does not contain backslashes and begins
11305 # with a dollar sign (not a hyphen), so the echo should work correctly.
11306 # The option is referenced via a variable to avoid confusing sed.
11307 lt_compile=`echo "$ac_compile" | $SED \
11308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11310 -e 's:$: $lt_compiler_flag:'`
11311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11312 (eval "$lt_compile" 2>conftest.err)
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 if (exit $ac_status) && test -s "$ac_outfile"; then
11317 # The compiler can only warn and ignore the option if not recognized
11318 # So say no if there are warnings other than the usual output.
11319 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11321 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11322 lt_cv_prog_compiler_rtti_exceptions=yes
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11329 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11331 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11332 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11341 lt_prog_compiler_wl_GO=
11342 lt_prog_compiler_pic_GO=
11343 lt_prog_compiler_static_GO=
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11346 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11348 if test "$GCC" = yes; then
11349 lt_prog_compiler_wl_GO='-Wl,'
11350 lt_prog_compiler_static_GO='-static'
11354 # All AIX code is PIC.
11355 if test "$host_cpu" = ia64; then
11356 # AIX 5 now supports IA64 processor
11357 lt_prog_compiler_static_GO='-Bstatic'
11364 # see comment about AmigaOS4 .so support
11365 lt_prog_compiler_pic_GO='-fPIC'
11368 # FIXME: we need at least 68020 code to build shared libraries, but
11369 # adding the `-m68020' flag to GCC prevents building anything better,
11371 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11377 # PIC is the default for these OSes.
11380 mingw* | cygwin* | pw32* | os2* | cegcc*)
11381 # This hack is so that the source file can tell whether it is being
11382 # built for inclusion in a dll (and should export symbols for example).
11383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11384 # (--disable-auto-import) libraries
11385 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11388 darwin* | rhapsody*)
11389 # PIC is the default on this platform
11390 # Common symbols not allowed in MH_DYLIB files
11391 lt_prog_compiler_pic_GO='-fno-common'
11395 # PIC is the default for Haiku.
11396 # The "-static" flag exists, but is broken.
11397 lt_prog_compiler_static_GO=
11401 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11402 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11403 # sets the default TLS model and affects inlining.
11409 lt_prog_compiler_pic_GO='-fPIC'
11415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11416 # Instead, we relocate shared libraries at runtime.
11420 # Just because we use GCC doesn't mean we suddenly get shared libraries
11421 # on systems that don't support them.
11422 lt_prog_compiler_can_build_shared_GO=no
11427 # QNX uses GNU C++, but need to define -shared option too, otherwise
11428 # it will coredump.
11429 lt_prog_compiler_pic_GO='-fPIC -shared'
11433 if test -d /usr/nec; then
11434 lt_prog_compiler_pic_GO=-Kconform_pic
11439 lt_prog_compiler_pic_GO='-fPIC'
11443 case $cc_basename in
11444 nvcc*) # Cuda Compiler Driver 2.2
11445 lt_prog_compiler_wl_GO='-Xlinker '
11446 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11450 # PORTME Check for flag to pass linker flags through the system compiler.
11453 lt_prog_compiler_wl_GO='-Wl,'
11454 if test "$host_cpu" = ia64; then
11455 # AIX 5 now supports IA64 processor
11456 lt_prog_compiler_static_GO='-Bstatic'
11458 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11462 mingw* | cygwin* | pw32* | os2* | cegcc*)
11463 # This hack is so that the source file can tell whether it is being
11464 # built for inclusion in a dll (and should export symbols for example).
11465 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11468 hpux9* | hpux10* | hpux11*)
11469 lt_prog_compiler_wl_GO='-Wl,'
11470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11471 # not for PA HP-UX.
11477 lt_prog_compiler_pic_GO='+Z'
11480 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11481 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11484 irix5* | irix6* | nonstopux*)
11485 lt_prog_compiler_wl_GO='-Wl,'
11486 # PIC (with -KPIC) is the default.
11487 lt_prog_compiler_static_GO='-non_shared'
11490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11491 case $cc_basename in
11492 # old Intel for x86_64 which still supported -KPIC.
11494 lt_prog_compiler_wl_GO='-Wl,'
11495 lt_prog_compiler_pic_GO='-KPIC'
11496 lt_prog_compiler_static_GO='-static'
11498 # icc used to be incompatible with GCC.
11499 # ICC 10 doesn't accept -KPIC any more.
11501 lt_prog_compiler_wl_GO='-Wl,'
11502 lt_prog_compiler_pic_GO='-fPIC'
11503 lt_prog_compiler_static_GO='-static'
11505 # Lahey Fortran 8.1.
11507 lt_prog_compiler_wl_GO='-Wl,'
11508 lt_prog_compiler_pic_GO='--shared'
11509 lt_prog_compiler_static_GO='--static'
11511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11512 # Portland Group compilers (*not* the Pentium gcc compiler,
11513 # which looks to be a dead project)
11514 lt_prog_compiler_wl_GO='-Wl,'
11515 lt_prog_compiler_pic_GO='-fpic'
11516 lt_prog_compiler_static_GO='-Bstatic'
11519 lt_prog_compiler_wl_GO='-Wl,'
11520 # All Alpha code is PIC.
11521 lt_prog_compiler_static_GO='-non_shared'
11523 xl* | bgxl* | bgf* | mpixl*)
11524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11525 lt_prog_compiler_wl_GO='-Wl,'
11526 lt_prog_compiler_pic_GO='-qpic'
11527 lt_prog_compiler_static_GO='-qstaticlink'
11530 case `$CC -V 2>&1 | sed 5q` in
11531 *Sun\ F* | *Sun*Fortran*)
11532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11533 lt_prog_compiler_pic_GO='-KPIC'
11534 lt_prog_compiler_static_GO='-Bstatic'
11535 lt_prog_compiler_wl_GO=''
11539 lt_prog_compiler_pic_GO='-KPIC'
11540 lt_prog_compiler_static_GO='-Bstatic'
11541 lt_prog_compiler_wl_GO='-Wl,'
11549 lt_prog_compiler_pic_GO='-KPIC'
11550 lt_prog_compiler_static_GO='-Bstatic'
11554 # QNX uses GNU C++, but need to define -shared option too, otherwise
11555 # it will coredump.
11556 lt_prog_compiler_pic_GO='-fPIC -shared'
11559 osf3* | osf4* | osf5*)
11560 lt_prog_compiler_wl_GO='-Wl,'
11561 # All OSF/1 code is PIC.
11562 lt_prog_compiler_static_GO='-non_shared'
11566 lt_prog_compiler_static_GO='-non_shared'
11570 lt_prog_compiler_pic_GO='-KPIC'
11571 lt_prog_compiler_static_GO='-Bstatic'
11572 case $cc_basename in
11573 f77* | f90* | f95*)
11574 lt_prog_compiler_wl_GO='-Qoption ld ';;
11576 lt_prog_compiler_wl_GO='-Wl,';;
11581 lt_prog_compiler_wl_GO='-Qoption ld '
11582 lt_prog_compiler_pic_GO='-PIC'
11583 lt_prog_compiler_static_GO='-Bstatic'
11586 sysv4 | sysv4.2uw2* | sysv4.3*)
11587 lt_prog_compiler_wl_GO='-Wl,'
11588 lt_prog_compiler_pic_GO='-KPIC'
11589 lt_prog_compiler_static_GO='-Bstatic'
11593 if test -d /usr/nec ;then
11594 lt_prog_compiler_pic_GO='-Kconform_pic'
11595 lt_prog_compiler_static_GO='-Bstatic'
11599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11600 lt_prog_compiler_wl_GO='-Wl,'
11601 lt_prog_compiler_pic_GO='-KPIC'
11602 lt_prog_compiler_static_GO='-Bstatic'
11606 lt_prog_compiler_wl_GO='-Wl,'
11607 lt_prog_compiler_can_build_shared_GO=no
11611 lt_prog_compiler_pic_GO='-pic'
11612 lt_prog_compiler_static_GO='-Bstatic'
11616 lt_prog_compiler_can_build_shared_GO=no
11622 # For platforms which do not support PIC, -DPIC is meaningless:
11624 lt_prog_compiler_pic_GO=
11627 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11631 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11636 # Check to make sure the PIC flag actually works.
11638 if test -n "$lt_prog_compiler_pic_GO"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11640 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11641 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11644 lt_cv_prog_compiler_pic_works_GO=no
11645 ac_outfile=conftest.$ac_objext
11646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11647 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11648 # Insert the option either (1) after the last *FLAGS variable, or
11649 # (2) before a word containing "conftest.", or (3) at the end.
11650 # Note that $ac_compile itself does not contain backslashes and begins
11651 # with a dollar sign (not a hyphen), so the echo should work correctly.
11652 # The option is referenced via a variable to avoid confusing sed.
11653 lt_compile=`echo "$ac_compile" | $SED \
11654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11656 -e 's:$: $lt_compiler_flag:'`
11657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11658 (eval "$lt_compile" 2>conftest.err)
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 if (exit $ac_status) && test -s "$ac_outfile"; then
11663 # The compiler can only warn and ignore the option if not recognized
11664 # So say no if there are warnings other than the usual output.
11665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11667 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11668 lt_cv_prog_compiler_pic_works_GO=yes
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11675 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11677 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11678 case $lt_prog_compiler_pic_GO in
11680 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11683 lt_prog_compiler_pic_GO=
11684 lt_prog_compiler_can_build_shared_GO=no
11692 # Check to make sure the static flag actually works.
11694 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11696 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11697 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11700 lt_cv_prog_compiler_static_works_GO=no
11701 save_LDFLAGS="$LDFLAGS"
11702 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11705 # The linker can only warn and ignore the option if not recognized
11706 # So say no if there are warnings
11707 if test -s conftest.err; then
11708 # Append any errors to the config.log.
11709 cat conftest.err 1>&5
11710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11712 if diff conftest.exp conftest.er2 >/dev/null; then
11713 lt_cv_prog_compiler_static_works_GO=yes
11716 lt_cv_prog_compiler_static_works_GO=yes
11720 LDFLAGS="$save_LDFLAGS"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11724 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11726 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11729 lt_prog_compiler_static_GO=
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11736 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11737 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 lt_cv_prog_compiler_c_o_GO=no
11741 $RM -r conftest 2>/dev/null
11745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11747 lt_compiler_flag="-o out/conftest2.$ac_objext"
11748 # Insert the option either (1) after the last *FLAGS variable, or
11749 # (2) before a word containing "conftest.", or (3) at the end.
11750 # Note that $ac_compile itself does not contain backslashes and begins
11751 # with a dollar sign (not a hyphen), so the echo should work correctly.
11752 lt_compile=`echo "$ac_compile" | $SED \
11753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11755 -e 's:$: $lt_compiler_flag:'`
11756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11757 (eval "$lt_compile" 2>out/conftest.err)
11759 cat out/conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11763 # The compiler can only warn and ignore the option if not recognized
11764 # So say no if there are warnings
11765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11768 lt_cv_prog_compiler_c_o_GO=yes
11773 # SGI C++ compiler will create directory out/ii_files/ for
11774 # template instantiation
11775 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11776 $RM out/* && rmdir out
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11783 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11788 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11789 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 lt_cv_prog_compiler_c_o_GO=no
11793 $RM -r conftest 2>/dev/null
11797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11799 lt_compiler_flag="-o out/conftest2.$ac_objext"
11800 # Insert the option either (1) after the last *FLAGS variable, or
11801 # (2) before a word containing "conftest.", or (3) at the end.
11802 # Note that $ac_compile itself does not contain backslashes and begins
11803 # with a dollar sign (not a hyphen), so the echo should work correctly.
11804 lt_compile=`echo "$ac_compile" | $SED \
11805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11807 -e 's:$: $lt_compiler_flag:'`
11808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11809 (eval "$lt_compile" 2>out/conftest.err)
11811 cat out/conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11815 # The compiler can only warn and ignore the option if not recognized
11816 # So say no if there are warnings
11817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11820 lt_cv_prog_compiler_c_o_GO=yes
11825 # SGI C++ compiler will create directory out/ii_files/ for
11826 # template instantiation
11827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11828 $RM out/* && rmdir out
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11835 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11840 hard_links="nottested"
11841 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11842 # do not overwrite the value of need_locks provided by the user
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11844 $as_echo_n "checking if we can lock with hard links... " >&6; }
11847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11849 ln conftest.a conftest.b 2>&5 || hard_links=no
11850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11852 $as_echo "$hard_links" >&6; }
11853 if test "$hard_links" = no; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11855 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11865 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11868 allow_undefined_flag_GO=
11869 always_export_symbols_GO=no
11871 archive_expsym_cmds_GO=
11872 compiler_needs_object_GO=no
11873 enable_shared_with_static_runtimes_GO=no
11874 export_dynamic_flag_spec_GO=
11875 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11876 hardcode_automatic_GO=no
11877 hardcode_direct_GO=no
11878 hardcode_direct_absolute_GO=no
11879 hardcode_libdir_flag_spec_GO=
11880 hardcode_libdir_flag_spec_ld_GO=
11881 hardcode_libdir_separator_GO=
11882 hardcode_minus_L_GO=no
11883 hardcode_shlibpath_var_GO=unsupported
11884 inherit_rpath_GO=no
11885 link_all_deplibs_GO=unknown
11887 module_expsym_cmds_GO=
11888 old_archive_from_new_cmds_GO=
11889 old_archive_from_expsyms_cmds_GO=
11890 thread_safe_flag_spec_GO=
11891 whole_archive_flag_spec_GO=
11892 # include_expsyms should be a list of space-separated symbols to be *always*
11893 # included in the symbol list
11894 include_expsyms_GO=
11895 # exclude_expsyms can be an extended regexp of symbols to exclude
11896 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11897 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11898 # as well as any symbol that contains `d'.
11899 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11900 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11901 # platforms (ab)use it in PIC code, but their linkers get confused if
11902 # the symbol is explicitly referenced. Since portable code cannot
11903 # rely on this symbol name, it's probably fine to never include it in
11904 # preloaded symbol tables.
11905 # Exclude shared library initialization/finalization symbols.
11906 extract_expsyms_cmds=
11909 cygwin* | mingw* | pw32* | cegcc*)
11910 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11911 # When not using gcc, we currently assume that we are using
11912 # Microsoft Visual C++.
11913 if test "$GCC" != yes; then
11918 # we just hope/assume this is gcc and not c89 (= MSVC++)
11928 # On some targets, GNU ld is compatible enough with the native linker
11929 # that we're better off using the native interface for both.
11930 lt_use_gnu_ld_interface=no
11931 if test "$with_gnu_ld" = yes; then
11934 # The AIX port of GNU ld has always aspired to compatibility
11935 # with the native linker. However, as the warning in the GNU ld
11936 # block says, versions before 2.19.5* couldn't really create working
11937 # shared libraries, regardless of the interface used.
11938 case `$LD -v 2>&1` in
11939 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11940 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11941 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11943 lt_use_gnu_ld_interface=yes
11948 lt_use_gnu_ld_interface=yes
11953 if test "$lt_use_gnu_ld_interface" = yes; then
11954 # If archive_cmds runs LD, not CC, wlarc should be empty
11957 # Set some defaults for GNU ld with shared library support. These
11958 # are reset later if shared libraries are not supported. Putting them
11959 # here allows them to be overridden if necessary.
11960 runpath_var=LD_RUN_PATH
11961 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11962 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11963 # ancient GNU ld didn't support --whole-archive et. al.
11964 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11965 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11967 whole_archive_flag_spec_GO=
11969 supports_anon_versioning=no
11970 case `$LD -v 2>&1` in
11971 *GNU\ gold*) supports_anon_versioning=yes ;;
11972 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11973 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11974 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11975 *\ 2.11.*) ;; # other 2.11 versions
11976 *) supports_anon_versioning=yes ;;
11979 # See if GNU ld supports shared libraries.
11982 # On AIX/PPC, the GNU linker is very broken
11983 if test "$host_cpu" != ia64; then
11987 *** Warning: the GNU linker, at least up to release 2.19, is reported
11988 *** to be unable to reliably create shared libraries on AIX.
11989 *** Therefore, libtool is disabling shared libraries support. If you
11990 *** really care for shared libraries, you may want to install binutils
11991 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11992 *** You will then need to restart the configuration process.
12001 # see comment about AmigaOS4 .so support
12002 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12003 archive_expsym_cmds_GO=''
12006 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)'
12007 hardcode_libdir_flag_spec_GO='-L$libdir'
12008 hardcode_minus_L_GO=yes
12014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12015 allow_undefined_flag_GO=unsupported
12016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12017 # support --undefined. This deserves some investigation. FIXME
12018 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12024 cygwin* | mingw* | pw32* | cegcc*)
12025 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12026 # as there is no search path for DLLs.
12027 hardcode_libdir_flag_spec_GO='-L$libdir'
12028 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12029 allow_undefined_flag_GO=unsupported
12030 always_export_symbols_GO=no
12031 enable_shared_with_static_runtimes_GO=yes
12032 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12034 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12035 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12036 # If the export-symbols file already is a .def file (1st line
12037 # is EXPORTS), use it as is; otherwise, prepend...
12038 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12039 cp $export_symbols $output_objdir/$soname.def;
12041 echo EXPORTS > $output_objdir/$soname.def;
12042 cat $export_symbols >> $output_objdir/$soname.def;
12044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12051 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12052 link_all_deplibs_GO=yes
12056 hardcode_direct_GO=no
12057 hardcode_shlibpath_var_GO=no
12058 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12059 export_dynamic_flag_spec_GO='${wl}-E'
12060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12061 # Instead, shared libraries are loaded at an image base (0x10000000 by
12062 # default) and relocated if they conflict, which is a slow very memory
12063 # consuming and fragmenting process. To avoid this, we pick a random,
12064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12066 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'
12067 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'
12070 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12072 if test "$host_os" = linux-dietlibc; then
12073 case $cc_basename in
12074 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12077 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12078 && test "$tmp_diet" = no
12081 tmp_sharedflag='-shared'
12082 case $cc_basename,$host_cpu in
12083 pgcc*) # Portland Group C compiler
12084 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'
12085 tmp_addflag=' $pic_flag'
12087 pgf77* | pgf90* | pgf95* | pgfortran*)
12088 # Portland Group f77 and f90 compilers
12089 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'
12090 tmp_addflag=' $pic_flag -Mnomain' ;;
12091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12092 tmp_addflag=' -i_dynamic' ;;
12093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12094 tmp_addflag=' -i_dynamic -nofor_main' ;;
12095 ifc* | ifort*) # Intel Fortran compiler
12096 tmp_addflag=' -nofor_main' ;;
12097 lf95*) # Lahey Fortran 8.1
12098 whole_archive_flag_spec_GO=
12099 tmp_sharedflag='--shared' ;;
12100 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12101 tmp_sharedflag='-qmkshrobj'
12103 nvcc*) # Cuda Compiler Driver 2.2
12104 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'
12105 compiler_needs_object_GO=yes
12108 case `$CC -V 2>&1 | sed 5q` in
12109 *Sun\ C*) # Sun C 5.9
12110 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'
12111 compiler_needs_object_GO=yes
12112 tmp_sharedflag='-G' ;;
12113 *Sun\ F*) # Sun Fortran 8.3
12114 tmp_sharedflag='-G' ;;
12116 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12118 if test "x$supports_anon_versioning" = xyes; then
12119 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12121 echo "local: *; };" >> $output_objdir/$libname.ver~
12122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12125 case $cc_basename in
12126 xlf* | bgf* | bgxlf* | mpixlf*)
12127 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12128 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12129 hardcode_libdir_flag_spec_GO=
12130 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12131 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12132 if test "x$supports_anon_versioning" = xyes; then
12133 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12135 echo "local: *; };" >> $output_objdir/$libname.ver~
12136 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12147 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12150 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12156 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12160 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12161 *** create shared libraries on Solaris systems. Therefore, libtool
12162 *** is disabling shared libraries support. We urge you to upgrade GNU
12163 *** binutils to release 2.9.1 or newer. Another option is to modify
12164 *** your PATH or compiler configuration so that the native linker is
12165 *** used, and then restart.
12168 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12169 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12170 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12177 case `$LD -v 2>&1` in
12178 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12182 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12183 *** reliably create shared libraries on SCO systems. Therefore, libtool
12184 *** is disabling shared libraries support. We urge you to upgrade GNU
12185 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12186 *** your PATH or compiler configuration so that the native linker is
12187 *** used, and then restart.
12192 # For security reasons, it is highly recommended that you always
12193 # use absolute paths for naming shared libraries, and exclude the
12194 # DT_RUNPATH tag from executables and libraries. But doing so
12195 # requires that you compile everything twice, which is a pain.
12196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12197 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12198 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12199 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12208 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12210 hardcode_direct_GO=yes
12211 hardcode_shlibpath_var_GO=no
12215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12216 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12217 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12224 if test "$ld_shlibs_GO" = no; then
12226 hardcode_libdir_flag_spec_GO=
12227 export_dynamic_flag_spec_GO=
12228 whole_archive_flag_spec_GO=
12231 # PORTME fill in a description of your system's linker (not GNU ld)
12234 allow_undefined_flag_GO=unsupported
12235 always_export_symbols_GO=yes
12236 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'
12237 # Note: this linker hardcodes the directories in LIBPATH if there
12238 # are no directories specified by -L.
12239 hardcode_minus_L_GO=yes
12240 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12241 # Neither direct hardcoding nor static linking is supported with a
12243 hardcode_direct_GO=unsupported
12248 if test "$host_cpu" = ia64; then
12249 # On IA64, the linker does run time linking by default, so we don't
12250 # have to do anything special.
12251 aix_use_runtimelinking=no
12252 exp_sym_flag='-Bexport'
12255 # If we're using GNU nm, then we don't want the "-C" option.
12256 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12257 # Also, AIX nm treats weak defined symbols like other global
12258 # defined symbols, whereas GNU nm marks them as "W".
12259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12260 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'
12262 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'
12264 aix_use_runtimelinking=no
12266 # Test if we are trying to use run time linking or normal
12267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12268 # need to do runtime linking.
12269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12270 for ld_flag in $LDFLAGS; do
12271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12272 aix_use_runtimelinking=yes
12279 exp_sym_flag='-bexport'
12280 no_entry_flag='-bnoentry'
12283 # When large executables or shared objects are built, AIX ld can
12284 # have problems creating the table of contents. If linking a library
12285 # or program results in "error TOC overflow" add -mminimal-toc to
12286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12290 hardcode_direct_GO=yes
12291 hardcode_direct_absolute_GO=yes
12292 hardcode_libdir_separator_GO=':'
12293 link_all_deplibs_GO=yes
12294 file_list_spec_GO='${wl}-f,'
12296 if test "$GCC" = yes; then
12297 case $host_os in aix4.[012]|aix4.[012].*)
12298 # We only want to do this on AIX 4.2 and lower, the check
12299 # below for broken collect2 doesn't work under 4.3+
12300 collect2name=`${CC} -print-prog-name=collect2`
12301 if test -f "$collect2name" &&
12302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12304 # We have reworked collect2
12307 # We have old collect2
12308 hardcode_direct_GO=unsupported
12309 # It fails to find uninstalled libraries when the uninstalled
12310 # path is not listed in the libpath. Setting hardcode_minus_L
12311 # to unsupported forces relinking
12312 hardcode_minus_L_GO=yes
12313 hardcode_libdir_flag_spec_GO='-L$libdir'
12314 hardcode_libdir_separator_GO=
12318 shared_flag='-shared'
12319 if test "$aix_use_runtimelinking" = yes; then
12320 shared_flag="$shared_flag "'${wl}-G'
12324 if test "$host_cpu" = ia64; then
12325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12326 # chokes on -Wl,-G. The following line is correct:
12329 if test "$aix_use_runtimelinking" = yes; then
12330 shared_flag='${wl}-G'
12332 shared_flag='${wl}-bM:SRE'
12337 export_dynamic_flag_spec_GO='${wl}-bexpall'
12338 # It seems that -bexpall does not export symbols beginning with
12339 # underscore (_), so it is better to generate a list of symbols to export.
12340 always_export_symbols_GO=yes
12341 if test "$aix_use_runtimelinking" = yes; then
12342 # Warning - without using the other runtime loading flags (-brtl),
12343 # -berok will link without error, but may produce a broken library.
12344 allow_undefined_flag_GO='-berok'
12345 # Determine the default libpath from the value encoded in an
12346 # empty executable.
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12358 if ac_fn_c_try_link "$LINENO"; then :
12360 lt_aix_libpath_sed='
12361 /Import File Strings/,/^$/ {
12367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12368 # Check for a 64-bit object if we didn't find anything.
12369 if test -z "$aix_libpath"; then
12370 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12377 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12378 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"
12380 if test "$host_cpu" = ia64; then
12381 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12382 allow_undefined_flag_GO="-z nodefs"
12383 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"
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 # Warning - without using the other run time loading flags,
12419 # -berok will link without error, but may produce a broken library.
12420 no_undefined_flag_GO=' ${wl}-bernotok'
12421 allow_undefined_flag_GO=' ${wl}-berok'
12422 if test "$with_gnu_ld" = yes; then
12423 # We only use this code for GNU lds that support --whole-archive.
12424 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12426 # Exported symbols can be pulled into shared objects from archives
12427 whole_archive_flag_spec_GO='$convenience'
12429 archive_cmds_need_lc_GO=yes
12430 # This is similar to how AIX traditionally builds its shared libraries.
12431 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'
12439 # see comment about AmigaOS4 .so support
12440 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441 archive_expsym_cmds_GO=''
12444 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)'
12445 hardcode_libdir_flag_spec_GO='-L$libdir'
12446 hardcode_minus_L_GO=yes
12452 export_dynamic_flag_spec_GO=-rdynamic
12455 cygwin* | mingw* | pw32* | cegcc*)
12456 # When not using gcc, we currently assume that we are using
12457 # Microsoft Visual C++.
12458 # hardcode_libdir_flag_spec is actually meaningless, as there is
12459 # no search path for DLLs.
12460 hardcode_libdir_flag_spec_GO=' '
12461 allow_undefined_flag_GO=unsupported
12462 # Tell ltmain to make .lib files, not .a files.
12464 # Tell ltmain to make .dll files, not .so files.
12466 # FIXME: Setting linknames here is a bad hack.
12467 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12468 # The linker will automatically build a .lib file if we build a DLL.
12469 old_archive_from_new_cmds_GO='true'
12470 # FIXME: Should let the user specify the lib program.
12471 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12472 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12473 enable_shared_with_static_runtimes_GO=yes
12476 darwin* | rhapsody*)
12479 archive_cmds_need_lc_GO=no
12480 hardcode_direct_GO=no
12481 hardcode_automatic_GO=yes
12482 hardcode_shlibpath_var_GO=unsupported
12483 if test "$lt_cv_ld_force_load" = "yes"; then
12484 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\"`'
12486 whole_archive_flag_spec_GO=''
12488 link_all_deplibs_GO=yes
12489 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12490 case $cc_basename in
12491 ifort*) _lt_dar_can_shared=yes ;;
12492 *) _lt_dar_can_shared=$GCC ;;
12494 if test "$_lt_dar_can_shared" = "yes"; then
12495 output_verbose_link_cmd=func_echo_all
12496 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}"
12497 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12498 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}"
12499 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}"
12508 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12509 hardcode_libdir_flag_spec_GO='-L$libdir'
12510 hardcode_shlibpath_var_GO=no
12517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12518 # support. Future versions do this automatically, but an explicit c++rt0.o
12519 # does not break anything, and helps significantly (at the cost of a little
12522 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12523 hardcode_libdir_flag_spec_GO='-R$libdir'
12524 hardcode_direct_GO=yes
12525 hardcode_shlibpath_var_GO=no
12528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12530 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12531 hardcode_direct_GO=yes
12532 hardcode_minus_L_GO=yes
12533 hardcode_shlibpath_var_GO=no
12536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12537 freebsd* | dragonfly*)
12538 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12539 hardcode_libdir_flag_spec_GO='-R$libdir'
12540 hardcode_direct_GO=yes
12541 hardcode_shlibpath_var_GO=no
12545 if test "$GCC" = yes; then
12546 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'
12548 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'
12550 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12551 hardcode_libdir_separator_GO=:
12552 hardcode_direct_GO=yes
12554 # hardcode_minus_L: Not really in the search PATH,
12555 # but as the default location of the library.
12556 hardcode_minus_L_GO=yes
12557 export_dynamic_flag_spec_GO='${wl}-E'
12561 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12562 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12564 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12566 if test "$with_gnu_ld" = no; then
12567 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12568 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12569 hardcode_libdir_separator_GO=:
12570 hardcode_direct_GO=yes
12571 hardcode_direct_absolute_GO=yes
12572 export_dynamic_flag_spec_GO='${wl}-E'
12573 # hardcode_minus_L: Not really in the search PATH,
12574 # but as the default location of the library.
12575 hardcode_minus_L_GO=yes
12580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12583 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12586 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12589 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12595 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12598 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12601 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12605 if test "$with_gnu_ld" = no; then
12606 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12607 hardcode_libdir_separator_GO=:
12611 hardcode_direct_GO=no
12612 hardcode_shlibpath_var_GO=no
12615 hardcode_direct_GO=yes
12616 hardcode_direct_absolute_GO=yes
12617 export_dynamic_flag_spec_GO='${wl}-E'
12619 # hardcode_minus_L: Not really in the search PATH,
12620 # but as the default location of the library.
12621 hardcode_minus_L_GO=yes
12627 irix5* | irix6* | nonstopux*)
12628 if test "$GCC" = yes; then
12629 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'
12630 # Try to use the -exported_symbol ld option, if it does not
12631 # work, assume that -exports_file does not work either and
12632 # implicitly export all symbols.
12633 save_LDFLAGS="$LDFLAGS"
12634 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12639 if ac_fn_c_try_link "$LINENO"; then :
12640 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'
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LDFLAGS="$save_LDFLAGS"
12647 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'
12648 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'
12650 archive_cmds_need_lc_GO='no'
12651 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12652 hardcode_libdir_separator_GO=:
12653 inherit_rpath_GO=yes
12654 link_all_deplibs_GO=yes
12658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12659 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12661 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12663 hardcode_libdir_flag_spec_GO='-R$libdir'
12664 hardcode_direct_GO=yes
12665 hardcode_shlibpath_var_GO=no
12669 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12670 hardcode_direct_GO=yes
12671 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12672 hardcode_libdir_separator_GO=:
12673 hardcode_shlibpath_var_GO=no
12680 if test -f /usr/libexec/ld.so; then
12681 hardcode_direct_GO=yes
12682 hardcode_shlibpath_var_GO=no
12683 hardcode_direct_absolute_GO=yes
12684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12686 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12687 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12688 export_dynamic_flag_spec_GO='${wl}-E'
12691 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12692 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12693 hardcode_libdir_flag_spec_GO='-R$libdir'
12696 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12697 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12707 hardcode_libdir_flag_spec_GO='-L$libdir'
12708 hardcode_minus_L_GO=yes
12709 allow_undefined_flag_GO=unsupported
12710 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'
12711 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12715 if test "$GCC" = yes; then
12716 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12717 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'
12719 allow_undefined_flag_GO=' -expect_unresolved \*'
12720 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'
12722 archive_cmds_need_lc_GO='no'
12723 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12724 hardcode_libdir_separator_GO=:
12727 osf4* | osf5*) # as osf3* with the addition of -msym flag
12728 if test "$GCC" = yes; then
12729 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12730 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'
12731 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12733 allow_undefined_flag_GO=' -expect_unresolved \*'
12734 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'
12735 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~
12736 $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'
12738 # Both c and cxx compiler support -rpath directly
12739 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12741 archive_cmds_need_lc_GO='no'
12742 hardcode_libdir_separator_GO=:
12746 no_undefined_flag_GO=' -z defs'
12747 if test "$GCC" = yes; then
12749 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12750 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12751 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12753 case `$CC -V 2>&1` in
12756 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12757 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12762 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12763 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12764 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12768 hardcode_libdir_flag_spec_GO='-R$libdir'
12769 hardcode_shlibpath_var_GO=no
12771 solaris2.[0-5] | solaris2.[0-5].*) ;;
12773 # The compiler driver will combine and reorder linker options,
12774 # but understands `-z linker_flag'. GCC discards it without `$wl',
12775 # but is careful enough not to reorder.
12776 # Supported since Solaris 2.6 (maybe 2.5.1?)
12777 if test "$GCC" = yes; then
12778 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12780 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12784 link_all_deplibs_GO=yes
12788 if test "x$host_vendor" = xsequent; then
12789 # Use $CC to link under sequent, because it throws in some extra .o
12790 # files that make .init and .fini sections work.
12791 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12793 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12795 hardcode_libdir_flag_spec_GO='-L$libdir'
12796 hardcode_direct_GO=yes
12797 hardcode_minus_L_GO=yes
12798 hardcode_shlibpath_var_GO=no
12802 case $host_vendor in
12804 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12805 hardcode_direct_GO=yes # is this really true???
12808 ## LD is ld it makes a PLAMLIB
12809 ## CC just makes a GrossModule.
12810 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12811 reload_cmds_GO='$CC -r -o $output$reload_objs'
12812 hardcode_direct_GO=no
12815 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12816 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12819 runpath_var='LD_RUN_PATH'
12820 hardcode_shlibpath_var_GO=no
12824 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12825 hardcode_shlibpath_var_GO=no
12826 export_dynamic_flag_spec_GO='-Bexport'
12830 if test -d /usr/nec; then
12831 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12832 hardcode_shlibpath_var_GO=no
12833 runpath_var=LD_RUN_PATH
12834 hardcode_runpath_var=yes
12839 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12840 no_undefined_flag_GO='${wl}-z,text'
12841 archive_cmds_need_lc_GO=no
12842 hardcode_shlibpath_var_GO=no
12843 runpath_var='LD_RUN_PATH'
12845 if test "$GCC" = yes; then
12846 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12847 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12849 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12850 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12854 sysv5* | sco3.2v5* | sco5v6*)
12855 # Note: We can NOT use -z defs as we might desire, because we do not
12856 # link with -lc, and that would cause any symbols used from libc to
12857 # always be unresolved, which means just about no library would
12858 # ever link correctly. If we're not using GNU ld we use -z text
12859 # though, which does catch some bad symbols but isn't as heavy-handed
12861 no_undefined_flag_GO='${wl}-z,text'
12862 allow_undefined_flag_GO='${wl}-z,nodefs'
12863 archive_cmds_need_lc_GO=no
12864 hardcode_shlibpath_var_GO=no
12865 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12866 hardcode_libdir_separator_GO=':'
12867 link_all_deplibs_GO=yes
12868 export_dynamic_flag_spec_GO='${wl}-Bexport'
12869 runpath_var='LD_RUN_PATH'
12871 if test "$GCC" = yes; then
12872 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12873 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12875 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12881 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12882 hardcode_libdir_flag_spec_GO='-L$libdir'
12883 hardcode_shlibpath_var_GO=no
12891 if test x$host_vendor = xsni; then
12893 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12894 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12901 $as_echo "$ld_shlibs_GO" >&6; }
12902 test "$ld_shlibs_GO" = no && can_build_shared=no
12904 with_gnu_ld_GO=$with_gnu_ld
12912 # Do we need to explicitly link libc?
12914 case "x$archive_cmds_need_lc_GO" in
12916 # Assume -lc should be added
12917 archive_cmds_need_lc_GO=yes
12919 if test "$enable_shared" = yes && test "$GCC" = yes; then
12920 case $archive_cmds_GO in
12922 # FIXME: we may have to deal with multi-command sequences.
12925 # Test whether the compiler implicitly links with -lc since on some
12926 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12927 # to ld, don't add -lc before -lgcc.
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12929 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12930 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12931 $as_echo_n "(cached) " >&6
12934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12937 (eval $ac_compile) 2>&5
12939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12940 test $ac_status = 0; } 2>conftest.err; then
12943 libobjs=conftest.$ac_objext
12945 wl=$lt_prog_compiler_wl_GO
12946 pic_flag=$lt_prog_compiler_pic_GO
12952 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12953 allow_undefined_flag_GO=
12954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12955 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12958 test $ac_status = 0; }
12960 lt_cv_archive_cmds_need_lc_GO=no
12962 lt_cv_archive_cmds_need_lc_GO=yes
12964 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12966 cat conftest.err 1>&5
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12972 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12973 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13044 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13045 hardcode_action_GO=
13046 if test -n "$hardcode_libdir_flag_spec_GO" ||
13047 test -n "$runpath_var_GO" ||
13048 test "X$hardcode_automatic_GO" = "Xyes" ; then
13050 # We can hardcode non-existent directories.
13051 if test "$hardcode_direct_GO" != no &&
13052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13053 # have to relink, otherwise we might link with an installed library
13054 # when we should be linking with a yet-to-be-installed one
13055 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13056 test "$hardcode_minus_L_GO" != no; then
13057 # Linking always hardcodes the temporary library directory.
13058 hardcode_action_GO=relink
13060 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13061 hardcode_action_GO=immediate
13064 # We cannot hardcode anything, or else we can only hardcode existing
13066 hardcode_action_GO=unsupported
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13069 $as_echo "$hardcode_action_GO" >&6; }
13071 if test "$hardcode_action_GO" = relink ||
13072 test "$inherit_rpath_GO" = yes; then
13073 # Fast installation is not supported
13074 enable_fast_install=no
13075 elif test "$shlibpath_overrides_runpath" = yes ||
13076 test "$enable_shared" = no; then
13077 # Fast installation is not necessary
13078 enable_fast_install=needless
13090 ac_cpp='$CPP $CPPFLAGS'
13091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13102 ac_config_commands="$ac_config_commands libtool"
13107 # Only expand once:
13113 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13119 glibgo_toolexecdir=no
13120 glibgo_toolexeclibdir=no
13121 glibgo_prefixdir=$prefix
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13124 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13125 # Check whether --enable-version-specific-runtime-libs was given.
13126 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13127 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13128 yes) version_specific_libs=yes ;;
13129 no) version_specific_libs=no ;;
13130 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13133 version_specific_libs=no
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13137 $as_echo "$version_specific_libs" >&6; }
13139 # Version-specific runtime libs processing.
13140 if test $version_specific_libs = yes; then
13141 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13142 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13145 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13146 # Install a library built with a cross compiler in tooldir, not libdir.
13147 if test x"$glibgo_toolexecdir" = x"no"; then
13148 if test -n "$with_cross_host" &&
13149 test x"$with_cross_host" != x"no"; then
13150 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13151 glibgo_toolexeclibdir='${toolexecdir}/lib'
13153 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13154 glibgo_toolexeclibdir='${libdir}'
13156 multi_os_directory=`$CC -print-multi-os-directory`
13157 case $multi_os_directory in
13158 .) ;; # Avoid trailing /.
13159 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13167 # See if the user wants to configure without libffi. Some
13168 # architectures don't support it. FIXME: We should set a default
13169 # based on the host.
13171 # Check whether --with-libffi was given.
13172 if test "${with_libffi+set}" = set; then :
13173 withval=$with_libffi; :
13175 with_libffi=${with_libffi_default-yes}
13181 if test "$with_libffi" != no; then
13183 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13185 LIBFFI=../libffi/libffi_convenience.la
13186 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13197 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13198 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13199 *-*-linux*) is_linux=yes; GOOS=linux ;;
13200 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13202 if test $is_darwin = yes; then
13203 LIBGO_IS_DARWIN_TRUE=
13204 LIBGO_IS_DARWIN_FALSE='#'
13206 LIBGO_IS_DARWIN_TRUE='#'
13207 LIBGO_IS_DARWIN_FALSE=
13210 if test $is_freebsd = yes; then
13211 LIBGO_IS_FREEBSD_TRUE=
13212 LIBGO_IS_FREEBSD_FALSE='#'
13214 LIBGO_IS_FREEBSD_TRUE='#'
13215 LIBGO_IS_FREEBSD_FALSE=
13218 if test $is_linux = yes; then
13219 LIBGO_IS_LINUX_TRUE=
13220 LIBGO_IS_LINUX_FALSE='#'
13222 LIBGO_IS_LINUX_TRUE='#'
13223 LIBGO_IS_LINUX_FALSE=
13226 if test $is_rtems = yes; then
13227 LIBGO_IS_RTEMS_TRUE=
13228 LIBGO_IS_RTEMS_FALSE='#'
13230 LIBGO_IS_RTEMS_TRUE='#'
13231 LIBGO_IS_RTEMS_FALSE=
13241 i[34567]86-*-* | x86_64-*-*)
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13249 if ac_fn_c_try_cpp "$LINENO"; then :
13254 rm -f conftest.err conftest.$ac_ext
13255 if test "$is_386" = "yes"; then
13261 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13266 if test $is_386 = yes; then
13268 LIBGO_IS_386_FALSE='#'
13270 LIBGO_IS_386_TRUE='#'
13271 LIBGO_IS_386_FALSE=
13274 if test $is_x86_64 = yes; then
13275 LIBGO_IS_X86_64_TRUE=
13276 LIBGO_IS_X86_64_FALSE='#'
13278 LIBGO_IS_X86_64_TRUE='#'
13279 LIBGO_IS_X86_64_FALSE=
13282 if test $is_arm = yes; then
13284 LIBGO_IS_ARM_FALSE='#'
13286 LIBGO_IS_ARM_TRUE='#'
13287 LIBGO_IS_ARM_FALSE=
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13293 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13294 if test "${ac_cv_libgo_split_stack_supported+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
13297 CFLAGS_hold=$CFLAGS
13298 CFLAGS="$CFLAGS -fsplit-stack"
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13303 if ac_fn_c_try_compile "$LINENO"; then :
13304 ac_cv_libgo_split_stack_supported=yes
13306 ac_cv_libgo_split_stack_supported=no
13308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13309 CFLAGS=$CFLAGS_hold
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_split_stack_supported" >&5
13312 $as_echo "$ac_cv_libgo_split_stack_supported" >&6; }
13313 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13314 SPLIT_STACK=-fsplit-stack
13316 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13322 if test "$ac_cv_libgo_split_stack_supported" = yes; then
13323 USING_SPLIT_STACK_TRUE=
13324 USING_SPLIT_STACK_FALSE='#'
13326 USING_SPLIT_STACK_TRUE='#'
13327 USING_SPLIT_STACK_FALSE=
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13332 $as_echo_n "checking whether linker supports split stack... " >&6; }
13333 if test "${ac_cv_libgo_linker_supports_split_stack+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13336 ac_cv_libgo_linker_supports_split_stack=no
13337 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13338 ac_cv_libgo_linker_supports_split_stack=yes
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_linker_supports_split_stack" >&5
13342 $as_echo "$ac_cv_libgo_linker_supports_split_stack" >&6; }
13343 if test "$ac_cv_libgo_linker_supports_split_stack" = yes; then
13345 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13351 $as_echo_n "checking for sqrt in -lm... " >&6; }
13352 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13355 ac_check_lib_save_LIBS=$LIBS
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_lib_m_sqrt=yes
13378 ac_cv_lib_m_sqrt=no
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13385 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13386 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13393 $as_echo_n "checking whether -pthread is supported... " >&6; }
13394 if test "${ac_cv_libgo_pthread_supported+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
13397 CFLAGS_hold=$CFLAGS
13398 CFLAGS="$CFLAGS -pthread"
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13403 if ac_fn_c_try_compile "$LINENO"; then :
13404 ac_cv_libgo_pthread_supported=yes
13406 ac_cv_libgo_pthread_supported=no
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 CFLAGS=$CFLAGS_hold
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_pthread_supported" >&5
13412 $as_echo "$ac_cv_libgo_pthread_supported" >&6; }
13414 if test "$ac_cv_libgo_pthread_supported" = yes; then
13415 PTHREAD_CFLAGS=-pthread
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13421 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13422 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13423 $as_echo_n "(cached) " >&6
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-lpthread $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13436 char pthread_create ();
13440 return pthread_create ();
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_pthread_pthread_create=yes
13448 ac_cv_lib_pthread_pthread_create=no
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13455 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13456 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13457 PTHREAD_LIBS=-lpthread
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13463 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13464 if test "${ac_cv_c_bigendian+set}" = set; then :
13465 $as_echo_n "(cached) " >&6
13467 ac_cv_c_bigendian=unknown
13468 # See if we're dealing with a universal compiler.
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 #ifndef __APPLE_CC__
13472 not a universal capable compiler
13477 if ac_fn_c_try_compile "$LINENO"; then :
13479 # Check for potential -arch flags. It is not universal unless
13480 # there are at least two -arch flags with different values.
13483 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13484 if test -n "$ac_prev"; then
13486 i?86 | x86_64 | ppc | ppc64)
13487 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13490 ac_cv_c_bigendian=universal
13496 elif test "x$ac_word" = "x-arch"; then
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502 if test $ac_cv_c_bigendian = unknown; then
13503 # See if sys/param.h defines the BYTE_ORDER macro.
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506 #include <sys/types.h>
13507 #include <sys/param.h>
13512 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13513 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13515 bogus endian macros
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523 # It does; now see whether it defined to BIG_ENDIAN or not.
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 #include <sys/types.h>
13527 #include <sys/param.h>
13532 #if BYTE_ORDER != BIG_ENDIAN
13540 if ac_fn_c_try_compile "$LINENO"; then :
13541 ac_cv_c_bigendian=yes
13543 ac_cv_c_bigendian=no
13545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 if test $ac_cv_c_bigendian = unknown; then
13550 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #include <limits.h>
13558 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13559 bogus endian macros
13566 if ac_fn_c_try_compile "$LINENO"; then :
13567 # It does; now see whether it defined to _BIG_ENDIAN or not.
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13570 #include <limits.h>
13575 #ifndef _BIG_ENDIAN
13583 if ac_fn_c_try_compile "$LINENO"; then :
13584 ac_cv_c_bigendian=yes
13586 ac_cv_c_bigendian=no
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 if test $ac_cv_c_bigendian = unknown; then
13593 # Compile a test program.
13594 if test "$cross_compiling" = yes; then :
13595 # Try to guess by grepping values from an object file.
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13598 short int ascii_mm[] =
13599 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13600 short int ascii_ii[] =
13601 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13602 int use_ascii (int i) {
13603 return ascii_mm[i] + ascii_ii[i];
13605 short int ebcdic_ii[] =
13606 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13607 short int ebcdic_mm[] =
13608 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13609 int use_ebcdic (int i) {
13610 return ebcdic_mm[i] + ebcdic_ii[i];
13617 return use_ascii (foo) == use_ebcdic (foo);
13622 if ac_fn_c_try_compile "$LINENO"; then :
13623 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13624 ac_cv_c_bigendian=yes
13626 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13627 if test "$ac_cv_c_bigendian" = unknown; then
13628 ac_cv_c_bigendian=no
13630 # finding both strings is unlikely to happen, but who knows?
13631 ac_cv_c_bigendian=unknown
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 $ac_includes_default
13644 /* Are we little or big endian? From Harbison&Steele. */
13648 char c[sizeof (long int)];
13651 return u.c[sizeof (long int) - 1] == 1;
13657 if ac_fn_c_try_run "$LINENO"; then :
13658 ac_cv_c_bigendian=no
13660 ac_cv_c_bigendian=yes
13662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13663 conftest.$ac_objext conftest.beam conftest.$ac_ext
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13669 $as_echo "$ac_cv_c_bigendian" >&6; }
13670 case $ac_cv_c_bigendian in #(
13672 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13678 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13682 as_fn_error "unknown endianness
13683 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13689 # Check whether --with-system-libunwind was given.
13690 if test "${with_system_libunwind+set}" = set; then :
13691 withval=$with_system_libunwind;
13694 # If system-libunwind was not specifically set, pick a default setting.
13695 if test x$with_system_libunwind = x; then
13697 ia64-*-hpux*) with_system_libunwind=yes ;;
13698 *) with_system_libunwind=no ;;
13701 # Based on system-libunwind and target, do we have ipinfo?
13702 if test x$with_system_libunwind = xyes; then
13704 ia64-*-*) have_unwind_getipinfo=no ;;
13705 *) have_unwind_getipinfo=yes ;;
13708 # Darwin before version 9 does not have _Unwind_GetIPInfo.
13711 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
13712 *) have_unwind_getipinfo=yes ;;
13717 if test x$have_unwind_getipinfo = xyes; then
13719 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
13724 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
13726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13727 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13728 eval as_val=\$$as_ac_Header
13729 if test "x$as_val" = x""yes; then :
13730 cat >>confdefs.h <<_ACEOF
13731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13738 if test "$ac_cv_header_sys_mman_h" = yes; then
13739 HAVE_SYS_MMAN_H_TRUE=
13740 HAVE_SYS_MMAN_H_FALSE='#'
13742 HAVE_SYS_MMAN_H_TRUE='#'
13743 HAVE_SYS_MMAN_H_FALSE=
13746 for ac_func in srandom random strsignal
13748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13750 eval as_val=\$$as_ac_var
13751 if test "x$as_val" = x""yes; then :
13752 cat >>confdefs.h <<_ACEOF
13753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
13761 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
13762 if test "${ac_cv_libgo_compiler_supports_inline_all_stringops+set}" = set; then :
13763 $as_echo_n "(cached) " >&6
13765 CFLAGS_hold=$CFLAGS
13766 CFLAGS="$CFLAGS -minline-all-stringops"
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13771 if ac_fn_c_try_compile "$LINENO"; then :
13772 ac_cv_libgo_compiler_supports_inline_all_stringops=yes
13774 ac_cv_libgo_compiler_supports_inline_all_stringops=no
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 CFLAGS=$CFLAGS_hold
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgo_compiler_supports_inline_all_stringops" >&5
13780 $as_echo "$ac_cv_libgo_compiler_supports_inline_all_stringops" >&6; }
13782 if test "$ac_cv_libgo_compiler_supports_inline_all_stringops" = yes; then
13783 STRINGOPS_FLAG=-minline-all-stringops
13787 CFLAGS_hold=$CFLAGS
13788 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
13789 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
13790 if test "x$ac_cv_type_off64_t" = x""yes; then :
13792 cat >>confdefs.h <<_ACEOF
13793 #define HAVE_OFF64_T 1
13799 CFLAGS=$CFLAGS_hold
13801 cat >confcache <<\_ACEOF
13802 # This file is a shell script that caches the results of configure
13803 # tests run on this system so they can be shared between configure
13804 # scripts and configure runs, see configure's option --config-cache.
13805 # It is not useful on other systems. If it contains results you don't
13806 # want to keep, you may remove or edit it.
13808 # config.status only pays attention to the cache file if you give it
13809 # the --recheck option to rerun configure.
13811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13813 # following values.
13817 # The following way of writing the cache mishandles newlines in values,
13818 # but we know of no workaround that is simple, portable, and efficient.
13819 # So, we kill variables containing newlines.
13820 # Ultrix sh set writes to stderr and can't be redirected directly,
13821 # and sets the high bit in the cache file unless we assign to the vars.
13823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13824 eval ac_val=\$$ac_var
13828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13832 _ | IFS | as_nl) ;; #(
13833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13834 *) { eval $ac_var=; unset $ac_var;} ;;
13840 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13841 *${as_nl}ac_space=\ *)
13842 # `set' does not quote correctly, so add quotes: double-quote
13843 # substitution turns \\\\ into \\, and sed turns \\ into \.
13846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13849 # `set' quotes correctly as required by POSIX, so do not add quotes.
13850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13861 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13864 if test -w "$cache_file"; then
13865 test "x$cache_file" != "x/dev/null" &&
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13867 $as_echo "$as_me: updating cache $cache_file" >&6;}
13868 cat confcache >$cache_file
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13876 if test ${multilib} = yes; then
13877 multilib_arg="--enable-multilib"
13882 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
13885 ac_config_commands="$ac_config_commands default"
13888 cat >confcache <<\_ACEOF
13889 # This file is a shell script that caches the results of configure
13890 # tests run on this system so they can be shared between configure
13891 # scripts and configure runs, see configure's option --config-cache.
13892 # It is not useful on other systems. If it contains results you don't
13893 # want to keep, you may remove or edit it.
13895 # config.status only pays attention to the cache file if you give it
13896 # the --recheck option to rerun configure.
13898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13900 # following values.
13904 # The following way of writing the cache mishandles newlines in values,
13905 # but we know of no workaround that is simple, portable, and efficient.
13906 # So, we kill variables containing newlines.
13907 # Ultrix sh set writes to stderr and can't be redirected directly,
13908 # and sets the high bit in the cache file unless we assign to the vars.
13910 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13911 eval ac_val=\$$ac_var
13915 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13916 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13919 _ | IFS | as_nl) ;; #(
13920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13921 *) { eval $ac_var=; unset $ac_var;} ;;
13927 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13928 *${as_nl}ac_space=\ *)
13929 # `set' does not quote correctly, so add quotes: double-quote
13930 # substitution turns \\\\ into \\, and sed turns \\ into \.
13933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13936 # `set' quotes correctly as required by POSIX, so do not add quotes.
13937 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13948 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13950 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13951 if test -w "$cache_file"; then
13952 test "x$cache_file" != "x/dev/null" &&
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13954 $as_echo "$as_me: updating cache $cache_file" >&6;}
13955 cat confcache >$cache_file
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13958 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13963 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13964 # Let make expand exec_prefix.
13965 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13967 DEFS=-DHAVE_CONFIG_H
13971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13972 # 1. Remove the extension, and $U if already installed.
13973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13974 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13976 # will be set to the directory where LIBOBJS objects are built.
13977 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13978 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13980 LIBOBJS=$ac_libobjs
13982 LTLIBOBJS=$ac_ltlibobjs
13985 if test -n "$EXEEXT"; then
13987 am__EXEEXT_FALSE='#'
13989 am__EXEEXT_TRUE='#'
13993 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13994 as_fn_error "conditional \"AMDEP\" was never defined.
13995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13997 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13998 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14002 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14005 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14006 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14009 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14010 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14013 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14014 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14017 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14018 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14021 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14022 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14025 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14026 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14029 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14030 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14033 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14034 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14038 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14039 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14043 : ${CONFIG_STATUS=./config.status}
14045 ac_clean_files_save=$ac_clean_files
14046 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14048 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14050 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14052 # Generated by $as_me.
14053 # Run this file to recreate the current configuration.
14054 # Compiler output produced by configure, useful for debugging
14055 # configure, is in config.log if it exists.
14058 ac_cs_recheck=false
14061 SHELL=\${CONFIG_SHELL-$SHELL}
14064 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14065 ## -------------------- ##
14066 ## M4sh Initialization. ##
14067 ## -------------------- ##
14069 # Be more Bourne compatible
14070 DUALCASE=1; export DUALCASE # for MKS sh
14071 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14074 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14075 # is contrary to our usage. Disable this feature.
14076 alias -g '${1+"$@"}'='"$@"'
14077 setopt NO_GLOB_SUBST
14079 case `(set -o) 2>/dev/null` in #(
14091 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14092 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14095 # Prefer a ksh shell builtin over an external printf program on Solaris,
14096 # but without wasting forks for bash or zsh.
14097 if test -z "$BASH_VERSION$ZSH_VERSION" \
14098 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14099 as_echo='print -r --'
14100 as_echo_n='print -rn --'
14101 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14102 as_echo='printf %s\n'
14103 as_echo_n='printf %s'
14105 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14106 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14107 as_echo_n='/usr/ucb/echo -n'
14109 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14110 as_echo_n_body='eval
14114 expr "X$arg" : "X\\(.*\\)$as_nl";
14115 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14117 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14119 export as_echo_n_body
14120 as_echo_n='sh -c $as_echo_n_body as_echo'
14122 export as_echo_body
14123 as_echo='sh -c $as_echo_body as_echo'
14126 # The user is always right.
14127 if test "${PATH_SEPARATOR+set}" != set; then
14129 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14130 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14137 # We need space, tab and new line, in precisely that order. Quoting is
14138 # there to prevent editors from complaining about space-tab.
14139 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14140 # splitting by setting IFS to empty value.)
14143 # Find who we are. Look in the path if we contain no directory separator.
14145 *[\\/]* ) as_myself=$0 ;;
14146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14150 test -z "$as_dir" && as_dir=.
14151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14157 # We did not find ourselves, most probably we were run as `sh COMMAND'
14158 # in which case we are not to be found in the path.
14159 if test "x$as_myself" = x; then
14162 if test ! -f "$as_myself"; then
14163 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14167 # Unset variables that we do not need and which cause bugs (e.g. in
14168 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14169 # suppresses any "Segmentation fault" message there. '((' could
14170 # trigger a bug in pdksh 5.2.14.
14171 for as_var in BASH_ENV ENV MAIL MAILPATH
14172 do eval test x\${$as_var+set} = xset \
14173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14186 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14189 # as_fn_error ERROR [LINENO LOG_FD]
14190 # ---------------------------------
14191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14193 # script with status $?, using 1 if that was 0.
14196 as_status=$?; test $as_status -eq 0 && as_status=1
14198 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14199 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14201 $as_echo "$as_me: error: $1" >&2
14202 as_fn_exit $as_status
14206 # as_fn_set_status STATUS
14207 # -----------------------
14208 # Set $? to STATUS, without forking.
14209 as_fn_set_status ()
14212 } # as_fn_set_status
14214 # as_fn_exit STATUS
14215 # -----------------
14216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14220 as_fn_set_status $1
14226 # Portably unset VAR.
14229 { eval $1=; unset $1;}
14231 as_unset=as_fn_unset
14232 # as_fn_append VAR VALUE
14233 # ----------------------
14234 # Append the text in VALUE to the end of the definition contained in VAR. Take
14235 # advantage of any shell optimizations that allow amortized linear growth over
14236 # repeated appends, instead of the typical quadratic growth present in naive
14238 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14239 eval 'as_fn_append ()
14250 # as_fn_arith ARG...
14251 # ------------------
14252 # Perform arithmetic evaluation on the ARGs, and store the result in the
14253 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14254 # must be portable across $(()) and expr.
14255 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14256 eval 'as_fn_arith ()
14263 as_val=`expr "$@" || test $? -eq 1`
14268 if expr a : '\(a\)' >/dev/null 2>&1 &&
14269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14275 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14276 as_basename=basename
14281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14287 as_me=`$as_basename -- "$0" ||
14288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14289 X"$0" : 'X\(//\)$' \| \
14290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14292 sed '/^.*\/\([^/][^/]*\)\/*$/{
14306 # Avoid depending upon Character Ranges.
14307 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14308 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14309 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14310 as_cr_digits='0123456789'
14311 as_cr_alnum=$as_cr_Letters$as_cr_digits
14313 ECHO_C= ECHO_N= ECHO_T=
14314 case `echo -n x` in #(((((
14316 case `echo 'xy\c'` in
14317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14319 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14326 rm -f conf$$ conf$$.exe conf$$.file
14327 if test -d conf$$.dir; then
14328 rm -f conf$$.dir/conf$$.file
14331 mkdir conf$$.dir 2>/dev/null
14333 if (echo >conf$$.file) 2>/dev/null; then
14334 if ln -s conf$$.file conf$$ 2>/dev/null; then
14336 # ... but there are two gotchas:
14337 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14338 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14339 # In both cases, we have to default to `cp -p'.
14340 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14342 elif ln conf$$.file conf$$ 2>/dev/null; then
14350 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14351 rmdir conf$$.dir 2>/dev/null
14356 # Create "$as_dir" as a directory, including parents if necessary.
14361 -*) as_dir=./$as_dir;;
14363 test -d "$as_dir" || eval $as_mkdir_p || {
14367 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14368 *) as_qdir=$as_dir;;
14370 as_dirs="'$as_qdir' $as_dirs"
14371 as_dir=`$as_dirname -- "$as_dir" ||
14372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14373 X"$as_dir" : 'X\(//\)[^/]' \| \
14374 X"$as_dir" : 'X\(//\)$' \| \
14375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14376 $as_echo X"$as_dir" |
14377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14381 /^X\(\/\/\)[^/].*/{
14394 test -d "$as_dir" && break
14396 test -z "$as_dirs" || eval "mkdir $as_dirs"
14397 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14401 if mkdir -p . 2>/dev/null; then
14402 as_mkdir_p='mkdir -p "$as_dir"'
14404 test -d ./-p && rmdir ./-p
14408 if test -x / >/dev/null 2>&1; then
14409 as_test_x='test -x'
14411 if ls -dL / >/dev/null 2>&1; then
14418 if test -d "$1"; then
14424 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14425 ???[sx]*):;;*)false;;esac;fi
14429 as_executable_p=$as_test_x
14431 # Sed expression to map a string onto a valid CPP name.
14432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14434 # Sed expression to map a string onto a valid variable name.
14435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14439 ## ----------------------------------- ##
14440 ## Main body of $CONFIG_STATUS script. ##
14441 ## ----------------------------------- ##
14443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14446 # Save the log message, to keep $0 and so on meaningful, and to
14447 # report actual input values of CONFIG_FILES etc. instead of their
14448 # values after options handling.
14450 This file was extended by package-unused $as_me version-unused, which was
14451 generated by GNU Autoconf 2.64. Invocation command line was
14453 CONFIG_FILES = $CONFIG_FILES
14454 CONFIG_HEADERS = $CONFIG_HEADERS
14455 CONFIG_LINKS = $CONFIG_LINKS
14456 CONFIG_COMMANDS = $CONFIG_COMMANDS
14459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14464 case $ac_config_files in *"
14465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14468 case $ac_config_headers in *"
14469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14474 # Files that config.status was made for.
14475 config_files="$ac_config_files"
14476 config_headers="$ac_config_headers"
14477 config_commands="$ac_config_commands"
14481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14483 \`$as_me' instantiates files and other configuration actions
14484 from templates according to the current configuration. Unless the files
14485 and actions are specified as TAGs, all are instantiated by default.
14487 Usage: $0 [OPTION]... [TAG]...
14489 -h, --help print this help, then exit
14490 -V, --version print version number and configuration settings, then exit
14491 -q, --quiet, --silent
14492 do not print progress messages
14493 -d, --debug don't remove temporary files
14494 --recheck update $as_me by reconfiguring in the same conditions
14495 --file=FILE[:TEMPLATE]
14496 instantiate the configuration file FILE
14497 --header=FILE[:TEMPLATE]
14498 instantiate the configuration header FILE
14500 Configuration files:
14503 Configuration headers:
14506 Configuration commands:
14509 Report bugs to the package provider."
14512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14514 package-unused config.status version-unused
14515 configured by $0, generated by GNU Autoconf 2.64,
14516 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14518 Copyright (C) 2009 Free Software Foundation, Inc.
14519 This config.status script is free software; the Free Software Foundation
14520 gives unlimited permission to copy, distribute and modify it."
14527 test -n "\$AWK" || AWK=awk
14530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14531 # The default lists apply if the user does not specify any file.
14537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14549 # Handling of the options.
14550 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14552 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14553 $as_echo "$ac_cs_version"; exit ;;
14554 --debug | --debu | --deb | --de | --d | -d )
14556 --file | --fil | --fi | --f )
14559 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14561 as_fn_append CONFIG_FILES " '$ac_optarg'"
14562 ac_need_defaults=false;;
14563 --header | --heade | --head | --hea )
14566 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14568 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14569 ac_need_defaults=false;;
14571 # Conflict between --help and --header
14572 as_fn_error "ambiguous option: \`$1'
14573 Try \`$0 --help' for more information.";;
14574 --help | --hel | -h )
14575 $as_echo "$ac_cs_usage"; exit ;;
14576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14580 # This is an error.
14581 -*) as_fn_error "unrecognized option: \`$1'
14582 Try \`$0 --help' for more information." ;;
14584 *) as_fn_append ac_config_targets " $1"
14585 ac_need_defaults=false ;;
14591 ac_configure_extra_args=
14593 if $ac_cs_silent; then
14595 ac_configure_extra_args="$ac_configure_extra_args --silent"
14599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14600 if \$ac_cs_recheck; then
14601 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14603 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14604 CONFIG_SHELL='$SHELL'
14605 export CONFIG_SHELL
14610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14615 ## Running $as_me. ##
14621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14629 with_multisubdir="$with_multisubdir"
14630 with_multisrctop="$with_multisrctop"
14631 with_target_subdir="$with_target_subdir"
14632 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14633 multi_basedir="$multi_basedir"
14634 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14637 GFORTRAN="$GFORTRAN"
14639 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14642 # The HP-UX ksh and POSIX shell print the target directory to stdout
14643 # if CDPATH is set.
14644 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14646 sed_quote_subst='$sed_quote_subst'
14647 double_quote_subst='$double_quote_subst'
14648 delay_variable_subst='$delay_variable_subst'
14649 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14650 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14651 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14652 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14653 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14654 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14655 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14656 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14657 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14658 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14659 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14660 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14661 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14662 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14663 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14664 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14665 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14666 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14667 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14668 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14669 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14670 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14671 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14672 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14673 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14674 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14675 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14676 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14679 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14680 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14681 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14682 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14683 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14684 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14685 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14686 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14687 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14688 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14689 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14690 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14691 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14692 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14693 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14694 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14695 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14696 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14697 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"`'
14698 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14699 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14700 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14701 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14702 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14703 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14704 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14705 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14706 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14707 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14708 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14709 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14710 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14711 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14712 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14713 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14714 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14715 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14716 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14717 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14718 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14719 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14720 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14721 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14722 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14723 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14724 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14725 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14726 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14727 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14728 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14729 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14730 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14731 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14732 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14733 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14734 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14735 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14736 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14737 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14738 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14739 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14740 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14741 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14742 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14743 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14744 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14745 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14746 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14747 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14748 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14749 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14750 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14751 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14752 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14753 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14754 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14755 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14756 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14757 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14758 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14759 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14760 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14761 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14762 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14763 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14764 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14765 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14766 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14767 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14768 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14769 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
14770 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
14771 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
14772 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14773 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
14774 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
14775 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
14776 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
14777 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
14778 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
14779 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
14780 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
14781 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
14782 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14783 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14784 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
14785 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
14786 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
14787 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
14788 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14789 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
14790 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
14791 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
14792 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14793 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
14794 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
14795 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
14796 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
14797 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
14798 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
14799 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
14800 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
14801 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
14802 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
14803 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
14804 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
14805 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
14806 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
14807 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14808 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
14809 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
14810 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
14811 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
14814 LTCFLAGS='$LTCFLAGS'
14815 compiler='$compiler_DEFAULT'
14817 # A function that is used when there is no print builtin or printf.
14818 func_fallback_echo ()
14820 eval 'cat <<_LTECHO_EOF
14825 # Quote evaled strings.
14839 deplibs_check_method \
14848 lt_cv_sys_global_symbol_pipe \
14849 lt_cv_sys_global_symbol_to_cdecl \
14850 lt_cv_sys_global_symbol_to_c_name_address \
14851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14852 lt_prog_compiler_no_builtin_flag \
14853 lt_prog_compiler_wl \
14854 lt_prog_compiler_pic \
14855 lt_prog_compiler_static \
14856 lt_cv_prog_compiler_c_o \
14864 export_dynamic_flag_spec \
14865 whole_archive_flag_spec \
14866 compiler_needs_object \
14868 allow_undefined_flag \
14869 no_undefined_flag \
14870 hardcode_libdir_flag_spec \
14871 hardcode_libdir_flag_spec_ld \
14872 hardcode_libdir_separator \
14877 variables_saved_for_relink \
14879 library_names_spec \
14881 install_override_mode \
14888 lt_prog_compiler_no_builtin_flag_GO \
14889 lt_prog_compiler_wl_GO \
14890 lt_prog_compiler_pic_GO \
14891 lt_prog_compiler_static_GO \
14892 lt_cv_prog_compiler_c_o_GO \
14893 export_dynamic_flag_spec_GO \
14894 whole_archive_flag_spec_GO \
14895 compiler_needs_object_GO \
14897 allow_undefined_flag_GO \
14898 no_undefined_flag_GO \
14899 hardcode_libdir_flag_spec_GO \
14900 hardcode_libdir_flag_spec_ld_GO \
14901 hardcode_libdir_separator_GO \
14902 fix_srcfile_path_GO \
14903 exclude_expsyms_GO \
14904 include_expsyms_GO \
14905 file_list_spec_GO; do
14906 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14907 *[\\\\\\\`\\"\\\$]*)
14908 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14911 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14916 # Double-quote double-evaled strings.
14917 for var in reload_cmds \
14918 old_postinstall_cmds \
14919 old_postuninstall_cmds \
14921 extract_expsyms_cmds \
14922 old_archive_from_new_cmds \
14923 old_archive_from_expsyms_cmds \
14925 archive_expsym_cmds \
14927 module_expsym_cmds \
14928 export_symbols_cmds \
14931 postuninstall_cmds \
14933 sys_lib_search_path_spec \
14934 sys_lib_dlsearch_path_spec \
14936 old_archive_cmds_GO \
14937 old_archive_from_new_cmds_GO \
14938 old_archive_from_expsyms_cmds_GO \
14940 archive_expsym_cmds_GO \
14942 module_expsym_cmds_GO \
14943 export_symbols_cmds_GO \
14944 prelink_cmds_GO; do
14945 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14946 *[\\\\\\\`\\"\\\$]*)
14947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14955 ac_aux_dir='$ac_aux_dir'
14956 xsi_shell='$xsi_shell'
14957 lt_shell_append='$lt_shell_append'
14959 # See if we are running on zsh, and set the options which allow our
14960 # commands through without removal of \ escapes INIT.
14961 if test -n "\${ZSH_VERSION+set}" ; then
14962 setopt NO_GLOB_SUBST
14968 TIMESTAMP='$TIMESTAMP'
14977 # Variables needed in config.status (file generation) which aren't already
14978 # passed by autoconf.
14984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14986 # Handling of arguments.
14987 for ac_config_target in $ac_config_targets
14989 case $ac_config_target in
14990 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14991 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14992 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14993 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14994 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14995 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14996 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14998 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15003 # If the user did not use the arguments to specify the items to instantiate,
15004 # then the envvar interface is used. Set only those that are not.
15005 # We use the long form for the default assignment because of an extremely
15006 # bizarre bug on SunOS 4.1.3.
15007 if $ac_need_defaults; then
15008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15013 # Have a temporary directory for convenience. Make it in the build tree
15014 # simply because there is no reason against having it here, and in addition,
15015 # creating and moving files from /tmp can sometimes cause problems.
15016 # Hook for its removal unless debugging.
15017 # Note that there is a small window in which the directory will not be cleaned:
15018 # after its creation but before its name has been assigned to `$tmp'.
15022 trap 'exit_status=$?
15023 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15025 trap 'as_fn_exit 1' 1 2 13 15
15027 # Create a (secure) tmp directory for tmp files.
15030 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15031 test -n "$tmp" && test -d "$tmp"
15034 tmp=./conf$$-$RANDOM
15035 (umask 077 && mkdir "$tmp")
15036 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15038 # Set up the scripts for CONFIG_FILES section.
15039 # No need to generate them if there are no CONFIG_FILES.
15040 # This happens for instance with `./config.status config.h'.
15041 if test -n "$CONFIG_FILES"; then
15044 ac_cr=`echo X | tr X '\015'`
15045 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15046 # But we know of no other shell where ac_cr would be empty at this
15047 # point, so we can use a bashism as a fallback.
15048 if test "x$ac_cr" = x; then
15049 eval ac_cr=\$\'\\r\'
15051 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15052 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15055 ac_cs_awk_cr=$ac_cr
15058 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15063 echo "cat >conf$$subs.awk <<_ACEOF" &&
15064 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15066 } >conf$$subs.sh ||
15067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15068 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15070 for ac_last_try in false false false false false :; do
15071 . ./conf$$subs.sh ||
15072 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15074 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15075 if test $ac_delim_n = $ac_delim_num; then
15077 elif $ac_last_try; then
15078 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15083 rm -f conf$$subs.sh
15085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15086 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15090 s/^/S["/; s/!.*/"]=/
15100 s/\(.\{148\}\).*/\1/
15102 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15114 s/\(.\{148\}\).*/\1/
15116 s/["\\]/\\&/g; s/^/"/; s/$/"/
15120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15125 ' <conf$$subs.awk | sed '
15130 ' >>$CONFIG_STATUS || ac_write_fail=1
15131 rm -f conf$$subs.awk
15132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15134 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15135 for (key in S) S_is_set[key] = 1
15141 nfields = split(line, field, "@")
15143 len = length(field[1])
15144 for (i = 2; i < nfields; i++) {
15146 keylen = length(key)
15147 if (S_is_set[key]) {
15149 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15150 len += length(value) + length(field[++i])
15161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15162 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15163 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15166 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15167 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15172 # trailing colons and then remove the whole line if VPATH becomes empty
15173 # (actually we leave an empty line to preserve line numbers).
15174 if test "x$srcdir" = x.; then
15175 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15176 s/:*\$(srcdir):*/:/
15177 s/:*\${srcdir}:*/:/
15179 s/^\([^=]*=[ ]*\):*/\1/
15185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15186 fi # test -n "$CONFIG_FILES"
15188 # Set up the scripts for CONFIG_HEADERS section.
15189 # No need to generate them if there are no CONFIG_HEADERS.
15190 # This happens for instance with `./config.status Makefile'.
15191 if test -n "$CONFIG_HEADERS"; then
15192 cat >"$tmp/defines.awk" <<\_ACAWK ||
15196 # Transform confdefs.h into an awk script `defines.awk', embedded as
15197 # here-document in config.status, that substitutes the proper values into
15198 # config.h.in to produce config.h.
15200 # Create a delimiter string that does not exist in confdefs.h, to ease
15201 # handling of long lines.
15203 for ac_last_try in false false :; do
15204 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15205 if test -z "$ac_t"; then
15207 elif $ac_last_try; then
15208 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15214 # For the awk script, D is an array of macro values keyed by name,
15215 # likewise P contains macro parameters if any. Preserve backslash
15216 # newline sequences.
15218 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15220 s/.\{148\}/&'"$ac_delim"'/g
15223 s/^[ ]*#[ ]*define[ ][ ]*/ /
15230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15237 D["\1"]=" \3\\\\\\n"\\/p
15239 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15244 s/.\{148\}/&'"$ac_delim"'/g
15249 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15252 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15254 ' <confdefs.h | sed '
15255 s/'"$ac_delim"'/"\\\
15256 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15259 for (key in D) D_is_set[key] = 1
15262 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15264 split(line, arg, " ")
15265 if (arg[1] == "#") {
15269 defundef = substr(arg[1], 2)
15272 split(mac1, mac2, "(") #)
15274 prefix = substr(line, 1, index(line, defundef) - 1)
15275 if (D_is_set[macro]) {
15276 # Preserve the white space surrounding the "#".
15277 print prefix "define", macro P[macro] D[macro]
15280 # Replace #undef with comments. This is necessary, for example,
15281 # in the case of _POSIX_SOURCE, which is predefined and required
15282 # on some systems where configure will not decide to define it.
15283 if (defundef == "undef") {
15284 print "/*", prefix defundef, macro, "*/"
15292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15293 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15294 fi # test -n "$CONFIG_HEADERS"
15297 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15302 :[FHLC]) ac_mode=$ac_tag; continue;;
15304 case $ac_mode$ac_tag in
15306 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15307 :[FH]-) ac_tag=-:-;;
15308 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15325 -) ac_f="$tmp/stdin";;
15326 *) # Look for the file first in the build tree, then in the source tree
15327 # (if the path is not absolute). The absolute path cannot be DOS-style,
15328 # because $ac_f cannot contain `:'.
15332 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15334 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15336 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15337 as_fn_append ac_file_inputs " '$ac_f'"
15340 # Let's still pretend it is `configure' which instantiates (i.e., don't
15341 # use $as_me), people would be surprised to read:
15342 # /* config.h. Generated by config.status. */
15343 configure_input='Generated from '`
15344 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15346 if test x"$ac_file" != x-; then
15347 configure_input="$ac_file. $configure_input"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15349 $as_echo "$as_me: creating $ac_file" >&6;}
15351 # Neutralize special characters interpreted by sed in replacement strings.
15352 case $configure_input in #(
15353 *\&* | *\|* | *\\* )
15354 ac_sed_conf_input=`$as_echo "$configure_input" |
15355 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15356 *) ac_sed_conf_input=$configure_input;;
15360 *:-:* | *:-) cat >"$tmp/stdin" \
15361 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15366 ac_dir=`$as_dirname -- "$ac_file" ||
15367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15368 X"$ac_file" : 'X\(//\)[^/]' \| \
15369 X"$ac_file" : 'X\(//\)$' \| \
15370 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15371 $as_echo X"$ac_file" |
15372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15376 /^X\(\/\/\)[^/].*/{
15389 as_dir="$ac_dir"; as_fn_mkdir_p
15393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15395 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15396 # A ".." for each directory in $ac_dir_suffix.
15397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15398 case $ac_top_builddir_sub in
15399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15403 ac_abs_top_builddir=$ac_pwd
15404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15405 # for backward compatibility:
15406 ac_top_builddir=$ac_top_build_prefix
15409 .) # We are building in place.
15411 ac_top_srcdir=$ac_top_builddir_sub
15412 ac_abs_top_srcdir=$ac_pwd ;;
15413 [\\/]* | ?:[\\/]* ) # Absolute name.
15414 ac_srcdir=$srcdir$ac_dir_suffix;
15415 ac_top_srcdir=$srcdir
15416 ac_abs_top_srcdir=$srcdir ;;
15417 *) # Relative name.
15418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15419 ac_top_srcdir=$ac_top_build_prefix$srcdir
15420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15432 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15433 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15435 ac_MKDIR_P=$MKDIR_P
15437 [\\/$]* | ?:[\\/]* ) ;;
15438 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443 # If the template does not know about datarootdir, expand it.
15444 # FIXME: This hack should be removed a few years after 2.60.
15445 ac_datarootdir_hack=; ac_datarootdir_seen=
15456 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15457 *datarootdir*) ac_datarootdir_seen=yes;;
15458 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15460 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463 ac_datarootdir_hack='
15464 s&@datadir@&$datadir&g
15465 s&@docdir@&$docdir&g
15466 s&@infodir@&$infodir&g
15467 s&@localedir@&$localedir&g
15468 s&@mandir@&$mandir&g
15469 s&\\\${datarootdir}&$datarootdir&g' ;;
15473 # Neutralize VPATH when `$srcdir' = `.'.
15474 # Shell code in configure.ac might set extrasub.
15475 # FIXME: do we really want to maintain this feature?
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477 ac_sed_extra="$ac_vpsub
15480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15483 s|@configure_input@|$ac_sed_conf_input|;t t
15484 s&@top_builddir@&$ac_top_builddir_sub&;t t
15485 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15486 s&@srcdir@&$ac_srcdir&;t t
15487 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15488 s&@top_srcdir@&$ac_top_srcdir&;t t
15489 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15490 s&@builddir@&$ac_builddir&;t t
15491 s&@abs_builddir@&$ac_abs_builddir&;t t
15492 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15493 s&@INSTALL@&$ac_INSTALL&;t t
15494 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15495 $ac_datarootdir_hack
15497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15498 || as_fn_error "could not create $ac_file" "$LINENO" 5
15500 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15501 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15502 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15504 which seems to be undefined. Please make sure it is defined." >&5
15505 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15506 which seems to be undefined. Please make sure it is defined." >&2;}
15510 -) cat "$tmp/out" && rm -f "$tmp/out";;
15511 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15513 || as_fn_error "could not create $ac_file" "$LINENO" 5
15519 if test x"$ac_file" != x-; then
15521 $as_echo "/* $configure_input */" \
15522 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15523 } >"$tmp/config.h" \
15524 || as_fn_error "could not create $ac_file" "$LINENO" 5
15525 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15527 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15530 mv "$tmp/config.h" "$ac_file" \
15531 || as_fn_error "could not create $ac_file" "$LINENO" 5
15534 $as_echo "/* $configure_input */" \
15535 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15536 || as_fn_error "could not create -" "$LINENO" 5
15538 # Compute "$ac_file"'s index in $config_headers.
15541 for _am_header in $config_headers :; do
15542 case $_am_header in
15543 $_am_arg | $_am_arg:* )
15546 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15549 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15550 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15551 X"$_am_arg" : 'X\(//\)[^/]' \| \
15552 X"$_am_arg" : 'X\(//\)$' \| \
15553 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15554 $as_echo X"$_am_arg" |
15555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15559 /^X\(\/\/\)[^/].*/{
15571 s/.*/./; q'`/stamp-h$_am_stamp_count
15574 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15575 $as_echo "$as_me: executing $ac_file commands" >&6;}
15580 case $ac_file$ac_mode in
15582 # Only add multilib support code if we just rebuilt the top-level
15584 case " $CONFIG_FILES " in
15586 ac_file=Makefile . ${multi_basedir}/config-ml.in
15589 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15590 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15591 # are listed without --file. Let's play safe and only enable the eval
15592 # if we detect the quoting.
15593 case $CONFIG_FILES in
15594 *\'*) eval set x "$CONFIG_FILES" ;;
15595 *) set x $CONFIG_FILES ;;
15600 # Strip MF so we end up with the name of the file.
15601 mf=`echo "$mf" | sed -e 's/:.*$//'`
15602 # Check whether this is an Automake generated Makefile or not.
15603 # We used to match only the files named `Makefile.in', but
15604 # some people rename them; so instead we look at the file content.
15605 # Grep'ing the first line is not enough: some people post-process
15606 # each Makefile.in and add a new line on top of each file to say so.
15607 # Grep'ing the whole file is not good either: AIX grep has a line
15608 # limit of 2048, but all sed's we know have understand at least 4000.
15609 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15610 dirpart=`$as_dirname -- "$mf" ||
15611 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15612 X"$mf" : 'X\(//\)[^/]' \| \
15613 X"$mf" : 'X\(//\)$' \| \
15614 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15620 /^X\(\/\/\)[^/].*/{
15636 # Extract the definition of DEPDIR, am__include, and am__quote
15637 # from the Makefile without running `make'.
15638 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15639 test -z "$DEPDIR" && continue
15640 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15641 test -z "am__include" && continue
15642 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15643 # When using ansi2knr, U may be empty or an underscore; expand it
15644 U=`sed -n 's/^U = //p' < "$mf"`
15645 # Find all dependency output files, they are included files with
15646 # $(DEPDIR) in their names. We invoke sed twice because it is the
15647 # simplest approach to changing $(DEPDIR) to its actual value in the
15649 for file in `sed -n "
15650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15652 # Make sure the directory exists.
15653 test -f "$dirpart/$file" && continue
15654 fdir=`$as_dirname -- "$file" ||
15655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15656 X"$file" : 'X\(//\)[^/]' \| \
15657 X"$file" : 'X\(//\)$' \| \
15658 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15659 $as_echo X"$file" |
15660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15664 /^X\(\/\/\)[^/].*/{
15677 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15678 # echo "creating $dirpart/$file"
15679 echo '# dummy' > "$dirpart/$file"
15686 # See if we are running on zsh, and set the options which allow our
15687 # commands through without removal of \ escapes.
15688 if test -n "${ZSH_VERSION+set}" ; then
15689 setopt NO_GLOB_SUBST
15692 cfgfile="${ofile}T"
15693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15696 cat <<_LT_EOF >> "$cfgfile"
15699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15704 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15705 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15706 # Written by Gordon Matzigkeit, 1996
15708 # This file is part of GNU Libtool.
15710 # GNU Libtool is free software; you can redistribute it and/or
15711 # modify it under the terms of the GNU General Public License as
15712 # published by the Free Software Foundation; either version 2 of
15713 # the License, or (at your option) any later version.
15715 # As a special exception to the GNU General Public License,
15716 # if you distribute this file as part of a program or library that
15717 # is built using GNU Libtool, you may include this file under the
15718 # same distribution terms that you use for the rest of that program.
15720 # GNU Libtool is distributed in the hope that it will be useful,
15721 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15722 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15723 # GNU General Public License for more details.
15725 # You should have received a copy of the GNU General Public License
15726 # along with GNU Libtool; see the file COPYING. If not, a copy
15727 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15728 # obtained by writing to the Free Software Foundation, Inc.,
15729 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15732 # The names of the tagged configurations supported by this script.
15733 available_tags="GO "
15735 # ### BEGIN LIBTOOL CONFIG
15737 # A sed program that does not truncate output.
15740 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15741 Xsed="\$SED -e 1s/^X//"
15743 # A grep program that handles long lines.
15749 # A literal string matcher.
15752 # Shell to use when invoking shell scripts.
15755 # An echo program that protects backslashes.
15758 # Which release of libtool.m4 was used?
15759 macro_version=$macro_version
15760 macro_revision=$macro_revision
15762 # Whether or not to build shared libraries.
15763 build_libtool_libs=$enable_shared
15765 # Whether or not to build static libraries.
15766 build_old_libs=$enable_static
15768 # What type of objects to build.
15771 # Whether or not to optimize for fast installation.
15772 fast_install=$enable_fast_install
15775 host_alias=$host_alias
15779 # The build system.
15780 build_alias=$build_alias
15784 # A BSD- or MS-compatible name lister.
15787 # Whether we need soft or hard links.
15790 # What is the maximum length of a command?
15791 max_cmd_len=$max_cmd_len
15793 # Object file suffix (normally "o").
15796 # Executable file suffix (normally "").
15799 # whether the shell understands "unset".
15802 # turn spaces into newlines.
15805 # turn newlines into spaces.
15808 # An object symbol dumper.
15809 OBJDUMP=$lt_OBJDUMP
15811 # Method to check whether dependent libraries are shared objects.
15812 deplibs_check_method=$lt_deplibs_check_method
15814 # Command to use when deplibs_check_method == "file_magic".
15815 file_magic_cmd=$lt_file_magic_cmd
15819 AR_FLAGS=$lt_AR_FLAGS
15821 # A symbol stripping program.
15824 # Commands used to install an old-style archive.
15826 old_postinstall_cmds=$lt_old_postinstall_cmds
15827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15829 # Whether to use a lock for old archive extraction.
15830 lock_old_archive_extraction=$lock_old_archive_extraction
15835 # LTCC compiler flags.
15836 LTCFLAGS=$lt_CFLAGS
15838 # Take the output of nm and produce a listing of raw symbols and C names.
15839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15841 # Transform the output of nm in a proper C declaration.
15842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15844 # Transform the output of nm in a C name address pair.
15845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15847 # Transform the output of nm in a C name address pair when lib prefix is needed.
15848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15850 # The name of the directory that contains temporary libtool files.
15853 # Used to examine libraries when file_magic_cmd begins with "file".
15854 MAGIC_CMD=$MAGIC_CMD
15856 # Must we lock files when doing compilation?
15857 need_locks=$lt_need_locks
15859 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15860 DSYMUTIL=$lt_DSYMUTIL
15862 # Tool to change global to local symbols on Mac OS X.
15865 # Tool to manipulate fat objects and archives on Mac OS X.
15868 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15871 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15872 OTOOL64=$lt_OTOOL64
15874 # Old archive suffix (normally "a").
15877 # Shared library suffix (normally ".so").
15878 shrext_cmds=$lt_shrext_cmds
15880 # The commands to extract the exported symbol list from a shared archive.
15881 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15883 # Variables whose values should be saved in libtool wrapper scripts and
15884 # restored at link time.
15885 variables_saved_for_relink=$lt_variables_saved_for_relink
15887 # Do we need the "lib" prefix for modules?
15888 need_lib_prefix=$need_lib_prefix
15890 # Do we need a version for libraries?
15891 need_version=$need_version
15893 # Library versioning type.
15894 version_type=$version_type
15896 # Shared library runtime path variable.
15897 runpath_var=$runpath_var
15899 # Shared library path variable.
15900 shlibpath_var=$shlibpath_var
15902 # Is shlibpath searched before the hard-coded library search path?
15903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15905 # Format of library name prefix.
15906 libname_spec=$lt_libname_spec
15908 # List of archive names. First name is the real one, the rest are links.
15909 # The last name is the one that the linker finds with -lNAME
15910 library_names_spec=$lt_library_names_spec
15912 # The coded name of the library, if different from the real name.
15913 soname_spec=$lt_soname_spec
15915 # Permission mode override for installation of shared libraries.
15916 install_override_mode=$lt_install_override_mode
15918 # Command to use after installation of a shared archive.
15919 postinstall_cmds=$lt_postinstall_cmds
15921 # Command to use after uninstallation of a shared archive.
15922 postuninstall_cmds=$lt_postuninstall_cmds
15924 # Commands used to finish a libtool library installation in a directory.
15925 finish_cmds=$lt_finish_cmds
15927 # As "finish_cmds", except a single script fragment to be evaled but
15929 finish_eval=$lt_finish_eval
15931 # Whether we should hardcode library paths into libraries.
15932 hardcode_into_libs=$hardcode_into_libs
15934 # Compile-time system search path for libraries.
15935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15937 # Run-time system search path for libraries.
15938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15940 # Whether dlopen is supported.
15941 dlopen_support=$enable_dlopen
15943 # Whether dlopen of programs is supported.
15944 dlopen_self=$enable_dlopen_self
15946 # Whether dlopen of statically linked programs is supported.
15947 dlopen_self_static=$enable_dlopen_self_static
15949 # Commands to strip libraries.
15950 old_striplib=$lt_old_striplib
15951 striplib=$lt_striplib
15954 # The linker used to build libraries.
15957 # How to create reloadable object files.
15958 reload_flag=$lt_reload_flag
15959 reload_cmds=$lt_reload_cmds
15961 # Commands used to build an old-style archive.
15962 old_archive_cmds=$lt_old_archive_cmds
15964 # A language specific compiler.
15967 # Is the compiler the GNU compiler?
15970 # Compiler flag to turn off builtin functions.
15971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15973 # How to pass a linker flag through the compiler.
15974 wl=$lt_lt_prog_compiler_wl
15976 # Additional compiler flags for building library objects.
15977 pic_flag=$lt_lt_prog_compiler_pic
15979 # Compiler flag to prevent dynamic linking.
15980 link_static_flag=$lt_lt_prog_compiler_static
15982 # Does compiler simultaneously support -c and -o options?
15983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15985 # Whether or not to add -lc for building shared libraries.
15986 build_libtool_need_lc=$archive_cmds_need_lc
15988 # Whether or not to disallow shared libs when runtime libs are static.
15989 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15991 # Compiler flag to allow reflexive dlopens.
15992 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15994 # Compiler flag to generate shared objects directly from archives.
15995 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15997 # Whether the compiler copes with passing no objects directly.
15998 compiler_needs_object=$lt_compiler_needs_object
16000 # Create an old-style archive from a shared archive.
16001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16003 # Create a temporary old-style archive to link instead of a shared archive.
16004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16006 # Commands used to build a shared archive.
16007 archive_cmds=$lt_archive_cmds
16008 archive_expsym_cmds=$lt_archive_expsym_cmds
16010 # Commands used to build a loadable module if different from building
16011 # a shared archive.
16012 module_cmds=$lt_module_cmds
16013 module_expsym_cmds=$lt_module_expsym_cmds
16015 # Whether we are building with GNU ld or not.
16016 with_gnu_ld=$lt_with_gnu_ld
16018 # Flag that allows shared libraries with undefined symbols to be built.
16019 allow_undefined_flag=$lt_allow_undefined_flag
16021 # Flag that enforces no undefined symbols.
16022 no_undefined_flag=$lt_no_undefined_flag
16024 # Flag to hardcode \$libdir into a binary during linking.
16025 # This must work even if \$libdir does not exist
16026 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16028 # If ld is used when linking, flag to hardcode \$libdir into a binary
16029 # during linking. This must work even if \$libdir does not exist.
16030 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16032 # Whether we need a single "-rpath" flag with a separated argument.
16033 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16035 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16036 # DIR into the resulting binary.
16037 hardcode_direct=$hardcode_direct
16039 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16040 # DIR into the resulting binary and the resulting library dependency is
16041 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16042 # library is relocated.
16043 hardcode_direct_absolute=$hardcode_direct_absolute
16045 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16046 # into the resulting binary.
16047 hardcode_minus_L=$hardcode_minus_L
16049 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16050 # into the resulting binary.
16051 hardcode_shlibpath_var=$hardcode_shlibpath_var
16053 # Set to "yes" if building a shared library automatically hardcodes DIR
16054 # into the library and all subsequent libraries and executables linked
16056 hardcode_automatic=$hardcode_automatic
16058 # Set to yes if linker adds runtime paths of dependent libraries
16059 # to runtime path list.
16060 inherit_rpath=$inherit_rpath
16062 # Whether libtool must link a program against all its dependency libraries.
16063 link_all_deplibs=$link_all_deplibs
16065 # Fix the shell variable \$srcfile for the compiler.
16066 fix_srcfile_path=$lt_fix_srcfile_path
16068 # Set to "yes" if exported symbols are required.
16069 always_export_symbols=$always_export_symbols
16071 # The commands to list exported symbols.
16072 export_symbols_cmds=$lt_export_symbols_cmds
16074 # Symbols that should not be listed in the preloaded symbols.
16075 exclude_expsyms=$lt_exclude_expsyms
16077 # Symbols that must always be exported.
16078 include_expsyms=$lt_include_expsyms
16080 # Commands necessary for linking programs (against libraries) with templates.
16081 prelink_cmds=$lt_prelink_cmds
16083 # Specify filename containing input files.
16084 file_list_spec=$lt_file_list_spec
16086 # How to hardcode a shared library path into an executable.
16087 hardcode_action=$hardcode_action
16089 # ### END LIBTOOL CONFIG
16095 cat <<\_LT_EOF >> "$cfgfile"
16096 # AIX sometimes has problems with the GCC collect2 program. For some
16097 # reason, if we set the COLLECT_NAMES environment variable, the problems
16098 # vanish in a puff of smoke.
16099 if test "X${COLLECT_NAMES+set}" != Xset; then
16101 export COLLECT_NAMES
16108 ltmain="$ac_aux_dir/ltmain.sh"
16111 # We use sed instead of cat because bash on DJGPP gets confused if
16112 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16113 # text mode, it properly converts lines to CR/LF. This bash problem
16114 # is reportedly fixed, but why not run on old versions too?
16115 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16116 || (rm -f "$cfgfile"; exit 1)
16120 cat << \_LT_EOF >> "$cfgfile"
16122 # func_dirname file append nondir_replacement
16123 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16124 # otherwise set result to NONDIR_REPLACEMENT.
16128 */*) func_dirname_result="${1%/*}${2}" ;;
16129 * ) func_dirname_result="${3}" ;;
16133 # func_basename file
16136 func_basename_result="${1##*/}"
16139 # func_dirname_and_basename file append nondir_replacement
16140 # perform func_basename and func_dirname in a single function
16142 # dirname: Compute the dirname of FILE. If nonempty,
16143 # add APPEND to the result, otherwise set result
16144 # to NONDIR_REPLACEMENT.
16145 # value returned in "$func_dirname_result"
16146 # basename: Compute filename of FILE.
16147 # value retuned in "$func_basename_result"
16148 # Implementation must be kept synchronized with func_dirname
16149 # and func_basename. For efficiency, we do not delegate to
16150 # those functions but instead duplicate the functionality here.
16151 func_dirname_and_basename ()
16154 */*) func_dirname_result="${1%/*}${2}" ;;
16155 * ) func_dirname_result="${3}" ;;
16157 func_basename_result="${1##*/}"
16160 # func_stripname prefix suffix name
16161 # strip PREFIX and SUFFIX off of NAME.
16162 # PREFIX and SUFFIX must not contain globbing or regex special
16163 # characters, hashes, percent signs, but SUFFIX may contain a leading
16164 # dot (in which case that matches only a dot).
16167 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16168 # positional parameters, so assign one to ordinary parameter first.
16169 func_stripname_result=${3}
16170 func_stripname_result=${func_stripname_result#"${1}"}
16171 func_stripname_result=${func_stripname_result%"${2}"}
16177 func_opt_split_opt=${1%%=*}
16178 func_opt_split_arg=${1#*=}
16185 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16186 *) func_lo2o_result=${1} ;;
16190 # func_xform libobj-or-source
16193 func_xform_result=${1%.*}.lo
16196 # func_arith arithmetic-term...
16199 func_arith_result=$(( $* ))
16203 # STRING may not start with a hyphen.
16206 func_len_result=${#1}
16211 *) # Bourne compatible functions.
16212 cat << \_LT_EOF >> "$cfgfile"
16214 # func_dirname file append nondir_replacement
16215 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16216 # otherwise set result to NONDIR_REPLACEMENT.
16219 # Extract subdirectory from the argument.
16220 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16221 if test "X$func_dirname_result" = "X${1}"; then
16222 func_dirname_result="${3}"
16224 func_dirname_result="$func_dirname_result${2}"
16228 # func_basename file
16231 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16235 # func_stripname prefix suffix name
16236 # strip PREFIX and SUFFIX off of NAME.
16237 # PREFIX and SUFFIX must not contain globbing or regex special
16238 # characters, hashes, percent signs, but SUFFIX may contain a leading
16239 # dot (in which case that matches only a dot).
16240 # func_strip_suffix prefix name
16244 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16245 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16250 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16251 my_sed_long_arg='1s/^-[^=]*=//'
16256 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16257 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16263 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16266 # func_xform libobj-or-source
16269 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16272 # func_arith arithmetic-term...
16275 func_arith_result=`expr "$@"`
16279 # STRING may not start with a hyphen.
16282 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16288 case $lt_shell_append in
16290 cat << \_LT_EOF >> "$cfgfile"
16292 # func_append var value
16293 # Append VALUE to the end of shell variable VAR.
16301 cat << \_LT_EOF >> "$cfgfile"
16303 # func_append var value
16304 # Append VALUE to the end of shell variable VAR.
16315 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16316 || (rm -f "$cfgfile"; exit 1)
16318 mv -f "$cfgfile" "$ofile" ||
16319 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16323 cat <<_LT_EOF >> "$ofile"
16325 # ### BEGIN LIBTOOL TAG CONFIG: GO
16327 # The linker used to build libraries.
16330 # How to create reloadable object files.
16331 reload_flag=$lt_reload_flag_GO
16332 reload_cmds=$lt_reload_cmds_GO
16334 # Commands used to build an old-style archive.
16335 old_archive_cmds=$lt_old_archive_cmds_GO
16337 # A language specific compiler.
16340 # Is the compiler the GNU compiler?
16343 # Compiler flag to turn off builtin functions.
16344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16346 # How to pass a linker flag through the compiler.
16347 wl=$lt_lt_prog_compiler_wl_GO
16349 # Additional compiler flags for building library objects.
16350 pic_flag=$lt_lt_prog_compiler_pic_GO
16352 # Compiler flag to prevent dynamic linking.
16353 link_static_flag=$lt_lt_prog_compiler_static_GO
16355 # Does compiler simultaneously support -c and -o options?
16356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16358 # Whether or not to add -lc for building shared libraries.
16359 build_libtool_need_lc=$archive_cmds_need_lc_GO
16361 # Whether or not to disallow shared libs when runtime libs are static.
16362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16364 # Compiler flag to allow reflexive dlopens.
16365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16367 # Compiler flag to generate shared objects directly from archives.
16368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16370 # Whether the compiler copes with passing no objects directly.
16371 compiler_needs_object=$lt_compiler_needs_object_GO
16373 # Create an old-style archive from a shared archive.
16374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16376 # Create a temporary old-style archive to link instead of a shared archive.
16377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16379 # Commands used to build a shared archive.
16380 archive_cmds=$lt_archive_cmds_GO
16381 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16383 # Commands used to build a loadable module if different from building
16384 # a shared archive.
16385 module_cmds=$lt_module_cmds_GO
16386 module_expsym_cmds=$lt_module_expsym_cmds_GO
16388 # Whether we are building with GNU ld or not.
16389 with_gnu_ld=$lt_with_gnu_ld_GO
16391 # Flag that allows shared libraries with undefined symbols to be built.
16392 allow_undefined_flag=$lt_allow_undefined_flag_GO
16394 # Flag that enforces no undefined symbols.
16395 no_undefined_flag=$lt_no_undefined_flag_GO
16397 # Flag to hardcode \$libdir into a binary during linking.
16398 # This must work even if \$libdir does not exist
16399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16401 # If ld is used when linking, flag to hardcode \$libdir into a binary
16402 # during linking. This must work even if \$libdir does not exist.
16403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16405 # Whether we need a single "-rpath" flag with a separated argument.
16406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16409 # DIR into the resulting binary.
16410 hardcode_direct=$hardcode_direct_GO
16412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16413 # DIR into the resulting binary and the resulting library dependency is
16414 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16415 # library is relocated.
16416 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16419 # into the resulting binary.
16420 hardcode_minus_L=$hardcode_minus_L_GO
16422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16423 # into the resulting binary.
16424 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16426 # Set to "yes" if building a shared library automatically hardcodes DIR
16427 # into the library and all subsequent libraries and executables linked
16429 hardcode_automatic=$hardcode_automatic_GO
16431 # Set to yes if linker adds runtime paths of dependent libraries
16432 # to runtime path list.
16433 inherit_rpath=$inherit_rpath_GO
16435 # Whether libtool must link a program against all its dependency libraries.
16436 link_all_deplibs=$link_all_deplibs_GO
16438 # Fix the shell variable \$srcfile for the compiler.
16439 fix_srcfile_path=$lt_fix_srcfile_path_GO
16441 # Set to "yes" if exported symbols are required.
16442 always_export_symbols=$always_export_symbols_GO
16444 # The commands to list exported symbols.
16445 export_symbols_cmds=$lt_export_symbols_cmds_GO
16447 # Symbols that should not be listed in the preloaded symbols.
16448 exclude_expsyms=$lt_exclude_expsyms_GO
16450 # Symbols that must always be exported.
16451 include_expsyms=$lt_include_expsyms_GO
16453 # Commands necessary for linking programs (against libraries) with templates.
16454 prelink_cmds=$lt_prelink_cmds_GO
16456 # Specify filename containing input files.
16457 file_list_spec=$lt_file_list_spec_GO
16459 # How to hardcode a shared library path into an executable.
16460 hardcode_action=$hardcode_action_GO
16462 # ### END LIBTOOL TAG CONFIG: GO
16466 "default":C) if test -n "$CONFIG_FILES"; then
16467 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16468 # that multilib installs will end up installed in the correct place.
16469 # The testsuite needs it for multilib-aware ABI baseline files.
16470 # To work around this not being passed down from config-ml.in ->
16471 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16472 # append it here. Only modify Makefiles that have just been created.
16474 # Also, get rid of this simulated-VPATH thing that automake does.
16475 cat > vpsed << \_EOF
16476 s!`test -f '$<' || echo '$(srcdir)/'`!!
16478 for i in $SUBDIRS; do
16479 case $CONFIG_FILES in
16481 #echo "Adding MULTISUBDIR to $i/Makefile"
16482 sed -f vpsed $i/Makefile > tmp
16483 grep '^MULTISUBDIR =' Makefile >> tmp
16498 ac_clean_files=$ac_clean_files_save
16500 test $ac_write_fail = 0 ||
16501 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16504 # configure is writing to config.log, and then calls config.status.
16505 # config.status does its own redirection, appending to config.log.
16506 # Unfortunately, on DOS this fails, as config.log is still kept open
16507 # by configure, so config.status won't be able to write to it; its
16508 # output is simply discarded. So we exec the FD to /dev/null,
16509 # effectively closing config.log, so it can be properly (re)opened and
16510 # appended to by config.status. When coming back to configure, we
16511 # need to make the FD available again.
16512 if test "$no_create" != yes; then
16514 ac_config_status_args=
16515 test "$silent" = yes &&
16516 ac_config_status_args="$ac_config_status_args --quiet"
16518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16521 # would make configure fail if this is the last instruction.
16522 $ac_cs_success || as_fn_exit $?
16524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16526 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}