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
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
610 HAVE_STRERROR_R_FALSE
612 HAVE_SYS_MMAN_H_FALSE
618 USING_SPLIT_STACK_FALSE
619 USING_SPLIT_STACK_TRUE
622 GO_SYSCALL_OS_ARCH_FILE
624 GO_LIBCALL_OS_ARCH_FILE
627 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_SPARC64_FALSE
630 LIBGO_IS_SPARC64_TRUE
637 LIBGO_IS_MIPSO64_FALSE
638 LIBGO_IS_MIPSO64_TRUE
639 LIBGO_IS_MIPSN64_FALSE
640 LIBGO_IS_MIPSN64_TRUE
641 LIBGO_IS_MIPSN32_FALSE
642 LIBGO_IS_MIPSN32_TRUE
643 LIBGO_IS_MIPSO32_FALSE
644 LIBGO_IS_MIPSO32_TRUE
656 LIBGO_IS_SOLARIS_FALSE
657 LIBGO_IS_SOLARIS_TRUE
660 LIBGO_IS_NETBSD_FALSE
666 LIBGO_IS_FREEBSD_FALSE
667 LIBGO_IS_FREEBSD_TRUE
668 LIBGO_IS_DARWIN_FALSE
673 glibgo_toolexeclibdir
702 MAINTAINER_MODE_FALSE
730 INSTALL_STRIP_PROGRAM
786 program_transform_name
799 enable_option_checking
801 enable_dependency_tracking
802 enable_maintainer_mode
809 enable_version_specific_runtime_libs
811 with_system_libunwind
812 enable_sjlj_exceptions
814 ac_precious_vars
='build_alias
821 # Initialize some variables set by options.
823 ac_init_version
=false
824 ac_unrecognized_opts
=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name
=s
,x
,x
,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir
='${exec_prefix}/bin'
850 sbindir
='${exec_prefix}/sbin'
851 libexecdir
='${exec_prefix}/libexec'
852 datarootdir
='${prefix}/share'
853 datadir
='${datarootdir}'
854 sysconfdir
='${prefix}/etc'
855 sharedstatedir
='${prefix}/com'
856 localstatedir
='${prefix}/var'
857 includedir
='${prefix}/include'
858 oldincludedir
='/usr/include'
859 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir
='${datarootdir}/info'
865 libdir
='${exec_prefix}/lib'
866 localedir
='${datarootdir}/locale'
867 mandir
='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\
$ac_option
881 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
893 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
896 -build |
--build |
--buil |
--bui |
--bu)
897 ac_prev
=build_alias
;;
898 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
899 build_alias
=$ac_optarg ;;
901 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
902 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
903 ac_prev
=cache_file
;;
904 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
905 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
906 cache_file
=$ac_optarg ;;
909 cache_file
=config.cache
;;
911 -datadir |
--datadir |
--datadi |
--datad)
913 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
914 datadir
=$ac_optarg ;;
916 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
917 |
--dataroo |
--dataro |
--datar)
918 ac_prev
=datarootdir
;;
919 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
920 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
921 datarootdir
=$ac_optarg ;;
923 -disable-* |
--disable-*)
924 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
927 as_fn_error
"invalid feature name: $ac_useropt"
928 ac_useropt_orig
=$ac_useropt
929 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep
=', ';;
937 eval enable_
$ac_useropt=no
;;
939 -docdir |
--docdir |
--docdi |
--doc |
--do)
941 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
944 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
946 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
949 -enable-* |
--enable-*)
950 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
953 as_fn_error
"invalid feature name: $ac_useropt"
954 ac_useropt_orig
=$ac_useropt
955 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep
=', ';;
963 eval enable_
$ac_useropt=\
$ac_optarg ;;
965 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
966 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
967 |
--exec |
--exe |
--ex)
968 ac_prev
=exec_prefix
;;
969 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
970 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
971 |
--exec=* |
--exe=* |
--ex=*)
972 exec_prefix
=$ac_optarg ;;
974 -gas |
--gas |
--ga |
--g)
975 # Obsolete; use --with-gas.
978 -help |
--help |
--hel |
--he |
-h)
980 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
981 ac_init_help
=recursive
;;
982 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
983 ac_init_help
=short
;;
985 -host |
--host |
--hos |
--ho)
986 ac_prev
=host_alias
;;
987 -host=* |
--host=* |
--hos=* |
--ho=*)
988 host_alias
=$ac_optarg ;;
990 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
992 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
994 htmldir
=$ac_optarg ;;
996 -includedir |
--includedir |
--includedi |
--included |
--include \
997 |
--includ |
--inclu |
--incl |
--inc)
998 ac_prev
=includedir
;;
999 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1000 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1001 includedir
=$ac_optarg ;;
1003 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1005 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1006 infodir
=$ac_optarg ;;
1008 -libdir |
--libdir |
--libdi |
--libd)
1010 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1011 libdir
=$ac_optarg ;;
1013 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1014 |
--libexe |
--libex |
--libe)
1015 ac_prev
=libexecdir
;;
1016 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1017 |
--libexe=* |
--libex=* |
--libe=*)
1018 libexecdir
=$ac_optarg ;;
1020 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1021 ac_prev
=localedir
;;
1022 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1023 localedir
=$ac_optarg ;;
1025 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1026 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1027 ac_prev
=localstatedir
;;
1028 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1029 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1030 localstatedir
=$ac_optarg ;;
1032 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1034 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1035 mandir
=$ac_optarg ;;
1037 -nfp |
--nfp |
--nf)
1038 # Obsolete; use --without-fp.
1041 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1042 |
--no-cr |
--no-c |
-n)
1045 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1046 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1049 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1050 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1051 |
--oldin |
--oldi |
--old |
--ol |
--o)
1052 ac_prev
=oldincludedir
;;
1053 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1054 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1055 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1056 oldincludedir
=$ac_optarg ;;
1058 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1060 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1061 prefix
=$ac_optarg ;;
1063 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1064 |
--program-pre |
--program-pr |
--program-p)
1065 ac_prev
=program_prefix
;;
1066 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1067 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1068 program_prefix
=$ac_optarg ;;
1070 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1071 |
--program-suf |
--program-su |
--program-s)
1072 ac_prev
=program_suffix
;;
1073 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1074 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1075 program_suffix
=$ac_optarg ;;
1077 -program-transform-name |
--program-transform-name \
1078 |
--program-transform-nam |
--program-transform-na \
1079 |
--program-transform-n |
--program-transform- \
1080 |
--program-transform |
--program-transfor \
1081 |
--program-transfo |
--program-transf \
1082 |
--program-trans |
--program-tran \
1083 |
--progr-tra |
--program-tr |
--program-t)
1084 ac_prev
=program_transform_name
;;
1085 -program-transform-name=* |
--program-transform-name=* \
1086 |
--program-transform-nam=* |
--program-transform-na=* \
1087 |
--program-transform-n=* |
--program-transform-=* \
1088 |
--program-transform=* |
--program-transfor=* \
1089 |
--program-transfo=* |
--program-transf=* \
1090 |
--program-trans=* |
--program-tran=* \
1091 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1092 program_transform_name
=$ac_optarg ;;
1094 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1096 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1097 pdfdir
=$ac_optarg ;;
1099 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1101 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1104 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1105 |
-silent |
--silent |
--silen |
--sile |
--sil)
1108 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1110 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1112 sbindir
=$ac_optarg ;;
1114 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1115 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1116 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1118 ac_prev
=sharedstatedir
;;
1119 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1120 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1121 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1123 sharedstatedir
=$ac_optarg ;;
1125 -site |
--site |
--sit)
1127 -site=* |
--site=* |
--sit=*)
1130 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1132 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1133 srcdir
=$ac_optarg ;;
1135 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1136 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1137 ac_prev
=sysconfdir
;;
1138 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1139 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1140 sysconfdir
=$ac_optarg ;;
1142 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1143 ac_prev
=target_alias
;;
1144 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1145 target_alias
=$ac_optarg ;;
1147 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1150 -version |
--version |
--versio |
--versi |
--vers |
-V)
1151 ac_init_version
=: ;;
1154 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1157 as_fn_error
"invalid package name: $ac_useropt"
1158 ac_useropt_orig
=$ac_useropt
1159 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep
=', ';;
1167 eval with_
$ac_useropt=\
$ac_optarg ;;
1169 -without-* |
--without-*)
1170 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error
"invalid package name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval with_
$ac_useropt=no
;;
1186 # Obsolete; use --with-x.
1189 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1190 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1191 ac_prev
=x_includes
;;
1192 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1193 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1194 x_includes
=$ac_optarg ;;
1196 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1197 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1198 ac_prev
=x_libraries
;;
1199 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1200 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1201 x_libraries
=$ac_optarg ;;
1203 -*) as_fn_error
"unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information."
1208 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1212 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1214 eval $ac_envvar=\
$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 if test -n "$ac_prev"; then
1229 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error
"missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1236 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 # Check all directory arguments for consistency.
1242 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val
=\$
$ac_var
1248 # Remove trailing slashes.
1251 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\
$ac_val;;
1254 # Be sure to have absolute directory names.
1256 [\\/$
]* | ?
:[\\/]* ) continue;;
1257 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1259 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target
=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x
; then
1271 if test "x$build_alias" = x
; then
1272 cross_compiling
=maybe
1273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1283 test "$silent" = yes && exec 6>/dev
/null
1286 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di
=`ls -di .` &&
1288 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error
"working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error
"pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted
=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir
=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted
=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1330 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var
in $ac_precious_vars; do
1347 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1349 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1423 --build=BUILD configure
for building on BUILD
[guessed
]
1424 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1425 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive
) echo "Configuration of package-unused version-unused:";;
1436 --disable-option-checking ignore unrecognized
--enable/--with options
1437 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1438 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1439 --enable-multilib build many library versions
(default
)
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-maintainer-mode enable make rules and dependencies not useful
1443 (and sometimes confusing
) to the casual installer
1444 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1445 --enable-static[=PKGS
] build static libraries
[default
=yes]
1446 --enable-fast-install[=PKGS
]
1447 optimize
for fast installation
[default
=yes]
1448 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1449 --enable-version-specific-runtime-libs
1450 Specify that runtime libraries should be installed
1451 in a compiler-specific directory
1452 --enable-sjlj-exceptions
1453 force use of builtin_setjmp
for exceptions
1456 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1457 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1458 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1459 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1461 --without-libffi don
't use libffi
1462 --with-system-libunwind use installed libunwind
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 GOC Go compiler command
1473 GOCFLAGS Go compiler flags
1476 Use these variables to override the choices made by `configure' or to
help
1477 it to
find libraries and programs with nonstandard names
/locations.
1479 Report bugs to the package provider.
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1493 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1495 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1500 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir
=$ac_pwd
1504 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir
=$ac_top_build_prefix
1509 .
) # We are building in place.
1511 ac_top_srcdir
=$ac_top_builddir_sub
1512 ac_abs_top_srcdir
=$ac_pwd ;;
1513 [\\/]* | ?
:[\\/]* ) # Absolute name.
1514 ac_srcdir
=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir
=$srcdir
1516 ac_abs_top_srcdir
=$srcdir ;;
1518 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 package-unused configure version-unused
1543 generated by GNU Autoconf
2.64
1545 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1546 This configure
script is free software
; the Free Software Foundation
1547 gives unlimited permission to copy
, distribute and modify it.
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile
()
1561 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1562 rm -f conftest.
$ac_objext
1563 if { { ac_try
="$ac_compile"
1565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_link LINENO
1595 # -----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest$ac_exeext
1601 if { { ac_try="$ac_link"
1603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1604 *) ac_try_echo
=$ac_try;;
1606 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err
1610 if test -s conftest.err
; then
1611 grep -v '^ *+' conftest.err
>conftest.er1
1612 cat conftest.er1
>&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest
$ac_exeext && {
1620 test "$cross_compiling" = yes ||
1621 $as_test_x conftest
$ac_exeext
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.
$ac_ext >&5
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1638 } # ac_fn_c_try_link
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile
()
1646 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1657 if ac_fn_c_try_compile
"$LINENO"; then :
1662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1669 } # ac_fn_c_check_header_compile
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1677 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } >/dev/null && {
1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1718 *) ac_try_echo
=$ac_try;;
1720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1765 #define $2 innocuous_$2
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char $2 (); below.
1769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770 <limits.h> exists even on freestanding compilers. */
1773 # include <limits.h>
1775 # include <assert.h>
1780 /* Override any GCC internal prototype to avoid an error.
1781 Use char because int might match the return type of a GCC
1782 builtin and then its argument prototype would still apply. */
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined __stub_$2 || defined __stub___$2
1802 if ac_fn_c_try_link "$LINENO"; then :
1807 rm -f core conftest.err conftest.$ac_objext \
1808 conftest$ac_exeext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 } # ac_fn_c_check_func
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1822 ac_fn_c_check_header_mongrel ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829 $as_echo_n "(cached) " >&6
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1835 # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844 ac_header_compiler=yes
1846 ac_header_compiler=no
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860 ac_header_preproc=yes
1862 ac_header_preproc=no
1864 rm -f conftest.err conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1868 # So? What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1894 eval "$3=\$ac_header_compiler"
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 } # ac_fn_c_check_header_mongrel
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_type
1958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1959 # --------------------------------------------
1960 # Tries to find the compile-time value of EXPR in a program that includes
1961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1963 ac_fn_c_compute_int ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if test "$cross_compiling" = yes; then
1967 # Depending upon the size, compute the lo and hi bounds.
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1974 static int test_array [1 - 2 * !(($2) >= 0)];
1981 if ac_fn_c_try_compile "$LINENO"; then :
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid; break
2000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001 if test $ac_lo -le $ac_mid; then
2005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array [1 - 2 * !(($2) < 0)];
2023 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2032 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_lo=$ac_mid; break
2042 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2043 if test $ac_mid -le $ac_hi; then
2047 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 # Binary search between lo and hi bounds.
2058 while test "x$ac_lo" != "x$ac_hi"; do
2059 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 if ac_fn_c_try_compile "$LINENO"; then :
2076 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2096 FILE *f = fopen ("conftest.val", "w");
2101 long int i = longval ();
2104 fprintf (f, "%ld", i);
2108 unsigned long int i = ulongval ();
2111 fprintf (f, "%lu", i);
2113 /* Do not output a trailing newline, as this causes \r\n confusion
2114 on some platforms. */
2115 return ferror (f) || fclose (f) != 0;
2121 if ac_fn_c_try_run "$LINENO"; then :
2122 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127 conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 } # ac_fn_c_compute_int
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2139 It was created by package-unused $as_me version-unused, which was
2140 generated by GNU Autoconf 2.64. Invocation command line was
2152 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2153 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2154 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2155 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2156 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2158 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2159 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2161 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2162 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2163 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2164 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2165 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2166 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2167 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 test -z "$as_dir" && as_dir=.
2176 $as_echo "PATH: $as_dir"
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2200 ac_must_keep_next=false
2206 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208 | -silent | --silent | --silen | --sile | --sil)
2211 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2214 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216 as_fn_append ac_configure_args1 " '$ac_arg'"
2217 if test $ac_must_keep_next = true; then
2218 ac_must_keep_next=false # Got value, back to normal.
2221 *=* | --config-cache | -C | -disable-* | --disable-* \
2222 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224 | -with-* | --with-* | -without-* | --without-* | --x)
2225 case "$ac_configure_args0 " in
2226 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 -* ) ac_must_keep_next=true ;;
2232 as_fn_append ac_configure_args " '$ac_arg'"
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log. We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246 # Save into config.log some information that might help in debugging.
2251 ## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##
2256 # The following way of writing the cache mishandles newlines in values,
2258 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2259 eval ac_val=\$$ac_var
2263 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2264 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 _ | IFS | as_nl) ;; #(
2268 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2269 *) { eval $ac_var=; unset $ac_var;} ;;
2274 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2275 *${as_nl}ac_space=\ *)
2277 "s/'\''/'\''\\\\'\'''\''/g;
2278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2289 ## ----------------- ##
2290 ## Output variables. ##
2291 ## ----------------- ##
2294 for ac_var in $ac_subst_vars
2296 eval ac_val=\$$ac_var
2298 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300 $as_echo "$ac_var='\''$ac_val'\''"
2304 if test -n "$ac_subst_files"; then
2306 ## ------------------- ##
2307 ## File substitutions. ##
2308 ## ------------------- ##
2311 for ac_var in $ac_subst_files
2313 eval ac_val=\$$ac_var
2315 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 $as_echo "$ac_var='\''$ac_val'\''"
2322 if test -s confdefs.h; then
2332 test "$ac_signal" != 0 &&
2333 $as_echo "$as_me: caught signal $ac_signal"
2334 $as_echo "$as_me: exit $exit_status"
2336 rm -f core *.core core.conftest.* &&
2337 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2340 for ac_signal in 1 2 13 15; do
2341 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2346 rm -f -r conftest* confdefs.h
2348 $as_echo "/* confdefs.h */" > confdefs.h
2350 # Predefined preprocessor variables.
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_NAME "$PACKAGE_NAME"
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_STRING "$PACKAGE_STRING"
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_URL "$PACKAGE_URL"
2377 # Let the site file select an alternate cache file if it wants to.
2378 # Prefer an explicitly selected file to automatically selected ones.
2381 if test -n "$CONFIG_SITE"; then
2382 ac_site_file1=$CONFIG_SITE
2383 elif test "x$prefix" != xNONE; then
2384 ac_site_file1=$prefix/share/config.site
2385 ac_site_file2=$prefix/etc/config.site
2387 ac_site_file1=$ac_default_prefix/share/config.site
2388 ac_site_file2=$ac_default_prefix/etc/config.site
2390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 test "x$ac_site_file" = xNONE && continue
2393 if test -r "$ac_site_file"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396 sed 's/^/| /' "$ac_site_file" >&5
2401 if test -r "$cache_file"; then
2402 # Some versions of bash will fail to source /dev/null (special
2403 # files actually), so we avoid doing that.
2404 if test -f "$cache_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409 *) . "./$cache_file";;
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2418 # Check that the precious variables saved in the cache have kept the same
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423 eval ac_new_set=\$ac_env_${ac_var}_set
2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425 eval ac_new_val=\$ac_env_${ac_var}_value
2426 case $ac_old_set,$ac_new_set in
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2429 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2433 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2434 ac_cache_corrupted=: ;;
2437 if test "x$ac_old_val" != "x$ac_new_val"; then
2438 # differences in whitespace do not lead to failure.
2439 ac_old_val_w=`echo x
$ac_old_val`
2440 ac_new_val_w=`echo x
$ac_new_val`
2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2444 ac_cache_corrupted=:
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448 eval $ac_var=\$ac_old_val
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2451 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 # Pass precious variables to config.status.
2457 if test "$ac_new_set" = set; then
2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2460 *) ac_arg=$ac_var=$ac_new_val ;;
2462 case " $ac_configure_args " in
2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468 if $ac_cache_corrupted; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490 ac_config_headers="$ac_config_headers config.h"
2493 libtool_VERSION=1:0:0
2496 # Default to --enable-multilib
2497 # Check whether --enable-multilib was given.
2498 if test "${enable_multilib+set}" = set; then :
2499 enableval=$enable_multilib; case "$enableval" in
2500 yes) multilib=yes ;;
2502 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2509 # We may get other options which we leave undocumented:
2510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2511 # See config-ml.in if you want the gory details.
2513 if test "$srcdir" = "."; then
2514 if test "$with_target_subdir" != "."; then
2515 multi_basedir="$srcdir/$with_multisrctop../.."
2517 multi_basedir="$srcdir/$with_multisrctop.."
2520 multi_basedir="$srcdir/.."
2524 # Even if the default multilib is not a cross compilation,
2525 # it may be that some of the other multilibs are.
2526 if test $cross_compiling = no && test $multilib = yes \
2527 && test "x${with_multisubdir}" != x ; then
2528 cross_compiling=maybe
2531 ac_config_commands="$ac_config_commands default-1"
2535 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2536 for ac_t in install-sh install.sh shtool; do
2537 if test -f "$ac_dir/$ac_t"; then
2539 ac_install_sh="$ac_aux_dir/$ac_t -c"
2544 if test -z "$ac_aux_dir"; then
2545 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2554 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557 # Make sure we can run config.sub.
2558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2559 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2562 $as_echo_n "checking build system type... " >&6; }
2563 if test "${ac_cv_build+set}" = set; then :
2564 $as_echo_n "(cached) " >&6
2566 ac_build_alias=$build_alias
2567 test "x$ac_build_alias" = x &&
2568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2569 test "x$ac_build_alias" = x &&
2570 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2572 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2576 $as_echo "$ac_cv_build" >&6; }
2577 case $ac_cv_build in
2579 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2582 ac_save_IFS=$IFS; IFS='-'
2588 # Remember, the first character of IFS is used to create $*,
2589 # except with old shells:
2592 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2596 $as_echo_n "checking host system type... " >&6; }
2597 if test "${ac_cv_host+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2600 if test "x$host_alias" = x; then
2601 ac_cv_host=$ac_cv_build
2603 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2604 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2609 $as_echo "$ac_cv_host" >&6; }
2612 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2615 ac_save_IFS=$IFS; IFS='-'
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2625 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2629 $as_echo_n "checking target system type... " >&6; }
2630 if test "${ac_cv_target+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2633 if test "x$target_alias" = x; then
2634 ac_cv_target=$ac_cv_host
2636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2642 $as_echo "$ac_cv_target" >&6; }
2643 case $ac_cv_target in
2645 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2647 target=$ac_cv_target
2648 ac_save_IFS=$IFS; IFS='-'
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2658 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2661 # The aliases save the names the user supplied, while $host etc.
2662 # will get canonicalized.
2663 test -n "$target_alias" &&
2664 test "$program_prefix$program_suffix$program_transform_name" = \
2666 program_prefix=${target_alias}-
2668 target_alias=${target_alias-$host_alias}
2670 am__api_version='1.11'
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2687 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in #((
2699 ./ | .// | /[cC]/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2741 rm -rf conftest.one conftest.two conftest.dir
2744 if test "${ac_cv_path_install+set}" = set; then
2745 INSTALL=$ac_cv_path_install
2747 # As a last resort, use the slow shell script. Don't cache a
2748 # value for INSTALL within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the value is a relative name.
2751 INSTALL=$ac_install_sh
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2755 $as_echo "$INSTALL" >&6; }
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2766 $as_echo_n "checking whether build environment is sane... " >&6; }
2769 echo timestamp > conftest.file
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name. Accept space and tab only in the latter.
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2779 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2783 # Do `set' in a subshell so we don't clobber the current shell's
2784 # arguments. Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2789 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2790 if test "$*" = "X"; then
2792 set X
`ls -t "$srcdir/configure" conftest.file`
2795 if test "$*" != "X $srcdir/configure conftest.file" \
2796 && test "$*" != "X conftest.file $srcdir/configure"; then
2798 # If neither matched, then we have a broken ls. This can happen
2799 # if, for instance, CONFIG_SHELL is bash and it inherits a
2800 # broken ls alias from the environment. This has actually
2801 # happened. Such a system could not be considered "sane".
2802 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2803 alias in your environment" "$LINENO" 5
2806 test "$2" = conftest.
file
2812 as_fn_error
"newly created file is older than distributed files!
2813 Check your system clock" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817 test "$program_prefix" != NONE
&&
2818 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE
&&
2821 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir
=`cd $ac_aux_dir && pwd`
2830 if test x
"${MISSING+set}" != xset
; then
2833 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2835 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840 am_missing_run
="$MISSING --run "
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2847 if test x
"${install_sh}" != xset
; then
2850 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2852 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2856 # Installed binaries are usually stripped using `strip' when the user
2857 # run `make install-strip'. However `strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the `STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no
; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$STRIP"; then
2870 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 STRIP
=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2900 if test -z "$ac_cv_prog_STRIP"; then
2902 # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip
; ac_word
=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir
=.
2917 for ac_exec_ext
in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_ac_ct_STRIP
="strip"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2938 if test "x$ac_ct_STRIP" = x
; then
2941 case $cross_compiling:$ac_tool_warned in
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned
=yes ;;
2950 STRIP
="$ac_cv_prog_STRIP"
2954 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959 if test "${ac_cv_path_mkdir+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_prog
in mkdir gmkdir
; do
2968 for ac_exec_ext
in '' $ac_executable_extensions; do
2969 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971 'mkdir (GNU coreutils) '* | \
2972 'mkdir (coreutils) '* | \
2973 'mkdir (fileutils) '4.1*)
2974 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2984 if test "${ac_cv_path_mkdir+set}" = set; then
2985 MKDIR_P
="$ac_cv_path_mkdir -p"
2987 # As a last resort, use the slow shell script. Don't cache a
2988 # value for MKDIR_P within a source directory, because that will
2989 # break other packages using the cache if that directory is
2990 # removed, or if the value is a relative name.
2991 test -d .
/--version && rmdir .
/--version
2992 MKDIR_P
="$ac_install_sh -d"
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
3000 [\\/$
]* | ?
:[\\/]*) ;;
3001 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3004 for ac_prog
in gawk mawk nawk
awk
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy
$ac_prog; ac_word
=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3013 if test -n "$AWK"; then
3014 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_AWK
="$ac_prog"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 if test -n "$AWK"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3043 test -n "$AWK" && break
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3051 $as_echo_n "(cached) " >&6
3053 cat >conftest.
make <<\_ACEOF
3056 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3061 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3063 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3067 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 SET_MAKE
="MAKE=${MAKE-make}"
3077 rm -rf .tst
2>/dev
/null
3078 mkdir .tst
2>/dev
/null
3079 if test -d .tst
; then
3084 rmdir .tst
2>/dev
/null
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088 # is not polluted with repeated "-I."
3089 am__isrc
=' -I$(srcdir)'
3090 # test to see if srcdir already configured
3091 if test -f $srcdir/config.status
; then
3092 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3099 CYGPATH_W
='cygpath -w'
3106 # Define the identity of the package.
3108 VERSION
='version-unused'
3111 # Some tools Automake needs.
3113 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3119 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3125 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3127 # We need awk for the "check" target. The system "awk" is bad on
3129 # Always define AMTAR for backward compatibility.
3131 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3133 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3145 ac_cpp
='$CPP $CPPFLAGS'
3146 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC
="$CC" # Let the user override the test.
3160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir
=.
3165 for ac_exec_ext
in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc
; ac_word
=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir
=.
3205 for ac_exec_ext
in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC
="gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x
; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned
=yes ;;
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC
="$CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc
; ac_word
=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC
="$CC" # Let the user override the test.
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_exec_ext
in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected
=yes
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy
$ac_cv_prog_CC
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3322 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog
in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC
="$CC" # Let the user override the test.
3352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir
=.
3357 for ac_exec_ext
in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3382 if test -z "$CC"; then
3384 for ac_prog
in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy
$ac_prog; ac_word
=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir
=.
3401 for ac_exec_ext
in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC
="$ac_prog"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3426 if test "x$ac_ct_CC" = x
; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned
=yes ;;
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error
"no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." "$LINENO" 5; }
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 for ac_option
in --version -v -V -qversion; do
3452 { { ac_try
="$ac_compiler $ac_option >&5"
3454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3461 if test -s conftest.err; then
3463 ... rest of stderr output deleted ...
3464 10q' conftest.err >conftest.er1
3465 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3489 $as_echo_n "checking for C compiler default output file name... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496 for ac_file in $ac_files
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 if { { ac_try="$ac_link_default"
3507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3508 *) ac_try_echo
=$ac_try;;
3510 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_link_default") 2>&5
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }; then :
3516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3521 for ac_file
in $ac_files ''
3523 test -f "$ac_file" ||
continue
3525 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3528 # We found the default executable, but exeext='' is most
3532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3534 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 # We set ac_cv_exeext here because the later test for it is not
3537 # safe: cross compilers may not add the suffix if given an `-o'
3538 # argument, so we may need to know it at that point already.
3539 # Even if this section looks crufty: it has the advantage of
3546 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3552 $as_echo "$ac_file" >&6; }
3553 if test -z "$ac_file"; then :
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.
$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { as_fn_set_status
77
3560 as_fn_error
"C compiler cannot create executables
3561 See \`config.log' for more details." "$LINENO" 5; }; }
3563 ac_exeext
=$ac_cv_exeext
3565 # Check that the compiler produces executables we can run. If not, either
3566 # the compiler is broken, or we cross compile.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3568 $as_echo_n "checking whether the C compiler works... " >&6; }
3569 # If not cross compiling, check that we can run a simple program.
3570 if test "$cross_compiling" != yes; then
3571 if { ac_try
='./$ac_file'
3572 { { case "(($ac_try" in
3573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_try") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; }; then
3584 if test "$cross_compiling" = maybe; then
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error "cannot run C compiled programs.
3590 If you meant to cross compile
, use \
`--host'.
3591 See \`config.log
' for more details." "$LINENO" 5; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3621 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3624 for ac_file
in conftest.exe conftest conftest.
*; do
3625 test -f "$ac_file" ||
continue
3627 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3628 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details." "$LINENO" 5; }
3639 rm -f conftest
$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3643 rm -f conftest.
$ac_ext
3644 EXEEXT
=$ac_cv_exeext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 rm -f conftest.o conftest.obj
3663 if { { ac_try
="$ac_compile"
3665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_compile") 2>&5
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; then :
3674 for ac_file in conftest.o conftest.obj conftest.*; do
3675 test -f "$ac_file" || continue;
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683 $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error "cannot compute suffix of object files
: cannot compile
3689 See \
`config.log' for more details." "$LINENO" 5; }
3691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694 $as_echo "$ac_cv_objext" >&6; }
3695 OBJEXT=$ac_cv_objext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3716 if ac_fn_c_try_compile "$LINENO"; then :
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727 if test $ac_compiler_gnu = yes; then
3732 ac_test_CFLAGS=${CFLAGS+set}
3733 ac_save_CFLAGS=$CFLAGS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3736 if test "${ac_cv_prog_cc_g+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3739 ac_save_c_werror_flag=$ac_c_werror_flag
3740 ac_c_werror_flag=yes
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3754 if ac_fn_c_try_compile "$LINENO"; then :
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3769 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_c_werror_flag=$ac_save_c_werror_flag
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 if ac_fn_c_try_compile "$LINENO"; then :
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796 $as_echo "$ac_cv_prog_cc_g" >&6; }
3797 if test "$ac_test_CFLAGS" = set; then
3798 CFLAGS=$ac_save_CFLAGS
3799 elif test $ac_cv_prog_cc_g = yes; then
3800 if test "$GCC" = yes; then
3806 if test "$GCC" = yes; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 ac_cv_prog_cc_c89=no
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3839 s = g (p, va_arg (v,int));
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877 ac_cv_prog_cc_c89=$ac_arg
3879 rm -f core conftest.err conftest.$ac_objext
3880 test "x$ac_cv_prog_cc_c89" != "xno" && break
3882 rm -f conftest.$ac_ext
3887 case "x$ac_cv_prog_cc_c89" in
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3890 $as_echo "none needed" >&6; } ;;
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893 $as_echo "unsupported" >&6; } ;;
3895 CC="$CC $ac_cv_prog_cc_c89"
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899 if test "x$ac_cv_prog_cc_c89" != xno; then :
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 DEPDIR="${am__leading_dot}deps"
3910 ac_config_commands="$ac_config_commands depfiles"
3913 am_make=${MAKE-make}
3914 cat > confinc << 'END'
3916 @echo this is the am__doit target
3919 # If we don't find an include directive, just comment out the code.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3921 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3925 # First try GNU make style include.
3926 echo "include confinc" > confmf
3927 # Ignore all kinds of additional output from `make'.
3928 case `$am_make -s -f confmf 2> /dev/null` in #(
3929 *the\ am__doit\ target*)
3935 # Now try BSD make style include.
3936 if test "$am__include" = "#"; then
3937 echo '.include
"confinc"' > confmf
3938 case `$am_make -s -f confmf 2> /dev/null` in #(
3939 *the\ am__doit\ target*)
3940 am__include=.include
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3949 $as_echo "$_am_result" >&6; }
3950 rm -f confinc confmf
3952 # Check whether --enable-dependency-tracking was given.
3953 if test "${enable_dependency_tracking+set}" = set; then :
3954 enableval=$enable_dependency_tracking;
3957 if test "x$enable_dependency_tracking" != xno; then
3958 am_depcomp="$ac_aux_dir/depcomp"
3961 if test "x$enable_dependency_tracking" != xno
; then
3971 depcc
="$CC" am_compiler_list
=
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979 # We make a subdir and do the tests there. Otherwise we can end up
3980 # making bogus files that we don't know about and never remove. For
3981 # instance it was reported that on HP-UX the gcc test will end up
3982 # making a dummy file named `D' -- because `-MD' means `put the output
3985 # Copy depcomp to subdir because otherwise we won't find it if we're
3986 # using a relative directory.
3987 cp "$am_depcomp" conftest.dir
3989 # We will build objects and dependencies in a subdirectory because
3990 # it helps to detect inapplicable dependency modes. For instance
3991 # both Tru64's cc and ICC support -MD to output dependencies as a
3992 # side effect of compilation, but ICC will put the dependencies in
3993 # the current directory while Tru64 will put them in the object
3997 am_cv_CC_dependencies_compiler_type
=none
3998 if test "$am_compiler_list" = ""; then
3999 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002 case " $depcc " in #(
4003 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4006 for depmode
in $am_compiler_list; do
4007 # Setup a source with many dependencies, because some compilers
4008 # like to wrap large dependency lists on column 80 (with \), and
4009 # we should not choose a depcomp mode which is confused by this.
4011 # We need to recreate these files for each test, as the compiler may
4012 # overwrite some of them when testing with obscure command lines.
4013 # This happens at least with the AIX C compiler.
4015 for i
in 1 2 3 4 5 6; do
4016 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4017 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018 # Solaris 8's {/usr,}/bin/sh.
4019 touch sub
/conftst
$i.h
4021 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024 # mode. It turns out that the SunPro C++ compiler does not properly
4025 # handle `-M -o', and we need to detect this. Also, some Intel
4026 # versions had trouble with output in subdirs
4027 am__obj
=sub
/conftest.
${OBJEXT-o}
4028 am__minus_obj
="-o $am__obj"
4031 # This depmode causes a compiler race in universal mode.
4032 test "$am__universal" = false ||
continue
4035 # after this tag, mechanisms are not by side-effect, so they'll
4036 # only be used when explicitly requested
4037 if test "x$enable_dependency_tracking" = xyes
; then
4043 msvisualcpp | msvcmsys
)
4044 # This compiler won't grok `-c -o', but also, the minuso test has
4045 # not run yet. These depmodes are late enough in the game, and
4046 # so weak that their functioning should not be impacted.
4047 am__obj
=conftest.
${OBJEXT-o}
4052 if depmode
=$depmode \
4053 source=sub
/conftest.c object
=$am__obj \
4054 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4055 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4056 >/dev
/null
2>conftest.err
&&
4057 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4058 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4059 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4060 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4061 # icc doesn't choke on unknown options, it will just issue warnings
4062 # or remarks (even with -Werror). So we grep stderr for any message
4063 # that says an option was ignored or not supported.
4064 # When given -MP, icc 7.0 and 7.1 complain thusly:
4065 # icc: Command line warning: ignoring option '-M'; no argument required
4066 # The diagnosis changed in icc 8.0:
4067 # icc: Command line remark: option '-MP' not supported
4068 if (grep 'ignoring option' conftest.err ||
4069 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4070 am_cv_CC_dependencies_compiler_type
=$depmode
4079 am_cv_CC_dependencies_compiler_type
=none
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4085 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4088 test "x$enable_dependency_tracking" != xno \
4089 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4091 am__fastdepCC_FALSE
='#'
4093 am__fastdepCC_TRUE
='#'
4094 am__fastdepCC_FALSE
=
4099 ac_compile
='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4100 ac_link
='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 if test -n "$ac_tool_prefix"; then
4103 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4104 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_GOC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4110 if test -n "$GOC"; then
4111 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
4113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir
=.
4118 for ac_exec_ext
in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 if test -n "$GOC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4133 $as_echo "$GOC" >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4141 if test -z "$ac_cv_prog_GOC"; then
4143 # Extract the first word of "gccgo", so it can be a program name with args.
4144 set dummy gccgo
; ac_word
=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4148 $as_echo_n "(cached) " >&6
4150 if test -n "$ac_ct_GOC"; then
4151 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
4153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir
=.
4158 for ac_exec_ext
in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_ac_ct_GOC
="gccgo"
4161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
4171 if test -n "$ac_ct_GOC"; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4173 $as_echo "$ac_ct_GOC" >&6; }
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4179 if test "x$ac_ct_GOC" = x
; then
4182 case $cross_compiling:$ac_tool_warned in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned
=yes ;;
4191 GOC
="$ac_cv_prog_GOC"
4194 if test -z "$GOC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4197 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_GOC+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$GOC"; then
4204 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_GOC
="$ac_tool_prefix}gccgo"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$GOC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4226 $as_echo "$GOC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4235 if test -z "$GOC"; then
4236 # Extract the first word of "gccgo", so it can be a program name with args.
4237 set dummy gccgo
; ac_word
=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_GOC+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4243 if test -n "$GOC"; then
4244 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
4247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4251 test -z "$as_dir" && as_dir
=.
4252 for ac_exec_ext
in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4255 ac_prog_rejected
=yes
4258 ac_cv_prog_GOC
="gccgo"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 if test $ac_prog_rejected = yes; then
4267 # We found a bogon in the path, so make sure we never use it.
4268 set dummy
$ac_cv_prog_GOC
4270 if test $# != 0; then
4271 # We chose a different compiler from the bogus one.
4272 # However, it has the same basename, so the bogon will be chosen
4273 # first if we set GOC to just the basename; use the full file name.
4275 ac_cv_prog_GOC
="$as_dir/$ac_word${1+' '}$@"
4281 if test -n "$GOC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4283 $as_echo "$GOC" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4297 { { ac_try
="$ac_compiler --version >&5"
4299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304 (eval "$ac_compiler --version >&5") 2>conftest.err
4306 if test -s conftest.err; then
4308 ... rest of stderr output deleted ...
4309 10q' conftest.err >conftest.er1
4310 cat conftest.er1 >&5
4311 rm -f conftest.er1 conftest.err
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; }
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4328 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4329 # Check whether --enable-maintainer-mode was given.
4330 if test "${enable_maintainer_mode+set}" = set; then :
4331 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4333 USE_MAINTAINER_MODE=no
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4337 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4338 if test $USE_MAINTAINER_MODE = yes; then
4339 MAINTAINER_MODE_TRUE=
4340 MAINTAINER_MODE_FALSE='#'
4342 MAINTAINER_MODE_TRUE='#'
4343 MAINTAINER_MODE_FALSE=
4346 MAINT=$MAINTAINER_MODE_TRUE
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4351 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4352 if test "${ac_cv_path_SED+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4355 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4356 for ac_i in 1 2 3 4 5 6 7; do
4357 ac_script="$ac_script$as_nl$ac_script"
4359 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4360 { ac_script=; unset ac_script;}
4361 if test -z "$SED"; then
4362 ac_path_SED_found=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_prog in sed gsed; do
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4373 # Check for GNU ac_path_SED and select it if it is found.
4374 # Check for GNU $ac_path_SED
4375 case `"$ac_path_SED" --version 2>&1` in
4377 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4380 $as_echo_n 0123456789 >"conftest.in"
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo '' >> "conftest.nl"
4387 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389 as_fn_arith $ac_count + 1 && ac_count=$as_val
4390 if test $ac_count -gt ${ac_path_SED_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_SED="$ac_path_SED"
4393 ac_path_SED_max=$ac_count
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4401 $ac_path_SED_found && break 3
4406 if test -z "$ac_cv_path_SED"; then
4407 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4415 $as_echo "$ac_cv_path_SED" >&6; }
4416 SED="$ac_cv_path_SED"
4419 test -z "$SED" && SED=sed
4420 Xsed="$SED -e 1s/^X//"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4434 if test "${ac_cv_path_GREP+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 if test -z "$GREP"; then
4438 ac_path_GREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 test -z "$as_dir" && as_dir=.
4445 for ac_prog in grep ggrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4449 # Check for GNU ac_path_GREP and select it if it is found.
4450 # Check for GNU $ac_path_GREP
4451 case `"$ac_path_GREP" --version 2>&1` in
4453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4456 $as_echo_n 0123456789 >"conftest.in"
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 as_fn_arith $ac_count + 1 && ac_count=$as_val
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP="$ac_path_GREP"
4469 ac_path_GREP_max=$ac_count
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477 $ac_path_GREP_found && break 3
4482 if test -z "$ac_cv_path_GREP"; then
4483 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 ac_cv_path_GREP=$GREP
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4491 $as_echo "$ac_cv_path_GREP" >&6; }
4492 GREP="$ac_cv_path_GREP"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4496 $as_echo_n "checking for egrep... " >&6; }
4497 if test "${ac_cv_path_EGREP+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4501 then ac_cv_path_EGREP="$GREP -E"
4503 if test -z "$EGREP"; then
4504 ac_path_EGREP_found=false
4505 # Loop through the user's path and test for each of PROGNAME-LIST
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 test -z "$as_dir" && as_dir=.
4511 for ac_prog in egrep; do
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4514 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4515 # Check for GNU ac_path_EGREP and select it if it is found.
4516 # Check for GNU $ac_path_EGREP
4517 case `"$ac_path_EGREP" --version 2>&1` in
4519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4522 $as_echo_n 0123456789 >"conftest.in"
4525 cat "conftest.in" "conftest.in" >"conftest.tmp"
4526 mv "conftest.tmp" "conftest.in"
4527 cp "conftest.in" "conftest.nl"
4528 $as_echo 'EGREP' >> "conftest.nl"
4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4531 as_fn_arith $ac_count + 1 && ac_count=$as_val
4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4533 # Best one so far, save it but keep looking for a better one
4534 ac_cv_path_EGREP="$ac_path_EGREP"
4535 ac_path_EGREP_max=$ac_count
4537 # 10*(2^10) chars as input seems more than enough
4538 test $ac_count -gt 10 && break
4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543 $ac_path_EGREP_found && break 3
4548 if test -z "$ac_cv_path_EGREP"; then
4549 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 ac_cv_path_EGREP=$EGREP
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4558 $as_echo "$ac_cv_path_EGREP" >&6; }
4559 EGREP="$ac_cv_path_EGREP"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4563 $as_echo_n "checking for fgrep... " >&6; }
4564 if test "${ac_cv_path_FGREP+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4568 then ac_cv_path_FGREP="$GREP -F"
4570 if test -z "$FGREP"; then
4571 ac_path_FGREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in fgrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4581 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4582 # Check for GNU ac_path_FGREP and select it if it is found.
4583 # Check for GNU $ac_path_FGREP
4584 case `"$ac_path_FGREP" --version 2>&1` in
4586 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4589 $as_echo_n 0123456789 >"conftest.in"
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'FGREP' >> "conftest.nl"
4596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_FGREP="$ac_path_FGREP"
4602 ac_path_FGREP_max=$ac_count
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 $ac_path_FGREP_found && break 3
4615 if test -z "$ac_cv_path_FGREP"; then
4616 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 ac_cv_path_FGREP=$FGREP
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4625 $as_echo "$ac_cv_path_FGREP" >&6; }
4626 FGREP="$ac_cv_path_FGREP"
4629 test -z "$GREP" && GREP=grep
4647 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4648 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4649 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4652 $as_echo_n "checking how to print strings... " >&6; }
4653 # Test print first, because it will be a builtin if present.
4654 if test "X`print
-r -- -n 2>/dev
/null
`" = X-n && \
4655 test "X`print
-r -- $ECHO 2>/dev
/null
`" = "X$ECHO"; then
4657 elif test "X`printf %s
$ECHO 2>/dev
/null
`" = "X$ECHO"; then
4660 # Use this function as a fallback that always works.
4661 func_fallback_echo ()
4663 eval 'cat <<_LTECHO_EOF
4667 ECHO='func_fallback_echo'
4670 # func_echo_all arg...
4671 # Invoke $ECHO with all args, space-separated.
4678 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4679 $as_echo "printf" >&6; } ;;
4680 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4681 $as_echo "print -r" >&6; } ;;
4682 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4683 $as_echo "cat" >&6; } ;;
4701 # Check whether --with-gnu-ld was given.
4702 if test "${with_gnu_ld+set}" = set; then :
4703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4709 if test "$GCC" = yes; then
4710 # Check if gcc -print-prog-name=ld gives a path.
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4712 $as_echo_n "checking for ld used by $CC... " >&6; }
4715 # gcc leaves a trailing carriage return which upsets mingw
4716 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4718 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4721 # Accept absolute paths.
4723 re_direlt='/[^/][^/]*/\.\./'
4724 # Canonicalize the pathname of ld
4725 ac_prog=`$ECHO "$ac_prog"|
$SED 's%\\\\%/%g'`
4726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4727 ac_prog=`$ECHO $ac_prog|
$SED "s%$re_direlt%/%"`
4729 test -z "$LD" && LD="$ac_prog"
4732 # If it fails, then pretend we aren't using GCC.
4736 # If it is relative, then search for the first ld in PATH.
4740 elif test "$with_gnu_ld" = yes; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4742 $as_echo_n "checking for GNU ld... " >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4745 $as_echo_n "checking for non-GNU ld... " >&6; }
4747 if test "${lt_cv_path_LD+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -z "$LD"; then
4751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752 for ac_dir in $PATH; do
4754 test -z "$ac_dir" && ac_dir=.
4755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4756 lt_cv_path_LD="$ac_dir/$ac_prog"
4757 # Check to see if the program is GNU ld. I'd rather use --version,
4758 # but apparently some variants of GNU ld only accept -v.
4759 # Break only if it was the GNU/non-GNU ld that we prefer.
4760 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4761 *GNU* | *'with BFD'*)
4762 test "$with_gnu_ld" != no && break
4765 test "$with_gnu_ld" != yes && break
4772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4777 if test -n "$LD"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4779 $as_echo "$LD" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4784 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4786 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4787 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4791 case `$LD -v 2>&1 </dev
/null
` in
4792 *GNU* | *'with BFD'*)
4793 lt_cv_prog_gnu_ld=yes
4796 lt_cv_prog_gnu_ld=no
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4801 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4802 with_gnu_ld=$lt_cv_prog_gnu_ld
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4820 if test -n "$RANLIB"; then
4821 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4830 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 RANLIB=$ac_cv_prog_RANLIB
4841 if test -n "$RANLIB"; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4843 $as_echo "$RANLIB" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4851 if test -z "$ac_cv_prog_RANLIB"; then
4852 ac_ct_RANLIB=$RANLIB
4853 # Extract the first word of "ranlib", so it can be a program name with args.
4854 set dummy ranlib; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$ac_ct_RANLIB"; then
4861 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_ac_ct_RANLIB="ranlib"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4881 if test -n "$ac_ct_RANLIB"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4883 $as_echo "$ac_ct_RANLIB" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4889 if test "x$ac_ct_RANLIB" = x; then
4892 case $cross_compiling:$ac_tool_warned in
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4898 RANLIB=$ac_ct_RANLIB
4901 RANLIB="$ac_cv_prog_RANLIB"
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4912 if test -n "$OBJCOPY"; then
4913 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 OBJCOPY=$ac_cv_prog_OBJCOPY
4933 if test -n "$OBJCOPY"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4935 $as_echo "$OBJCOPY" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4943 if test -z "$ac_cv_prog_OBJCOPY"; then
4944 ac_ct_OBJCOPY=$OBJCOPY
4945 # Extract the first word of "objcopy", so it can be a program name with args.
4946 set dummy objcopy; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$ac_ct_OBJCOPY"; then
4953 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4973 if test -n "$ac_ct_OBJCOPY"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4975 $as_echo "$ac_ct_OBJCOPY" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4981 if test "x$ac_ct_OBJCOPY" = x; then
4982 OBJCOPY="missing-objcopy"
4984 case $cross_compiling:$ac_tool_warned in
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988 ac_tool_warned=yes ;;
4990 OBJCOPY=$ac_ct_OBJCOPY
4993 OBJCOPY="$ac_cv_prog_OBJCOPY"
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
5004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
5009 macro_version='2.2.7a'
5010 macro_revision='1.3134'
5024 ltmain="$ac_aux_dir/ltmain.sh"
5026 # Backslashify metacharacters that are still active within
5027 # double-quoted strings.
5028 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
5030 # Same as above, but do not quote variable references.
5031 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
5033 # Sed substitution to delay expansion of an escaped shell variable in a
5034 # double_quote_subst'ed string.
5035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5037 # Sed substitution to delay expansion of an escaped single quote.
5038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5040 # Sed substitution to avoid accidental globbing in evaled expressions
5041 no_glob_subst='s/\*/\\\*/g'
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
5044 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
5045 if test "${lt_cv_path_NM+set}" = set; then :
5046 $as_echo_n "(cached
) " >&6
5048 if test -n "$NM"; then
5049 # Let the user override the test.
5052 lt_nm_to_check="${ac_tool_prefix}nm
"
5053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5054 lt_nm_to_check="$lt_nm_to_check nm
"
5056 for lt_tmp_nm in $lt_nm_to_check; do
5057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5060 test -z "$ac_dir" && ac_dir=.
5061 tmp_nm="$ac_dir/$lt_tmp_nm"
5062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5063 # Check to see if the nm accepts a BSD-compat flag.
5064 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5065 # nm: unknown option "B
" ignored
5066 # Tru64's nm complains that /dev/null is an invalid object file
5067 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5068 */dev/null* | *'Invalid file or object type'*)
5069 lt_cv_path_NM="$tmp_nm -B"
5073 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5075 lt_cv_path_NM="$tmp_nm -p"
5079 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5080 continue # so that we can try to find one that supports BSD flags
5089 : ${lt_cv_path_NM=no}
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
5093 $as_echo "$lt_cv_path_NM" >&6; }
5094 if test "$lt_cv_path_NM" != "no
"; then
5097 # Didn't find any BSD compatible name lister, look for dumpbin.
5098 if test -n "$DUMPBIN"; then :
5099 # Let the user override the test.
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in dumpbin "link
-dump"
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5107 $as_echo_n "checking
for $ac_word...
" >&6; }
5108 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5109 $as_echo_n "(cached
) " >&6
5111 if test -n "$DUMPBIN"; then
5112 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5131 DUMPBIN=$ac_cv_prog_DUMPBIN
5132 if test -n "$DUMPBIN"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
5134 $as_echo "$DUMPBIN" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5137 $as_echo "no
" >&6; }
5141 test -n "$DUMPBIN" && break
5144 if test -z "$DUMPBIN"; then
5145 ac_ct_DUMPBIN=$DUMPBIN
5146 for ac_prog in dumpbin "link
-dump"
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5151 $as_echo_n "checking
for $ac_word...
" >&6; }
5152 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5153 $as_echo_n "(cached
) " >&6
5155 if test -n "$ac_ct_DUMPBIN"; then
5156 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5175 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5176 if test -n "$ac_ct_DUMPBIN"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
5178 $as_echo "$ac_ct_DUMPBIN" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5181 $as_echo "no
" >&6; }
5185 test -n "$ac_ct_DUMPBIN" && break
5188 if test "x
$ac_ct_DUMPBIN" = x; then
5191 case $cross_compiling:$ac_tool_warned in
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5194 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5195 ac_tool_warned=yes ;;
5197 DUMPBIN=$ac_ct_DUMPBIN
5201 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5203 DUMPBIN="$DUMPBIN -symbols"
5211 if test "$DUMPBIN" != ":"; then
5215 test -z "$NM" && NM=nm
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5223 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5224 if test "${lt_cv_nm_interface+set}" = set; then :
5225 $as_echo_n "(cached
) " >&6
5227 lt_cv_nm_interface="BSD nm
"
5228 echo "int some_variable
= 0;" > conftest.$ac_ext
5229 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5230 (eval "$ac_compile" 2>conftest.err)
5231 cat conftest.err >&5
5232 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5233 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5234 cat conftest.err >&5
5235 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5236 cat conftest.out >&5
5237 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5238 lt_cv_nm_interface="MS dumpbin
"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5243 $as_echo "$lt_cv_nm_interface" >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5246 $as_echo_n "checking whether
ln -s works...
" >&6; }
5248 if test "$LN_S" = "ln -s"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5250 $as_echo "yes" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5253 $as_echo "no
, using
$LN_S" >&6; }
5256 # find the maximum length of command line arguments
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5258 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5259 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5260 $as_echo_n "(cached
) " >&6
5267 # On DJGPP, this test can blow up pretty badly due to problems in libc
5268 # (any single argument exceeding 2000 bytes causes a buffer overrun
5269 # during glob expansion). Even if it were fixed, the result of this
5270 # check would be larger than it should be.
5271 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5275 # Under GNU Hurd, this test is not required because there is
5276 # no limit to the length of command line arguments.
5277 # Libtool will interpret -1 as no limit whatsoever
5278 lt_cv_sys_max_cmd_len=-1;
5281 cygwin* | mingw* | cegcc*)
5282 # On Win9x/ME, this test blows up -- it succeeds, but takes
5283 # about 5 minutes as the teststring grows exponentially.
5284 # Worse, since 9x/ME are not pre-emptively multitasking,
5285 # you end up with a "frozen
" computer, even though with patience
5286 # the test eventually succeeds (with a max line length of 256k).
5287 # Instead, let's just punt: use the minimum linelength reported by
5288 # all of the supported platforms: 8192 (on NT/2K/XP).
5289 lt_cv_sys_max_cmd_len=8192;
5293 # On MiNT this can take a long time and run out of memory.
5294 lt_cv_sys_max_cmd_len=8192;
5298 # On AmigaOS with pdksh, this test takes hours, literally.
5299 # So we just punt and use a minimum line length of 8192.
5300 lt_cv_sys_max_cmd_len=8192;
5303 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5304 # This has been around since 386BSD, at least. Likely further.
5305 if test -x /sbin/sysctl; then
5306 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5307 elif test -x /usr/sbin/sysctl; then
5308 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5310 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5312 # And add a safety zone
5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5318 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5319 lt_cv_sys_max_cmd_len=196608
5323 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5324 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5325 # nice to cause kernel panics so lets avoid the loop below.
5326 # First set a reasonable default.
5327 lt_cv_sys_max_cmd_len=16384
5329 if test -x /sbin/sysconfig; then
5330 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5331 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5336 lt_cv_sys_max_cmd_len=102400
5338 sysv5* | sco5v6* | sysv4.2uw2*)
5339 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5340 if test -n "$kargmax"; then
5341 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5343 lt_cv_sys_max_cmd_len=32768
5347 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5348 if test -n "$lt_cv_sys_max_cmd_len"; then
5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5352 # Make teststring a little bigger before we do anything with it.
5353 # a 1K string should be a reasonable start.
5354 for i in 1 2 3 4 5 6 7 8 ; do
5355 teststring=$teststring$teststring
5357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5358 # If test is not a shell built-in, we'll probably end up computing a
5359 # maximum length that is only half of the actual maximum length, but
5361 while { test "X
"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5362 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5363 test $i != 17 # 1/2 MB should be enough
5366 teststring=$teststring$teststring
5368 # Only check the string length outside the loop.
5369 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5371 # Add a significant safety factor because C++ compilers can tack on
5372 # massive amounts of additional arguments before passing them to the
5373 # linker. It appears as though 1/2 is a usable value.
5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5381 if test -n $lt_cv_sys_max_cmd_len ; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5383 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5386 $as_echo "none
" >&6; }
5388 max_cmd_len=$lt_cv_sys_max_cmd_len
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs
" >&5
5400 $as_echo_n "checking whether the shell understands some XSI constructs...
" >&6; }
5401 # Try some XSI features
5404 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5406 && eval 'test $(( 1 + 1 )) -eq 2 \
5407 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5410 $as_echo "$xsi_shell" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5414 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5416 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
5418 && lt_shell_append
=yes
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5420 $as_echo "$lt_shell_append" >&6; }
5423 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5433 # test EBCDIC or ASCII
5434 case `echo X|tr X '\101'` in
5435 A
) # ASCII based system
5436 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5437 lt_SP2NL
='tr \040 \012'
5438 lt_NL2SP
='tr \015\012 \040\040'
5440 *) # EBCDIC based system
5441 lt_SP2NL
='tr \100 \n'
5442 lt_NL2SP
='tr \r\n \100\100'
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5455 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5456 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5459 lt_cv_ld_reload_flag
='-r'
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5462 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5463 reload_flag
=$lt_cv_ld_reload_flag
5464 case $reload_flag in
5466 *) reload_flag
=" $reload_flag" ;;
5468 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5471 if test "$GCC" = yes; then
5472 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5474 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5489 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5495 if test -n "$OBJDUMP"; then
5496 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
5498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5502 test -z "$as_dir" && as_dir
=.
5503 for ac_exec_ext
in '' $ac_executable_extensions; do
5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 OBJDUMP
=$ac_cv_prog_OBJDUMP
5516 if test -n "$OBJDUMP"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5518 $as_echo "$OBJDUMP" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5526 if test -z "$ac_cv_prog_OBJDUMP"; then
5527 ac_ct_OBJDUMP
=$OBJDUMP
5528 # Extract the first word of "objdump", so it can be a program name with args.
5529 set dummy objdump
; ac_word
=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5535 if test -n "$ac_ct_OBJDUMP"; then
5536 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
5538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5542 test -z "$as_dir" && as_dir
=.
5543 for ac_exec_ext
in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
5556 if test -n "$ac_ct_OBJDUMP"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5558 $as_echo "$ac_ct_OBJDUMP" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5564 if test "x$ac_ct_OBJDUMP" = x
; then
5567 case $cross_compiling:$ac_tool_warned in
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5571 ac_tool_warned
=yes ;;
5573 OBJDUMP
=$ac_ct_OBJDUMP
5576 OBJDUMP
="$ac_cv_prog_OBJDUMP"
5579 test -z "$OBJDUMP" && OBJDUMP
=objdump
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5590 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5591 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 lt_cv_file_magic_cmd
='$MAGIC_CMD'
5595 lt_cv_file_magic_test_file
=
5596 lt_cv_deplibs_check_method
='unknown'
5597 # Need to set the preceding variable on all platforms that support
5598 # interlibrary dependencies.
5599 # 'none' -- dependencies not supported.
5600 # `unknown' -- same as none, but documents that we really don't know.
5601 # 'pass_all' -- all dependencies passed with no checks.
5602 # 'test_compile' -- check by making test program.
5603 # 'file_magic [[regex]]' -- check by looking for files in library path
5604 # which responds to the $file_magic_cmd with a given extended regex.
5605 # If you have `file' or equivalent on your system and you're not sure
5606 # whether `pass_all' will *always* work, you probably want this one.
5610 lt_cv_deplibs_check_method
=pass_all
5614 lt_cv_deplibs_check_method
=pass_all
5618 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5619 lt_cv_file_magic_cmd
='/usr/bin/file -L'
5620 lt_cv_file_magic_test_file
=/shlib
/libc.so
5624 # func_win32_libid is a shell function defined in ltmain.sh
5625 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5626 lt_cv_file_magic_cmd
='func_win32_libid'
5630 # Base MSYS/MinGW do not provide the 'file' command needed by
5631 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5632 # unless we find 'file', for example because we are cross-compiling.
5633 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5634 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
5635 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
5636 lt_cv_file_magic_cmd
='func_win32_libid'
5638 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
5639 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5644 # use the weaker test based on 'objdump'. See mingw*.
5645 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5646 lt_cv_file_magic_cmd
='$OBJDUMP -f'
5649 darwin
* | rhapsody
*)
5650 lt_cv_deplibs_check_method
=pass_all
5653 freebsd
* | dragonfly
*)
5654 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
5657 # Not sure whether the presence of OpenBSD here was a mistake.
5658 # Let's accept both of them until this is cleared up.
5659 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5660 lt_cv_file_magic_cmd
=/usr
/bin
/file
5661 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
5665 lt_cv_deplibs_check_method
=pass_all
5670 lt_cv_deplibs_check_method
=pass_all
5674 lt_cv_deplibs_check_method
=pass_all
5677 hpux10.20
* | hpux11
*)
5678 lt_cv_file_magic_cmd
=/usr
/bin
/file
5681 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5682 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
5685 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]'
5686 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
5689 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5690 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
5696 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5697 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
5700 irix5
* | irix6
* | nonstopux
*)
5702 *-32|
*"-32 ") libmagic
=32-bit;;
5703 *-n32|
*"-n32 ") libmagic
=N32
;;
5704 *-64|
*"-64 ") libmagic
=64-bit;;
5705 *) libmagic
=never-match
;;
5707 lt_cv_deplibs_check_method
=pass_all
5710 # This must be Linux ELF.
5711 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
5712 lt_cv_deplibs_check_method
=pass_all
5716 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
5717 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5719 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5724 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5725 lt_cv_file_magic_cmd
=/usr
/bin
/file
5726 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
5730 lt_cv_deplibs_check_method
=pass_all
5734 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5735 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5737 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5741 osf3
* | osf4
* | osf5
*)
5742 lt_cv_deplibs_check_method
=pass_all
5746 lt_cv_deplibs_check_method
=pass_all
5750 lt_cv_deplibs_check_method
=pass_all
5753 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
5754 lt_cv_deplibs_check_method
=pass_all
5758 case $host_vendor in
5760 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]'
5761 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
5764 lt_cv_deplibs_check_method
=pass_all
5767 lt_cv_file_magic_cmd
='/bin/file'
5768 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5771 lt_cv_file_magic_cmd
='/bin/file'
5772 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5773 lt_cv_file_magic_test_file
=/lib
/libc.so
5776 lt_cv_deplibs_check_method
=pass_all
5779 lt_cv_deplibs_check_method
=pass_all
5785 lt_cv_deplibs_check_method
=pass_all
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5791 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5792 file_magic_cmd
=$lt_cv_file_magic_cmd
5793 deplibs_check_method
=$lt_cv_deplibs_check_method
5794 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
5807 if test -n "$ac_tool_prefix"; then
5808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5809 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_prog_AR+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5815 if test -n "$AR"; then
5816 ac_cv_prog_AR
="$AR" # Let the user override the test.
5818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir
=.
5823 for ac_exec_ext
in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 if test -n "$AR"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5838 $as_echo "$AR" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5846 if test -z "$ac_cv_prog_AR"; then
5848 # Extract the first word of "ar", so it can be a program name with args.
5849 set dummy
ar; ac_word
=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5855 if test -n "$ac_ct_AR"; then
5856 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir
=.
5863 for ac_exec_ext
in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_ac_ct_AR
="ar"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5876 if test -n "$ac_ct_AR"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5878 $as_echo "$ac_ct_AR" >&6; }
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5884 if test "x$ac_ct_AR" = x
; then
5887 case $cross_compiling:$ac_tool_warned in
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned
=yes ;;
5899 test -z "$AR" && AR
=ar
5900 test -z "$AR_FLAGS" && AR_FLAGS
=cru
5912 if test -n "$ac_tool_prefix"; then
5913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5914 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if test "${ac_cv_prog_STRIP+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5920 if test -n "$STRIP"; then
5921 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir
=.
5928 for ac_exec_ext
in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 STRIP
=$ac_cv_prog_STRIP
5941 if test -n "$STRIP"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5943 $as_echo "$STRIP" >&6; }
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5951 if test -z "$ac_cv_prog_STRIP"; then
5953 # Extract the first word of "strip", so it can be a program name with args.
5954 set dummy strip
; ac_word
=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -n "$ac_ct_STRIP"; then
5961 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5967 test -z "$as_dir" && as_dir
=.
5968 for ac_exec_ext
in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_prog_ac_ct_STRIP
="strip"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5981 if test -n "$ac_ct_STRIP"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5983 $as_echo "$ac_ct_STRIP" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5989 if test "x$ac_ct_STRIP" = x
; then
5992 case $cross_compiling:$ac_tool_warned in
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned
=yes ;;
6001 STRIP
="$ac_cv_prog_STRIP"
6004 test -z "$STRIP" && STRIP
=:
6011 if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6013 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6019 if test -n "$RANLIB"; then
6020 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6026 test -z "$as_dir" && as_dir
=.
6027 for ac_exec_ext
in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 RANLIB
=$ac_cv_prog_RANLIB
6040 if test -n "$RANLIB"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6042 $as_echo "$RANLIB" >&6; }
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6050 if test -z "$ac_cv_prog_RANLIB"; then
6051 ac_ct_RANLIB
=$RANLIB
6052 # Extract the first word of "ranlib", so it can be a program name with args.
6053 set dummy ranlib
; ac_word
=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6059 if test -n "$ac_ct_RANLIB"; then
6060 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir
=.
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6080 if test -n "$ac_ct_RANLIB"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6082 $as_echo "$ac_ct_RANLIB" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6088 if test "x$ac_ct_RANLIB" = x
; then
6091 case $cross_compiling:$ac_tool_warned in
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned
=yes ;;
6097 RANLIB
=$ac_ct_RANLIB
6100 RANLIB
="$ac_cv_prog_RANLIB"
6103 test -z "$RANLIB" && RANLIB
=:
6110 # Determine commands to create old-style static archives.
6111 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6112 old_postinstall_cmds
='chmod 644 $oldlib'
6113 old_postuninstall_cmds
=
6115 if test -n "$RANLIB"; then
6118 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6121 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6124 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6129 lock_old_archive_extraction
=yes ;;
6131 lock_old_archive_extraction
=no
;;
6172 # If no C compiler was specified, use CC.
6175 # If no C compiler flags were specified, use CFLAGS.
6176 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6178 # Allow CC to be a program name with arguments.
6182 # Check for command to grab the raw symbol name followed by C symbol from nm.
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6184 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6185 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6189 # These are sane defaults that work on at least a few old systems.
6190 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6192 # Character class describing NM global symbol codes.
6193 symcode
='[BCDEGRST]'
6195 # Regexp to match symbols that can be accessed directly from C.
6196 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6198 # Define system-specific variables.
6203 cygwin
* | mingw
* | pw32
* | cegcc
*)
6204 symcode
='[ABCDGISTW]'
6207 if test "$host_cpu" = ia64
; then
6208 symcode
='[ABCDEGRST]'
6212 symcode
='[BCDEGRST]'
6215 symcode
='[BCDEGQRST]'
6226 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6234 # If we're using GNU nm, then use its standard symbol codes.
6235 case `$NM -V 2>&1` in
6236 *GNU
* |
*'with BFD'*)
6237 symcode
='[ABCDGIRSTW]' ;;
6240 # Transform an extracted symbol line into a proper C declaration.
6241 # Some systems (esp. on ia64) link data and code symbols differently,
6242 # so use this general approach.
6243 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245 # Transform an extracted symbol line into symbol name and symbol address
6246 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6247 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'"
6249 # Handle CRLF in mingw tool chain
6253 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6257 # Try without a prefix underscore, then with it.
6258 for ac_symprfx
in "" "_"; do
6260 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6261 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6263 # Write the raw and C identifiers.
6264 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6265 # Fake it for dumpbin and say T for any non-static function
6266 # and D for any global variable.
6267 # Also find C++ and __fastcall symbols from MSVC++,
6268 # which start with @ or ?.
6269 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6270 " {last_section=section; section=\$ 3};"\
6271 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6272 " \$ 0!~/External *\|/{next};"\
6273 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6274 " {if(hide[section]) next};"\
6275 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6276 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6277 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6278 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6279 " ' prfx=^$ac_symprfx"
6281 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6284 # Check to see that the pipe works correctly.
6288 cat > conftest.
$ac_ext <<_LT_EOF
6293 void nm_test_func(void);
6294 void nm_test_func(void){}
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 # Now try to grab the symbols.
6308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6309 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; } && test -s "$nlist"; then
6313 # Try sorting and uniquifying the output.
6314 if sort "$nlist" |
uniq > "$nlist"T
; then
6315 mv -f "$nlist"T
"$nlist"
6320 # Make sure that we snagged all the symbols we need.
6321 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
6322 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
6323 cat <<_LT_EOF > conftest.$ac_ext
6329 # Now generate the symbol file.
6330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6332 cat <<_LT_EOF >> conftest.$ac_ext
6334 /* The mapping between symbol names and symbols. */
6339 lt__PROGRAM__LTX_preloaded_symbols[] =
6341 { "@PROGRAM@", (void *) 0 },
6343 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
6344 cat <<\_LT_EOF
>> conftest.
$ac_ext
6348 /* This works around a problem
in FreeBSD linker
*/
6349 #ifdef FREEBSD_WORKAROUND
6350 static const void
*lt_preloaded_setup
() {
6351 return lt__PROGRAM__LTX_preloaded_symbols
;
6359 # Now try linking the two files.
6360 mv conftest.
$ac_objext conftstm.
$ac_objext
6361 lt_save_LIBS
="$LIBS"
6362 lt_save_CFLAGS
="$CFLAGS"
6363 LIBS
="conftstm.$ac_objext"
6364 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6366 (eval $ac_link) 2>&5
6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
6372 LIBS
="$lt_save_LIBS"
6373 CFLAGS
="$lt_save_CFLAGS"
6375 echo "cannot find nm_test_func in $nlist" >&5
6378 echo "cannot find nm_test_var in $nlist" >&5
6381 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6384 echo "$progname: failed program was:" >&5
6385 cat conftest.
$ac_ext >&5
6387 rm -rf conftest
* conftst
*
6389 # Do not use the global_symbol_pipe unless it works.
6390 if test "$pipe_works" = yes; then
6393 lt_cv_sys_global_symbol_pipe
=
6399 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6400 lt_cv_sys_global_symbol_to_cdecl
=
6402 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6404 $as_echo "failed" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6407 $as_echo "ok" >&6; }
6432 # Check whether --enable-libtool-lock was given.
6433 if test "${enable_libtool_lock+set}" = set; then :
6434 enableval
=$enable_libtool_lock;
6437 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
6439 # Some flags need to be propagated to the compiler or linker for good
6443 # Find out which ABI we are using.
6444 echo 'int i;' > conftest.
$ac_ext
6445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6446 (eval $ac_compile) 2>&5
6448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449 test $ac_status = 0; }; then
6450 case `/usr/bin/file conftest.$ac_objext` in
6462 # Find out which ABI we are using.
6463 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6465 (eval $ac_compile) 2>&5
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; }; then
6469 if test "$lt_cv_prog_gnu_ld" = yes; then
6470 case `/usr/bin/file conftest.$ac_objext` in
6472 LD
="${LD-ld} -melf32bsmip"
6475 LD
="${LD-ld} -melf32bmipn32"
6478 LD
="${LD-ld} -melf64bmip"
6482 case `/usr/bin/file conftest.$ac_objext` in
6498 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
6499 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
6500 # Find out which ABI we are using.
6501 echo 'int i;' > conftest.
$ac_ext
6502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503 (eval $ac_compile) 2>&5
6505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506 test $ac_status = 0; }; then
6507 case `/usr/bin/file conftest.o` in
6510 x86_64-
*kfreebsd
*-gnu)
6511 LD
="${LD-ld} -m elf_i386_fbsd"
6514 LD
="${LD-ld} -m elf_i386"
6516 ppc64-
*linux
*|powerpc64-
*linux
*)
6517 LD
="${LD-ld} -m elf32ppclinux"
6520 LD
="${LD-ld} -m elf_s390"
6523 LD
="${LD-ld} -m elf32_sparc"
6529 x86_64-
*kfreebsd
*-gnu)
6530 LD
="${LD-ld} -m elf_x86_64_fbsd"
6533 LD
="${LD-ld} -m elf_x86_64"
6535 ppc
*-*linux
*|powerpc
*-*linux
*)
6536 LD
="${LD-ld} -m elf64ppc"
6538 s390
*-*linux
*|s390
*-*tpf
*)
6539 LD
="${LD-ld} -m elf64_s390"
6542 LD
="${LD-ld} -m elf64_sparc"
6552 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6553 SAVE_CFLAGS
="$CFLAGS"
6554 CFLAGS
="$CFLAGS -belf"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6556 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6557 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6561 ac_cpp
='$CPP $CPPFLAGS'
6562 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6577 if ac_fn_c_try_link
"$LINENO"; then :
6578 lt_cv_cc_needs_belf
=yes
6580 lt_cv_cc_needs_belf
=no
6582 rm -f core conftest.err conftest.
$ac_objext \
6583 conftest
$ac_exeext conftest.
$ac_ext
6585 ac_cpp
='$CPP $CPPFLAGS'
6586 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6592 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6593 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
6594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6595 CFLAGS
="$SAVE_CFLAGS"
6599 # Find out which ABI we are using.
6600 echo 'int i;' > conftest.
$ac_ext
6601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6602 (eval $ac_compile) 2>&5
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }; then
6606 case `/usr/bin/file conftest.o` in
6608 case $lt_cv_prog_gnu_ld in
6611 i?
86-*-solaris* | x86_64-
*-solaris2.1
[0-9]*)
6612 LD
="${LD-ld} -m elf_x86_64"
6615 LD
="${LD-ld} -m elf64_sparc"
6618 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6619 if ${LD-ld} -V |
grep _sol2
>/dev
/null
2>&1; then
6624 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
6636 need_locks
="$enable_libtool_lock"
6640 rhapsody
* | darwin
*)
6641 if test -n "$ac_tool_prefix"; then
6642 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6643 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645 $as_echo_n "checking for $ac_word... " >&6; }
6646 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6647 $as_echo_n "(cached) " >&6
6649 if test -n "$DSYMUTIL"; then
6650 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
6652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir
=.
6657 for ac_exec_ext
in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
6670 if test -n "$DSYMUTIL"; then
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6672 $as_echo "$DSYMUTIL" >&6; }
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675 $as_echo "no" >&6; }
6680 if test -z "$ac_cv_prog_DSYMUTIL"; then
6681 ac_ct_DSYMUTIL
=$DSYMUTIL
6682 # Extract the first word of "dsymutil", so it can be a program name with args.
6683 set dummy dsymutil
; 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_ac_ct_DSYMUTIL+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6689 if test -n "$ac_ct_DSYMUTIL"; then
6690 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL
="dsymutil"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
6710 if test -n "$ac_ct_DSYMUTIL"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6712 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6718 if test "x$ac_ct_DSYMUTIL" = x
; then
6721 case $cross_compiling:$ac_tool_warned in
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6725 ac_tool_warned
=yes ;;
6727 DSYMUTIL
=$ac_ct_DSYMUTIL
6730 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
6733 if test -n "$ac_tool_prefix"; then
6734 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6735 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6741 if test -n "$NMEDIT"; then
6742 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
6744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6748 test -z "$as_dir" && as_dir
=.
6749 for ac_exec_ext
in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 NMEDIT
=$ac_cv_prog_NMEDIT
6762 if test -n "$NMEDIT"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6764 $as_echo "$NMEDIT" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6772 if test -z "$ac_cv_prog_NMEDIT"; then
6773 ac_ct_NMEDIT
=$NMEDIT
6774 # Extract the first word of "nmedit", so it can be a program name with args.
6775 set dummy nmedit
; 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_ac_ct_NMEDIT+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$ac_ct_NMEDIT"; then
6782 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT
="nmedit"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
6802 if test -n "$ac_ct_NMEDIT"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6804 $as_echo "$ac_ct_NMEDIT" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6810 if test "x$ac_ct_NMEDIT" = x
; then
6813 case $cross_compiling:$ac_tool_warned in
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6817 ac_tool_warned
=yes ;;
6819 NMEDIT
=$ac_ct_NMEDIT
6822 NMEDIT
="$ac_cv_prog_NMEDIT"
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6827 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_prog_LIPO+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6833 if test -n "$LIPO"; then
6834 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
6836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir
=.
6841 for ac_exec_ext
in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 LIPO
=$ac_cv_prog_LIPO
6854 if test -n "$LIPO"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6856 $as_echo "$LIPO" >&6; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6864 if test -z "$ac_cv_prog_LIPO"; then
6866 # Extract the first word of "lipo", so it can be a program name with args.
6867 set dummy lipo
; ac_word
=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6873 if test -n "$ac_ct_LIPO"; then
6874 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
6876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir
=.
6881 for ac_exec_ext
in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_prog_ac_ct_LIPO
="lipo"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
6894 if test -n "$ac_ct_LIPO"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6896 $as_echo "$ac_ct_LIPO" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6902 if test "x$ac_ct_LIPO" = x
; then
6905 case $cross_compiling:$ac_tool_warned in
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned
=yes ;;
6914 LIPO
="$ac_cv_prog_LIPO"
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6919 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$OTOOL"; then
6926 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
6928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir
=.
6933 for ac_exec_ext
in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 OTOOL
=$ac_cv_prog_OTOOL
6946 if test -n "$OTOOL"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6948 $as_echo "$OTOOL" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_prog_OTOOL"; then
6958 # Extract the first word of "otool", so it can be a program name with args.
6959 set dummy otool
; ac_word
=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6963 $as_echo_n "(cached) " >&6
6965 if test -n "$ac_ct_OTOOL"; then
6966 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
6968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir
=.
6973 for ac_exec_ext
in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_ac_ct_OTOOL
="otool"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
6986 if test -n "$ac_ct_OTOOL"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6988 $as_echo "$ac_ct_OTOOL" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 if test "x$ac_ct_OTOOL" = x
; then
6997 case $cross_compiling:$ac_tool_warned in
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned
=yes ;;
7006 OTOOL
="$ac_cv_prog_OTOOL"
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7011 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$OTOOL64"; then
7018 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir
=.
7025 for ac_exec_ext
in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 OTOOL64
=$ac_cv_prog_OTOOL64
7038 if test -n "$OTOOL64"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7040 $as_echo "$OTOOL64" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_OTOOL64"; then
7049 ac_ct_OTOOL64
=$OTOOL64
7050 # Extract the first word of "otool64", so it can be a program name with args.
7051 set dummy otool64
; ac_word
=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7057 if test -n "$ac_ct_OTOOL64"; then
7058 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir
=.
7065 for ac_exec_ext
in '' $ac_executable_extensions; do
7066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7067 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7078 if test -n "$ac_ct_OTOOL64"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7080 $as_echo "$ac_ct_OTOOL64" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_OTOOL64" = x
; then
7089 case $cross_compiling:$ac_tool_warned in
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned
=yes ;;
7095 OTOOL64
=$ac_ct_OTOOL64
7098 OTOOL64
="$ac_cv_prog_OTOOL64"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7128 $as_echo_n "checking for -single_module linker flag... " >&6; }
7129 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7132 lt_cv_apple_cc_single_mod
=no
7133 if test -z "${LT_MULTI_MODULE}"; then
7134 # By default we will add the -single_module flag. You can override
7135 # by either setting the environment variable LT_MULTI_MODULE
7136 # non-empty at configure time, or by adding -multi_module to the
7138 rm -rf libconftest.dylib
*
7139 echo "int foo(void){return 1;}" > conftest.c
7140 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7141 -dynamiclib -Wl,-single_module conftest.c" >&5
7142 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7143 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7145 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7146 lt_cv_apple_cc_single_mod
=yes
7148 cat conftest.err
>&5
7150 rm -rf libconftest.dylib
*
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7155 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7157 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7158 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7159 $as_echo_n "(cached) " >&6
7161 lt_cv_ld_exported_symbols_list
=no
7162 save_LDFLAGS
=$LDFLAGS
7163 echo "_main" > conftest.sym
7164 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7176 if ac_fn_c_try_link
"$LINENO"; then :
7177 lt_cv_ld_exported_symbols_list
=yes
7179 lt_cv_ld_exported_symbols_list
=no
7181 rm -f core conftest.err conftest.
$ac_objext \
7182 conftest
$ac_exeext conftest.
$ac_ext
7183 LDFLAGS
="$save_LDFLAGS"
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7187 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7189 $as_echo_n "checking for -force_load linker flag... " >&6; }
7190 if test "${lt_cv_ld_force_load+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7193 lt_cv_ld_force_load
=no
7194 cat > conftest.c
<< _LT_EOF
7195 int forced_loaded() { return 2;}
7197 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7198 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
7199 echo "$AR cru libconftest.a conftest.o" >&5
7200 $AR cru libconftest.a conftest.o
2>&5
7201 cat > conftest.c
<< _LT_EOF
7202 int main() { return 0;}
7204 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7205 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
7207 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
7208 lt_cv_ld_force_load
=yes
7210 cat conftest.err
>&5
7212 rm -f conftest.err libconftest.a conftest conftest.c
7213 rm -rf conftest.dSYM
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7217 $as_echo "$lt_cv_ld_force_load" >&6; }
7219 rhapsody
* | darwin1.
[012])
7220 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7222 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223 darwin
*) # darwin 5.x on
7224 # if running on 10.5 or later, the deployment target defaults
7225 # to the OS version, if on x86, and 10.4, the deployment
7226 # target defaults to 10.4. Don't you love it?
7227 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7228 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
7229 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7231 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7233 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7237 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7238 _lt_dar_single_mod
='$single_module'
7240 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7241 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7243 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7245 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7246 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7254 ac_cpp
='$CPP $CPPFLAGS'
7255 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7259 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7260 # On Suns, sometimes $CPP names a directory.
7261 if test -n "$CPP" && test -d "$CPP"; then
7264 if test -z "$CPP"; then
7265 if test "${ac_cv_prog_CPP+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7268 # Double quotes because CPP needs to be expanded
7269 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7272 for ac_c_preproc_warn_flag
in '' yes
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7283 # include <limits.h>
7285 # include <assert.h>
7289 if ac_fn_c_try_cpp
"$LINENO"; then :
7292 # Broken: fails on valid input.
7295 rm -f conftest.err conftest.
$ac_ext
7297 # OK, works on sane cases. Now check whether nonexistent headers
7298 # can be detected and how.
7299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #include <ac_nonexistent.h>
7303 if ac_fn_c_try_cpp
"$LINENO"; then :
7304 # Broken: success on invalid input.
7307 # Passes both tests.
7311 rm -f conftest.err conftest.
$ac_ext
7314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7315 rm -f conftest.err conftest.
$ac_ext
7316 if $ac_preproc_ok; then :
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7329 $as_echo "$CPP" >&6; }
7331 for ac_c_preproc_warn_flag
in '' yes
7333 # Use a header file that comes with gcc, so configuring glibc
7334 # with a fresh cross-compiler works.
7335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7336 # <limits.h> exists even on freestanding compilers.
7337 # On the NeXT, cc -E runs the code through the compiler's parser,
7338 # not just through cpp. "Syntax error" is here to catch this case.
7339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7342 # include <limits.h>
7344 # include <assert.h>
7348 if ac_fn_c_try_cpp
"$LINENO"; then :
7351 # Broken: fails on valid input.
7354 rm -f conftest.err conftest.
$ac_ext
7356 # OK, works on sane cases. Now check whether nonexistent headers
7357 # can be detected and how.
7358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #include <ac_nonexistent.h>
7362 if ac_fn_c_try_cpp
"$LINENO"; then :
7363 # Broken: success on invalid input.
7366 # Passes both tests.
7370 rm -f conftest.err conftest.
$ac_ext
7373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7374 rm -f conftest.err conftest.
$ac_ext
7375 if $ac_preproc_ok; then :
7378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7380 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
7381 See \`config.log' for more details." "$LINENO" 5; }
7385 ac_cpp
='$CPP $CPPFLAGS'
7386 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7392 $as_echo_n "checking for ANSI C header files... " >&6; }
7393 if test "${ac_cv_header_stdc+set}" = set; then :
7394 $as_echo_n "(cached) " >&6
7396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7411 if ac_fn_c_try_compile
"$LINENO"; then :
7412 ac_cv_header_stdc
=yes
7414 ac_cv_header_stdc
=no
7416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7418 if test $ac_cv_header_stdc = yes; then
7419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426 $EGREP "memchr" >/dev
/null
2>&1; then :
7429 ac_cv_header_stdc
=no
7435 if test $ac_cv_header_stdc = yes; then
7436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7443 $EGREP "free" >/dev
/null
2>&1; then :
7446 ac_cv_header_stdc
=no
7452 if test $ac_cv_header_stdc = yes; then
7453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7454 if test "$cross_compiling" = yes; then :
7457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7461 #if ((' ' & 0x0FF) == 0x020)
7462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7465 # define ISLOWER(c) \
7466 (('a' <= (c) && (c) <= 'i') \
7467 || ('j' <= (c) && (c) <= 'r') \
7468 || ('s' <= (c) && (c) <= 'z'))
7469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7477 for (i = 0; i < 256; i++)
7478 if (XOR (islower (i), ISLOWER (i))
7479 || toupper (i) != TOUPPER (i))
7484 if ac_fn_c_try_run
"$LINENO"; then :
7487 ac_cv_header_stdc
=no
7489 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7490 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7496 $as_echo "$ac_cv_header_stdc" >&6; }
7497 if test $ac_cv_header_stdc = yes; then
7499 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7504 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7505 inttypes.h stdint.h unistd.h
7507 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7508 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7510 eval as_val
=\$
$as_ac_Header
7511 if test "x$as_val" = x
""yes; then :
7512 cat >>confdefs.h
<<_ACEOF
7513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 for ac_header
in dlfcn.h
7523 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7525 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7526 cat >>confdefs.h
<<_ACEOF
7527 #define HAVE_DLFCN_H 1
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7536 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if test "${ac_cv_prog_GOC+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$GOC"; then
7543 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
7545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir
=.
7550 for ac_exec_ext
in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7552 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 if test -n "$GOC"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7565 $as_echo "$GOC" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_GOC"; then
7575 # Extract the first word of "gccgo", so it can be a program name with args.
7576 set dummy gccgo
; ac_word
=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$ac_ct_GOC"; then
7583 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
7585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir
=.
7590 for ac_exec_ext
in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_ac_ct_GOC
="gccgo"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
7603 if test -n "$ac_ct_GOC"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7605 $as_echo "$ac_ct_GOC" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_GOC" = x
; then
7614 case $cross_compiling:$ac_tool_warned in
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned
=yes ;;
7623 GOC
="$ac_cv_prog_GOC"
7639 # Check whether --enable-shared was given.
7640 if test "${enable_shared+set}" = set; then :
7641 enableval
=$enable_shared; p
=${PACKAGE-default}
7643 yes) enable_shared
=yes ;;
7644 no
) enable_shared
=no
;;
7647 # Look at the argument we got. We use all the common list separators.
7648 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7649 for pkg
in $enableval; do
7651 if test "X$pkg" = "X$p"; then
7670 # Check whether --enable-static was given.
7671 if test "${enable_static+set}" = set; then :
7672 enableval
=$enable_static; p
=${PACKAGE-default}
7674 yes) enable_static
=yes ;;
7675 no
) enable_static
=no
;;
7678 # Look at the argument we got. We use all the common list separators.
7679 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7680 for pkg
in $enableval; do
7682 if test "X$pkg" = "X$p"; then
7702 # Check whether --with-pic was given.
7703 if test "${with_pic+set}" = set; then :
7704 withval
=$with_pic; pic_mode
="$withval"
7710 test -z "$pic_mode" && pic_mode
=default
7718 # Check whether --enable-fast-install was given.
7719 if test "${enable_fast_install+set}" = set; then :
7720 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7722 yes) enable_fast_install
=yes ;;
7723 no
) enable_fast_install
=no
;;
7725 enable_fast_install
=no
7726 # Look at the argument we got. We use all the common list separators.
7727 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7728 for pkg
in $enableval; do
7730 if test "X$pkg" = "X$p"; then
7731 enable_fast_install
=yes
7738 enable_fast_install
=yes
7751 # This can be used to rebuild libtool when needed
7752 LIBTOOL_DEPS
="$ltmain"
7754 # Always use our own libtool.
7755 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7782 test -z "$LN_S" && LN_S
="ln -s"
7797 if test -n "${ZSH_VERSION+set}" ; then
7798 setopt NO_GLOB_SUBST
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7802 $as_echo_n "checking for objdir... " >&6; }
7803 if test "${lt_cv_objdir+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7806 rm -f .libs
2>/dev
/null
7807 mkdir .libs
2>/dev
/null
7808 if test -d .libs
; then
7811 # MS-DOS does not allow filenames that begin with a dot.
7814 rmdir .libs
2>/dev
/null
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7817 $as_echo "$lt_cv_objdir" >&6; }
7818 objdir
=$lt_cv_objdir
7824 cat >>confdefs.h
<<_ACEOF
7825 #define LT_OBJDIR "$lt_cv_objdir/"
7833 # AIX sometimes has problems with the GCC collect2 program. For some
7834 # reason, if we set the COLLECT_NAMES environment variable, the problems
7835 # vanish in a puff of smoke.
7836 if test "X${COLLECT_NAMES+set}" != Xset
; then
7838 export COLLECT_NAMES
7845 can_build_shared
=yes
7847 # All known linkers require a `.a' archive for static linking (except MSVC,
7848 # which needs '.lib').
7851 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7854 old_CFLAGS
="$CFLAGS"
7856 # Set sane defaults for various variables
7857 test -z "$CC" && CC
=cc
7858 test -z "$LTCC" && LTCC
=$CC
7859 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7860 test -z "$LD" && LD
=ld
7861 test -z "$ac_objext" && ac_objext
=o
7863 for cc_temp
in $compiler""; do
7865 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7866 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7871 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874 # Only perform the check for file, if the check method requires it
7875 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7876 case $deplibs_check_method in
7878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7880 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7886 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7889 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7890 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7891 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7892 for ac_dir
in $ac_dummy; do
7894 test -z "$ac_dir" && ac_dir
=.
7895 if test -f $ac_dir/${ac_tool_prefix}file; then
7896 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7897 if test -n "$file_magic_test_file"; then
7898 case $deplibs_check_method in
7900 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7902 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7903 $EGREP "$file_magic_regex" > /dev
/null
; then
7908 *** Warning: the command libtool uses to detect shared libraries,
7909 *** $file_magic_cmd, produces output that libtool cannot recognize.
7910 *** The result is that libtool may fail to recognize shared libraries
7911 *** as such. This will affect the creation of libtool libraries that
7912 *** depend on shared libraries, but programs linked with such libtool
7913 *** libraries will work regardless of this problem. Nevertheless, you
7914 *** may want to report the problem to your system manager and/or to
7915 *** bug-libtool@gnu.org
7925 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7930 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7931 if test -n "$MAGIC_CMD"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7933 $as_echo "$MAGIC_CMD" >&6; }
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7943 if test -z "$lt_cv_path_MAGIC_CMD"; then
7944 if test -n "$ac_tool_prefix"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7946 $as_echo_n "checking for file... " >&6; }
7947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7952 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7955 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7956 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7957 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7958 for ac_dir
in $ac_dummy; do
7960 test -z "$ac_dir" && ac_dir
=.
7961 if test -f $ac_dir/file; then
7962 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7963 if test -n "$file_magic_test_file"; then
7964 case $deplibs_check_method in
7966 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7967 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7968 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7969 $EGREP "$file_magic_regex" > /dev
/null
; then
7974 *** Warning: the command libtool uses to detect shared libraries,
7975 *** $file_magic_cmd, produces output that libtool cannot recognize.
7976 *** The result is that libtool may fail to recognize shared libraries
7977 *** as such. This will affect the creation of libtool libraries that
7978 *** depend on shared libraries, but programs linked with such libtool
7979 *** libraries will work regardless of this problem. Nevertheless, you
7980 *** may want to report the problem to your system manager and/or to
7981 *** bug-libtool@gnu.org
7991 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7996 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7997 if test -n "$MAGIC_CMD"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7999 $as_echo "$MAGIC_CMD" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8015 # Use C for the default configuration in the libtool script
8019 ac_cpp
='$CPP $CPPFLAGS'
8020 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8025 # Source file extension for C test sources.
8028 # Object file extension for compiled C test sources.
8032 # Code to be used in simple compile tests
8033 lt_simple_compile_test_code
="int some_variable = 0;"
8035 # Code to be used in simple link tests
8036 lt_simple_link_test_code
='int main(){return(0);}'
8044 # If no C compiler was specified, use CC.
8047 # If no C compiler flags were specified, use CFLAGS.
8048 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8050 # Allow CC to be a program name with arguments.
8053 # Save the default compiler, since it gets overwritten when the other
8054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8055 compiler_DEFAULT
=$CC
8057 # save warnings/boilerplate of simple test code
8058 ac_outfile
=conftest.
$ac_objext
8059 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8060 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8061 _lt_compiler_boilerplate
=`cat conftest.err`
8064 ac_outfile
=conftest.
$ac_objext
8065 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8066 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_linker_boilerplate
=`cat conftest.err`
8072 ## There is no encapsulation within the following macros, do not change
8073 ## the running order or otherwise move them around unless you know exactly
8074 ## what you are doing...
8075 if test -n "$compiler"; then
8077 lt_prog_compiler_no_builtin_flag
=
8079 if test "$GCC" = yes; then
8080 case $cc_basename in
8082 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8084 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 lt_cv_prog_compiler_rtti_exceptions
=no
8093 ac_outfile
=conftest.
$ac_objext
8094 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8095 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8096 # Insert the option either (1) after the last *FLAGS variable, or
8097 # (2) before a word containing "conftest.", or (3) at the end.
8098 # Note that $ac_compile itself does not contain backslashes and begins
8099 # with a dollar sign (not a hyphen), so the echo should work correctly.
8100 # The option is referenced via a variable to avoid confusing sed.
8101 lt_compile
=`echo "$ac_compile" | $SED \
8102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104 -e 's:$: $lt_compiler_flag:'`
8105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8106 (eval "$lt_compile" 2>conftest.err
)
8108 cat conftest.err
>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 if (exit $ac_status) && test -s "$ac_outfile"; then
8111 # The compiler can only warn and ignore the option if not recognized
8112 # So say no if there are warnings other than the usual output.
8113 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8114 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8115 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8116 lt_cv_prog_compiler_rtti_exceptions
=yes
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8125 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8126 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8138 lt_prog_compiler_wl
=
8139 lt_prog_compiler_pic
=
8140 lt_prog_compiler_static
=
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8145 if test "$GCC" = yes; then
8146 lt_prog_compiler_wl
='-Wl,'
8147 lt_prog_compiler_static
='-static'
8151 # All AIX code is PIC.
8152 if test "$host_cpu" = ia64
; then
8153 # AIX 5 now supports IA64 processor
8154 lt_prog_compiler_static
='-Bstatic'
8161 # see comment about AmigaOS4 .so support
8162 lt_prog_compiler_pic
='-fPIC'
8165 # FIXME: we need at least 68020 code to build shared libraries, but
8166 # adding the `-m68020' flag to GCC prevents building anything better,
8168 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8173 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8174 # PIC is the default for these OSes.
8177 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8178 # This hack is so that the source file can tell whether it is being
8179 # built for inclusion in a dll (and should export symbols for example).
8180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8181 # (--disable-auto-import) libraries
8182 lt_prog_compiler_pic
='-DDLL_EXPORT'
8185 darwin
* | rhapsody
*)
8186 # PIC is the default on this platform
8187 # Common symbols not allowed in MH_DYLIB files
8188 lt_prog_compiler_pic
='-fno-common'
8192 # PIC is the default for Haiku.
8193 # The "-static" flag exists, but is broken.
8194 lt_prog_compiler_static
=
8198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8200 # sets the default TLS model and affects inlining.
8206 lt_prog_compiler_pic
='-fPIC'
8212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8213 # Instead, we relocate shared libraries at runtime.
8217 # Just because we use GCC doesn't mean we suddenly get shared libraries
8218 # on systems that don't support them.
8219 lt_prog_compiler_can_build_shared
=no
8224 # QNX uses GNU C++, but need to define -shared option too, otherwise
8226 lt_prog_compiler_pic
='-fPIC -shared'
8230 if test -d /usr
/nec
; then
8231 lt_prog_compiler_pic
=-Kconform_pic
8236 lt_prog_compiler_pic
='-fPIC'
8240 case $cc_basename in
8241 nvcc
*) # Cuda Compiler Driver 2.2
8242 lt_prog_compiler_wl
='-Xlinker '
8243 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8247 # PORTME Check for flag to pass linker flags through the system compiler.
8250 lt_prog_compiler_wl
='-Wl,'
8251 if test "$host_cpu" = ia64
; then
8252 # AIX 5 now supports IA64 processor
8253 lt_prog_compiler_static
='-Bstatic'
8255 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8259 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8260 # This hack is so that the source file can tell whether it is being
8261 # built for inclusion in a dll (and should export symbols for example).
8262 lt_prog_compiler_pic
='-DDLL_EXPORT'
8265 hpux9
* | hpux10
* | hpux11
*)
8266 lt_prog_compiler_wl
='-Wl,'
8267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8274 lt_prog_compiler_pic
='+Z'
8277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8278 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8281 irix5
* | irix6
* | nonstopux
*)
8282 lt_prog_compiler_wl
='-Wl,'
8283 # PIC (with -KPIC) is the default.
8284 lt_prog_compiler_static
='-non_shared'
8287 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8288 case $cc_basename in
8289 # old Intel for x86_64 which still supported -KPIC.
8291 lt_prog_compiler_wl
='-Wl,'
8292 lt_prog_compiler_pic
='-KPIC'
8293 lt_prog_compiler_static
='-static'
8295 # icc used to be incompatible with GCC.
8296 # ICC 10 doesn't accept -KPIC any more.
8298 lt_prog_compiler_wl
='-Wl,'
8299 lt_prog_compiler_pic
='-fPIC'
8300 lt_prog_compiler_static
='-static'
8302 # Lahey Fortran 8.1.
8304 lt_prog_compiler_wl
='-Wl,'
8305 lt_prog_compiler_pic
='--shared'
8306 lt_prog_compiler_static
='--static'
8308 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8309 # Portland Group compilers (*not* the Pentium gcc compiler,
8310 # which looks to be a dead project)
8311 lt_prog_compiler_wl
='-Wl,'
8312 lt_prog_compiler_pic
='-fpic'
8313 lt_prog_compiler_static
='-Bstatic'
8316 lt_prog_compiler_wl
='-Wl,'
8317 # All Alpha code is PIC.
8318 lt_prog_compiler_static
='-non_shared'
8320 xl
* | bgxl
* | bgf
* | mpixl
*)
8321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8322 lt_prog_compiler_wl
='-Wl,'
8323 lt_prog_compiler_pic
='-qpic'
8324 lt_prog_compiler_static
='-qstaticlink'
8327 case `$CC -V 2>&1 | sed 5q` in
8328 *Sun\ F
* |
*Sun
*Fortran
*)
8329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8330 lt_prog_compiler_pic
='-KPIC'
8331 lt_prog_compiler_static
='-Bstatic'
8332 lt_prog_compiler_wl
=''
8336 lt_prog_compiler_pic
='-KPIC'
8337 lt_prog_compiler_static
='-Bstatic'
8338 lt_prog_compiler_wl
='-Wl,'
8346 lt_prog_compiler_pic
='-KPIC'
8347 lt_prog_compiler_static
='-Bstatic'
8351 # QNX uses GNU C++, but need to define -shared option too, otherwise
8353 lt_prog_compiler_pic
='-fPIC -shared'
8356 osf3
* | osf4
* | osf5
*)
8357 lt_prog_compiler_wl
='-Wl,'
8358 # All OSF/1 code is PIC.
8359 lt_prog_compiler_static
='-non_shared'
8363 lt_prog_compiler_static
='-non_shared'
8367 lt_prog_compiler_pic
='-KPIC'
8368 lt_prog_compiler_static
='-Bstatic'
8369 case $cc_basename in
8371 lt_prog_compiler_wl
='-Qoption ld ';;
8373 lt_prog_compiler_wl
='-Wl,';;
8378 lt_prog_compiler_wl
='-Qoption ld '
8379 lt_prog_compiler_pic
='-PIC'
8380 lt_prog_compiler_static
='-Bstatic'
8383 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8384 lt_prog_compiler_wl
='-Wl,'
8385 lt_prog_compiler_pic
='-KPIC'
8386 lt_prog_compiler_static
='-Bstatic'
8390 if test -d /usr
/nec
;then
8391 lt_prog_compiler_pic
='-Kconform_pic'
8392 lt_prog_compiler_static
='-Bstatic'
8396 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8397 lt_prog_compiler_wl
='-Wl,'
8398 lt_prog_compiler_pic
='-KPIC'
8399 lt_prog_compiler_static
='-Bstatic'
8403 lt_prog_compiler_wl
='-Wl,'
8404 lt_prog_compiler_can_build_shared
=no
8408 lt_prog_compiler_pic
='-pic'
8409 lt_prog_compiler_static
='-Bstatic'
8413 lt_prog_compiler_can_build_shared
=no
8419 # For platforms which do not support PIC, -DPIC is meaningless:
8421 lt_prog_compiler_pic
=
8424 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8428 $as_echo "$lt_prog_compiler_pic" >&6; }
8436 # Check to make sure the PIC flag actually works.
8438 if test -n "$lt_prog_compiler_pic"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8441 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8444 lt_cv_prog_compiler_pic_works
=no
8445 ac_outfile
=conftest.
$ac_objext
8446 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8447 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8448 # Insert the option either (1) after the last *FLAGS variable, or
8449 # (2) before a word containing "conftest.", or (3) at the end.
8450 # Note that $ac_compile itself does not contain backslashes and begins
8451 # with a dollar sign (not a hyphen), so the echo should work correctly.
8452 # The option is referenced via a variable to avoid confusing sed.
8453 lt_compile
=`echo "$ac_compile" | $SED \
8454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8456 -e 's:$: $lt_compiler_flag:'`
8457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8458 (eval "$lt_compile" 2>conftest.err
)
8460 cat conftest.err
>&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 if (exit $ac_status) && test -s "$ac_outfile"; then
8463 # The compiler can only warn and ignore the option if not recognized
8464 # So say no if there are warnings other than the usual output.
8465 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8466 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8467 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8468 lt_cv_prog_compiler_pic_works
=yes
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8477 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8478 case $lt_prog_compiler_pic in
8480 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8483 lt_prog_compiler_pic
=
8484 lt_prog_compiler_can_build_shared
=no
8495 # Check to make sure the static flag actually works.
8497 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8499 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8500 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8503 lt_cv_prog_compiler_static_works
=no
8504 save_LDFLAGS
="$LDFLAGS"
8505 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8506 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8507 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8508 # The linker can only warn and ignore the option if not recognized
8509 # So say no if there are warnings
8510 if test -s conftest.err
; then
8511 # Append any errors to the config.log.
8512 cat conftest.err
1>&5
8513 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8515 if diff conftest.exp conftest.er2
>/dev
/null
; then
8516 lt_cv_prog_compiler_static_works
=yes
8519 lt_cv_prog_compiler_static_works
=yes
8523 LDFLAGS
="$save_LDFLAGS"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8529 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8532 lt_prog_compiler_static
=
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8546 lt_cv_prog_compiler_c_o
=no
8547 $RM -r conftest
2>/dev
/null
8551 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8553 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 lt_compile
=`echo "$ac_compile" | $SED \
8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561 -e 's:$: $lt_compiler_flag:'`
8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563 (eval "$lt_compile" 2>out
/conftest.err
)
8565 cat out
/conftest.err
>&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings
8571 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8572 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8573 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8574 lt_cv_prog_compiler_c_o
=yes
8579 # SGI C++ compiler will create directory out/ii_files/ for
8580 # template instantiation
8581 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8582 $RM out
/* && rmdir out
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8597 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8601 lt_cv_prog_compiler_c_o
=no
8602 $RM -r conftest
2>/dev
/null
8606 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8608 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8609 # Insert the option either (1) after the last *FLAGS variable, or
8610 # (2) before a word containing "conftest.", or (3) at the end.
8611 # Note that $ac_compile itself does not contain backslashes and begins
8612 # with a dollar sign (not a hyphen), so the echo should work correctly.
8613 lt_compile
=`echo "$ac_compile" | $SED \
8614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616 -e 's:$: $lt_compiler_flag:'`
8617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618 (eval "$lt_compile" 2>out
/conftest.err
)
8620 cat out
/conftest.err
>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8624 # The compiler can only warn and ignore the option if not recognized
8625 # So say no if there are warnings
8626 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8627 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8628 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8629 lt_cv_prog_compiler_c_o
=yes
8634 # SGI C++ compiler will create directory out/ii_files/ for
8635 # template instantiation
8636 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8637 $RM out
/* && rmdir out
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8649 hard_links
="nottested"
8650 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8651 # do not overwrite the value of need_locks provided by the user
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8653 $as_echo_n "checking if we can lock with hard links... " >&6; }
8656 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8658 ln conftest.a conftest.b
2>&5 || hard_links
=no
8659 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8661 $as_echo "$hard_links" >&6; }
8662 if test "$hard_links" = no
; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8664 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8680 allow_undefined_flag
=
8681 always_export_symbols
=no
8683 archive_expsym_cmds
=
8684 compiler_needs_object
=no
8685 enable_shared_with_static_runtimes
=no
8686 export_dynamic_flag_spec
=
8687 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8688 hardcode_automatic
=no
8690 hardcode_direct_absolute
=no
8691 hardcode_libdir_flag_spec
=
8692 hardcode_libdir_flag_spec_ld
=
8693 hardcode_libdir_separator
=
8695 hardcode_shlibpath_var
=unsupported
8697 link_all_deplibs
=unknown
8700 old_archive_from_new_cmds
=
8701 old_archive_from_expsyms_cmds
=
8702 thread_safe_flag_spec
=
8703 whole_archive_flag_spec
=
8704 # include_expsyms should be a list of space-separated symbols to be *always*
8705 # included in the symbol list
8707 # exclude_expsyms can be an extended regexp of symbols to exclude
8708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8710 # as well as any symbol that contains `d'.
8711 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8713 # platforms (ab)use it in PIC code, but their linkers get confused if
8714 # the symbol is explicitly referenced. Since portable code cannot
8715 # rely on this symbol name, it's probably fine to never include it in
8716 # preloaded symbol tables.
8717 # Exclude shared library initialization/finalization symbols.
8718 extract_expsyms_cmds
=
8721 cygwin
* | mingw
* | pw32
* | cegcc
*)
8722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8723 # When not using gcc, we currently assume that we are using
8724 # Microsoft Visual C++.
8725 if test "$GCC" != yes; then
8730 # we just hope/assume this is gcc and not c89 (= MSVC++)
8740 # On some targets, GNU ld is compatible enough with the native linker
8741 # that we're better off using the native interface for both.
8742 lt_use_gnu_ld_interface
=no
8743 if test "$with_gnu_ld" = yes; then
8746 # The AIX port of GNU ld has always aspired to compatibility
8747 # with the native linker. However, as the warning in the GNU ld
8748 # block says, versions before 2.19.5* couldn't really create working
8749 # shared libraries, regardless of the interface used.
8750 case `$LD -v 2>&1` in
8751 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8752 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8753 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8755 lt_use_gnu_ld_interface
=yes
8760 lt_use_gnu_ld_interface
=yes
8765 if test "$lt_use_gnu_ld_interface" = yes; then
8766 # If archive_cmds runs LD, not CC, wlarc should be empty
8769 # Set some defaults for GNU ld with shared library support. These
8770 # are reset later if shared libraries are not supported. Putting them
8771 # here allows them to be overridden if necessary.
8772 runpath_var
=LD_RUN_PATH
8773 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8774 export_dynamic_flag_spec
='${wl}--export-dynamic'
8775 # ancient GNU ld didn't support --whole-archive et. al.
8776 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8777 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8779 whole_archive_flag_spec
=
8781 supports_anon_versioning
=no
8782 case `$LD -v 2>&1` in
8783 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8784 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8785 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8786 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8787 *\
2.11.
*) ;; # other 2.11 versions
8788 *) supports_anon_versioning
=yes ;;
8791 # See if GNU ld supports shared libraries.
8794 # On AIX/PPC, the GNU linker is very broken
8795 if test "$host_cpu" != ia64
; then
8799 *** Warning: the GNU linker, at least up to release 2.19, is reported
8800 *** to be unable to reliably create shared libraries on AIX.
8801 *** Therefore, libtool is disabling shared libraries support. If you
8802 *** really care for shared libraries, you may want to install binutils
8803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8804 *** You will then need to restart the configuration process.
8813 # see comment about AmigaOS4 .so support
8814 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8815 archive_expsym_cmds
=''
8818 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)'
8819 hardcode_libdir_flag_spec
='-L$libdir'
8820 hardcode_minus_L
=yes
8826 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8827 allow_undefined_flag
=unsupported
8828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8829 # support --undefined. This deserves some investigation. FIXME
8830 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 cygwin
* | mingw
* | pw32
* | cegcc
*)
8837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8838 # as there is no search path for DLLs.
8839 hardcode_libdir_flag_spec
='-L$libdir'
8840 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8841 allow_undefined_flag
=unsupported
8842 always_export_symbols
=no
8843 enable_shared_with_static_runtimes
=yes
8844 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8846 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8847 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file (1st line
8849 # is EXPORTS), use it as is; otherwise, prepend...
8850 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8851 cp $export_symbols $output_objdir/$soname.def;
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 link_all_deplibs
=yes
8869 hardcode_shlibpath_var
=no
8870 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8871 export_dynamic_flag_spec
='${wl}-E'
8872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8873 # Instead, shared libraries are loaded at an image base (0x10000000 by
8874 # default) and relocated if they conflict, which is a slow very memory
8875 # consuming and fragmenting process. To avoid this, we pick a random,
8876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8878 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8879 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'
8882 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8884 if test "$host_os" = linux-dietlibc
; then
8885 case $cc_basename in
8886 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8889 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8890 && test "$tmp_diet" = no
8893 tmp_sharedflag
='-shared'
8894 case $cc_basename,$host_cpu in
8895 pgcc
*) # Portland Group C compiler
8896 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'
8897 tmp_addflag
=' $pic_flag'
8899 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8900 # Portland Group f77 and f90 compilers
8901 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'
8902 tmp_addflag
=' $pic_flag -Mnomain' ;;
8903 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8904 tmp_addflag
=' -i_dynamic' ;;
8905 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8906 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8907 ifc
* | ifort
*) # Intel Fortran compiler
8908 tmp_addflag
=' -nofor_main' ;;
8909 lf95
*) # Lahey Fortran 8.1
8910 whole_archive_flag_spec
=
8911 tmp_sharedflag
='--shared' ;;
8912 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8913 tmp_sharedflag
='-qmkshrobj'
8915 nvcc
*) # Cuda Compiler Driver 2.2
8916 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'
8917 compiler_needs_object
=yes
8920 case `$CC -V 2>&1 | sed 5q` in
8921 *Sun\ C
*) # Sun C 5.9
8922 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'
8923 compiler_needs_object
=yes
8924 tmp_sharedflag
='-G' ;;
8925 *Sun\ F
*) # Sun Fortran 8.3
8926 tmp_sharedflag
='-G' ;;
8928 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8930 if test "x$supports_anon_versioning" = xyes
; then
8931 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8933 echo "local: *; };" >> $output_objdir/$libname.ver~
8934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8937 case $cc_basename in
8938 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8940 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8941 hardcode_libdir_flag_spec
=
8942 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8943 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8944 if test "x$supports_anon_versioning" = xyes
; then
8945 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8947 echo "local: *; };" >> $output_objdir/$libname.ver~
8948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8958 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8959 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8962 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8973 *** create shared libraries on Solaris systems. Therefore, libtool
8974 *** is disabling shared libraries support. We urge you to upgrade GNU
8975 *** binutils to release 2.9.1 or newer. Another option is to modify
8976 *** your PATH or compiler configuration so that the native linker is
8977 *** used, and then restart.
8980 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8981 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8989 case `$LD -v 2>&1` in
8990 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8995 *** reliably create shared libraries on SCO systems. Therefore, libtool
8996 *** is disabling shared libraries support. We urge you to upgrade GNU
8997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8998 *** your PATH or compiler configuration so that the native linker is
8999 *** used, and then restart.
9004 # For security reasons, it is highly recommended that you always
9005 # use absolute paths for naming shared libraries, and exclude the
9006 # DT_RUNPATH tag from executables and libraries. But doing so
9007 # requires that you compile everything twice, which is a pain.
9008 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9009 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9010 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_shlibpath_var
=no
9027 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9028 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 if test "$ld_shlibs" = no
; then
9038 hardcode_libdir_flag_spec
=
9039 export_dynamic_flag_spec
=
9040 whole_archive_flag_spec
=
9043 # PORTME fill in a description of your system's linker (not GNU ld)
9046 allow_undefined_flag
=unsupported
9047 always_export_symbols
=yes
9048 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'
9049 # Note: this linker hardcodes the directories in LIBPATH if there
9050 # are no directories specified by -L.
9051 hardcode_minus_L
=yes
9052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9053 # Neither direct hardcoding nor static linking is supported with a
9055 hardcode_direct
=unsupported
9060 if test "$host_cpu" = ia64
; then
9061 # On IA64, the linker does run time linking by default, so we don't
9062 # have to do anything special.
9063 aix_use_runtimelinking
=no
9064 exp_sym_flag
='-Bexport'
9067 # If we're using GNU nm, then we don't want the "-C" option.
9068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9069 # Also, AIX nm treats weak defined symbols like other global
9070 # defined symbols, whereas GNU nm marks them as "W".
9071 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9072 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'
9074 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'
9076 aix_use_runtimelinking
=no
9078 # Test if we are trying to use run time linking or normal
9079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9080 # need to do runtime linking.
9081 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9082 for ld_flag
in $LDFLAGS; do
9083 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9084 aix_use_runtimelinking
=yes
9091 exp_sym_flag
='-bexport'
9092 no_entry_flag
='-bnoentry'
9095 # When large executables or shared objects are built, AIX ld can
9096 # have problems creating the table of contents. If linking a library
9097 # or program results in "error TOC overflow" add -mminimal-toc to
9098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103 hardcode_direct_absolute
=yes
9104 hardcode_libdir_separator
=':'
9105 link_all_deplibs
=yes
9106 file_list_spec
='${wl}-f,'
9108 if test "$GCC" = yes; then
9109 case $host_os in aix4.
[012]|aix4.
[012].
*)
9110 # We only want to do this on AIX 4.2 and lower, the check
9111 # below for broken collect2 doesn't work under 4.3+
9112 collect2name
=`${CC} -print-prog-name=collect2`
9113 if test -f "$collect2name" &&
9114 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9116 # We have reworked collect2
9119 # We have old collect2
9120 hardcode_direct
=unsupported
9121 # It fails to find uninstalled libraries when the uninstalled
9122 # path is not listed in the libpath. Setting hardcode_minus_L
9123 # to unsupported forces relinking
9124 hardcode_minus_L
=yes
9125 hardcode_libdir_flag_spec
='-L$libdir'
9126 hardcode_libdir_separator
=
9130 shared_flag
='-shared'
9131 if test "$aix_use_runtimelinking" = yes; then
9132 shared_flag
="$shared_flag "'${wl}-G'
9136 if test "$host_cpu" = ia64
; then
9137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9138 # chokes on -Wl,-G. The following line is correct:
9141 if test "$aix_use_runtimelinking" = yes; then
9142 shared_flag
='${wl}-G'
9144 shared_flag
='${wl}-bM:SRE'
9149 export_dynamic_flag_spec
='${wl}-bexpall'
9150 # It seems that -bexpall does not export symbols beginning with
9151 # underscore (_), so it is better to generate a list of symbols to export.
9152 always_export_symbols
=yes
9153 if test "$aix_use_runtimelinking" = yes; then
9154 # Warning - without using the other runtime loading flags (-brtl),
9155 # -berok will link without error, but may produce a broken library.
9156 allow_undefined_flag
='-berok'
9157 # Determine the default libpath from the value encoded in an
9159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9170 if ac_fn_c_try_link
"$LINENO"; then :
9172 lt_aix_libpath_sed
='
9173 /Import File Strings/,/^$/ {
9179 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9180 # Check for a 64-bit object if we didn't find anything.
9181 if test -z "$aix_libpath"; then
9182 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 rm -f core conftest.err conftest.
$ac_objext \
9186 conftest
$ac_exeext conftest.
$ac_ext
9187 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9189 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9190 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"
9192 if test "$host_cpu" = ia64
; then
9193 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9194 allow_undefined_flag
="-z nodefs"
9195 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"
9197 # Determine the default libpath from the value encoded in an
9199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9210 if ac_fn_c_try_link
"$LINENO"; then :
9212 lt_aix_libpath_sed
='
9213 /Import File Strings/,/^$/ {
9219 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 # Check for a 64-bit object if we didn't find anything.
9221 if test -z "$aix_libpath"; then
9222 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 rm -f core conftest.err conftest.
$ac_objext \
9226 conftest
$ac_exeext conftest.
$ac_ext
9227 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9229 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9230 # Warning - without using the other run time loading flags,
9231 # -berok will link without error, but may produce a broken library.
9232 no_undefined_flag
=' ${wl}-bernotok'
9233 allow_undefined_flag
=' ${wl}-berok'
9234 if test "$with_gnu_ld" = yes; then
9235 # We only use this code for GNU lds that support --whole-archive.
9236 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9238 # Exported symbols can be pulled into shared objects from archives
9239 whole_archive_flag_spec
='$convenience'
9241 archive_cmds_need_lc
=yes
9242 # This is similar to how AIX traditionally builds its shared libraries.
9243 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'
9251 # see comment about AmigaOS4 .so support
9252 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds
=''
9256 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)'
9257 hardcode_libdir_flag_spec
='-L$libdir'
9258 hardcode_minus_L
=yes
9264 export_dynamic_flag_spec
=-rdynamic
9267 cygwin
* | mingw
* | pw32
* | cegcc
*)
9268 # When not using gcc, we currently assume that we are using
9269 # Microsoft Visual C++.
9270 # hardcode_libdir_flag_spec is actually meaningless, as there is
9271 # no search path for DLLs.
9272 hardcode_libdir_flag_spec
=' '
9273 allow_undefined_flag
=unsupported
9274 # Tell ltmain to make .lib files, not .a files.
9276 # Tell ltmain to make .dll files, not .so files.
9278 # FIXME: Setting linknames here is a bad hack.
9279 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9280 # The linker will automatically build a .lib file if we build a DLL.
9281 old_archive_from_new_cmds
='true'
9282 # FIXME: Should let the user specify the lib program.
9283 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9284 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9285 enable_shared_with_static_runtimes
=yes
9288 darwin
* | rhapsody
*)
9291 archive_cmds_need_lc
=no
9293 hardcode_automatic
=yes
9294 hardcode_shlibpath_var
=unsupported
9295 if test "$lt_cv_ld_force_load" = "yes"; then
9296 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\"`'
9298 whole_archive_flag_spec
=''
9300 link_all_deplibs
=yes
9301 allow_undefined_flag
="$_lt_dar_allow_undefined"
9302 case $cc_basename in
9303 ifort
*) _lt_dar_can_shared
=yes ;;
9304 *) _lt_dar_can_shared
=$GCC ;;
9306 if test "$_lt_dar_can_shared" = "yes"; then
9307 output_verbose_link_cmd
=func_echo_all
9308 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9309 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9310 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}"
9311 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}"
9320 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_libdir_flag_spec
='-L$libdir'
9322 hardcode_shlibpath_var
=no
9325 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9326 # support. Future versions do this automatically, but an explicit c++rt0.o
9327 # does not break anything, and helps significantly (at the cost of a little
9330 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9331 hardcode_libdir_flag_spec
='-R$libdir'
9333 hardcode_shlibpath_var
=no
9336 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9338 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_minus_L
=yes
9341 hardcode_shlibpath_var
=no
9344 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9345 freebsd
* | dragonfly
*)
9346 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9347 hardcode_libdir_flag_spec
='-R$libdir'
9349 hardcode_shlibpath_var
=no
9353 if test "$GCC" = yes; then
9354 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'
9356 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'
9358 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9359 hardcode_libdir_separator
=:
9362 # hardcode_minus_L: Not really in the search PATH,
9363 # but as the default location of the library.
9364 hardcode_minus_L
=yes
9365 export_dynamic_flag_spec
='${wl}-E'
9369 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9370 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9374 if test "$with_gnu_ld" = no
; then
9375 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9376 hardcode_libdir_flag_spec_ld
='+b $libdir'
9377 hardcode_libdir_separator
=:
9379 hardcode_direct_absolute
=yes
9380 export_dynamic_flag_spec
='${wl}-E'
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L
=yes
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9391 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9403 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9410 # Older versions of the 11.00 compiler do not understand -b yet
9411 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9413 $as_echo_n "checking if $CC understands -b... " >&6; }
9414 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9417 lt_cv_prog_compiler__b
=no
9418 save_LDFLAGS
="$LDFLAGS"
9419 LDFLAGS
="$LDFLAGS -b"
9420 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9421 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9422 # The linker can only warn and ignore the option if not recognized
9423 # So say no if there are warnings
9424 if test -s conftest.err
; then
9425 # Append any errors to the config.log.
9426 cat conftest.err
1>&5
9427 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9428 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9429 if diff conftest.exp conftest.er2
>/dev
/null
; then
9430 lt_cv_prog_compiler__b
=yes
9433 lt_cv_prog_compiler__b
=yes
9437 LDFLAGS
="$save_LDFLAGS"
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9441 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9443 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9444 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9452 if test "$with_gnu_ld" = no
; then
9453 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9454 hardcode_libdir_separator
=:
9459 hardcode_shlibpath_var
=no
9463 hardcode_direct_absolute
=yes
9464 export_dynamic_flag_spec
='${wl}-E'
9466 # hardcode_minus_L: Not really in the search PATH,
9467 # but as the default location of the library.
9468 hardcode_minus_L
=yes
9474 irix5
* | irix6
* | nonstopux
*)
9475 if test "$GCC" = yes; then
9476 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'
9477 # Try to use the -exported_symbol ld option, if it does not
9478 # work, assume that -exports_file does not work either and
9479 # implicitly export all symbols.
9480 save_LDFLAGS
="$LDFLAGS"
9481 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9486 if ac_fn_c_try_link
"$LINENO"; then :
9487 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'
9490 rm -f core conftest.err conftest.
$ac_objext \
9491 conftest
$ac_exeext conftest.
$ac_ext
9492 LDFLAGS
="$save_LDFLAGS"
9494 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'
9495 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'
9497 archive_cmds_need_lc
='no'
9498 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9499 hardcode_libdir_separator
=:
9501 link_all_deplibs
=yes
9505 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9506 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9508 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9510 hardcode_libdir_flag_spec
='-R$libdir'
9512 hardcode_shlibpath_var
=no
9516 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9519 hardcode_libdir_separator
=:
9520 hardcode_shlibpath_var
=no
9527 if test -f /usr
/libexec
/ld.so
; then
9529 hardcode_shlibpath_var
=no
9530 hardcode_direct_absolute
=yes
9531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9532 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9534 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9535 export_dynamic_flag_spec
='${wl}-E'
9538 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9539 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_libdir_flag_spec
='-R$libdir'
9543 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9554 hardcode_libdir_flag_spec
='-L$libdir'
9555 hardcode_minus_L
=yes
9556 allow_undefined_flag
=unsupported
9557 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'
9558 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9562 if test "$GCC" = yes; then
9563 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9564 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'
9566 allow_undefined_flag
=' -expect_unresolved \*'
9567 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'
9569 archive_cmds_need_lc
='no'
9570 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9571 hardcode_libdir_separator
=:
9574 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9575 if test "$GCC" = yes; then
9576 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9577 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'
9578 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9580 allow_undefined_flag
=' -expect_unresolved \*'
9581 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'
9582 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~
9583 $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'
9585 # Both c and cxx compiler support -rpath directly
9586 hardcode_libdir_flag_spec
='-rpath $libdir'
9588 archive_cmds_need_lc
='no'
9589 hardcode_libdir_separator
=:
9593 no_undefined_flag
=' -z defs'
9594 if test "$GCC" = yes; then
9596 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9598 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600 case `$CC -V 2>&1` in
9603 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9609 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9610 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9615 hardcode_libdir_flag_spec
='-R$libdir'
9616 hardcode_shlibpath_var
=no
9618 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9620 # The compiler driver will combine and reorder linker options,
9621 # but understands `-z linker_flag'. GCC discards it without `$wl',
9622 # but is careful enough not to reorder.
9623 # Supported since Solaris 2.6 (maybe 2.5.1?)
9624 if test "$GCC" = yes; then
9625 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9627 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9631 link_all_deplibs
=yes
9635 if test "x$host_vendor" = xsequent
; then
9636 # Use $CC to link under sequent, because it throws in some extra .o
9637 # files that make .init and .fini sections work.
9638 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec
='-L$libdir'
9644 hardcode_minus_L
=yes
9645 hardcode_shlibpath_var
=no
9649 case $host_vendor in
9651 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 hardcode_direct
=yes # is this really true???
9655 ## LD is ld it makes a PLAMLIB
9656 ## CC just makes a GrossModule.
9657 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9658 reload_cmds
='$CC -r -o $output$reload_objs'
9662 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9663 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9666 runpath_var
='LD_RUN_PATH'
9667 hardcode_shlibpath_var
=no
9671 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_shlibpath_var
=no
9673 export_dynamic_flag_spec
='-Bexport'
9677 if test -d /usr
/nec
; then
9678 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var
=no
9680 runpath_var
=LD_RUN_PATH
9681 hardcode_runpath_var
=yes
9686 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9687 no_undefined_flag
='${wl}-z,text'
9688 archive_cmds_need_lc
=no
9689 hardcode_shlibpath_var
=no
9690 runpath_var
='LD_RUN_PATH'
9692 if test "$GCC" = yes; then
9693 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 sysv5
* | sco3.2v5
* | sco5v6
*)
9702 # Note: We can NOT use -z defs as we might desire, because we do not
9703 # link with -lc, and that would cause any symbols used from libc to
9704 # always be unresolved, which means just about no library would
9705 # ever link correctly. If we're not using GNU ld we use -z text
9706 # though, which does catch some bad symbols but isn't as heavy-handed
9708 no_undefined_flag
='${wl}-z,text'
9709 allow_undefined_flag
='${wl}-z,nodefs'
9710 archive_cmds_need_lc
=no
9711 hardcode_shlibpath_var
=no
9712 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9713 hardcode_libdir_separator
=':'
9714 link_all_deplibs
=yes
9715 export_dynamic_flag_spec
='${wl}-Bexport'
9716 runpath_var
='LD_RUN_PATH'
9718 if test "$GCC" = yes; then
9719 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729 hardcode_libdir_flag_spec
='-L$libdir'
9730 hardcode_shlibpath_var
=no
9738 if test x
$host_vendor = xsni
; then
9740 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9741 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9748 $as_echo "$ld_shlibs" >&6; }
9749 test "$ld_shlibs" = no
&& can_build_shared
=no
9751 with_gnu_ld
=$with_gnu_ld
9768 # Do we need to explicitly link libc?
9770 case "x$archive_cmds_need_lc" in
9772 # Assume -lc should be added
9773 archive_cmds_need_lc
=yes
9775 if test "$enable_shared" = yes && test "$GCC" = yes; then
9776 case $archive_cmds in
9778 # FIXME: we may have to deal with multi-command sequences.
9781 # Test whether the compiler implicitly links with -lc since on some
9782 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9783 # to ld, don't add -lc before -lgcc.
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9785 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9786 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9787 $as_echo_n "(cached) " >&6
9790 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9793 (eval $ac_compile) 2>&5
9795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9796 test $ac_status = 0; } 2>conftest.err
; then
9799 libobjs
=conftest.
$ac_objext
9801 wl
=$lt_prog_compiler_wl
9802 pic_flag
=$lt_prog_compiler_pic
9808 lt_save_allow_undefined_flag
=$allow_undefined_flag
9809 allow_undefined_flag
=
9810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9811 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9814 test $ac_status = 0; }
9816 lt_cv_archive_cmds_need_lc
=no
9818 lt_cv_archive_cmds_need_lc
=yes
9820 allow_undefined_flag
=$lt_save_allow_undefined_flag
9822 cat conftest.err
1>&5
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9828 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9829 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9993 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9995 if test "$GCC" = yes; then
9997 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9998 *) lt_awk_arg
="/^libraries:/" ;;
10001 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10002 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10004 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10005 case $lt_search_path_spec in
10007 # if the path contains ";" then we assume it to be the separator
10008 # otherwise default to the standard path separator (i.e. ":") - it is
10009 # assumed that no part of a normal pathname contains ";" but that should
10010 # okay in the real world where ";" in dirpaths is itself problematic.
10011 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10014 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10017 # Ok, now we have the path, separated by spaces, we can step through it
10018 # and add multilib dir if necessary.
10019 lt_tmp_lt_search_path_spec
=
10020 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10021 for lt_sys_path
in $lt_search_path_spec; do
10022 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10023 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10025 test -d "$lt_sys_path" && \
10026 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10029 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10030 BEGIN {RS=" "; FS="/|\n";} {
10033 for (lt_i = NF; lt_i > 0; lt_i--) {
10034 if ($lt_i != "" && $lt_i != ".") {
10035 if ($lt_i == "..") {
10038 if (lt_count == 0) {
10039 lt_foo="/" $lt_i lt_foo;
10046 if (lt_foo != "") { lt_freq[lt_foo]++; }
10047 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10049 # AWK program above erroneously prepends '/' to C:/dos/paths
10052 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10053 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10055 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10057 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10059 library_names_spec
=
10060 libname_spec
='lib$name'
10064 postuninstall_cmds
=
10068 shlibpath_overrides_runpath
=unknown
10070 dynamic_linker
="$host_os ld.so"
10071 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10072 need_lib_prefix
=unknown
10073 hardcode_into_libs
=no
10075 # when you set need_version to no, make sure it does not cause -set_version
10076 # flags to be left without arguments
10077 need_version
=unknown
10082 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10083 shlibpath_var
=LIBPATH
10085 # AIX 3 has no versioning support, so we append a major version to the name.
10086 soname_spec
='${libname}${release}${shared_ext}$major'
10093 hardcode_into_libs
=yes
10094 if test "$host_cpu" = ia64
; then
10095 # AIX 5 supports IA64
10096 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10097 shlibpath_var
=LD_LIBRARY_PATH
10099 # With GCC up to 2.95.x, collect2 would create an import file
10100 # for dependence libraries. The import file would start with
10101 # the line `#! .'. This would cause the generated library to
10102 # depend on `.', always an invalid library. This was fixed in
10103 # development snapshots of GCC prior to 3.0.
10105 aix4 | aix4.
[01] | aix4.
[01].
*)
10106 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10108 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10111 can_build_shared
=no
10115 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10116 # soname into executable. Probably we can add versioning support to
10117 # collect2, so additional links can be useful in future.
10118 if test "$aix_use_runtimelinking" = yes; then
10119 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10120 # instead of lib<name>.a to let people know that these are not
10121 # typical AIX shared libraries.
10122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 # We preserve .a as extension for shared libraries through AIX4.2
10125 # and later when we are not doing run time linking.
10126 library_names_spec
='${libname}${release}.a $libname.a'
10127 soname_spec
='${libname}${release}${shared_ext}$major'
10129 shlibpath_var
=LIBPATH
10136 # Since July 2007 AmigaOS4 officially supports .so libraries.
10137 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10138 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 library_names_spec
='$libname.ixlibrary $libname.a'
10142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10143 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'
10149 library_names_spec
='${libname}${shared_ext}'
10150 dynamic_linker
="$host_os ld.so"
10151 shlibpath_var
=LIBRARY_PATH
10157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec
='${libname}${release}${shared_ext}$major'
10159 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10160 shlibpath_var
=LD_LIBRARY_PATH
10161 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10162 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10163 # the default ld.so.conf also contains /usr/contrib/lib and
10164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10165 # libtool to hard-code these into programs
10168 cygwin
* | mingw
* | pw32
* | cegcc
*)
10169 version_type
=windows
10174 case $GCC,$host_os in
10175 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10176 library_names_spec
='$libname.dll.a'
10177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10178 postinstall_cmds
='base_file=`basename \${file}`~
10179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10180 dldir=$destdir/`dirname \$dlpath`~
10181 test -d \$dldir || mkdir -p \$dldir~
10182 $install_prog $dir/$dlname \$dldir/$dlname~
10183 chmod a+x \$dldir/$dlname~
10184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10187 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10188 dlpath=$dir/\$dldll~
10190 shlibpath_overrides_runpath
=yes
10194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10195 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10197 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10200 # MinGW DLLs use traditional 'lib' prefix
10201 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 # pw32 DLLs use 'pw' prefix rather than 'lib'
10205 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10214 dynamic_linker
='Win32 ld.exe'
10215 # FIXME: first we should search . and the directory the executable is in
10219 darwin
* | rhapsody
*)
10220 dynamic_linker
="$host_os dyld"
10221 version_type
=darwin
10224 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10225 soname_spec
='${libname}${release}${major}$shared_ext'
10226 shlibpath_overrides_runpath
=yes
10227 shlibpath_var
=DYLD_LIBRARY_PATH
10228 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10230 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10231 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10239 soname_spec
='${libname}${release}${shared_ext}$major'
10240 shlibpath_var
=LD_LIBRARY_PATH
10243 freebsd
* | dragonfly
*)
10244 # DragonFly does not have aout. When/if they implement a new
10245 # versioning mechanism, adjust this.
10246 if test -x /usr
/bin
/objformat
; then
10247 objformat
=`/usr/bin/objformat`
10250 freebsd
[123]*) objformat
=aout
;;
10251 *) objformat
=elf
;;
10254 version_type
=freebsd-
$objformat
10255 case $version_type in
10257 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10262 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10266 shlibpath_var
=LD_LIBRARY_PATH
10269 shlibpath_overrides_runpath
=yes
10271 freebsd3.
[01]* | freebsdelf3.
[01]*)
10272 shlibpath_overrides_runpath
=yes
10273 hardcode_into_libs
=yes
10275 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10276 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10277 shlibpath_overrides_runpath
=no
10278 hardcode_into_libs
=yes
10280 *) # from 4.6 on, and DragonFly
10281 shlibpath_overrides_runpath
=yes
10282 hardcode_into_libs
=yes
10291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10292 soname_spec
='${libname}${release}${shared_ext}$major'
10293 shlibpath_var
=LD_LIBRARY_PATH
10294 hardcode_into_libs
=yes
10301 dynamic_linker
="$host_os runtime_loader"
10302 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10303 soname_spec
='${libname}${release}${shared_ext}$major'
10304 shlibpath_var
=LIBRARY_PATH
10305 shlibpath_overrides_runpath
=yes
10306 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10307 hardcode_into_libs
=yes
10310 hpux9
* | hpux10
* | hpux11
*)
10311 # Give a soname corresponding to the major version so that dld.sl refuses to
10312 # link against other versions.
10319 hardcode_into_libs
=yes
10320 dynamic_linker
="$host_os dld.so"
10321 shlibpath_var
=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10323 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec
='${libname}${release}${shared_ext}$major'
10325 if test "X$HPUX_IA64_MODE" = X32
; then
10326 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10328 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10330 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10334 hardcode_into_libs
=yes
10335 dynamic_linker
="$host_os dld.sl"
10336 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10337 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10339 soname_spec
='${libname}${release}${shared_ext}$major'
10340 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10341 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10345 dynamic_linker
="$host_os dld.sl"
10346 shlibpath_var
=SHLIB_PATH
10347 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec
='${libname}${release}${shared_ext}$major'
10352 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10353 postinstall_cmds
='chmod 555 $lib'
10354 # or fails outright, so override atomically:
10355 install_override_mode
=555
10362 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10363 soname_spec
='${libname}${release}${shared_ext}$major'
10364 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10365 shlibpath_var
=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath
=no
10367 hardcode_into_libs
=yes
10370 irix5
* | irix6
* | nonstopux
*)
10372 nonstopux
*) version_type
=nonstopux
;;
10374 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 soname_spec
='${libname}${release}${shared_ext}$major'
10383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10385 irix5
* | nonstopux
*)
10386 libsuff
= shlibsuff
=
10389 case $LD in # libtool.m4 will add one of these switches to LD
10390 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10391 libsuff
= shlibsuff
= libmagic
=32-bit;;
10392 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10393 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10394 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10395 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10396 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10400 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10401 shlibpath_overrides_runpath
=no
10402 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10403 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10404 hardcode_into_libs
=yes
10407 # No shared lib support for Linux oldld, aout, or coff.
10408 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10412 # This must be Linux ELF.
10413 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec
='${libname}${release}${shared_ext}$major'
10419 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10420 shlibpath_var
=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath
=no
10423 # Some binutils ld are patched to set DT_RUNPATH
10424 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10427 lt_cv_shlibpath_overrides_runpath
=no
10428 save_LDFLAGS
=$LDFLAGS
10429 save_libdir
=$libdir
10430 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10431 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10443 if ac_fn_c_try_link
"$LINENO"; then :
10444 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10445 lt_cv_shlibpath_overrides_runpath
=yes
10448 rm -f core conftest.err conftest.
$ac_objext \
10449 conftest
$ac_exeext conftest.
$ac_ext
10450 LDFLAGS
=$save_LDFLAGS
10451 libdir
=$save_libdir
10455 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10457 # This implies no fast_install, which is unacceptable.
10458 # Some rework will be needed to allow for fast_install
10459 # before this can be enabled.
10460 hardcode_into_libs
=yes
10462 # Append ld.so.conf contents to the search path
10463 if test -f /etc
/ld.so.conf
; then
10464 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' ' '`
10465 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10468 # We used to test for /lib/ld.so.1 and disable shared libraries on
10469 # powerpc, because MkLinux only supported shared libraries with the
10470 # GNU dynamic linker. Since this was broken with cross compilers,
10471 # most powerpc-linux boxes support dynamic linking these days and
10472 # people can always --disable-shared, the test was removed, and we
10473 # assume the GNU/Linux dynamic linker is in use.
10474 dynamic_linker
='GNU/Linux ld.so'
10481 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10484 dynamic_linker
='NetBSD (a.out) ld.so'
10486 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10487 soname_spec
='${libname}${release}${shared_ext}$major'
10488 dynamic_linker
='NetBSD ld.elf_so'
10490 shlibpath_var
=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath
=yes
10492 hardcode_into_libs
=yes
10497 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498 shlibpath_var
=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath
=yes
10506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10507 soname_spec
='${libname}${release}${shared_ext}$major'
10508 shlibpath_var
=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath
=no
10510 hardcode_into_libs
=yes
10511 dynamic_linker
='ldqnx.so'
10516 sys_lib_dlsearch_path_spec
="/usr/lib"
10518 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10520 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10521 *) need_version
=no
;;
10523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10524 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10525 shlibpath_var
=LD_LIBRARY_PATH
10526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10528 openbsd2.
[89] | openbsd2.
[89].
*)
10529 shlibpath_overrides_runpath
=no
10532 shlibpath_overrides_runpath
=yes
10536 shlibpath_overrides_runpath
=yes
10541 libname_spec
='$name'
10544 library_names_spec
='$libname${shared_ext} $libname.a'
10545 dynamic_linker
='OS/2 ld.exe'
10546 shlibpath_var
=LIBPATH
10549 osf3
* | osf4
* | osf5
*)
10553 soname_spec
='${libname}${release}${shared_ext}$major'
10554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 shlibpath_var
=LD_LIBRARY_PATH
10556 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10557 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec
='${libname}${release}${shared_ext}$major'
10570 shlibpath_var
=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath
=yes
10572 hardcode_into_libs
=yes
10573 # ldd complains unless libraries are executable
10574 postinstall_cmds
='chmod +x $lib'
10579 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10580 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10581 shlibpath_var
=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath
=yes
10583 if test "$with_gnu_ld" = yes; then
10591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec
='${libname}${release}${shared_ext}$major'
10593 shlibpath_var
=LD_LIBRARY_PATH
10594 case $host_vendor in
10596 shlibpath_overrides_runpath
=no
10598 runpath_var
=LD_RUN_PATH
10606 shlibpath_overrides_runpath
=no
10607 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10613 if test -d /usr
/nec
;then
10615 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10616 soname_spec
='$libname${shared_ext}.$major'
10617 shlibpath_var
=LD_LIBRARY_PATH
10621 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10622 version_type
=freebsd-elf
10625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 soname_spec
='${libname}${release}${shared_ext}$major'
10627 shlibpath_var
=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath
=yes
10629 hardcode_into_libs
=yes
10630 if test "$with_gnu_ld" = yes; then
10631 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10633 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10636 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10640 sys_lib_dlsearch_path_spec
='/usr/lib'
10644 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10648 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 shlibpath_var
=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath
=no
10651 hardcode_into_libs
=yes
10656 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec
='${libname}${release}${shared_ext}$major'
10658 shlibpath_var
=LD_LIBRARY_PATH
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10666 $as_echo "$dynamic_linker" >&6; }
10667 test "$dynamic_linker" = no
&& can_build_shared
=no
10669 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10670 if test "$GCC" = yes; then
10671 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10674 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10675 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10677 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10678 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10775 if test -n "$hardcode_libdir_flag_spec" ||
10776 test -n "$runpath_var" ||
10777 test "X$hardcode_automatic" = "Xyes" ; then
10779 # We can hardcode non-existent directories.
10780 if test "$hardcode_direct" != no
&&
10781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10782 # have to relink, otherwise we might link with an installed library
10783 # when we should be linking with a yet-to-be-installed one
10784 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10785 test "$hardcode_minus_L" != no
; then
10786 # Linking always hardcodes the temporary library directory.
10787 hardcode_action
=relink
10789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10790 hardcode_action
=immediate
10793 # We cannot hardcode anything, or else we can only hardcode existing
10795 hardcode_action
=unsupported
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10798 $as_echo "$hardcode_action" >&6; }
10800 if test "$hardcode_action" = relink ||
10801 test "$inherit_rpath" = yes; then
10802 # Fast installation is not supported
10803 enable_fast_install
=no
10804 elif test "$shlibpath_overrides_runpath" = yes ||
10805 test "$enable_shared" = no
; then
10806 # Fast installation is not necessary
10807 enable_fast_install
=needless
10815 if test "x$enable_dlopen" != xyes
; then
10816 enable_dlopen
=unknown
10817 enable_dlopen_self
=unknown
10818 enable_dlopen_self_static
=unknown
10825 lt_cv_dlopen
="load_add_on"
10827 lt_cv_dlopen_self
=yes
10830 mingw
* | pw32
* | cegcc
*)
10831 lt_cv_dlopen
="LoadLibrary"
10836 lt_cv_dlopen
="dlopen"
10841 # if libdl is installed we need to link against it
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10843 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10847 ac_check_lib_save_LIBS
=$LIBS
10849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 /* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10867 if ac_fn_c_try_link
"$LINENO"; then :
10868 ac_cv_lib_dl_dlopen
=yes
10870 ac_cv_lib_dl_dlopen
=no
10872 rm -f core conftest.err conftest.
$ac_objext \
10873 conftest
$ac_exeext conftest.
$ac_ext
10874 LIBS
=$ac_check_lib_save_LIBS
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10877 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10878 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10879 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10882 lt_cv_dlopen
="dyld"
10884 lt_cv_dlopen_self
=yes
10891 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10892 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10893 lt_cv_dlopen
="shl_load"
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10896 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10900 ac_check_lib_save_LIBS
=$LIBS
10902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10915 return shl_load ();
10920 if ac_fn_c_try_link
"$LINENO"; then :
10921 ac_cv_lib_dld_shl_load
=yes
10923 ac_cv_lib_dld_shl_load
=no
10925 rm -f core conftest.err conftest.
$ac_objext \
10926 conftest
$ac_exeext conftest.
$ac_ext
10927 LIBS
=$ac_check_lib_save_LIBS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10930 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10931 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10932 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10934 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10935 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10936 lt_cv_dlopen
="dlopen"
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10939 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10941 $as_echo_n "(cached) " >&6
10943 ac_check_lib_save_LIBS
=$LIBS
10945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10963 if ac_fn_c_try_link
"$LINENO"; then :
10964 ac_cv_lib_dl_dlopen
=yes
10966 ac_cv_lib_dl_dlopen
=no
10968 rm -f core conftest.err conftest.
$ac_objext \
10969 conftest
$ac_exeext conftest.
$ac_ext
10970 LIBS
=$ac_check_lib_save_LIBS
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10973 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10974 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10975 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10978 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10979 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10980 $as_echo_n "(cached) " >&6
10982 ac_check_lib_save_LIBS
=$LIBS
10983 LIBS
="-lsvld $LIBS"
10984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
11002 if ac_fn_c_try_link
"$LINENO"; then :
11003 ac_cv_lib_svld_dlopen
=yes
11005 ac_cv_lib_svld_dlopen
=no
11007 rm -f core conftest.err conftest.
$ac_objext \
11008 conftest
$ac_exeext conftest.
$ac_ext
11009 LIBS
=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11012 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11013 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
11014 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11017 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11018 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 ac_check_lib_save_LIBS
=$LIBS
11023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11036 return dld_link ();
11041 if ac_fn_c_try_link
"$LINENO"; then :
11042 ac_cv_lib_dld_dld_link
=yes
11044 ac_cv_lib_dld_dld_link
=no
11046 rm -f core conftest.err conftest.
$ac_objext \
11047 conftest
$ac_exeext conftest.
$ac_ext
11048 LIBS
=$ac_check_lib_save_LIBS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11051 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11052 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
11053 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11074 if test "x$lt_cv_dlopen" != xno
; then
11080 case $lt_cv_dlopen in
11082 save_CPPFLAGS
="$CPPFLAGS"
11083 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11085 save_LDFLAGS
="$LDFLAGS"
11086 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11089 LIBS
="$lt_cv_dlopen_libs $LIBS"
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11092 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11093 if test "${lt_cv_dlopen_self+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11096 if test "$cross_compiling" = yes; then :
11097 lt_cv_dlopen_self
=cross
11099 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11100 lt_status
=$lt_dlunknown
11101 cat > conftest.
$ac_ext <<_LT_EOF
11102 #line 11102 "configure"
11103 #include "confdefs.h"
11112 # define LT_DLGLOBAL RTLD_GLOBAL
11115 # define LT_DLGLOBAL DL_GLOBAL
11117 # define LT_DLGLOBAL 0
11121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11122 find out it does not work in some platform. */
11123 #ifndef LT_DLLAZY_OR_NOW
11125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11128 # define LT_DLLAZY_OR_NOW DL_LAZY
11131 # define LT_DLLAZY_OR_NOW RTLD_NOW
11134 # define LT_DLLAZY_OR_NOW DL_NOW
11136 # define LT_DLLAZY_OR_NOW 0
11143 /* When -fvisbility=hidden is used, assume the code has been annotated
11144 correspondingly for the symbols needed. */
11145 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11146 void fnord () __attribute__((visibility("default")));
11149 void fnord () { int i=42; }
11152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11153 int status = $lt_dlunknown;
11157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11161 else puts (dlerror ());
11163 /* dlclose (self); */
11171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11172 (eval $ac_link) 2>&5
11174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11175 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11176 (.
/conftest
; exit; ) >&5 2>/dev
/null
11178 case x
$lt_status in
11179 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11180 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11181 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11184 # compilation failed
11185 lt_cv_dlopen_self
=no
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11193 $as_echo "$lt_cv_dlopen_self" >&6; }
11195 if test "x$lt_cv_dlopen_self" = xyes
; then
11196 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11198 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11199 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
11202 if test "$cross_compiling" = yes; then :
11203 lt_cv_dlopen_self_static
=cross
11205 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11206 lt_status
=$lt_dlunknown
11207 cat > conftest.
$ac_ext <<_LT_EOF
11208 #line 11208 "configure"
11209 #include "confdefs.h"
11218 # define LT_DLGLOBAL RTLD_GLOBAL
11221 # define LT_DLGLOBAL DL_GLOBAL
11223 # define LT_DLGLOBAL 0
11227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11228 find out it does not work in some platform. */
11229 #ifndef LT_DLLAZY_OR_NOW
11231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11234 # define LT_DLLAZY_OR_NOW DL_LAZY
11237 # define LT_DLLAZY_OR_NOW RTLD_NOW
11240 # define LT_DLLAZY_OR_NOW DL_NOW
11242 # define LT_DLLAZY_OR_NOW 0
11249 /* When -fvisbility=hidden is used, assume the code has been annotated
11250 correspondingly for the symbols needed. */
11251 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11252 void fnord () __attribute__((visibility("default")));
11255 void fnord () { int i=42; }
11258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11259 int status = $lt_dlunknown;
11263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11267 else puts (dlerror ());
11269 /* dlclose (self); */
11277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11278 (eval $ac_link) 2>&5
11280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11281 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11282 (.
/conftest
; exit; ) >&5 2>/dev
/null
11284 case x
$lt_status in
11285 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11286 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11287 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11290 # compilation failed
11291 lt_cv_dlopen_self_static
=no
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11299 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11302 CPPFLAGS
="$save_CPPFLAGS"
11303 LDFLAGS
="$save_LDFLAGS"
11308 case $lt_cv_dlopen_self in
11309 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11310 *) enable_dlopen_self
=unknown
;;
11313 case $lt_cv_dlopen_self_static in
11314 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11315 *) enable_dlopen_self_static
=unknown
;;
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11338 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11339 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11340 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11341 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11345 # FIXME - insert some real tests, host_os isn't really good enough
11348 if test -n "$STRIP" ; then
11349 striplib
="$STRIP -x"
11350 old_striplib
="$STRIP -S"
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11352 $as_echo "yes" >&6; }
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11376 # Report which library types will actually be built
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11378 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11380 $as_echo "$can_build_shared" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11383 $as_echo_n "checking whether to build shared libraries... " >&6; }
11384 test "$can_build_shared" = "no" && enable_shared
=no
11386 # On AIX, shared libraries and static libraries use the same namespace, and
11387 # are all built from PIC.
11390 test "$enable_shared" = yes && enable_static
=no
11391 if test -n "$RANLIB"; then
11392 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11393 postinstall_cmds
='$RANLIB $lib'
11398 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11399 test "$enable_shared" = yes && enable_static
=no
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11404 $as_echo "$enable_shared" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11407 $as_echo_n "checking whether to build static libraries... " >&6; }
11408 # Make sure either enable_shared or enable_static is yes.
11409 test "$enable_shared" = yes || enable_static
=yes
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11411 $as_echo "$enable_static" >&6; }
11418 ac_cpp
='$CPP $CPPFLAGS'
11419 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11420 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11421 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11437 # Source file extension for Go test sources.
11440 # Object file extension for compiled Go test sources.
11444 # Code to be used in simple compile tests
11445 lt_simple_compile_test_code
="package main; func main() { }"
11447 # Code to be used in simple link tests
11448 lt_simple_link_test_code
='package main; func main() { }'
11450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11457 # If no C compiler was specified, use CC.
11460 # If no C compiler flags were specified, use CFLAGS.
11461 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11463 # Allow CC to be a program name with arguments.
11467 # save warnings/boilerplate of simple test code
11468 ac_outfile
=conftest.
$ac_objext
11469 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11470 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11471 _lt_compiler_boilerplate
=`cat conftest.err`
11474 ac_outfile
=conftest.
$ac_objext
11475 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11476 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11477 _lt_linker_boilerplate
=`cat conftest.err`
11481 # Allow CC to be a program name with arguments.
11489 for cc_temp
in $compiler""; do
11491 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11492 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11497 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11500 # Go did not exist at the time GCC didn't implicitly link libc in.
11501 archive_cmds_need_lc_GO
=no
11503 old_archive_cmds_GO
=$old_archive_cmds
11506 ## There is no encapsulation within the following macros, do not change
11507 ## the running order or otherwise move them around unless you know exactly
11508 ## what you are doing...
11509 if test -n "$compiler"; then
11511 lt_prog_compiler_no_builtin_flag_GO
=
11513 if test "$GCC" = yes; then
11514 case $cc_basename in
11516 lt_prog_compiler_no_builtin_flag_GO
=' -Xcompiler -fno-builtin' ;;
11518 lt_prog_compiler_no_builtin_flag_GO
=' -fno-builtin' ;;
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11522 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11523 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11524 $as_echo_n "(cached) " >&6
11526 lt_cv_prog_compiler_rtti_exceptions
=no
11527 ac_outfile
=conftest.
$ac_objext
11528 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11529 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11530 # Insert the option either (1) after the last *FLAGS variable, or
11531 # (2) before a word containing "conftest.", or (3) at the end.
11532 # Note that $ac_compile itself does not contain backslashes and begins
11533 # with a dollar sign (not a hyphen), so the echo should work correctly.
11534 # The option is referenced via a variable to avoid confusing sed.
11535 lt_compile
=`echo "$ac_compile" | $SED \
11536 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11537 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11538 -e 's:$: $lt_compiler_flag:'`
11539 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11540 (eval "$lt_compile" 2>conftest.err
)
11542 cat conftest.err
>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 if (exit $ac_status) && test -s "$ac_outfile"; then
11545 # The compiler can only warn and ignore the option if not recognized
11546 # So say no if there are warnings other than the usual output.
11547 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11548 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11549 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11550 lt_cv_prog_compiler_rtti_exceptions
=yes
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11557 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11559 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
11560 lt_prog_compiler_no_builtin_flag_GO
="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11569 lt_prog_compiler_wl_GO
=
11570 lt_prog_compiler_pic_GO
=
11571 lt_prog_compiler_static_GO
=
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11576 if test "$GCC" = yes; then
11577 lt_prog_compiler_wl_GO
='-Wl,'
11578 lt_prog_compiler_static_GO
='-static'
11582 # All AIX code is PIC.
11583 if test "$host_cpu" = ia64
; then
11584 # AIX 5 now supports IA64 processor
11585 lt_prog_compiler_static_GO
='-Bstatic'
11592 # see comment about AmigaOS4 .so support
11593 lt_prog_compiler_pic_GO
='-fPIC'
11596 # FIXME: we need at least 68020 code to build shared libraries, but
11597 # adding the `-m68020' flag to GCC prevents building anything better,
11599 lt_prog_compiler_pic_GO
='-m68020 -resident32 -malways-restore-a4'
11604 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
11605 # PIC is the default for these OSes.
11608 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
11609 # This hack is so that the source file can tell whether it is being
11610 # built for inclusion in a dll (and should export symbols for example).
11611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11612 # (--disable-auto-import) libraries
11613 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
11616 darwin
* | rhapsody
*)
11617 # PIC is the default on this platform
11618 # Common symbols not allowed in MH_DYLIB files
11619 lt_prog_compiler_pic_GO
='-fno-common'
11623 # PIC is the default for Haiku.
11624 # The "-static" flag exists, but is broken.
11625 lt_prog_compiler_static_GO
=
11629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11631 # sets the default TLS model and affects inlining.
11637 lt_prog_compiler_pic_GO
='-fPIC'
11643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11644 # Instead, we relocate shared libraries at runtime.
11648 # Just because we use GCC doesn't mean we suddenly get shared libraries
11649 # on systems that don't support them.
11650 lt_prog_compiler_can_build_shared_GO
=no
11655 # QNX uses GNU C++, but need to define -shared option too, otherwise
11656 # it will coredump.
11657 lt_prog_compiler_pic_GO
='-fPIC -shared'
11661 if test -d /usr
/nec
; then
11662 lt_prog_compiler_pic_GO
=-Kconform_pic
11667 lt_prog_compiler_pic_GO
='-fPIC'
11671 case $cc_basename in
11672 nvcc
*) # Cuda Compiler Driver 2.2
11673 lt_prog_compiler_wl_GO
='-Xlinker '
11674 lt_prog_compiler_pic_GO
='-Xcompiler -fPIC'
11678 # PORTME Check for flag to pass linker flags through the system compiler.
11681 lt_prog_compiler_wl_GO
='-Wl,'
11682 if test "$host_cpu" = ia64
; then
11683 # AIX 5 now supports IA64 processor
11684 lt_prog_compiler_static_GO
='-Bstatic'
11686 lt_prog_compiler_static_GO
='-bnso -bI:/lib/syscalls.exp'
11690 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
11691 # This hack is so that the source file can tell whether it is being
11692 # built for inclusion in a dll (and should export symbols for example).
11693 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
11696 hpux9
* | hpux10
* | hpux11
*)
11697 lt_prog_compiler_wl_GO
='-Wl,'
11698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11699 # not for PA HP-UX.
11705 lt_prog_compiler_pic_GO
='+Z'
11708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11709 lt_prog_compiler_static_GO
='${wl}-a ${wl}archive'
11712 irix5
* | irix6
* | nonstopux
*)
11713 lt_prog_compiler_wl_GO
='-Wl,'
11714 # PIC (with -KPIC) is the default.
11715 lt_prog_compiler_static_GO
='-non_shared'
11718 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11719 case $cc_basename in
11720 # old Intel for x86_64 which still supported -KPIC.
11722 lt_prog_compiler_wl_GO
='-Wl,'
11723 lt_prog_compiler_pic_GO
='-KPIC'
11724 lt_prog_compiler_static_GO
='-static'
11726 # icc used to be incompatible with GCC.
11727 # ICC 10 doesn't accept -KPIC any more.
11729 lt_prog_compiler_wl_GO
='-Wl,'
11730 lt_prog_compiler_pic_GO
='-fPIC'
11731 lt_prog_compiler_static_GO
='-static'
11733 # Lahey Fortran 8.1.
11735 lt_prog_compiler_wl_GO
='-Wl,'
11736 lt_prog_compiler_pic_GO
='--shared'
11737 lt_prog_compiler_static_GO
='--static'
11739 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
11740 # Portland Group compilers (*not* the Pentium gcc compiler,
11741 # which looks to be a dead project)
11742 lt_prog_compiler_wl_GO
='-Wl,'
11743 lt_prog_compiler_pic_GO
='-fpic'
11744 lt_prog_compiler_static_GO
='-Bstatic'
11747 lt_prog_compiler_wl_GO
='-Wl,'
11748 # All Alpha code is PIC.
11749 lt_prog_compiler_static_GO
='-non_shared'
11751 xl
* | bgxl
* | bgf
* | mpixl
*)
11752 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11753 lt_prog_compiler_wl_GO
='-Wl,'
11754 lt_prog_compiler_pic_GO
='-qpic'
11755 lt_prog_compiler_static_GO
='-qstaticlink'
11758 case `$CC -V 2>&1 | sed 5q` in
11759 *Sun\ F
* |
*Sun
*Fortran
*)
11760 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11761 lt_prog_compiler_pic_GO
='-KPIC'
11762 lt_prog_compiler_static_GO
='-Bstatic'
11763 lt_prog_compiler_wl_GO
=''
11767 lt_prog_compiler_pic_GO
='-KPIC'
11768 lt_prog_compiler_static_GO
='-Bstatic'
11769 lt_prog_compiler_wl_GO
='-Wl,'
11777 lt_prog_compiler_pic_GO
='-KPIC'
11778 lt_prog_compiler_static_GO
='-Bstatic'
11782 # QNX uses GNU C++, but need to define -shared option too, otherwise
11783 # it will coredump.
11784 lt_prog_compiler_pic_GO
='-fPIC -shared'
11787 osf3
* | osf4
* | osf5
*)
11788 lt_prog_compiler_wl_GO
='-Wl,'
11789 # All OSF/1 code is PIC.
11790 lt_prog_compiler_static_GO
='-non_shared'
11794 lt_prog_compiler_static_GO
='-non_shared'
11798 lt_prog_compiler_pic_GO
='-KPIC'
11799 lt_prog_compiler_static_GO
='-Bstatic'
11800 case $cc_basename in
11801 f77
* | f90
* | f95
*)
11802 lt_prog_compiler_wl_GO
='-Qoption ld ';;
11804 lt_prog_compiler_wl_GO
='-Wl,';;
11809 lt_prog_compiler_wl_GO
='-Qoption ld '
11810 lt_prog_compiler_pic_GO
='-PIC'
11811 lt_prog_compiler_static_GO
='-Bstatic'
11814 sysv4 | sysv4.2uw2
* | sysv4.3
*)
11815 lt_prog_compiler_wl_GO
='-Wl,'
11816 lt_prog_compiler_pic_GO
='-KPIC'
11817 lt_prog_compiler_static_GO
='-Bstatic'
11821 if test -d /usr
/nec
;then
11822 lt_prog_compiler_pic_GO
='-Kconform_pic'
11823 lt_prog_compiler_static_GO
='-Bstatic'
11827 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
11828 lt_prog_compiler_wl_GO
='-Wl,'
11829 lt_prog_compiler_pic_GO
='-KPIC'
11830 lt_prog_compiler_static_GO
='-Bstatic'
11834 lt_prog_compiler_wl_GO
='-Wl,'
11835 lt_prog_compiler_can_build_shared_GO
=no
11839 lt_prog_compiler_pic_GO
='-pic'
11840 lt_prog_compiler_static_GO
='-Bstatic'
11844 lt_prog_compiler_can_build_shared_GO
=no
11850 # For platforms which do not support PIC, -DPIC is meaningless:
11852 lt_prog_compiler_pic_GO
=
11855 lt_prog_compiler_pic_GO
="$lt_prog_compiler_pic_GO"
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11859 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11864 # Check to make sure the PIC flag actually works.
11866 if test -n "$lt_prog_compiler_pic_GO"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11869 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11872 lt_cv_prog_compiler_pic_works_GO
=no
11873 ac_outfile
=conftest.
$ac_objext
11874 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11875 lt_compiler_flag
="$lt_prog_compiler_pic_GO"
11876 # Insert the option either (1) after the last *FLAGS variable, or
11877 # (2) before a word containing "conftest.", or (3) at the end.
11878 # Note that $ac_compile itself does not contain backslashes and begins
11879 # with a dollar sign (not a hyphen), so the echo should work correctly.
11880 # The option is referenced via a variable to avoid confusing sed.
11881 lt_compile
=`echo "$ac_compile" | $SED \
11882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11884 -e 's:$: $lt_compiler_flag:'`
11885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11886 (eval "$lt_compile" 2>conftest.err
)
11888 cat conftest.err
>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 if (exit $ac_status) && test -s "$ac_outfile"; then
11891 # The compiler can only warn and ignore the option if not recognized
11892 # So say no if there are warnings other than the usual output.
11893 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11894 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11895 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11896 lt_cv_prog_compiler_pic_works_GO
=yes
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11903 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11905 if test x
"$lt_cv_prog_compiler_pic_works_GO" = xyes
; then
11906 case $lt_prog_compiler_pic_GO in
11908 *) lt_prog_compiler_pic_GO
=" $lt_prog_compiler_pic_GO" ;;
11911 lt_prog_compiler_pic_GO
=
11912 lt_prog_compiler_can_build_shared_GO
=no
11920 # Check to make sure the static flag actually works.
11922 wl
=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GO\"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11925 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11928 lt_cv_prog_compiler_static_works_GO
=no
11929 save_LDFLAGS
="$LDFLAGS"
11930 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
11931 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11932 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11933 # The linker can only warn and ignore the option if not recognized
11934 # So say no if there are warnings
11935 if test -s conftest.err
; then
11936 # Append any errors to the config.log.
11937 cat conftest.err
1>&5
11938 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11939 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11940 if diff conftest.exp conftest.er2
>/dev
/null
; then
11941 lt_cv_prog_compiler_static_works_GO
=yes
11944 lt_cv_prog_compiler_static_works_GO
=yes
11948 LDFLAGS
="$save_LDFLAGS"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11952 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11954 if test x
"$lt_cv_prog_compiler_static_works_GO" = xyes
; then
11957 lt_prog_compiler_static_GO
=
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11965 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11968 lt_cv_prog_compiler_c_o_GO
=no
11969 $RM -r conftest
2>/dev
/null
11973 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11975 lt_compiler_flag
="-o out/conftest2.$ac_objext"
11976 # Insert the option either (1) after the last *FLAGS variable, or
11977 # (2) before a word containing "conftest.", or (3) at the end.
11978 # Note that $ac_compile itself does not contain backslashes and begins
11979 # with a dollar sign (not a hyphen), so the echo should work correctly.
11980 lt_compile
=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>out
/conftest.err
)
11987 cat out
/conftest.err
>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
11991 # The compiler can only warn and ignore the option if not recognized
11992 # So say no if there are warnings
11993 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
11994 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
11995 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
11996 lt_cv_prog_compiler_c_o_GO
=yes
12001 # SGI C++ compiler will create directory out/ii_files/ for
12002 # template instantiation
12003 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12004 $RM out
/* && rmdir out
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12011 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12017 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12020 lt_cv_prog_compiler_c_o_GO
=no
12021 $RM -r conftest
2>/dev
/null
12025 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12027 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12028 # Insert the option either (1) after the last *FLAGS variable, or
12029 # (2) before a word containing "conftest.", or (3) at the end.
12030 # Note that $ac_compile itself does not contain backslashes and begins
12031 # with a dollar sign (not a hyphen), so the echo should work correctly.
12032 lt_compile
=`echo "$ac_compile" | $SED \
12033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12035 -e 's:$: $lt_compiler_flag:'`
12036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12037 (eval "$lt_compile" 2>out
/conftest.err
)
12039 cat out
/conftest.err
>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12043 # The compiler can only warn and ignore the option if not recognized
12044 # So say no if there are warnings
12045 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12046 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12047 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12048 lt_cv_prog_compiler_c_o_GO
=yes
12053 # SGI C++ compiler will create directory out/ii_files/ for
12054 # template instantiation
12055 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12056 $RM out
/* && rmdir out
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12063 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12068 hard_links
="nottested"
12069 if test "$lt_cv_prog_compiler_c_o_GO" = no
&& test "$need_locks" != no
; then
12070 # do not overwrite the value of need_locks provided by the user
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12072 $as_echo_n "checking if we can lock with hard links... " >&6; }
12075 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12077 ln conftest.a conftest.b
2>&5 || hard_links
=no
12078 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12080 $as_echo "$hard_links" >&6; }
12081 if test "$hard_links" = no
; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12096 allow_undefined_flag_GO
=
12097 always_export_symbols_GO
=no
12099 archive_expsym_cmds_GO
=
12100 compiler_needs_object_GO
=no
12101 enable_shared_with_static_runtimes_GO
=no
12102 export_dynamic_flag_spec_GO
=
12103 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12104 hardcode_automatic_GO
=no
12105 hardcode_direct_GO
=no
12106 hardcode_direct_absolute_GO
=no
12107 hardcode_libdir_flag_spec_GO
=
12108 hardcode_libdir_flag_spec_ld_GO
=
12109 hardcode_libdir_separator_GO
=
12110 hardcode_minus_L_GO
=no
12111 hardcode_shlibpath_var_GO
=unsupported
12112 inherit_rpath_GO
=no
12113 link_all_deplibs_GO
=unknown
12115 module_expsym_cmds_GO
=
12116 old_archive_from_new_cmds_GO
=
12117 old_archive_from_expsyms_cmds_GO
=
12118 thread_safe_flag_spec_GO
=
12119 whole_archive_flag_spec_GO
=
12120 # include_expsyms should be a list of space-separated symbols to be *always*
12121 # included in the symbol list
12122 include_expsyms_GO
=
12123 # exclude_expsyms can be an extended regexp of symbols to exclude
12124 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12126 # as well as any symbol that contains `d'.
12127 exclude_expsyms_GO
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12129 # platforms (ab)use it in PIC code, but their linkers get confused if
12130 # the symbol is explicitly referenced. Since portable code cannot
12131 # rely on this symbol name, it's probably fine to never include it in
12132 # preloaded symbol tables.
12133 # Exclude shared library initialization/finalization symbols.
12134 extract_expsyms_cmds
=
12137 cygwin
* | mingw
* | pw32
* | cegcc
*)
12138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12139 # When not using gcc, we currently assume that we are using
12140 # Microsoft Visual C++.
12141 if test "$GCC" != yes; then
12146 # we just hope/assume this is gcc and not c89 (= MSVC++)
12156 # On some targets, GNU ld is compatible enough with the native linker
12157 # that we're better off using the native interface for both.
12158 lt_use_gnu_ld_interface
=no
12159 if test "$with_gnu_ld" = yes; then
12162 # The AIX port of GNU ld has always aspired to compatibility
12163 # with the native linker. However, as the warning in the GNU ld
12164 # block says, versions before 2.19.5* couldn't really create working
12165 # shared libraries, regardless of the interface used.
12166 case `$LD -v 2>&1` in
12167 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12168 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12169 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12171 lt_use_gnu_ld_interface
=yes
12176 lt_use_gnu_ld_interface
=yes
12181 if test "$lt_use_gnu_ld_interface" = yes; then
12182 # If archive_cmds runs LD, not CC, wlarc should be empty
12185 # Set some defaults for GNU ld with shared library support. These
12186 # are reset later if shared libraries are not supported. Putting them
12187 # here allows them to be overridden if necessary.
12188 runpath_var
=LD_RUN_PATH
12189 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12190 export_dynamic_flag_spec_GO
='${wl}--export-dynamic'
12191 # ancient GNU ld didn't support --whole-archive et. al.
12192 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12193 whole_archive_flag_spec_GO
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12195 whole_archive_flag_spec_GO
=
12197 supports_anon_versioning
=no
12198 case `$LD -v 2>&1` in
12199 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12200 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12201 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12202 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12203 *\
2.11.
*) ;; # other 2.11 versions
12204 *) supports_anon_versioning
=yes ;;
12207 # See if GNU ld supports shared libraries.
12210 # On AIX/PPC, the GNU linker is very broken
12211 if test "$host_cpu" != ia64
; then
12215 *** Warning: the GNU linker, at least up to release 2.19, is reported
12216 *** to be unable to reliably create shared libraries on AIX.
12217 *** Therefore, libtool is disabling shared libraries support. If you
12218 *** really care for shared libraries, you may want to install binutils
12219 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12220 *** You will then need to restart the configuration process.
12229 # see comment about AmigaOS4 .so support
12230 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231 archive_expsym_cmds_GO
=''
12234 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)'
12235 hardcode_libdir_flag_spec_GO
='-L$libdir'
12236 hardcode_minus_L_GO
=yes
12242 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12243 allow_undefined_flag_GO
=unsupported
12244 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12245 # support --undefined. This deserves some investigation. FIXME
12246 archive_cmds_GO
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 cygwin
* | mingw
* | pw32
* | cegcc
*)
12253 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12254 # as there is no search path for DLLs.
12255 hardcode_libdir_flag_spec_GO
='-L$libdir'
12256 export_dynamic_flag_spec_GO
='${wl}--export-all-symbols'
12257 allow_undefined_flag_GO
=unsupported
12258 always_export_symbols_GO
=no
12259 enable_shared_with_static_runtimes_GO
=yes
12260 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12262 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12263 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12264 # If the export-symbols file already is a .def file (1st line
12265 # is EXPORTS), use it as is; otherwise, prepend...
12266 archive_expsym_cmds_GO
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12267 cp $export_symbols $output_objdir/$soname.def;
12269 echo EXPORTS > $output_objdir/$soname.def;
12270 cat $export_symbols >> $output_objdir/$soname.def;
12272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280 link_all_deplibs_GO
=yes
12284 hardcode_direct_GO
=no
12285 hardcode_shlibpath_var_GO
=no
12286 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12287 export_dynamic_flag_spec_GO
='${wl}-E'
12288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12289 # Instead, shared libraries are loaded at an image base (0x10000000 by
12290 # default) and relocated if they conflict, which is a slow very memory
12291 # consuming and fragmenting process. To avoid this, we pick a random,
12292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12294 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'
12295 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'
12298 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12300 if test "$host_os" = linux-dietlibc
; then
12301 case $cc_basename in
12302 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12305 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12306 && test "$tmp_diet" = no
12309 tmp_sharedflag
='-shared'
12310 case $cc_basename,$host_cpu in
12311 pgcc
*) # Portland Group C compiler
12312 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'
12313 tmp_addflag
=' $pic_flag'
12315 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12316 # Portland Group f77 and f90 compilers
12317 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'
12318 tmp_addflag
=' $pic_flag -Mnomain' ;;
12319 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12320 tmp_addflag
=' -i_dynamic' ;;
12321 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12322 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12323 ifc
* | ifort
*) # Intel Fortran compiler
12324 tmp_addflag
=' -nofor_main' ;;
12325 lf95
*) # Lahey Fortran 8.1
12326 whole_archive_flag_spec_GO
=
12327 tmp_sharedflag
='--shared' ;;
12328 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12329 tmp_sharedflag
='-qmkshrobj'
12331 nvcc
*) # Cuda Compiler Driver 2.2
12332 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'
12333 compiler_needs_object_GO
=yes
12336 case `$CC -V 2>&1 | sed 5q` in
12337 *Sun\ C
*) # Sun C 5.9
12338 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'
12339 compiler_needs_object_GO
=yes
12340 tmp_sharedflag
='-G' ;;
12341 *Sun\ F
*) # Sun Fortran 8.3
12342 tmp_sharedflag
='-G' ;;
12344 archive_cmds_GO
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12346 if test "x$supports_anon_versioning" = xyes
; then
12347 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12349 echo "local: *; };" >> $output_objdir/$libname.ver~
12350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353 case $cc_basename in
12354 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12356 whole_archive_flag_spec_GO
='--whole-archive$convenience --no-whole-archive'
12357 hardcode_libdir_flag_spec_GO
=
12358 hardcode_libdir_flag_spec_ld_GO
='-rpath $libdir'
12359 archive_cmds_GO
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12360 if test "x$supports_anon_versioning" = xyes
; then
12361 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12363 echo "local: *; };" >> $output_objdir/$libname.ver~
12364 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12374 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12375 archive_cmds_GO
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12378 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12379 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12384 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12389 *** create shared libraries on Solaris systems. Therefore, libtool
12390 *** is disabling shared libraries support. We urge you to upgrade GNU
12391 *** binutils to release 2.9.1 or newer. Another option is to modify
12392 *** your PATH or compiler configuration so that the native linker is
12393 *** used, and then restart.
12396 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12397 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12405 case `$LD -v 2>&1` in
12406 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12410 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12411 *** reliably create shared libraries on SCO systems. Therefore, libtool
12412 *** is disabling shared libraries support. We urge you to upgrade GNU
12413 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12414 *** your PATH or compiler configuration so that the native linker is
12415 *** used, and then restart.
12420 # For security reasons, it is highly recommended that you always
12421 # use absolute paths for naming shared libraries, and exclude the
12422 # DT_RUNPATH tag from executables and libraries. But doing so
12423 # requires that you compile everything twice, which is a pain.
12424 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12425 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12426 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12427 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12436 archive_cmds_GO
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12438 hardcode_direct_GO
=yes
12439 hardcode_shlibpath_var_GO
=no
12443 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12444 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12445 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452 if test "$ld_shlibs_GO" = no
; then
12454 hardcode_libdir_flag_spec_GO
=
12455 export_dynamic_flag_spec_GO
=
12456 whole_archive_flag_spec_GO
=
12459 # PORTME fill in a description of your system's linker (not GNU ld)
12462 allow_undefined_flag_GO
=unsupported
12463 always_export_symbols_GO
=yes
12464 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'
12465 # Note: this linker hardcodes the directories in LIBPATH if there
12466 # are no directories specified by -L.
12467 hardcode_minus_L_GO
=yes
12468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12469 # Neither direct hardcoding nor static linking is supported with a
12471 hardcode_direct_GO
=unsupported
12476 if test "$host_cpu" = ia64
; then
12477 # On IA64, the linker does run time linking by default, so we don't
12478 # have to do anything special.
12479 aix_use_runtimelinking
=no
12480 exp_sym_flag
='-Bexport'
12483 # If we're using GNU nm, then we don't want the "-C" option.
12484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12485 # Also, AIX nm treats weak defined symbols like other global
12486 # defined symbols, whereas GNU nm marks them as "W".
12487 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12488 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'
12490 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'
12492 aix_use_runtimelinking
=no
12494 # Test if we are trying to use run time linking or normal
12495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12496 # need to do runtime linking.
12497 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12498 for ld_flag
in $LDFLAGS; do
12499 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12500 aix_use_runtimelinking
=yes
12507 exp_sym_flag
='-bexport'
12508 no_entry_flag
='-bnoentry'
12511 # When large executables or shared objects are built, AIX ld can
12512 # have problems creating the table of contents. If linking a library
12513 # or program results in "error TOC overflow" add -mminimal-toc to
12514 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12515 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12518 hardcode_direct_GO
=yes
12519 hardcode_direct_absolute_GO
=yes
12520 hardcode_libdir_separator_GO
=':'
12521 link_all_deplibs_GO
=yes
12522 file_list_spec_GO
='${wl}-f,'
12524 if test "$GCC" = yes; then
12525 case $host_os in aix4.
[012]|aix4.
[012].
*)
12526 # We only want to do this on AIX 4.2 and lower, the check
12527 # below for broken collect2 doesn't work under 4.3+
12528 collect2name
=`${CC} -print-prog-name=collect2`
12529 if test -f "$collect2name" &&
12530 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12532 # We have reworked collect2
12535 # We have old collect2
12536 hardcode_direct_GO
=unsupported
12537 # It fails to find uninstalled libraries when the uninstalled
12538 # path is not listed in the libpath. Setting hardcode_minus_L
12539 # to unsupported forces relinking
12540 hardcode_minus_L_GO
=yes
12541 hardcode_libdir_flag_spec_GO
='-L$libdir'
12542 hardcode_libdir_separator_GO
=
12546 shared_flag
='-shared'
12547 if test "$aix_use_runtimelinking" = yes; then
12548 shared_flag
="$shared_flag "'${wl}-G'
12552 if test "$host_cpu" = ia64
; then
12553 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12554 # chokes on -Wl,-G. The following line is correct:
12557 if test "$aix_use_runtimelinking" = yes; then
12558 shared_flag
='${wl}-G'
12560 shared_flag
='${wl}-bM:SRE'
12565 export_dynamic_flag_spec_GO
='${wl}-bexpall'
12566 # It seems that -bexpall does not export symbols beginning with
12567 # underscore (_), so it is better to generate a list of symbols to export.
12568 always_export_symbols_GO
=yes
12569 if test "$aix_use_runtimelinking" = yes; then
12570 # Warning - without using the other runtime loading flags (-brtl),
12571 # -berok will link without error, but may produce a broken library.
12572 allow_undefined_flag_GO
='-berok'
12573 # Determine the default libpath from the value encoded in an
12574 # empty executable.
12575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12586 if ac_fn_c_try_link
"$LINENO"; then :
12588 lt_aix_libpath_sed
='
12589 /Import File Strings/,/^$/ {
12595 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12596 # Check for a 64-bit object if we didn't find anything.
12597 if test -z "$aix_libpath"; then
12598 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 rm -f core conftest.err conftest.
$ac_objext \
12602 conftest
$ac_exeext conftest.
$ac_ext
12603 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12605 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
12606 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"
12608 if test "$host_cpu" = ia64
; then
12609 hardcode_libdir_flag_spec_GO
='${wl}-R $libdir:/usr/lib:/lib'
12610 allow_undefined_flag_GO
="-z nodefs"
12611 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"
12613 # Determine the default libpath from the value encoded in an
12614 # empty executable.
12615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12626 if ac_fn_c_try_link
"$LINENO"; then :
12628 lt_aix_libpath_sed
='
12629 /Import File Strings/,/^$/ {
12635 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12636 # Check for a 64-bit object if we didn't find anything.
12637 if test -z "$aix_libpath"; then
12638 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 rm -f core conftest.err conftest.
$ac_objext \
12642 conftest
$ac_exeext conftest.
$ac_ext
12643 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12645 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
12646 # Warning - without using the other run time loading flags,
12647 # -berok will link without error, but may produce a broken library.
12648 no_undefined_flag_GO
=' ${wl}-bernotok'
12649 allow_undefined_flag_GO
=' ${wl}-berok'
12650 if test "$with_gnu_ld" = yes; then
12651 # We only use this code for GNU lds that support --whole-archive.
12652 whole_archive_flag_spec_GO
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12654 # Exported symbols can be pulled into shared objects from archives
12655 whole_archive_flag_spec_GO
='$convenience'
12657 archive_cmds_need_lc_GO
=yes
12658 # This is similar to how AIX traditionally builds its shared libraries.
12659 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'
12667 # see comment about AmigaOS4 .so support
12668 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 archive_expsym_cmds_GO
=''
12672 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)'
12673 hardcode_libdir_flag_spec_GO
='-L$libdir'
12674 hardcode_minus_L_GO
=yes
12680 export_dynamic_flag_spec_GO
=-rdynamic
12683 cygwin
* | mingw
* | pw32
* | cegcc
*)
12684 # When not using gcc, we currently assume that we are using
12685 # Microsoft Visual C++.
12686 # hardcode_libdir_flag_spec is actually meaningless, as there is
12687 # no search path for DLLs.
12688 hardcode_libdir_flag_spec_GO
=' '
12689 allow_undefined_flag_GO
=unsupported
12690 # Tell ltmain to make .lib files, not .a files.
12692 # Tell ltmain to make .dll files, not .so files.
12694 # FIXME: Setting linknames here is a bad hack.
12695 archive_cmds_GO
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12696 # The linker will automatically build a .lib file if we build a DLL.
12697 old_archive_from_new_cmds_GO
='true'
12698 # FIXME: Should let the user specify the lib program.
12699 old_archive_cmds_GO
='lib -OUT:$oldlib$oldobjs$old_deplibs'
12700 fix_srcfile_path_GO
='`cygpath -w "$srcfile"`'
12701 enable_shared_with_static_runtimes_GO
=yes
12704 darwin
* | rhapsody
*)
12707 archive_cmds_need_lc_GO
=no
12708 hardcode_direct_GO
=no
12709 hardcode_automatic_GO
=yes
12710 hardcode_shlibpath_var_GO
=unsupported
12711 if test "$lt_cv_ld_force_load" = "yes"; then
12712 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\"`'
12714 whole_archive_flag_spec_GO
=''
12716 link_all_deplibs_GO
=yes
12717 allow_undefined_flag_GO
="$_lt_dar_allow_undefined"
12718 case $cc_basename in
12719 ifort
*) _lt_dar_can_shared
=yes ;;
12720 *) _lt_dar_can_shared
=$GCC ;;
12722 if test "$_lt_dar_can_shared" = "yes"; then
12723 output_verbose_link_cmd
=func_echo_all
12724 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}"
12725 module_cmds_GO
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12726 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}"
12727 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}"
12736 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12737 hardcode_libdir_flag_spec_GO
='-L$libdir'
12738 hardcode_shlibpath_var_GO
=no
12741 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12742 # support. Future versions do this automatically, but an explicit c++rt0.o
12743 # does not break anything, and helps significantly (at the cost of a little
12746 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12747 hardcode_libdir_flag_spec_GO
='-R$libdir'
12748 hardcode_direct_GO
=yes
12749 hardcode_shlibpath_var_GO
=no
12752 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12754 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12755 hardcode_direct_GO
=yes
12756 hardcode_minus_L_GO
=yes
12757 hardcode_shlibpath_var_GO
=no
12760 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12761 freebsd
* | dragonfly
*)
12762 archive_cmds_GO
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12763 hardcode_libdir_flag_spec_GO
='-R$libdir'
12764 hardcode_direct_GO
=yes
12765 hardcode_shlibpath_var_GO
=no
12769 if test "$GCC" = yes; then
12770 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'
12772 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'
12774 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
12775 hardcode_libdir_separator_GO
=:
12776 hardcode_direct_GO
=yes
12778 # hardcode_minus_L: Not really in the search PATH,
12779 # but as the default location of the library.
12780 hardcode_minus_L_GO
=yes
12781 export_dynamic_flag_spec_GO
='${wl}-E'
12785 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
12786 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12788 archive_cmds_GO
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12790 if test "$with_gnu_ld" = no
; then
12791 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
12792 hardcode_libdir_flag_spec_ld_GO
='+b $libdir'
12793 hardcode_libdir_separator_GO
=:
12794 hardcode_direct_GO
=yes
12795 hardcode_direct_absolute_GO
=yes
12796 export_dynamic_flag_spec_GO
='${wl}-E'
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L_GO
=yes
12804 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
12807 archive_cmds_GO
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12810 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12813 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12819 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12825 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12829 if test "$with_gnu_ld" = no
; then
12830 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
12831 hardcode_libdir_separator_GO
=:
12835 hardcode_direct_GO
=no
12836 hardcode_shlibpath_var_GO
=no
12839 hardcode_direct_GO
=yes
12840 hardcode_direct_absolute_GO
=yes
12841 export_dynamic_flag_spec_GO
='${wl}-E'
12843 # hardcode_minus_L: Not really in the search PATH,
12844 # but as the default location of the library.
12845 hardcode_minus_L_GO
=yes
12851 irix5
* | irix6
* | nonstopux
*)
12852 if test "$GCC" = yes; then
12853 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'
12854 # Try to use the -exported_symbol ld option, if it does not
12855 # work, assume that -exports_file does not work either and
12856 # implicitly export all symbols.
12857 save_LDFLAGS
="$LDFLAGS"
12858 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12863 if ac_fn_c_try_link
"$LINENO"; then :
12864 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'
12867 rm -f core conftest.err conftest.
$ac_objext \
12868 conftest
$ac_exeext conftest.
$ac_ext
12869 LDFLAGS
="$save_LDFLAGS"
12871 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'
12872 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'
12874 archive_cmds_need_lc_GO
='no'
12875 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12876 hardcode_libdir_separator_GO
=:
12877 inherit_rpath_GO
=yes
12878 link_all_deplibs_GO
=yes
12882 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12883 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12885 archive_cmds_GO
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12887 hardcode_libdir_flag_spec_GO
='-R$libdir'
12888 hardcode_direct_GO
=yes
12889 hardcode_shlibpath_var_GO
=no
12893 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12894 hardcode_direct_GO
=yes
12895 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12896 hardcode_libdir_separator_GO
=:
12897 hardcode_shlibpath_var_GO
=no
12904 if test -f /usr
/libexec
/ld.so
; then
12905 hardcode_direct_GO
=yes
12906 hardcode_shlibpath_var_GO
=no
12907 hardcode_direct_absolute_GO
=yes
12908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12909 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12910 archive_expsym_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12911 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12912 export_dynamic_flag_spec_GO
='${wl}-E'
12915 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
12916 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_libdir_flag_spec_GO
='-R$libdir'
12920 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12921 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12931 hardcode_libdir_flag_spec_GO
='-L$libdir'
12932 hardcode_minus_L_GO
=yes
12933 allow_undefined_flag_GO
=unsupported
12934 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'
12935 old_archive_from_new_cmds_GO
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12939 if test "$GCC" = yes; then
12940 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
12941 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'
12943 allow_undefined_flag_GO
=' -expect_unresolved \*'
12944 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'
12946 archive_cmds_need_lc_GO
='no'
12947 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12948 hardcode_libdir_separator_GO
=:
12951 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
12952 if test "$GCC" = yes; then
12953 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
12954 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'
12955 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12957 allow_undefined_flag_GO
=' -expect_unresolved \*'
12958 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'
12959 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~
12960 $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'
12962 # Both c and cxx compiler support -rpath directly
12963 hardcode_libdir_flag_spec_GO
='-rpath $libdir'
12965 archive_cmds_need_lc_GO
='no'
12966 hardcode_libdir_separator_GO
=:
12970 no_undefined_flag_GO
=' -z defs'
12971 if test "$GCC" = yes; then
12973 archive_cmds_GO
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12974 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12975 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12977 case `$CC -V 2>&1` in
12980 archive_cmds_GO
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12981 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12986 archive_cmds_GO
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12987 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12992 hardcode_libdir_flag_spec_GO
='-R$libdir'
12993 hardcode_shlibpath_var_GO
=no
12995 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12997 # The compiler driver will combine and reorder linker options,
12998 # but understands `-z linker_flag'. GCC discards it without `$wl',
12999 # but is careful enough not to reorder.
13000 # Supported since Solaris 2.6 (maybe 2.5.1?)
13001 if test "$GCC" = yes; then
13002 whole_archive_flag_spec_GO
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13004 whole_archive_flag_spec_GO
='-z allextract$convenience -z defaultextract'
13008 link_all_deplibs_GO
=yes
13012 if test "x$host_vendor" = xsequent
; then
13013 # Use $CC to link under sequent, because it throws in some extra .o
13014 # files that make .init and .fini sections work.
13015 archive_cmds_GO
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13017 archive_cmds_GO
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13019 hardcode_libdir_flag_spec_GO
='-L$libdir'
13020 hardcode_direct_GO
=yes
13021 hardcode_minus_L_GO
=yes
13022 hardcode_shlibpath_var_GO
=no
13026 case $host_vendor in
13028 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029 hardcode_direct_GO
=yes # is this really true???
13032 ## LD is ld it makes a PLAMLIB
13033 ## CC just makes a GrossModule.
13034 archive_cmds_GO
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13035 reload_cmds_GO
='$CC -r -o $output$reload_objs'
13036 hardcode_direct_GO
=no
13039 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13040 hardcode_direct_GO
=no
#Motorola manual says yes, but my tests say they lie
13043 runpath_var
='LD_RUN_PATH'
13044 hardcode_shlibpath_var_GO
=no
13048 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13049 hardcode_shlibpath_var_GO
=no
13050 export_dynamic_flag_spec_GO
='-Bexport'
13054 if test -d /usr
/nec
; then
13055 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_shlibpath_var_GO
=no
13057 runpath_var
=LD_RUN_PATH
13058 hardcode_runpath_var
=yes
13063 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13064 no_undefined_flag_GO
='${wl}-z,text'
13065 archive_cmds_need_lc_GO
=no
13066 hardcode_shlibpath_var_GO
=no
13067 runpath_var
='LD_RUN_PATH'
13069 if test "$GCC" = yes; then
13070 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13071 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 sysv5
* | sco3.2v5
* | sco5v6
*)
13079 # Note: We can NOT use -z defs as we might desire, because we do not
13080 # link with -lc, and that would cause any symbols used from libc to
13081 # always be unresolved, which means just about no library would
13082 # ever link correctly. If we're not using GNU ld we use -z text
13083 # though, which does catch some bad symbols but isn't as heavy-handed
13085 no_undefined_flag_GO
='${wl}-z,text'
13086 allow_undefined_flag_GO
='${wl}-z,nodefs'
13087 archive_cmds_need_lc_GO
=no
13088 hardcode_shlibpath_var_GO
=no
13089 hardcode_libdir_flag_spec_GO
='${wl}-R,$libdir'
13090 hardcode_libdir_separator_GO
=':'
13091 link_all_deplibs_GO
=yes
13092 export_dynamic_flag_spec_GO
='${wl}-Bexport'
13093 runpath_var
='LD_RUN_PATH'
13095 if test "$GCC" = yes; then
13096 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13097 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13106 hardcode_libdir_flag_spec_GO
='-L$libdir'
13107 hardcode_shlibpath_var_GO
=no
13115 if test x
$host_vendor = xsni
; then
13117 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13118 export_dynamic_flag_spec_GO
='${wl}-Blargedynsym'
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13125 $as_echo "$ld_shlibs_GO" >&6; }
13126 test "$ld_shlibs_GO" = no
&& can_build_shared
=no
13128 with_gnu_ld_GO
=$with_gnu_ld
13136 # Do we need to explicitly link libc?
13138 case "x$archive_cmds_need_lc_GO" in
13140 # Assume -lc should be added
13141 archive_cmds_need_lc_GO
=yes
13143 if test "$enable_shared" = yes && test "$GCC" = yes; then
13144 case $archive_cmds_GO in
13146 # FIXME: we may have to deal with multi-command sequences.
13149 # Test whether the compiler implicitly links with -lc since on some
13150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13151 # to ld, don't add -lc before -lgcc.
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13154 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13158 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161 (eval $ac_compile) 2>&5
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; } 2>conftest.err
; then
13167 libobjs
=conftest.
$ac_objext
13169 wl
=$lt_prog_compiler_wl_GO
13170 pic_flag
=$lt_prog_compiler_pic_GO
13176 lt_save_allow_undefined_flag
=$allow_undefined_flag_GO
13177 allow_undefined_flag_GO
=
13178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13179 (eval $archive_cmds_GO 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13182 test $ac_status = 0; }
13184 lt_cv_archive_cmds_need_lc_GO
=no
13186 lt_cv_archive_cmds_need_lc_GO
=yes
13188 allow_undefined_flag_GO
=$lt_save_allow_undefined_flag
13190 cat conftest.err
1>&5
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13196 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13197 archive_cmds_need_lc_GO
=$lt_cv_archive_cmds_need_lc_GO
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13269 hardcode_action_GO
=
13270 if test -n "$hardcode_libdir_flag_spec_GO" ||
13271 test -n "$runpath_var_GO" ||
13272 test "X$hardcode_automatic_GO" = "Xyes" ; then
13274 # We can hardcode non-existent directories.
13275 if test "$hardcode_direct_GO" != no
&&
13276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13277 # have to relink, otherwise we might link with an installed library
13278 # when we should be linking with a yet-to-be-installed one
13279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13280 test "$hardcode_minus_L_GO" != no
; then
13281 # Linking always hardcodes the temporary library directory.
13282 hardcode_action_GO
=relink
13284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13285 hardcode_action_GO
=immediate
13288 # We cannot hardcode anything, or else we can only hardcode existing
13290 hardcode_action_GO
=unsupported
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13293 $as_echo "$hardcode_action_GO" >&6; }
13295 if test "$hardcode_action_GO" = relink ||
13296 test "$inherit_rpath_GO" = yes; then
13297 # Fast installation is not supported
13298 enable_fast_install
=no
13299 elif test "$shlibpath_overrides_runpath" = yes ||
13300 test "$enable_shared" = no
; then
13301 # Fast installation is not necessary
13302 enable_fast_install
=needless
13314 ac_cpp
='$CPP $CPPFLAGS'
13315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13326 ac_config_commands
="$ac_config_commands libtool"
13331 # Only expand once:
13337 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
13340 for ac_prog
in gawk mawk nawk
awk
13342 # Extract the first word of "$ac_prog", so it can be a program name with args.
13343 set dummy
$ac_prog; ac_word
=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_prog_AWK+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13349 if test -n "$AWK"; then
13350 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13353 for as_dir
in $PATH
13356 test -z "$as_dir" && as_dir
=.
13357 for ac_exec_ext
in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_AWK
="$ac_prog"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 AWK
=$ac_cv_prog_AWK
13370 if test -n "$AWK"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13372 $as_echo "$AWK" >&6; }
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13379 test -n "$AWK" && break
13383 WARN_FLAGS
='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13389 glibgo_toolexecdir
=no
13390 glibgo_toolexeclibdir
=no
13391 glibgo_prefixdir
=$prefix
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13394 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13395 # Check whether --enable-version-specific-runtime-libs was given.
13396 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13397 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
13398 yes) version_specific_libs
=yes ;;
13399 no
) version_specific_libs
=no
;;
13400 *) as_fn_error
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13403 version_specific_libs
=no
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13407 $as_echo "$version_specific_libs" >&6; }
13409 # Version-specific runtime libs processing.
13410 if test $version_specific_libs = yes; then
13411 glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13412 glibgo_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13415 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13416 # Install a library built with a cross compiler in tooldir, not libdir.
13417 if test x
"$glibgo_toolexecdir" = x
"no"; then
13418 if test -n "$with_cross_host" &&
13419 test x
"$with_cross_host" != x
"no"; then
13420 glibgo_toolexecdir
='${exec_prefix}/${host_alias}'
13421 glibgo_toolexeclibdir
='${toolexecdir}/lib'
13423 glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13424 glibgo_toolexeclibdir
='${libdir}'
13426 multi_os_directory
=`$CC -print-multi-os-directory`
13427 case $multi_os_directory in
13428 .
) ;; # Avoid trailing /.
13429 *) glibgo_toolexeclibdir
=$glibgo_toolexeclibdir/$multi_os_directory ;;
13437 # See if the user wants to configure without libffi. Some
13438 # architectures don't support it. FIXME: We should set a default
13439 # based on the host.
13441 # Check whether --with-libffi was given.
13442 if test "${with_libffi+set}" = set; then :
13443 withval
=$with_libffi; :
13445 with_libffi
=${with_libffi_default-yes}
13451 if test "$with_libffi" != no
; then
13453 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13455 LIBFFI
=..
/libffi
/libffi_convenience.la
13456 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13461 # Used to tell GNU make to include a file without telling automake to
13463 go_include
="-include"
13474 *-*-darwin*) is_darwin
=yes; GOOS
=darwin
;;
13475 *-*-freebsd*) is_freebsd
=yes; GOOS
=freebsd
;;
13476 *-*-irix6*) is_irix
=yes; GOOS
=irix
;;
13477 *-*-linux*) is_linux
=yes; GOOS
=linux
;;
13478 *-*-netbsd*) is_netbsd
=yes; GOOS
=netbsd
;;
13479 *-*-rtems*) is_rtems
=yes; GOOS
=rtems
;;
13480 *-*-solaris2*) is_solaris
=yes; GOOS
=solaris
;;
13482 if test $is_darwin = yes; then
13483 LIBGO_IS_DARWIN_TRUE
=
13484 LIBGO_IS_DARWIN_FALSE
='#'
13486 LIBGO_IS_DARWIN_TRUE
='#'
13487 LIBGO_IS_DARWIN_FALSE
=
13490 if test $is_freebsd = yes; then
13491 LIBGO_IS_FREEBSD_TRUE
=
13492 LIBGO_IS_FREEBSD_FALSE
='#'
13494 LIBGO_IS_FREEBSD_TRUE
='#'
13495 LIBGO_IS_FREEBSD_FALSE
=
13498 if test $is_irix = yes; then
13499 LIBGO_IS_IRIX_TRUE
=
13500 LIBGO_IS_IRIX_FALSE
='#'
13502 LIBGO_IS_IRIX_TRUE
='#'
13503 LIBGO_IS_IRIX_FALSE
=
13506 if test $is_linux = yes; then
13507 LIBGO_IS_LINUX_TRUE
=
13508 LIBGO_IS_LINUX_FALSE
='#'
13510 LIBGO_IS_LINUX_TRUE
='#'
13511 LIBGO_IS_LINUX_FALSE
=
13514 if test $is_netbsd = yes; then
13515 LIBGO_IS_NETBSD_TRUE
=
13516 LIBGO_IS_NETBSD_FALSE
='#'
13518 LIBGO_IS_NETBSD_TRUE
='#'
13519 LIBGO_IS_NETBSD_FALSE
=
13522 if test $is_rtems = yes; then
13523 LIBGO_IS_RTEMS_TRUE
=
13524 LIBGO_IS_RTEMS_FALSE
='#'
13526 LIBGO_IS_RTEMS_TRUE
='#'
13527 LIBGO_IS_RTEMS_FALSE
=
13530 if test $is_solaris = yes; then
13531 LIBGO_IS_SOLARIS_TRUE
=
13532 LIBGO_IS_SOLARIS_FALSE
='#'
13534 LIBGO_IS_SOLARIS_TRUE
='#'
13535 LIBGO_IS_SOLARIS_FALSE
=
13556 arm
*-*-* | strongarm
*-*-* | ep9312
*-*-* | xscale-
*-*)
13560 i
[34567]86-*-* | x86_64-
*-*)
13561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13568 if ac_fn_c_try_compile
"$LINENO"; then :
13573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13574 if test "$is_386" = "yes"; then
13585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13588 #if _MIPS_SIM != _ABIO32
13592 if ac_fn_c_try_compile
"$LINENO"; then :
13595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 #if _MIPS_SIM != _ABIN32
13602 if ac_fn_c_try_compile
"$LINENO"; then :
13605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13608 #if _MIPS_SIM != _ABI64
13612 if ac_fn_c_try_compile
"$LINENO"; then :
13615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13618 #if _MIPS_SIM != _ABIO64
13622 if ac_fn_c_try_compile
"$LINENO"; then :
13625 as_fn_error
"unknown MIPS ABI" "$LINENO" 5
13628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13635 case "$mips_abi" in
13636 "o32") GOARCH
=mipso32
;;
13637 "n32") GOARCH
=mipsn32
;;
13638 "n64") GOARCH
=mipsn64
;;
13639 "o64") GOARCH
=mipso64
;;
13642 rs6000
*-*-* | powerpc
*-*-*)
13643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13650 if ac_fn_c_try_compile
"$LINENO"; then :
13655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13656 if test "$is_ppc" = "yes"; then
13663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 #if defined(__sparcv9) || defined(__arch64__)
13670 if ac_fn_c_try_compile
"$LINENO"; then :
13675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13676 if test "$is_sparc" = "yes"; then
13683 if test $is_386 = yes; then
13685 LIBGO_IS_386_FALSE
='#'
13687 LIBGO_IS_386_TRUE
='#'
13688 LIBGO_IS_386_FALSE
=
13691 if test $is_alpha = yes; then
13692 LIBGO_IS_ALPHA_TRUE
=
13693 LIBGO_IS_ALPHA_FALSE
='#'
13695 LIBGO_IS_ALPHA_TRUE
='#'
13696 LIBGO_IS_ALPHA_FALSE
=
13699 if test $is_arm = yes; then
13701 LIBGO_IS_ARM_FALSE
='#'
13703 LIBGO_IS_ARM_TRUE
='#'
13704 LIBGO_IS_ARM_FALSE
=
13707 if test $is_m68k = yes; then
13708 LIBGO_IS_M68K_TRUE
=
13709 LIBGO_IS_M68K_FALSE
='#'
13711 LIBGO_IS_M68K_TRUE
='#'
13712 LIBGO_IS_M68K_FALSE
=
13715 if test $mips_abi != unknown
; then
13716 LIBGO_IS_MIPS_TRUE
=
13717 LIBGO_IS_MIPS_FALSE
='#'
13719 LIBGO_IS_MIPS_TRUE
='#'
13720 LIBGO_IS_MIPS_FALSE
=
13723 if test $mips_abi = o32
; then
13724 LIBGO_IS_MIPSO32_TRUE
=
13725 LIBGO_IS_MIPSO32_FALSE
='#'
13727 LIBGO_IS_MIPSO32_TRUE
='#'
13728 LIBGO_IS_MIPSO32_FALSE
=
13731 if test $mips_abi = n32
; then
13732 LIBGO_IS_MIPSN32_TRUE
=
13733 LIBGO_IS_MIPSN32_FALSE
='#'
13735 LIBGO_IS_MIPSN32_TRUE
='#'
13736 LIBGO_IS_MIPSN32_FALSE
=
13739 if test $mips_abi = n64
; then
13740 LIBGO_IS_MIPSN64_TRUE
=
13741 LIBGO_IS_MIPSN64_FALSE
='#'
13743 LIBGO_IS_MIPSN64_TRUE
='#'
13744 LIBGO_IS_MIPSN64_FALSE
=
13747 if test $mips_abi = o64
; then
13748 LIBGO_IS_MIPSO64_TRUE
=
13749 LIBGO_IS_MIPSO64_FALSE
='#'
13751 LIBGO_IS_MIPSO64_TRUE
='#'
13752 LIBGO_IS_MIPSO64_FALSE
=
13755 if test $is_ppc = yes; then
13757 LIBGO_IS_PPC_FALSE
='#'
13759 LIBGO_IS_PPC_TRUE
='#'
13760 LIBGO_IS_PPC_FALSE
=
13763 if test $is_ppc64 = yes; then
13764 LIBGO_IS_PPC64_TRUE
=
13765 LIBGO_IS_PPC64_FALSE
='#'
13767 LIBGO_IS_PPC64_TRUE
='#'
13768 LIBGO_IS_PPC64_FALSE
=
13771 if test $is_sparc = yes; then
13772 LIBGO_IS_SPARC_TRUE
=
13773 LIBGO_IS_SPARC_FALSE
='#'
13775 LIBGO_IS_SPARC_TRUE
='#'
13776 LIBGO_IS_SPARC_FALSE
=
13779 if test $is_sparc64 = yes; then
13780 LIBGO_IS_SPARC64_TRUE
=
13781 LIBGO_IS_SPARC64_FALSE
='#'
13783 LIBGO_IS_SPARC64_TRUE
='#'
13784 LIBGO_IS_SPARC64_FALSE
=
13787 if test $is_x86_64 = yes; then
13788 LIBGO_IS_X86_64_TRUE
=
13789 LIBGO_IS_X86_64_FALSE
='#'
13791 LIBGO_IS_X86_64_TRUE
='#'
13792 LIBGO_IS_X86_64_FALSE
=
13797 GO_LIBCALL_OS_FILE
=
13798 GO_LIBCALL_OS_ARCH_FILE
=
13799 GO_SYSCALL_OS_FILE
=
13800 GO_SYSCALL_OS_ARCH_FILE
=
13801 if test -f ${srcdir}/go
/syscall
/libcall_
${GOOS}.go
; then
13802 GO_LIBCALL_OS_FILE
=go
/syscall
/libcall_
${GOOS}.go
13804 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go
; then
13805 GO_LIBCALL_OS_ARCH_FILE
=go
/syscall
/libcall_
${GOOS}_
${GOARCH}.go
13807 if test -f ${srcdir}/go
/syscall
/syscall_
${GOOS}.go
; then
13808 GO_SYSCALL_OS_FILE
=go
/syscall
/syscall_
${GOOS}.go
13810 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go
; then
13811 GO_SYSCALL_OS_ARCH_FILE
=go
/syscall
/syscall_
${GOOS}_
${GOARCH}.go
13818 OSCFLAGS
="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13821 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13822 # msghdr in <sys/socket.h>.
13823 OSCFLAGS
="$OSCFLAGS -D_XOPEN_SOURCE=500"
13826 # Solaris 8/9 need this so struct msghdr gets the msg_control
13827 # etc. fields in <sys/socket.h> (_XPG4_2).
13828 OSCFLAGS
="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13830 *-*-solaris2.1
[01])
13831 # Solaris 10+ needs this so struct msghdr gets the msg_control
13832 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13833 # above doesn't work with C99.
13834 OSCFLAGS
="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13840 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13841 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13844 CFLAGS_hold
=$CFLAGS
13845 CFLAGS
="$CFLAGS -fsplit-stack"
13846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13850 if ac_fn_c_try_compile
"$LINENO"; then :
13851 libgo_cv_c_split_stack_supported
=yes
13853 libgo_cv_c_split_stack_supported
=no
13855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13856 CFLAGS
=$CFLAGS_hold
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13859 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13860 if test "$libgo_cv_c_split_stack_supported" = yes; then
13861 SPLIT_STACK
=-fsplit-stack
13863 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13869 if test "$libgo_cv_c_split_stack_supported" = yes; then
13870 USING_SPLIT_STACK_TRUE
=
13871 USING_SPLIT_STACK_FALSE
='#'
13873 USING_SPLIT_STACK_TRUE
='#'
13874 USING_SPLIT_STACK_FALSE
=
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13879 $as_echo_n "checking whether linker supports split stack... " >&6; }
13880 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13883 libgo_cv_c_linker_supports_split_stack
=no
13884 if $LD --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
13885 libgo_cv_c_linker_supports_split_stack
=yes
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13889 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13890 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13892 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13898 $as_echo_n "checking for sqrt in -lm... " >&6; }
13899 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
13902 ac_check_lib_save_LIBS
=$LIBS
13904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13922 if ac_fn_c_try_link
"$LINENO"; then :
13923 ac_cv_lib_m_sqrt
=yes
13925 ac_cv_lib_m_sqrt
=no
13927 rm -f core conftest.err conftest.
$ac_objext \
13928 conftest
$ac_exeext conftest.
$ac_ext
13929 LIBS
=$ac_check_lib_save_LIBS
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13932 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13933 if test "x$ac_cv_lib_m_sqrt" = x
""yes; then :
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13940 $as_echo_n "checking for socket libraries... " >&6; }
13941 if test "${libgo_cv_lib_sockets+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13944 libgo_cv_lib_sockets
=
13945 libgo_check_both
=no
13946 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13947 if test "x$ac_cv_func_connect" = x
""yes; then :
13948 libgo_check_socket
=no
13950 libgo_check_socket
=yes
13953 if test "$libgo_check_socket" = "yes"; then
13954 unset ac_cv_func_connect
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13956 $as_echo_n "checking for main in -lsocket... " >&6; }
13957 if test "${ac_cv_lib_socket_main+set}" = set; then :
13958 $as_echo_n "(cached) " >&6
13960 ac_check_lib_save_LIBS
=$LIBS
13961 LIBS
="-lsocket $LIBS"
13962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13974 if ac_fn_c_try_link
"$LINENO"; then :
13975 ac_cv_lib_socket_main
=yes
13977 ac_cv_lib_socket_main
=no
13979 rm -f core conftest.err conftest.
$ac_objext \
13980 conftest
$ac_exeext conftest.
$ac_ext
13981 LIBS
=$ac_check_lib_save_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13984 $as_echo "$ac_cv_lib_socket_main" >&6; }
13985 if test "x$ac_cv_lib_socket_main" = x
""yes; then :
13986 libgo_cv_lib_sockets
="-lsocket"
13988 libgo_check_both
=yes
13992 if test "$libgo_check_both" = "yes"; then
13993 libgo_old_libs
=$LIBS
13994 LIBS
="$LIBS -lsocket -lnsl"
13995 unset ac_cv_func_accept
13996 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
13997 if test "x$ac_cv_func_accept" = x
""yes; then :
13999 libgo_cv_lib_sockets
="-lsocket -lnsl"
14002 unset ac_cv_func_accept
14003 LIBS
=$libgo_old_libs
14005 unset ac_cv_func_gethostbyname
14006 libgo_old_libs
="$LIBS"
14007 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14008 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14012 $as_echo_n "checking for main in -lnsl... " >&6; }
14013 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14016 ac_check_lib_save_LIBS
=$LIBS
14018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14030 if ac_fn_c_try_link
"$LINENO"; then :
14031 ac_cv_lib_nsl_main
=yes
14033 ac_cv_lib_nsl_main
=no
14035 rm -f core conftest.err conftest.
$ac_objext \
14036 conftest
$ac_exeext conftest.
$ac_ext
14037 LIBS
=$ac_check_lib_save_LIBS
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14040 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14041 if test "x$ac_cv_lib_nsl_main" = x
""yes; then :
14042 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lnsl"
14047 unset ac_cv_func_gethostbyname
14048 LIBS
=$libgo_old_libs
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14052 $as_echo "$libgo_cv_lib_sockets" >&6; }
14053 NET_LIBS
="$libgo_cv_lib_sockets"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14057 $as_echo_n "checking whether -pthread is supported... " >&6; }
14058 if test "${libgo_cv_lib_pthread+set}" = set; then :
14059 $as_echo_n "(cached) " >&6
14061 CFLAGS_hold
=$CFLAGS
14062 CFLAGS
="$CFLAGS -pthread"
14063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h. */
14067 if ac_fn_c_try_compile
"$LINENO"; then :
14068 libgo_cv_lib_pthread
=yes
14070 libgo_cv_lib_pthread
=no
14072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14073 CFLAGS
=$CFLAGS_hold
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14076 $as_echo "$libgo_cv_lib_pthread" >&6; }
14078 if test "$libgo_cv_lib_pthread" = yes; then
14079 PTHREAD_CFLAGS
=-pthread
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14085 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14086 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14089 ac_check_lib_save_LIBS
=$LIBS
14090 LIBS
="-lpthread $LIBS"
14091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14094 /* Override any GCC internal prototype to avoid an error.
14095 Use char because int might match the return type of a GCC
14096 builtin and then its argument prototype would still apply. */
14100 char pthread_create ();
14104 return pthread_create ();
14109 if ac_fn_c_try_link
"$LINENO"; then :
14110 ac_cv_lib_pthread_pthread_create
=yes
14112 ac_cv_lib_pthread_pthread_create
=no
14114 rm -f core conftest.err conftest.
$ac_objext \
14115 conftest
$ac_exeext conftest.
$ac_ext
14116 LIBS
=$ac_check_lib_save_LIBS
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14119 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14120 if test "x$ac_cv_lib_pthread_pthread_create" = x
""yes; then :
14121 PTHREAD_LIBS
=-lpthread
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14127 $as_echo_n "checking for library containing sched_yield... " >&6; }
14128 if test "${ac_cv_search_sched_yield+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14131 ac_func_search_save_LIBS
=$LIBS
14132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14135 /* Override any GCC internal prototype to avoid an error.
14136 Use char because int might match the return type of a GCC
14137 builtin and then its argument prototype would still apply. */
14141 char sched_yield ();
14145 return sched_yield ();
14150 for ac_lib
in '' rt
; do
14151 if test -z "$ac_lib"; then
14152 ac_res
="none required"
14155 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14157 if ac_fn_c_try_link
"$LINENO"; then :
14158 ac_cv_search_sched_yield
=$ac_res
14160 rm -f core conftest.err conftest.
$ac_objext \
14162 if test "${ac_cv_search_sched_yield+set}" = set; then :
14166 if test "${ac_cv_search_sched_yield+set}" = set; then :
14169 ac_cv_search_sched_yield
=no
14171 rm conftest.
$ac_ext
14172 LIBS
=$ac_func_search_save_LIBS
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14175 $as_echo "$ac_cv_search_sched_yield" >&6; }
14176 ac_res
=$ac_cv_search_sched_yield
14177 if test "$ac_res" != no
; then :
14178 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14184 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14185 if test "${ac_cv_c_bigendian+set}" = set; then :
14186 $as_echo_n "(cached) " >&6
14188 ac_cv_c_bigendian
=unknown
14189 # See if we're dealing with a universal compiler.
14190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14192 #ifndef __APPLE_CC__
14193 not a universal capable compiler
14198 if ac_fn_c_try_compile
"$LINENO"; then :
14200 # Check for potential -arch flags. It is not universal unless
14201 # there are at least two -arch flags with different values.
14204 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14205 if test -n "$ac_prev"; then
14207 i?
86 | x86_64 | ppc | ppc64
)
14208 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14211 ac_cv_c_bigendian
=universal
14217 elif test "x$ac_word" = "x-arch"; then
14222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14223 if test $ac_cv_c_bigendian = unknown
; then
14224 # See if sys/param.h defines the BYTE_ORDER macro.
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 #include <sys/types.h>
14228 #include <sys/param.h>
14233 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14234 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14236 bogus endian macros
14243 if ac_fn_c_try_compile
"$LINENO"; then :
14244 # It does; now see whether it defined to BIG_ENDIAN or not.
14245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <sys/types.h>
14248 #include <sys/param.h>
14253 #if BYTE_ORDER != BIG_ENDIAN
14261 if ac_fn_c_try_compile
"$LINENO"; then :
14262 ac_cv_c_bigendian
=yes
14264 ac_cv_c_bigendian
=no
14266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14270 if test $ac_cv_c_bigendian = unknown
; then
14271 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <limits.h>
14279 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14280 bogus endian macros
14287 if ac_fn_c_try_compile
"$LINENO"; then :
14288 # It does; now see whether it defined to _BIG_ENDIAN or not.
14289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 #include <limits.h>
14296 #ifndef _BIG_ENDIAN
14304 if ac_fn_c_try_compile
"$LINENO"; then :
14305 ac_cv_c_bigendian
=yes
14307 ac_cv_c_bigendian
=no
14309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14313 if test $ac_cv_c_bigendian = unknown
; then
14314 # Compile a test program.
14315 if test "$cross_compiling" = yes; then :
14316 # Try to guess by grepping values from an object file.
14317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 short int ascii_mm[] =
14320 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14321 short int ascii_ii[] =
14322 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14323 int use_ascii (int i) {
14324 return ascii_mm[i] + ascii_ii[i];
14326 short int ebcdic_ii[] =
14327 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14328 short int ebcdic_mm[] =
14329 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14330 int use_ebcdic (int i) {
14331 return ebcdic_mm[i] + ebcdic_ii[i];
14338 return use_ascii (foo) == use_ebcdic (foo);
14343 if ac_fn_c_try_compile
"$LINENO"; then :
14344 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14345 ac_cv_c_bigendian
=yes
14347 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14348 if test "$ac_cv_c_bigendian" = unknown
; then
14349 ac_cv_c_bigendian
=no
14351 # finding both strings is unlikely to happen, but who knows?
14352 ac_cv_c_bigendian
=unknown
14356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 $ac_includes_default
14365 /* Are we little or big endian? From Harbison&Steele. */
14369 char c[sizeof (long int)];
14372 return u.c[sizeof (long int) - 1] == 1;
14378 if ac_fn_c_try_run
"$LINENO"; then :
14379 ac_cv_c_bigendian
=no
14381 ac_cv_c_bigendian
=yes
14383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14384 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14390 $as_echo "$ac_cv_c_bigendian" >&6; }
14391 case $ac_cv_c_bigendian in #(
14393 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14399 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14403 as_fn_error
"unknown endianness
14404 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14410 # Check whether --with-system-libunwind was given.
14411 if test "${with_system_libunwind+set}" = set; then :
14412 withval
=$with_system_libunwind;
14415 # If system-libunwind was not specifically set, pick a default setting.
14416 if test x
$with_system_libunwind = x
; then
14418 ia64-
*-hpux*) with_system_libunwind
=yes ;;
14419 *) with_system_libunwind
=no
;;
14422 # Based on system-libunwind and target, do we have ipinfo?
14423 if test x
$with_system_libunwind = xyes
; then
14425 ia64-
*-*) have_unwind_getipinfo
=no
;;
14426 *) have_unwind_getipinfo
=yes ;;
14429 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14432 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
14433 *) have_unwind_getipinfo
=yes ;;
14438 if test x
$have_unwind_getipinfo = xyes
; then
14440 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14445 # Check whether --enable-sjlj-exceptions was given.
14446 if test "${enable_sjlj_exceptions+set}" = set; then :
14447 enableval
=$enable_sjlj_exceptions; case "$enableval" in
14449 *) as_fn_error
"unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14452 enable_sjlj_exceptions
=auto
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14457 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14458 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14459 $as_echo_n "(cached) " >&6
14461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14465 void clean (int *);
14468 int i __attribute__ ((cleanup (clean)));
14473 CFLAGS_hold
=$CFLAGS
14474 CFLAGS
="--save-temps -fexceptions"
14475 libgo_cv_lib_sjlj_exceptions
=unknown
14476 if ac_fn_c_try_compile
; then :
14477 if grep _Unwind_SjLj_Resume conftest.s
>/dev
/null
2>&1; then
14478 libgo_cv_lib_sjlj_exceptions
=yes
14479 elif grep _Unwind_Resume conftest.s
>/dev
/null
2>&1; then
14480 libgo_cv_lib_sjlj_exceptions
=no
14483 CFLAGS
=$CFLAGS_hold
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14488 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14490 if test "$enable_sjlj_exceptions" = "auto"; then
14491 enable_sjlj_exceptions
=$libgo_cv_lib_sjlj_exceptions
14494 case $enable_sjlj_exceptions in
14497 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14503 as_fn_error
"unable to detect exception model" "$LINENO" 5
14507 for ac_header
in sys
/mman.h syscall.h sys
/epoll.h sys
/ptrace.h sys
/syscall.h sys
/user.h sys
/utsname.h sys
/select.h sys
/socket.h net
/if.h
14509 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14510 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14511 eval as_val
=\$
$as_ac_Header
14512 if test "x$as_val" = x
""yes; then :
14513 cat >>confdefs.h
<<_ACEOF
14514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14522 for ac_header
in linux
/filter.h linux
/netlink.h linux
/rtnetlink.h
14524 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14525 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14526 #include <sys/socket.h>
14530 eval as_val
=\$
$as_ac_Header
14531 if test "x$as_val" = x
""yes; then :
14532 cat >>confdefs.h
<<_ACEOF
14533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14541 if test "$ac_cv_header_sys_mman_h" = yes; then
14542 HAVE_SYS_MMAN_H_TRUE
=
14543 HAVE_SYS_MMAN_H_FALSE
='#'
14545 HAVE_SYS_MMAN_H_TRUE
='#'
14546 HAVE_SYS_MMAN_H_FALSE
=
14550 for ac_func
in strerror_r strsignal wait4 mincore setenv
14552 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14553 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14554 eval as_val
=\$
$as_ac_var
14555 if test "x$as_val" = x
""yes; then :
14556 cat >>confdefs.h
<<_ACEOF
14557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 if test "$ac_cv_func_strerror_r" = yes; then
14564 HAVE_STRERROR_R_TRUE
=
14565 HAVE_STRERROR_R_FALSE
='#'
14567 HAVE_STRERROR_R_TRUE
='#'
14568 HAVE_STRERROR_R_FALSE
=
14571 if test "$ac_cv_func_wait4" = yes; then
14573 HAVE_WAIT4_FALSE
='#'
14575 HAVE_WAIT4_TRUE
='#'
14580 CFLAGS_hold
="$CFLAGS"
14581 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14583 LIBS
="$LIBS $PTHREAD_LIBS"
14584 for ac_func
in sem_timedwait
14586 ac_fn_c_check_func
"$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14587 if test "x$ac_cv_func_sem_timedwait" = x
""yes; then :
14588 cat >>confdefs.h
<<_ACEOF
14589 #define HAVE_SEM_TIMEDWAIT 1
14595 CFLAGS
="$CFLAGS_hold"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14599 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14600 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14606 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14608 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14611 if ac_fn_c_try_link
"$LINENO"; then :
14612 libgo_cv_func___sync_bool_compare_and_swap_4
=yes
14614 libgo_cv_func___sync_bool_compare_and_swap_4
=no
14616 rm -f core conftest.err conftest.
$ac_objext \
14617 conftest
$ac_exeext conftest.
$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14620 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14621 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14623 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14628 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14629 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14630 $as_echo_n "(cached) " >&6
14632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14635 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14637 int main() { return __sync_fetch_and_add (&i, 1); }
14640 if ac_fn_c_try_link
"$LINENO"; then :
14641 libgo_cv_func___sync_fetch_and_add_4
=yes
14643 libgo_cv_func___sync_fetch_and_add_4
=no
14645 rm -f core conftest.err conftest.
$ac_objext \
14646 conftest
$ac_exeext conftest.
$ac_ext
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14649 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14650 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14652 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14657 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14658 if test "${libgo_cv_c_stringops+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14661 CFLAGS_hold
=$CFLAGS
14662 CFLAGS
="$CFLAGS -minline-all-stringops"
14663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14664 /* end confdefs.h. */
14667 if ac_fn_c_try_compile
"$LINENO"; then :
14668 libgo_cv_c_stringops
=yes
14670 libgo_cv_c_stringops
=no
14672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14673 CFLAGS
=$CFLAGS_hold
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14676 $as_echo "$libgo_cv_c_stringops" >&6; }
14678 if test "$libgo_cv_c_stringops" = yes; then
14679 STRINGOPS_FLAG
=-minline-all-stringops
14683 CFLAGS_hold
=$CFLAGS
14684 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14685 ac_fn_c_check_type
"$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14686 if test "x$ac_cv_type_off64_t" = x
""yes; then :
14688 cat >>confdefs.h
<<_ACEOF
14689 #define HAVE_OFF64_T 1
14695 CFLAGS
=$CFLAGS_hold
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14698 $as_echo_n "checking epoll_event size... " >&6; }
14699 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14700 $as_echo_n "(cached) " >&6
14702 if ac_fn_c_compute_int
"$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14705 libgo_cv_c_epoll_event_size
=0
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14710 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14711 SIZEOF_STRUCT_EPOLL_EVENT
=${libgo_cv_c_epoll_event_size}
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14715 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14716 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14717 $as_echo_n "(cached) " >&6
14719 if ac_fn_c_compute_int
"$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14720 #include <sys/epoll.h>"; then :
14723 libgo_cv_c_epoll_event_fd_offset
=0
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14728 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14729 STRUCT_EPOLL_EVENT_FD_OFFSET
=${libgo_cv_c_epoll_event_fd_offset}
14732 cat >confcache
<<\_ACEOF
14733 # This file is a shell script that caches the results of configure
14734 # tests run on this system so they can be shared between configure
14735 # scripts and configure runs, see configure's option --config-cache.
14736 # It is not useful on other systems. If it contains results you don't
14737 # want to keep, you may remove or edit it.
14739 # config.status only pays attention to the cache file if you give it
14740 # the --recheck option to rerun configure.
14742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14744 # following values.
14748 # The following way of writing the cache mishandles newlines in values,
14749 # but we know of no workaround that is simple, portable, and efficient.
14750 # So, we kill variables containing newlines.
14751 # Ultrix sh set writes to stderr and can't be redirected directly,
14752 # and sets the high bit in the cache file unless we assign to the vars.
14754 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14755 eval ac_val
=\$
$ac_var
14759 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14760 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14763 _ | IFS | as_nl
) ;; #(
14764 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14765 *) { eval $ac_var=; unset $ac_var;} ;;
14771 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14772 *${as_nl}ac_space
=\
*)
14773 # `set' does not quote correctly, so add quotes: double-quote
14774 # substitution turns \\\\ into \\, and sed turns \\ into \.
14777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14780 # `set' quotes correctly as required by POSIX, so do not add quotes.
14781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14792 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14794 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14795 if test -w "$cache_file"; then
14796 test "x$cache_file" != "x/dev/null" &&
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14798 $as_echo "$as_me: updating cache $cache_file" >&6;}
14799 cat confcache
>$cache_file
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14807 if test ${multilib} = yes; then
14808 multilib_arg
="--enable-multilib"
14813 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
14816 ac_config_commands
="$ac_config_commands default"
14819 cat >confcache
<<\_ACEOF
14820 # This file is a shell script that caches the results of configure
14821 # tests run on this system so they can be shared between configure
14822 # scripts and configure runs, see configure's option --config-cache.
14823 # It is not useful on other systems. If it contains results you don't
14824 # want to keep, you may remove or edit it.
14826 # config.status only pays attention to the cache file if you give it
14827 # the --recheck option to rerun configure.
14829 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14830 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14831 # following values.
14835 # The following way of writing the cache mishandles newlines in values,
14836 # but we know of no workaround that is simple, portable, and efficient.
14837 # So, we kill variables containing newlines.
14838 # Ultrix sh set writes to stderr and can't be redirected directly,
14839 # and sets the high bit in the cache file unless we assign to the vars.
14841 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14842 eval ac_val
=\$
$ac_var
14846 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14850 _ | IFS | as_nl
) ;; #(
14851 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
14852 *) { eval $ac_var=; unset $ac_var;} ;;
14858 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14859 *${as_nl}ac_space
=\
*)
14860 # `set' does not quote correctly, so add quotes: double-quote
14861 # substitution turns \\\\ into \\, and sed turns \\ into \.
14864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14867 # `set' quotes correctly as required by POSIX, so do not add quotes.
14868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14877 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14879 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14881 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14882 if test -w "$cache_file"; then
14883 test "x$cache_file" != "x/dev/null" &&
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14885 $as_echo "$as_me: updating cache $cache_file" >&6;}
14886 cat confcache
>$cache_file
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14889 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14894 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14895 # Let make expand exec_prefix.
14896 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14898 DEFS
=-DHAVE_CONFIG_H
14902 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14903 # 1. Remove the extension, and $U if already installed.
14904 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14905 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14907 # will be set to the directory where LIBOBJS objects are built.
14908 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14909 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14911 LIBOBJS
=$ac_libobjs
14913 LTLIBOBJS
=$ac_ltlibobjs
14916 if test -n "$EXEEXT"; then
14918 am__EXEEXT_FALSE
='#'
14920 am__EXEEXT_TRUE
='#'
14924 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14925 as_fn_error
"conditional \"AMDEP\" was never defined.
14926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14928 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14929 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
14930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14932 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14933 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
14934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14936 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14937 as_fn_error
"conditional \"LIBGO_IS_DARWIN\" was never defined.
14938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14940 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14941 as_fn_error
"conditional \"LIBGO_IS_FREEBSD\" was never defined.
14942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14944 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14945 as_fn_error
"conditional \"LIBGO_IS_IRIX\" was never defined.
14946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14948 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14949 as_fn_error
"conditional \"LIBGO_IS_LINUX\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
14953 as_fn_error
"conditional \"LIBGO_IS_NETBSD\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14956 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14957 as_fn_error
"conditional \"LIBGO_IS_RTEMS\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14960 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14961 as_fn_error
"conditional \"LIBGO_IS_SOLARIS\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14964 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14965 as_fn_error
"conditional \"LIBGO_IS_386\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14968 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14969 as_fn_error
"conditional \"LIBGO_IS_ALPHA\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14972 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14973 as_fn_error
"conditional \"LIBGO_IS_ARM\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14976 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14977 as_fn_error
"conditional \"LIBGO_IS_M68K\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14980 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14981 as_fn_error
"conditional \"LIBGO_IS_MIPS\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14985 as_fn_error
"conditional \"LIBGO_IS_MIPSO32\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14989 as_fn_error
"conditional \"LIBGO_IS_MIPSN32\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14993 as_fn_error
"conditional \"LIBGO_IS_MIPSN64\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14997 as_fn_error
"conditional \"LIBGO_IS_MIPSO64\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15000 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15001 as_fn_error
"conditional \"LIBGO_IS_PPC\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15004 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15005 as_fn_error
"conditional \"LIBGO_IS_PPC64\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15008 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15009 as_fn_error
"conditional \"LIBGO_IS_SPARC\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15013 as_fn_error
"conditional \"LIBGO_IS_SPARC64\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15017 as_fn_error
"conditional \"LIBGO_IS_X86_64\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15021 as_fn_error
"conditional \"USING_SPLIT_STACK\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15025 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15026 as_fn_error
"conditional \"HAVE_SYS_MMAN_H\" was never defined.
15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15029 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15030 as_fn_error
"conditional \"HAVE_STRERROR_R\" was never defined.
15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15033 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15034 as_fn_error
"conditional \"HAVE_WAIT4\" was never defined.
15035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 : ${CONFIG_STATUS=./config.status}
15040 ac_clean_files_save
=$ac_clean_files
15041 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15045 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15047 # Generated by $as_me.
15048 # Run this file to recreate the current configuration.
15049 # Compiler output produced by configure, useful for debugging
15050 # configure, is in config.log if it exists.
15053 ac_cs_recheck=false
15056 SHELL=\${CONFIG_SHELL-$SHELL}
15059 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15060 ## -------------------- ##
15061 ## M4sh Initialization. ##
15062 ## -------------------- ##
15064 # Be more Bourne compatible
15065 DUALCASE
=1; export DUALCASE
# for MKS sh
15066 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15070 # is contrary to our usage. Disable this feature.
15071 alias -g '${1+"$@"}'='"$@"'
15072 setopt NO_GLOB_SUBST
15074 case `(set -o) 2>/dev/null` in #(
15086 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15087 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15090 # Prefer a ksh shell builtin over an external printf program on Solaris,
15091 # but without wasting forks for bash or zsh.
15092 if test -z "$BASH_VERSION$ZSH_VERSION" \
15093 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15094 as_echo='print
-r --'
15095 as_echo_n='print
-rn --'
15096 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15097 as_echo='printf %s
\n'
15098 as_echo_n='printf %s
'
15100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15101 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15102 as_echo_n='/usr
/ucb
/echo -n'
15104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15105 as_echo_n_body='eval
15109 expr "X$arg" : "X\\(.*\\)$as_nl";
15110 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15112 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15114 export as_echo_n_body
15115 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15117 export as_echo_body
15118 as_echo='sh
-c $as_echo_body as_echo
'
15121 # The user is always right.
15122 if test "${PATH_SEPARATOR+set}" != set; then
15124 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15125 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15132 # We need space, tab and new line, in precisely that order. Quoting is
15133 # there to prevent editors from complaining about space-tab.
15134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15135 # splitting by setting IFS to empty value.)
15138 # Find who we are. Look in the path if we contain no directory separator.
15140 *[\\/]* ) as_myself=$0 ;;
15141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15142 for as_dir in $PATH
15145 test -z "$as_dir" && as_dir=.
15146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15152 # We did not find ourselves, most probably we were run as `sh COMMAND'
15153 # in which case we are not to be found in the path.
15154 if test "x$as_myself" = x
; then
15157 if test ! -f "$as_myself"; then
15158 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15162 # Unset variables that we do not need and which cause bugs (e.g. in
15163 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15164 # suppresses any "Segmentation fault" message there. '((' could
15165 # trigger a bug in pdksh 5.2.14.
15166 for as_var
in BASH_ENV ENV MAIL MAILPATH
15167 do eval test x\
${$as_var+set} = xset \
15168 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15181 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15184 # as_fn_error ERROR [LINENO LOG_FD]
15185 # ---------------------------------
15186 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15187 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15188 # script with status $?, using 1 if that was 0.
15191 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15193 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15194 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15196 $as_echo "$as_me: error: $1" >&2
15197 as_fn_exit
$as_status
15201 # as_fn_set_status STATUS
15202 # -----------------------
15203 # Set $? to STATUS, without forking.
15204 as_fn_set_status
()
15207 } # as_fn_set_status
15209 # as_fn_exit STATUS
15210 # -----------------
15211 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15215 as_fn_set_status
$1
15221 # Portably unset VAR.
15224 { eval $1=; unset $1;}
15226 as_unset
=as_fn_unset
15227 # as_fn_append VAR VALUE
15228 # ----------------------
15229 # Append the text in VALUE to the end of the definition contained in VAR. Take
15230 # advantage of any shell optimizations that allow amortized linear growth over
15231 # repeated appends, instead of the typical quadratic growth present in naive
15233 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15234 eval 'as_fn_append ()
15245 # as_fn_arith ARG...
15246 # ------------------
15247 # Perform arithmetic evaluation on the ARGs, and store the result in the
15248 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15249 # must be portable across $(()) and expr.
15250 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15251 eval 'as_fn_arith ()
15258 as_val
=`expr "$@" || test $? -eq 1`
15263 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15264 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15270 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15271 as_basename
=basename
15276 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15282 as_me
=`$as_basename -- "$0" ||
15283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15284 X"$0" : 'X\(//\)$' \| \
15285 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15287 sed '/^.*\/\([^/][^/]*\)\/*$/{
15301 # Avoid depending upon Character Ranges.
15302 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15303 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15304 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15305 as_cr_digits
='0123456789'
15306 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15308 ECHO_C
= ECHO_N
= ECHO_T
=
15309 case `echo -n x` in #(((((
15311 case `echo 'xy\c'` in
15312 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15314 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15321 rm -f conf$$ conf$$.exe conf$$.
file
15322 if test -d conf$$.dir
; then
15323 rm -f conf$$.dir
/conf$$.
file
15326 mkdir conf$$.dir
2>/dev
/null
15328 if (echo >conf$$.
file) 2>/dev
/null
; then
15329 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15331 # ... but there are two gotchas:
15332 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15333 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15334 # In both cases, we have to default to `cp -p'.
15335 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15337 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15345 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15346 rmdir conf$$.dir
2>/dev
/null
15351 # Create "$as_dir" as a directory, including parents if necessary.
15356 -*) as_dir
=.
/$as_dir;;
15358 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15362 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15363 *) as_qdir
=$as_dir;;
15365 as_dirs
="'$as_qdir' $as_dirs"
15366 as_dir
=`$as_dirname -- "$as_dir" ||
15367 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15368 X"$as_dir" : 'X\(//\)[^/]' \| \
15369 X"$as_dir" : 'X\(//\)$' \| \
15370 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15371 $as_echo X"$as_dir" |
15372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15376 /^X\(\/\/\)[^/].*/{
15389 test -d "$as_dir" && break
15391 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15392 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
15396 if mkdir
-p .
2>/dev
/null
; then
15397 as_mkdir_p
='mkdir -p "$as_dir"'
15399 test -d .
/-p && rmdir .
/-p
15403 if test -x / >/dev
/null
2>&1; then
15404 as_test_x
='test -x'
15406 if ls -dL / >/dev
/null
2>&1; then
15413 if test -d "$1"; then
15419 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15420 ???[sx]*):;;*)false;;esac;fi
15424 as_executable_p
=$as_test_x
15426 # Sed expression to map a string onto a valid CPP name.
15427 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15429 # Sed expression to map a string onto a valid variable name.
15430 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15434 ## ----------------------------------- ##
15435 ## Main body of $CONFIG_STATUS script. ##
15436 ## ----------------------------------- ##
15438 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15441 # Save the log message, to keep $0 and so on meaningful, and to
15442 # report actual input values of CONFIG_FILES etc. instead of their
15443 # values after options handling.
15445 This file was extended by package-unused $as_me version-unused, which was
15446 generated by GNU Autoconf 2.64. Invocation command line was
15448 CONFIG_FILES = $CONFIG_FILES
15449 CONFIG_HEADERS = $CONFIG_HEADERS
15450 CONFIG_LINKS = $CONFIG_LINKS
15451 CONFIG_COMMANDS = $CONFIG_COMMANDS
15454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15459 case $ac_config_files in *"
15460 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15463 case $ac_config_headers in *"
15464 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15469 # Files that config.status was made for.
15470 config_files="$ac_config_files"
15471 config_headers="$ac_config_headers"
15472 config_commands="$ac_config_commands"
15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15478 \`$as_me' instantiates files and other configuration actions
15479 from templates according to the current configuration. Unless the files
15480 and actions are specified as TAGs, all are instantiated by default.
15482 Usage: $0 [OPTION]... [TAG]...
15484 -h, --help print this help, then exit
15485 -V, --version print version number and configuration settings, then exit
15486 -q, --quiet, --silent
15487 do not print progress messages
15488 -d, --debug don't remove temporary files
15489 --recheck update $as_me by reconfiguring in the same conditions
15490 --file=FILE[:TEMPLATE]
15491 instantiate the configuration file FILE
15492 --header=FILE[:TEMPLATE]
15493 instantiate the configuration header FILE
15495 Configuration files:
15498 Configuration headers:
15501 Configuration commands:
15504 Report bugs to the package provider."
15507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15509 package-unused config.status version-unused
15510 configured by $0, generated by GNU Autoconf 2.64,
15511 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15513 Copyright (C) 2009 Free Software Foundation, Inc.
15514 This config.status script is free software; the Free Software Foundation
15515 gives unlimited permission to copy, distribute and modify it."
15522 test -n "\$AWK" || AWK=awk
15525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15526 # The default lists apply if the user does not specify any file.
15532 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15533 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15544 # Handling of the options.
15545 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15547 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15548 $as_echo "$ac_cs_version"; exit ;;
15549 --debug |
--debu |
--deb |
--de |
--d |
-d )
15551 --file |
--fil |
--fi |
--f )
15554 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15556 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15557 ac_need_defaults
=false
;;
15558 --header |
--heade |
--head |
--hea )
15561 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15563 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15564 ac_need_defaults
=false
;;
15566 # Conflict between --help and --header
15567 as_fn_error
"ambiguous option: \`$1'
15568 Try \`$0 --help' for more information.";;
15569 --help |
--hel |
-h )
15570 $as_echo "$ac_cs_usage"; exit ;;
15571 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15572 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15575 # This is an error.
15576 -*) as_fn_error
"unrecognized option: \`$1'
15577 Try \`$0 --help' for more information." ;;
15579 *) as_fn_append ac_config_targets
" $1"
15580 ac_need_defaults
=false
;;
15586 ac_configure_extra_args
=
15588 if $ac_cs_silent; then
15590 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15595 if \$ac_cs_recheck; then
15596 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15598 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15599 CONFIG_SHELL='$SHELL'
15600 export CONFIG_SHELL
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15609 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15610 ## Running $as_me. ##
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15624 with_multisubdir="$with_multisubdir"
15625 with_multisrctop="$with_multisrctop"
15626 with_target_subdir="$with_target_subdir"
15627 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15628 multi_basedir="$multi_basedir"
15629 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15632 GFORTRAN="$GFORTRAN"
15634 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15637 # The HP-UX ksh and POSIX shell print the target directory to stdout
15638 # if CDPATH is set.
15639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15641 sed_quote_subst='$sed_quote_subst'
15642 double_quote_subst='$double_quote_subst'
15643 delay_variable_subst='$delay_variable_subst'
15644 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15645 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15646 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15647 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15648 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15649 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15650 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15651 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15652 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15653 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15654 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15655 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15656 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15657 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15658 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15659 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15660 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15661 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15662 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15663 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15664 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15665 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15666 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15667 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15668 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15669 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15670 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15671 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15672 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15673 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15674 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15675 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15676 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15677 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15678 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15679 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15680 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15681 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15682 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15683 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15684 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15685 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15686 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15687 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15688 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15689 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15690 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15691 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15692 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"`'
15693 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15694 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15695 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15696 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15697 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15698 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15699 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15700 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15701 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15702 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15703 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15704 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15705 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15706 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15707 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15708 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15709 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15710 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15711 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15712 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15713 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15714 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15715 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15716 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15717 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15718 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15719 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15720 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15721 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15722 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15723 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15724 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15725 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15726 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15727 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15728 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15729 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15730 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15731 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15732 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15733 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15734 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15735 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15736 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15737 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15738 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15739 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15740 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15741 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15742 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15743 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15744 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15745 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15746 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15747 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15748 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15749 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15750 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15751 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15752 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15753 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15754 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15755 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15756 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15757 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15758 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15759 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15760 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15761 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15762 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15763 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15764 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15765 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15766 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15767 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15768 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15769 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15770 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15771 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15774 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15775 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15776 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15777 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15778 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15779 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15780 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15781 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15782 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15783 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15784 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15785 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15786 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15787 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15788 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15789 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15790 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15791 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15792 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15793 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15794 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15795 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15796 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15797 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15798 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15799 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15800 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15801 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15802 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15803 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15804 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15805 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15806 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15809 LTCFLAGS='$LTCFLAGS'
15810 compiler='$compiler_DEFAULT'
15812 # A function that is used when there is no print builtin or printf.
15813 func_fallback_echo ()
15815 eval 'cat <<_LTECHO_EOF
15820 # Quote evaled strings.
15834 deplibs_check_method \
15843 lt_cv_sys_global_symbol_pipe \
15844 lt_cv_sys_global_symbol_to_cdecl \
15845 lt_cv_sys_global_symbol_to_c_name_address \
15846 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15847 lt_prog_compiler_no_builtin_flag \
15848 lt_prog_compiler_wl \
15849 lt_prog_compiler_pic \
15850 lt_prog_compiler_static \
15851 lt_cv_prog_compiler_c_o \
15859 export_dynamic_flag_spec \
15860 whole_archive_flag_spec \
15861 compiler_needs_object \
15863 allow_undefined_flag \
15864 no_undefined_flag \
15865 hardcode_libdir_flag_spec \
15866 hardcode_libdir_flag_spec_ld \
15867 hardcode_libdir_separator \
15872 variables_saved_for_relink \
15874 library_names_spec \
15876 install_override_mode \
15883 lt_prog_compiler_no_builtin_flag_GO \
15884 lt_prog_compiler_wl_GO \
15885 lt_prog_compiler_pic_GO \
15886 lt_prog_compiler_static_GO \
15887 lt_cv_prog_compiler_c_o_GO \
15888 export_dynamic_flag_spec_GO \
15889 whole_archive_flag_spec_GO \
15890 compiler_needs_object_GO \
15892 allow_undefined_flag_GO \
15893 no_undefined_flag_GO \
15894 hardcode_libdir_flag_spec_GO \
15895 hardcode_libdir_flag_spec_ld_GO \
15896 hardcode_libdir_separator_GO \
15897 fix_srcfile_path_GO \
15898 exclude_expsyms_GO \
15899 include_expsyms_GO \
15900 file_list_spec_GO; do
15901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15902 *[\\\\\\\`\\"\\\$]*)
15903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15911 # Double-quote double-evaled strings.
15912 for var in reload_cmds \
15913 old_postinstall_cmds \
15914 old_postuninstall_cmds \
15916 extract_expsyms_cmds \
15917 old_archive_from_new_cmds \
15918 old_archive_from_expsyms_cmds \
15920 archive_expsym_cmds \
15922 module_expsym_cmds \
15923 export_symbols_cmds \
15926 postuninstall_cmds \
15928 sys_lib_search_path_spec \
15929 sys_lib_dlsearch_path_spec \
15931 old_archive_cmds_GO \
15932 old_archive_from_new_cmds_GO \
15933 old_archive_from_expsyms_cmds_GO \
15935 archive_expsym_cmds_GO \
15937 module_expsym_cmds_GO \
15938 export_symbols_cmds_GO \
15939 prelink_cmds_GO; do
15940 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15941 *[\\\\\\\`\\"\\\$]*)
15942 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15945 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15950 ac_aux_dir='$ac_aux_dir'
15951 xsi_shell='$xsi_shell'
15952 lt_shell_append='$lt_shell_append'
15954 # See if we are running on zsh, and set the options which allow our
15955 # commands through without removal of \ escapes INIT.
15956 if test -n "\${ZSH_VERSION+set}" ; then
15957 setopt NO_GLOB_SUBST
15963 TIMESTAMP='$TIMESTAMP'
15972 # Variables needed in config.status (file generation) which aren't already
15973 # passed by autoconf.
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15981 # Handling of arguments.
15982 for ac_config_target
in $ac_config_targets
15984 case $ac_config_target in
15985 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
15986 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15987 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15988 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15989 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15990 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
15991 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15993 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15998 # If the user did not use the arguments to specify the items to instantiate,
15999 # then the envvar interface is used. Set only those that are not.
16000 # We use the long form for the default assignment because of an extremely
16001 # bizarre bug on SunOS 4.1.3.
16002 if $ac_need_defaults; then
16003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16008 # Have a temporary directory for convenience. Make it in the build tree
16009 # simply because there is no reason against having it here, and in addition,
16010 # creating and moving files from /tmp can sometimes cause problems.
16011 # Hook for its removal unless debugging.
16012 # Note that there is a small window in which the directory will not be cleaned:
16013 # after its creation but before its name has been assigned to `$tmp'.
16017 trap 'exit_status=$?
16018 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16020 trap 'as_fn_exit 1' 1 2 13 15
16022 # Create a (secure) tmp directory for tmp files.
16025 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16026 test -n "$tmp" && test -d "$tmp"
16029 tmp
=.
/conf$$
-$RANDOM
16030 (umask 077 && mkdir
"$tmp")
16031 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16033 # Set up the scripts for CONFIG_FILES section.
16034 # No need to generate them if there are no CONFIG_FILES.
16035 # This happens for instance with `./config.status config.h'.
16036 if test -n "$CONFIG_FILES"; then
16039 ac_cr
=`echo X | tr X '\015'`
16040 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16041 # But we know of no other shell where ac_cr would be empty at this
16042 # point, so we can use a bashism as a fallback.
16043 if test "x$ac_cr" = x
; then
16044 eval ac_cr
=\$
\'\\r
\'
16046 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16047 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16050 ac_cs_awk_cr
=$ac_cr
16053 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16058 echo "cat >conf$$subs.awk <<_ACEOF" &&
16059 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16061 } >conf$$subs.sh ||
16062 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16063 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16065 for ac_last_try in false false false false false :; do
16066 . ./conf$$subs.sh ||
16067 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16069 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16070 if test $ac_delim_n = $ac_delim_num; then
16072 elif $ac_last_try; then
16073 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16075 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16078 rm -f conf$$subs.sh
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16085 s/^/S["/; s
/!.
*/"]=/
16095 s/\(.\{148\}\).*/\1/
16097 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16102 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16109 s/\(.\{148\}\).*/\1/
16111 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16115 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16120 ' <conf$$subs.awk | sed '
16125 ' >>$CONFIG_STATUS || ac_write_fail=1
16126 rm -f conf$$subs.awk
16127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16130 for (key in S) S_is_set[key] = 1
16136 nfields = split(line, field, "@
")
16138 len = length(field[1])
16139 for (i = 2; i < nfields; i++) {
16141 keylen = length(key)
16142 if (S_is_set[key]) {
16144 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16145 len += length(value) + length(field[++i])
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16158 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16161 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16162 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16165 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16166 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16167 # trailing colons and then remove the whole line if VPATH becomes empty
16168 # (actually we leave an empty line to preserve line numbers).
16169 if test "x
$srcdir" = x.; then
16170 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16171 s/:*\$(srcdir):*/:/
16172 s/:*\${srcdir}:*/:/
16174 s/^\([^=]*=[ ]*\):*/\1/
16180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16181 fi # test -n "$CONFIG_FILES"
16183 # Set up the scripts for CONFIG_HEADERS section.
16184 # No need to generate them if there are no CONFIG_HEADERS.
16185 # This happens for instance with `./config.status Makefile'.
16186 if test -n "$CONFIG_HEADERS"; then
16187 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16191 # Transform confdefs.h into an awk script `defines.awk', embedded as
16192 # here-document in config.status, that substitutes the proper values into
16193 # config.h.in to produce config.h.
16195 # Create a delimiter string that does not exist in confdefs.h, to ease
16196 # handling of long lines.
16198 for ac_last_try in false false :; do
16199 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16200 if test -z "$ac_t"; then
16202 elif $ac_last_try; then
16203 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16205 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16209 # For the awk script, D is an array of macro values keyed by name,
16210 # likewise P contains macro parameters if any. Preserve backslash
16211 # newline sequences.
16213 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16215 s/.\{148\}/&'"$ac_delim"'/g
16218 s/^[ ]*#[ ]*define[ ][ ]*/ /
16225 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16227 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16231 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16232 D["\
1"]=" \
3\\\\\\n
"\\/p
16234 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16239 s/.\{148\}/&'"$ac_delim"'/g
16244 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16247 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16249 ' <confdefs.h | sed '
16250 s/'"$ac_delim"'/"\\\
16251 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16254 for (key in D) D_is_set[key] = 1
16257 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16259 split(line, arg, " ")
16260 if (arg[1] == "#") {
16264 defundef
= substr
(arg
[1], 2)
16267 split(mac1
, mac2
, "(") #)
16269 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16270 if (D_is_set
[macro
]) {
16271 # Preserve the white space surrounding the "#".
16272 print prefix
"define", macro P
[macro
] D
[macro
]
16275 # Replace #undef with comments. This is necessary, for example,
16276 # in the case of _POSIX_SOURCE, which is predefined and required
16277 # on some systems where configure will not decide to define it.
16278 if (defundef
== "undef") {
16279 print
"/*", prefix defundef
, macro
, "*/"
16287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16288 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16289 fi # test -n "$CONFIG_HEADERS"
16292 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16297 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16299 case $ac_mode$ac_tag in
16301 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16302 :[FH
]-) ac_tag
=-:-;;
16303 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16320 -) ac_f
="$tmp/stdin";;
16321 *) # Look for the file first in the build tree, then in the source tree
16322 # (if the path is not absolute). The absolute path cannot be DOS-style,
16323 # because $ac_f cannot contain `:'.
16327 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16329 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16331 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16332 as_fn_append ac_file_inputs
" '$ac_f'"
16335 # Let's still pretend it is `configure' which instantiates (i.e., don't
16336 # use $as_me), people would be surprised to read:
16337 # /* config.h. Generated by config.status. */
16338 configure_input
='Generated from '`
16339 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16341 if test x
"$ac_file" != x-
; then
16342 configure_input
="$ac_file. $configure_input"
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16344 $as_echo "$as_me: creating $ac_file" >&6;}
16346 # Neutralize special characters interpreted by sed in replacement strings.
16347 case $configure_input in #(
16348 *\
&* |
*\|
* |
*\\* )
16349 ac_sed_conf_input
=`$as_echo "$configure_input" |
16350 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16351 *) ac_sed_conf_input
=$configure_input;;
16355 *:-:* |
*:-) cat >"$tmp/stdin" \
16356 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16361 ac_dir
=`$as_dirname -- "$ac_file" ||
16362 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16363 X"$ac_file" : 'X\(//\)[^/]' \| \
16364 X"$ac_file" : 'X\(//\)$' \| \
16365 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16366 $as_echo X"$ac_file" |
16367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16371 /^X\(\/\/\)[^/].*/{
16384 as_dir
="$ac_dir"; as_fn_mkdir_p
16388 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16390 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16391 # A ".." for each directory in $ac_dir_suffix.
16392 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16393 case $ac_top_builddir_sub in
16394 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16395 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16398 ac_abs_top_builddir
=$ac_pwd
16399 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16400 # for backward compatibility:
16401 ac_top_builddir
=$ac_top_build_prefix
16404 .
) # We are building in place.
16406 ac_top_srcdir
=$ac_top_builddir_sub
16407 ac_abs_top_srcdir
=$ac_pwd ;;
16408 [\\/]* | ?
:[\\/]* ) # Absolute name.
16409 ac_srcdir
=$srcdir$ac_dir_suffix;
16410 ac_top_srcdir
=$srcdir
16411 ac_abs_top_srcdir
=$srcdir ;;
16412 *) # Relative name.
16413 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16414 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16415 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16417 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16427 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16428 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16430 ac_MKDIR_P
=$MKDIR_P
16432 [\\/$
]* | ?
:[\\/]* ) ;;
16433 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16438 # If the template does not know about datarootdir, expand it.
16439 # FIXME: This hack should be removed a few years after 2.60.
16440 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16451 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16452 *datarootdir
*) ac_datarootdir_seen
=yes;;
16453 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16455 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16458 ac_datarootdir_hack='
16459 s&@datadir@&$datadir&g
16460 s&@docdir@&$docdir&g
16461 s&@infodir@&$infodir&g
16462 s&@localedir@&$localedir&g
16463 s&@mandir@&$mandir&g
16464 s&\\\${datarootdir}&$datarootdir&g' ;;
16468 # Neutralize VPATH when `$srcdir' = `.'.
16469 # Shell code in configure.ac might set extrasub.
16470 # FIXME: do we really want to maintain this feature?
16471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16472 ac_sed_extra="$ac_vpsub
16475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16477 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16478 s|@configure_input@|
$ac_sed_conf_input|
;t t
16479 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16480 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16481 s
&@srcdir@
&$ac_srcdir&;t t
16482 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16483 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16484 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16485 s
&@builddir@
&$ac_builddir&;t t
16486 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16487 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16488 s
&@INSTALL@
&$ac_INSTALL&;t t
16489 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16490 $ac_datarootdir_hack
16492 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
16493 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16496 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16499 which seems to be undefined. Please make sure it is defined." >&5
16500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16501 which seems to be undefined. Please make sure it is defined." >&2;}
16505 -) cat "$tmp/out" && rm -f "$tmp/out";;
16506 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16508 || as_fn_error "could not create $ac_file" "$LINENO" 5
16514 if test x"$ac_file" != x-; then
16516 $as_echo "/* $configure_input */" \
16517 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16518 } >"$tmp/config.h" \
16519 || as_fn_error "could not create $ac_file" "$LINENO" 5
16520 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16522 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16525 mv "$tmp/config.h" "$ac_file" \
16526 || as_fn_error "could not create $ac_file" "$LINENO" 5
16529 $as_echo "/* $configure_input */" \
16530 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16531 || as_fn_error "could not create -" "$LINENO" 5
16533 # Compute "$ac_file"'s index
in $config_headers.
16536 for _am_header
in $config_headers :; do
16537 case $_am_header in
16538 $_am_arg |
$_am_arg:* )
16541 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16544 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16545 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16546 X"$_am_arg" : 'X\(//\)[^/]' \| \
16547 X"$_am_arg" : 'X\(//\)$' \| \
16548 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16549 $as_echo X"$_am_arg" |
16550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16554 /^X\(\/\/\)[^/].*/{
16566 s/.*/./; q'`/stamp-h
$_am_stamp_count
16569 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16570 $as_echo "$as_me: executing $ac_file commands" >&6;}
16575 case $ac_file$ac_mode in
16577 # Only add multilib support code if we just rebuilt the top-level
16579 case " $CONFIG_FILES " in
16581 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
16584 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16585 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16586 # are listed without --file. Let's play safe and only enable the eval
16587 # if we detect the quoting.
16588 case $CONFIG_FILES in
16589 *\'*) eval set x
"$CONFIG_FILES" ;;
16590 *) set x
$CONFIG_FILES ;;
16595 # Strip MF so we end up with the name of the file.
16596 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16597 # Check whether this is an Automake generated Makefile or not.
16598 # We used to match only the files named `Makefile.in', but
16599 # some people rename them; so instead we look at the file content.
16600 # Grep'ing the first line is not enough: some people post-process
16601 # each Makefile.in and add a new line on top of each file to say so.
16602 # Grep'ing the whole file is not good either: AIX grep has a line
16603 # limit of 2048, but all sed's we know have understand at least 4000.
16604 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16605 dirpart
=`$as_dirname -- "$mf" ||
16606 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16607 X"$mf" : 'X\(//\)[^/]' \| \
16608 X"$mf" : 'X\(//\)$' \| \
16609 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16615 /^X\(\/\/\)[^/].*/{
16631 # Extract the definition of DEPDIR, am__include, and am__quote
16632 # from the Makefile without running `make'.
16633 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16634 test -z "$DEPDIR" && continue
16635 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16636 test -z "am__include" && continue
16637 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16638 # When using ansi2knr, U may be empty or an underscore; expand it
16639 U
=`sed -n 's/^U = //p' < "$mf"`
16640 # Find all dependency output files, they are included files with
16641 # $(DEPDIR) in their names. We invoke sed twice because it is the
16642 # simplest approach to changing $(DEPDIR) to its actual value in the
16644 for file in `sed -n "
16645 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16646 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16647 # Make sure the directory exists.
16648 test -f "$dirpart/$file" && continue
16649 fdir
=`$as_dirname -- "$file" ||
16650 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16651 X"$file" : 'X\(//\)[^/]' \| \
16652 X"$file" : 'X\(//\)$' \| \
16653 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16654 $as_echo X"$file" |
16655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16659 /^X\(\/\/\)[^/].*/{
16672 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16673 # echo "creating $dirpart/$file"
16674 echo '# dummy' > "$dirpart/$file"
16681 # See if we are running on zsh, and set the options which allow our
16682 # commands through without removal of \ escapes.
16683 if test -n "${ZSH_VERSION+set}" ; then
16684 setopt NO_GLOB_SUBST
16687 cfgfile
="${ofile}T"
16688 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16691 cat <<_LT_EOF >> "$cfgfile"
16694 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16695 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16697 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16699 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16700 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16701 # Written by Gordon Matzigkeit, 1996
16703 # This file is part of GNU Libtool.
16705 # GNU Libtool is free software; you can redistribute it and/or
16706 # modify it under the terms of the GNU General Public License as
16707 # published by the Free Software Foundation; either version 2 of
16708 # the License, or (at your option) any later version.
16710 # As a special exception to the GNU General Public License,
16711 # if you distribute this file as part of a program or library that
16712 # is built using GNU Libtool, you may include this file under the
16713 # same distribution terms that you use for the rest of that program.
16715 # GNU Libtool is distributed in the hope that it will be useful,
16716 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16718 # GNU General Public License for more details.
16720 # You should have received a copy of the GNU General Public License
16721 # along with GNU Libtool; see the file COPYING. If not, a copy
16722 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16723 # obtained by writing to the Free Software Foundation, Inc.,
16724 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16727 # The names of the tagged configurations supported by this script.
16728 available_tags="GO "
16730 # ### BEGIN LIBTOOL CONFIG
16732 # A sed program that does not truncate output.
16735 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16736 Xsed="\$SED -e 1s/^X//"
16738 # A grep program that handles long lines.
16744 # A literal string matcher.
16747 # Shell to use when invoking shell scripts.
16750 # An echo program that protects backslashes.
16753 # Which release of libtool.m4 was used?
16754 macro_version=$macro_version
16755 macro_revision=$macro_revision
16757 # Whether or not to build shared libraries.
16758 build_libtool_libs=$enable_shared
16760 # Whether or not to build static libraries.
16761 build_old_libs=$enable_static
16763 # What type of objects to build.
16766 # Whether or not to optimize for fast installation.
16767 fast_install=$enable_fast_install
16770 host_alias=$host_alias
16774 # The build system.
16775 build_alias=$build_alias
16779 # A BSD- or MS-compatible name lister.
16782 # Whether we need soft or hard links.
16785 # What is the maximum length of a command?
16786 max_cmd_len=$max_cmd_len
16788 # Object file suffix (normally "o").
16791 # Executable file suffix (normally "").
16794 # whether the shell understands "unset".
16797 # turn spaces into newlines.
16800 # turn newlines into spaces.
16803 # An object symbol dumper.
16804 OBJDUMP=$lt_OBJDUMP
16806 # Method to check whether dependent libraries are shared objects.
16807 deplibs_check_method=$lt_deplibs_check_method
16809 # Command to use when deplibs_check_method == "file_magic".
16810 file_magic_cmd=$lt_file_magic_cmd
16814 AR_FLAGS=$lt_AR_FLAGS
16816 # A symbol stripping program.
16819 # Commands used to install an old-style archive.
16821 old_postinstall_cmds=$lt_old_postinstall_cmds
16822 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16824 # Whether to use a lock for old archive extraction.
16825 lock_old_archive_extraction=$lock_old_archive_extraction
16830 # LTCC compiler flags.
16831 LTCFLAGS=$lt_CFLAGS
16833 # Take the output of nm and produce a listing of raw symbols and C names.
16834 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16836 # Transform the output of nm in a proper C declaration.
16837 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16839 # Transform the output of nm in a C name address pair.
16840 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16842 # Transform the output of nm in a C name address pair when lib prefix is needed.
16843 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16845 # The name of the directory that contains temporary libtool files.
16848 # Used to examine libraries when file_magic_cmd begins with "file".
16849 MAGIC_CMD=$MAGIC_CMD
16851 # Must we lock files when doing compilation?
16852 need_locks=$lt_need_locks
16854 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16855 DSYMUTIL=$lt_DSYMUTIL
16857 # Tool to change global to local symbols on Mac OS X.
16860 # Tool to manipulate fat objects and archives on Mac OS X.
16863 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16866 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16867 OTOOL64=$lt_OTOOL64
16869 # Old archive suffix (normally "a").
16872 # Shared library suffix (normally ".so").
16873 shrext_cmds=$lt_shrext_cmds
16875 # The commands to extract the exported symbol list from a shared archive.
16876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16878 # Variables whose values should be saved in libtool wrapper scripts and
16879 # restored at link time.
16880 variables_saved_for_relink=$lt_variables_saved_for_relink
16882 # Do we need the "lib" prefix for modules?
16883 need_lib_prefix=$need_lib_prefix
16885 # Do we need a version for libraries?
16886 need_version=$need_version
16888 # Library versioning type.
16889 version_type=$version_type
16891 # Shared library runtime path variable.
16892 runpath_var=$runpath_var
16894 # Shared library path variable.
16895 shlibpath_var=$shlibpath_var
16897 # Is shlibpath searched before the hard-coded library search path?
16898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16900 # Format of library name prefix.
16901 libname_spec=$lt_libname_spec
16903 # List of archive names. First name is the real one, the rest are links.
16904 # The last name is the one that the linker finds with -lNAME
16905 library_names_spec=$lt_library_names_spec
16907 # The coded name of the library, if different from the real name.
16908 soname_spec=$lt_soname_spec
16910 # Permission mode override for installation of shared libraries.
16911 install_override_mode=$lt_install_override_mode
16913 # Command to use after installation of a shared archive.
16914 postinstall_cmds=$lt_postinstall_cmds
16916 # Command to use after uninstallation of a shared archive.
16917 postuninstall_cmds=$lt_postuninstall_cmds
16919 # Commands used to finish a libtool library installation in a directory.
16920 finish_cmds=$lt_finish_cmds
16922 # As "finish_cmds", except a single script fragment to be evaled but
16924 finish_eval=$lt_finish_eval
16926 # Whether we should hardcode library paths into libraries.
16927 hardcode_into_libs=$hardcode_into_libs
16929 # Compile-time system search path for libraries.
16930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16932 # Run-time system search path for libraries.
16933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16935 # Whether dlopen is supported.
16936 dlopen_support=$enable_dlopen
16938 # Whether dlopen of programs is supported.
16939 dlopen_self=$enable_dlopen_self
16941 # Whether dlopen of statically linked programs is supported.
16942 dlopen_self_static=$enable_dlopen_self_static
16944 # Commands to strip libraries.
16945 old_striplib=$lt_old_striplib
16946 striplib=$lt_striplib
16949 # The linker used to build libraries.
16952 # How to create reloadable object files.
16953 reload_flag=$lt_reload_flag
16954 reload_cmds=$lt_reload_cmds
16956 # Commands used to build an old-style archive.
16957 old_archive_cmds=$lt_old_archive_cmds
16959 # A language specific compiler.
16962 # Is the compiler the GNU compiler?
16965 # Compiler flag to turn off builtin functions.
16966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16968 # How to pass a linker flag through the compiler.
16969 wl=$lt_lt_prog_compiler_wl
16971 # Additional compiler flags for building library objects.
16972 pic_flag=$lt_lt_prog_compiler_pic
16974 # Compiler flag to prevent dynamic linking.
16975 link_static_flag=$lt_lt_prog_compiler_static
16977 # Does compiler simultaneously support -c and -o options?
16978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16980 # Whether or not to add -lc for building shared libraries.
16981 build_libtool_need_lc=$archive_cmds_need_lc
16983 # Whether or not to disallow shared libs when runtime libs are static.
16984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16986 # Compiler flag to allow reflexive dlopens.
16987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16989 # Compiler flag to generate shared objects directly from archives.
16990 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16992 # Whether the compiler copes with passing no objects directly.
16993 compiler_needs_object=$lt_compiler_needs_object
16995 # Create an old-style archive from a shared archive.
16996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16998 # Create a temporary old-style archive to link instead of a shared archive.
16999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17001 # Commands used to build a shared archive.
17002 archive_cmds=$lt_archive_cmds
17003 archive_expsym_cmds=$lt_archive_expsym_cmds
17005 # Commands used to build a loadable module if different from building
17006 # a shared archive.
17007 module_cmds=$lt_module_cmds
17008 module_expsym_cmds=$lt_module_expsym_cmds
17010 # Whether we are building with GNU ld or not.
17011 with_gnu_ld=$lt_with_gnu_ld
17013 # Flag that allows shared libraries with undefined symbols to be built.
17014 allow_undefined_flag=$lt_allow_undefined_flag
17016 # Flag that enforces no undefined symbols.
17017 no_undefined_flag=$lt_no_undefined_flag
17019 # Flag to hardcode \$libdir into a binary during linking.
17020 # This must work even if \$libdir does not exist
17021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17023 # If ld is used when linking, flag to hardcode \$libdir into a binary
17024 # during linking. This must work even if \$libdir does not exist.
17025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17027 # Whether we need a single "-rpath" flag with a separated argument.
17028 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17030 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17031 # DIR into the resulting binary.
17032 hardcode_direct=$hardcode_direct
17034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17035 # DIR into the resulting binary and the resulting library dependency is
17036 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17037 # library is relocated.
17038 hardcode_direct_absolute=$hardcode_direct_absolute
17040 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17041 # into the resulting binary.
17042 hardcode_minus_L=$hardcode_minus_L
17044 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17045 # into the resulting binary.
17046 hardcode_shlibpath_var=$hardcode_shlibpath_var
17048 # Set to "yes" if building a shared library automatically hardcodes DIR
17049 # into the library and all subsequent libraries and executables linked
17051 hardcode_automatic=$hardcode_automatic
17053 # Set to yes if linker adds runtime paths of dependent libraries
17054 # to runtime path list.
17055 inherit_rpath=$inherit_rpath
17057 # Whether libtool must link a program against all its dependency libraries.
17058 link_all_deplibs=$link_all_deplibs
17060 # Fix the shell variable \$srcfile for the compiler.
17061 fix_srcfile_path=$lt_fix_srcfile_path
17063 # Set to "yes" if exported symbols are required.
17064 always_export_symbols=$always_export_symbols
17066 # The commands to list exported symbols.
17067 export_symbols_cmds=$lt_export_symbols_cmds
17069 # Symbols that should not be listed in the preloaded symbols.
17070 exclude_expsyms=$lt_exclude_expsyms
17072 # Symbols that must always be exported.
17073 include_expsyms=$lt_include_expsyms
17075 # Commands necessary for linking programs (against libraries) with templates.
17076 prelink_cmds=$lt_prelink_cmds
17078 # Specify filename containing input files.
17079 file_list_spec=$lt_file_list_spec
17081 # How to hardcode a shared library path into an executable.
17082 hardcode_action=$hardcode_action
17084 # ### END LIBTOOL CONFIG
17090 cat <<\_LT_EOF
>> "$cfgfile"
17091 # AIX sometimes has problems with the GCC collect2 program. For some
17092 # reason, if we set the COLLECT_NAMES environment variable, the problems
17093 # vanish in a puff of smoke.
17094 if test "X${COLLECT_NAMES+set}" != Xset
; then
17096 export COLLECT_NAMES
17103 ltmain
="$ac_aux_dir/ltmain.sh"
17106 # We use sed instead of cat because bash on DJGPP gets confused if
17107 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17108 # text mode, it properly converts lines to CR/LF. This bash problem
17109 # is reportedly fixed, but why not run on old versions too?
17110 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17111 ||
(rm -f "$cfgfile"; exit 1)
17115 cat << \_LT_EOF
>> "$cfgfile"
17117 # func_dirname file append nondir_replacement
17118 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17119 # otherwise set result to NONDIR_REPLACEMENT.
17123 */*) func_dirname_result
="${1%/*}${2}" ;;
17124 * ) func_dirname_result
="${3}" ;;
17128 # func_basename file
17131 func_basename_result
="${1##*/}"
17134 # func_dirname_and_basename file append nondir_replacement
17135 # perform func_basename and func_dirname in a single function
17137 # dirname: Compute the dirname of FILE. If nonempty,
17138 # add APPEND to the result, otherwise set result
17139 # to NONDIR_REPLACEMENT.
17140 # value returned in "$func_dirname_result"
17141 # basename: Compute filename of FILE.
17142 # value retuned in "$func_basename_result"
17143 # Implementation must be kept synchronized with func_dirname
17144 # and func_basename. For efficiency, we do not delegate to
17145 # those functions but instead duplicate the functionality here.
17146 func_dirname_and_basename
()
17149 */*) func_dirname_result
="${1%/*}${2}" ;;
17150 * ) func_dirname_result
="${3}" ;;
17152 func_basename_result
="${1##*/}"
17155 # func_stripname prefix suffix name
17156 # strip PREFIX and SUFFIX off of NAME.
17157 # PREFIX and SUFFIX must not contain globbing or regex special
17158 # characters, hashes, percent signs, but SUFFIX may contain a leading
17159 # dot (in which case that matches only a dot).
17162 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17163 # positional parameters, so assign one to ordinary parameter first.
17164 func_stripname_result
=${3}
17165 func_stripname_result
=${func_stripname_result#"${1}"}
17166 func_stripname_result
=${func_stripname_result%"${2}"}
17172 func_opt_split_opt
=${1%%=*}
17173 func_opt_split_arg
=${1#*=}
17180 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17181 *) func_lo2o_result
=${1} ;;
17185 # func_xform libobj-or-source
17188 func_xform_result
=${1%.*}.lo
17191 # func_arith arithmetic-term...
17194 func_arith_result
=$
(( $
* ))
17198 # STRING may not start with a hyphen.
17201 func_len_result
=${#1}
17206 *) # Bourne compatible functions.
17207 cat << \_LT_EOF
>> "$cfgfile"
17209 # func_dirname file append nondir_replacement
17210 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17211 # otherwise set result to NONDIR_REPLACEMENT.
17214 # Extract subdirectory from the argument.
17215 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17216 if test "X$func_dirname_result" = "X${1}"; then
17217 func_dirname_result
="${3}"
17219 func_dirname_result
="$func_dirname_result${2}"
17223 # func_basename file
17226 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17230 # func_stripname prefix suffix name
17231 # strip PREFIX and SUFFIX off of NAME.
17232 # PREFIX and SUFFIX must not contain globbing or regex special
17233 # characters, hashes, percent signs, but SUFFIX may contain a leading
17234 # dot (in which case that matches only a dot).
17235 # func_strip_suffix prefix name
17239 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17240 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17245 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17246 my_sed_long_arg
='1s/^-[^=]*=//'
17251 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17252 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17258 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17261 # func_xform libobj-or-source
17264 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17267 # func_arith arithmetic-term...
17270 func_arith_result
=`expr "$@"`
17274 # STRING may not start with a hyphen.
17277 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17283 case $lt_shell_append in
17285 cat << \_LT_EOF
>> "$cfgfile"
17287 # func_append var value
17288 # Append VALUE to the end of shell variable VAR.
17296 cat << \_LT_EOF
>> "$cfgfile"
17298 # func_append var value
17299 # Append VALUE to the end of shell variable VAR.
17310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17311 ||
(rm -f "$cfgfile"; exit 1)
17313 mv -f "$cfgfile" "$ofile" ||
17314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17318 cat <<_LT_EOF >> "$ofile"
17320 # ### BEGIN LIBTOOL TAG CONFIG: GO
17322 # The linker used to build libraries.
17325 # How to create reloadable object files.
17326 reload_flag=$lt_reload_flag_GO
17327 reload_cmds=$lt_reload_cmds_GO
17329 # Commands used to build an old-style archive.
17330 old_archive_cmds=$lt_old_archive_cmds_GO
17332 # A language specific compiler.
17335 # Is the compiler the GNU compiler?
17338 # Compiler flag to turn off builtin functions.
17339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17341 # How to pass a linker flag through the compiler.
17342 wl=$lt_lt_prog_compiler_wl_GO
17344 # Additional compiler flags for building library objects.
17345 pic_flag=$lt_lt_prog_compiler_pic_GO
17347 # Compiler flag to prevent dynamic linking.
17348 link_static_flag=$lt_lt_prog_compiler_static_GO
17350 # Does compiler simultaneously support -c and -o options?
17351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17353 # Whether or not to add -lc for building shared libraries.
17354 build_libtool_need_lc=$archive_cmds_need_lc_GO
17356 # Whether or not to disallow shared libs when runtime libs are static.
17357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17359 # Compiler flag to allow reflexive dlopens.
17360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17362 # Compiler flag to generate shared objects directly from archives.
17363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17365 # Whether the compiler copes with passing no objects directly.
17366 compiler_needs_object=$lt_compiler_needs_object_GO
17368 # Create an old-style archive from a shared archive.
17369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17371 # Create a temporary old-style archive to link instead of a shared archive.
17372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17374 # Commands used to build a shared archive.
17375 archive_cmds=$lt_archive_cmds_GO
17376 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17378 # Commands used to build a loadable module if different from building
17379 # a shared archive.
17380 module_cmds=$lt_module_cmds_GO
17381 module_expsym_cmds=$lt_module_expsym_cmds_GO
17383 # Whether we are building with GNU ld or not.
17384 with_gnu_ld=$lt_with_gnu_ld_GO
17386 # Flag that allows shared libraries with undefined symbols to be built.
17387 allow_undefined_flag=$lt_allow_undefined_flag_GO
17389 # Flag that enforces no undefined symbols.
17390 no_undefined_flag=$lt_no_undefined_flag_GO
17392 # Flag to hardcode \$libdir into a binary during linking.
17393 # This must work even if \$libdir does not exist
17394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17396 # If ld is used when linking, flag to hardcode \$libdir into a binary
17397 # during linking. This must work even if \$libdir does not exist.
17398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17400 # Whether we need a single "-rpath" flag with a separated argument.
17401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17404 # DIR into the resulting binary.
17405 hardcode_direct=$hardcode_direct_GO
17407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17408 # DIR into the resulting binary and the resulting library dependency is
17409 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17410 # library is relocated.
17411 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17413 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17414 # into the resulting binary.
17415 hardcode_minus_L=$hardcode_minus_L_GO
17417 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17418 # into the resulting binary.
17419 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17421 # Set to "yes" if building a shared library automatically hardcodes DIR
17422 # into the library and all subsequent libraries and executables linked
17424 hardcode_automatic=$hardcode_automatic_GO
17426 # Set to yes if linker adds runtime paths of dependent libraries
17427 # to runtime path list.
17428 inherit_rpath=$inherit_rpath_GO
17430 # Whether libtool must link a program against all its dependency libraries.
17431 link_all_deplibs=$link_all_deplibs_GO
17433 # Fix the shell variable \$srcfile for the compiler.
17434 fix_srcfile_path=$lt_fix_srcfile_path_GO
17436 # Set to "yes" if exported symbols are required.
17437 always_export_symbols=$always_export_symbols_GO
17439 # The commands to list exported symbols.
17440 export_symbols_cmds=$lt_export_symbols_cmds_GO
17442 # Symbols that should not be listed in the preloaded symbols.
17443 exclude_expsyms=$lt_exclude_expsyms_GO
17445 # Symbols that must always be exported.
17446 include_expsyms=$lt_include_expsyms_GO
17448 # Commands necessary for linking programs (against libraries) with templates.
17449 prelink_cmds=$lt_prelink_cmds_GO
17451 # Specify filename containing input files.
17452 file_list_spec=$lt_file_list_spec_GO
17454 # How to hardcode a shared library path into an executable.
17455 hardcode_action=$hardcode_action_GO
17457 # ### END LIBTOOL TAG CONFIG: GO
17461 "default":C
) if test -n "$CONFIG_FILES"; then
17462 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17463 # that multilib installs will end up installed in the correct place.
17464 # The testsuite needs it for multilib-aware ABI baseline files.
17465 # To work around this not being passed down from config-ml.in ->
17466 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17467 # append it here. Only modify Makefiles that have just been created.
17469 # Also, get rid of this simulated-VPATH thing that automake does.
17470 cat > vpsed
<< \_EOF
17471 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17473 for i
in $SUBDIRS; do
17474 case $CONFIG_FILES in
17476 #echo "Adding MULTISUBDIR to $i/Makefile"
17477 sed -f vpsed
$i/Makefile
> tmp
17478 grep '^MULTISUBDIR =' Makefile
>> tmp
17493 ac_clean_files
=$ac_clean_files_save
17495 test $ac_write_fail = 0 ||
17496 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17499 # configure is writing to config.log, and then calls config.status.
17500 # config.status does its own redirection, appending to config.log.
17501 # Unfortunately, on DOS this fails, as config.log is still kept open
17502 # by configure, so config.status won't be able to write to it; its
17503 # output is simply discarded. So we exec the FD to /dev/null,
17504 # effectively closing config.log, so it can be properly (re)opened and
17505 # appended to by config.status. When coming back to configure, we
17506 # need to make the FD available again.
17507 if test "$no_create" != yes; then
17509 ac_config_status_args
=
17510 test "$silent" = yes &&
17511 ac_config_status_args
="$ac_config_status_args --quiet"
17513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17516 # would make configure fail if this is the last instruction.
17517 $ac_cs_success || as_fn_exit $?
17519 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17521 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}