2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='package-unused'
589 PACKAGE_TARNAME
='libgo'
590 PACKAGE_VERSION
='version-unused'
591 PACKAGE_STRING
='package-unused version-unused'
595 ac_unique_file
="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
636 SYSROOT_CFLAGS_FOR_TARGET
637 HAVE_STATIC_LINK_FALSE
638 HAVE_STATIC_LINK_TRUE
639 HAVE_STAT_TIMESPEC_FALSE
640 HAVE_STAT_TIMESPEC_TRUE
641 STRUCT_EPOLL_EVENT_FD_OFFSET
642 SIZEOF_STRUCT_EPOLL_EVENT
647 HAVE_STRERROR_R_FALSE
649 HAVE_SYS_MMAN_H_FALSE
658 USING_SPLIT_STACK_FALSE
659 USING_SPLIT_STACK_TRUE
663 GO_SYSCALL_OS_ARCH_FILE
665 GO_LIBCALL_OS_ARCH_FILE
682 LIBGO_IS_SOLARIS_FALSE
683 LIBGO_IS_SOLARIS_TRUE
686 LIBGO_IS_DRAGONFLY_FALSE
687 LIBGO_IS_DRAGONFLY_TRUE
688 LIBGO_IS_OPENBSD_FALSE
689 LIBGO_IS_OPENBSD_TRUE
690 LIBGO_IS_NETBSD_FALSE
696 LIBGO_IS_FREEBSD_FALSE
697 LIBGO_IS_FREEBSD_TRUE
698 LIBGO_IS_DARWIN_FALSE
706 nover_glibgo_toolexeclibdir
707 glibgo_toolexeclibdir
735 MAINTAINER_MODE_FALSE
738 am__fastdepCCAS_FALSE
774 INSTALL_STRIP_PROGRAM
830 program_transform_name
843 enable_option_checking
846 enable_dependency_tracking
847 enable_maintainer_mode
855 enable_version_specific_runtime_libs
859 with_system_libunwind
861 ac_precious_vars
='build_alias
868 # Initialize some variables set by options.
870 ac_init_version
=false
871 ac_unrecognized_opts
=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
882 program_transform_name
=s
,x
,x
,
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir
='${exec_prefix}/bin'
897 sbindir
='${exec_prefix}/sbin'
898 libexecdir
='${exec_prefix}/libexec'
899 datarootdir
='${prefix}/share'
900 datadir
='${datarootdir}'
901 sysconfdir
='${prefix}/etc'
902 sharedstatedir
='${prefix}/com'
903 localstatedir
='${prefix}/var'
904 includedir
='${prefix}/include'
905 oldincludedir
='/usr/include'
906 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir
='${datarootdir}/info'
912 libdir
='${exec_prefix}/lib'
913 localedir
='${datarootdir}/locale'
914 mandir
='${datarootdir}/man'
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\
$ac_option
928 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
939 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
941 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
944 -build |
--build |
--buil |
--bui |
--bu)
945 ac_prev
=build_alias
;;
946 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
947 build_alias
=$ac_optarg ;;
949 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
950 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
951 ac_prev
=cache_file
;;
952 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
953 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
954 cache_file
=$ac_optarg ;;
957 cache_file
=config.cache
;;
959 -datadir |
--datadir |
--datadi |
--datad)
961 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
962 datadir
=$ac_optarg ;;
964 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
965 |
--dataroo |
--dataro |
--datar)
966 ac_prev
=datarootdir
;;
967 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
968 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
969 datarootdir
=$ac_optarg ;;
971 -disable-* |
--disable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 as_fn_error $?
"invalid feature name: $ac_useropt"
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=no
;;
987 -docdir |
--docdir |
--docdi |
--doc |
--do)
989 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
992 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
994 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
997 -enable-* |
--enable-*)
998 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1001 as_fn_error $?
"invalid feature name: $ac_useropt"
1002 ac_useropt_orig
=$ac_useropt
1003 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_
$ac_useropt"
1008 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep
=', ';;
1011 eval enable_
$ac_useropt=\
$ac_optarg ;;
1013 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1014 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1015 |
--exec |
--exe |
--ex)
1016 ac_prev
=exec_prefix
;;
1017 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1018 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1019 |
--exec=* |
--exe=* |
--ex=*)
1020 exec_prefix
=$ac_optarg ;;
1022 -gas |
--gas |
--ga |
--g)
1023 # Obsolete; use --with-gas.
1026 -help |
--help |
--hel |
--he |
-h)
1027 ac_init_help
=long
;;
1028 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1029 ac_init_help
=recursive
;;
1030 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1031 ac_init_help
=short
;;
1033 -host |
--host |
--hos |
--ho)
1034 ac_prev
=host_alias
;;
1035 -host=* |
--host=* |
--hos=* |
--ho=*)
1036 host_alias
=$ac_optarg ;;
1038 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1040 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1042 htmldir
=$ac_optarg ;;
1044 -includedir |
--includedir |
--includedi |
--included |
--include \
1045 |
--includ |
--inclu |
--incl |
--inc)
1046 ac_prev
=includedir
;;
1047 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1048 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1049 includedir
=$ac_optarg ;;
1051 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1053 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1054 infodir
=$ac_optarg ;;
1056 -libdir |
--libdir |
--libdi |
--libd)
1058 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1059 libdir
=$ac_optarg ;;
1061 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1062 |
--libexe |
--libex |
--libe)
1063 ac_prev
=libexecdir
;;
1064 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1065 |
--libexe=* |
--libex=* |
--libe=*)
1066 libexecdir
=$ac_optarg ;;
1068 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1069 ac_prev
=localedir
;;
1070 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1071 localedir
=$ac_optarg ;;
1073 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1074 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1075 ac_prev
=localstatedir
;;
1076 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1077 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1078 localstatedir
=$ac_optarg ;;
1080 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1082 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1083 mandir
=$ac_optarg ;;
1085 -nfp |
--nfp |
--nf)
1086 # Obsolete; use --without-fp.
1089 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1090 |
--no-cr |
--no-c |
-n)
1093 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1094 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1097 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1098 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1099 |
--oldin |
--oldi |
--old |
--ol |
--o)
1100 ac_prev
=oldincludedir
;;
1101 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1102 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1103 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1104 oldincludedir
=$ac_optarg ;;
1106 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1108 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1109 prefix
=$ac_optarg ;;
1111 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1112 |
--program-pre |
--program-pr |
--program-p)
1113 ac_prev
=program_prefix
;;
1114 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1115 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1116 program_prefix
=$ac_optarg ;;
1118 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1119 |
--program-suf |
--program-su |
--program-s)
1120 ac_prev
=program_suffix
;;
1121 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1122 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1123 program_suffix
=$ac_optarg ;;
1125 -program-transform-name |
--program-transform-name \
1126 |
--program-transform-nam |
--program-transform-na \
1127 |
--program-transform-n |
--program-transform- \
1128 |
--program-transform |
--program-transfor \
1129 |
--program-transfo |
--program-transf \
1130 |
--program-trans |
--program-tran \
1131 |
--progr-tra |
--program-tr |
--program-t)
1132 ac_prev
=program_transform_name
;;
1133 -program-transform-name=* |
--program-transform-name=* \
1134 |
--program-transform-nam=* |
--program-transform-na=* \
1135 |
--program-transform-n=* |
--program-transform-=* \
1136 |
--program-transform=* |
--program-transfor=* \
1137 |
--program-transfo=* |
--program-transf=* \
1138 |
--program-trans=* |
--program-tran=* \
1139 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1140 program_transform_name
=$ac_optarg ;;
1142 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1144 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1145 pdfdir
=$ac_optarg ;;
1147 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1149 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1152 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1153 |
-silent |
--silent |
--silen |
--sile |
--sil)
1156 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1158 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1160 sbindir
=$ac_optarg ;;
1162 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1163 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1164 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1166 ac_prev
=sharedstatedir
;;
1167 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1168 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1169 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1171 sharedstatedir
=$ac_optarg ;;
1173 -site |
--site |
--sit)
1175 -site=* |
--site=* |
--sit=*)
1178 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1180 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1181 srcdir
=$ac_optarg ;;
1183 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1184 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1185 ac_prev
=sysconfdir
;;
1186 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1187 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1188 sysconfdir
=$ac_optarg ;;
1190 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1191 ac_prev
=target_alias
;;
1192 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1193 target_alias
=$ac_optarg ;;
1195 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1198 -version |
--version |
--versio |
--versi |
--vers |
-V)
1199 ac_init_version
=: ;;
1202 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1205 as_fn_error $?
"invalid package name: $ac_useropt"
1206 ac_useropt_orig
=$ac_useropt
1207 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep
=', ';;
1215 eval with_
$ac_useropt=\
$ac_optarg ;;
1217 -without-* |
--without-*)
1218 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1221 as_fn_error $?
"invalid package name: $ac_useropt"
1222 ac_useropt_orig
=$ac_useropt
1223 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep
=', ';;
1231 eval with_
$ac_useropt=no
;;
1234 # Obsolete; use --with-x.
1237 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1238 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1239 ac_prev
=x_includes
;;
1240 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1241 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1242 x_includes
=$ac_optarg ;;
1244 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1245 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1246 ac_prev
=x_libraries
;;
1247 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1248 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1249 x_libraries
=$ac_optarg ;;
1251 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information"
1256 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 case $ac_envvar in #(
1259 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1260 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1262 eval $ac_envvar=\
$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276 if test -n "$ac_prev"; then
1277 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1278 as_fn_error $?
"missing argument to $ac_option"
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val
=\$
$ac_var
1296 # Remove trailing slashes.
1299 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\
$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$
]* | ?
:[\\/]* ) continue;;
1305 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1307 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1315 target
=$target_alias
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x
; then
1319 if test "x$build_alias" = x
; then
1320 cross_compiling
=maybe
1321 elif test "x$build_alias" != "x$host_alias"; then
1327 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1329 test "$silent" = yes && exec 6>/dev
/null
1332 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di
=`ls -di .` &&
1334 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1335 as_fn_error $?
"working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 as_fn_error $?
"pwd does not report name of working directory"
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted
=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir
=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$as_myself" : 'X\(//\)[^/]' \| \
1347 X"$as_myself" : 'X\(//\)$' \| \
1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1372 ac_srcdir_defaulted
=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1376 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1378 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1390 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 for ac_var
in $ac_precious_vars; do
1393 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1395 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1406 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking ...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1469 --build=BUILD configure
for building on BUILD
[guessed
]
1470 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1471 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1475 if test -n "$ac_init_help"; then
1476 case $ac_init_help in
1477 short | recursive
) echo "Configuration of package-unused version-unused:";;
1482 --disable-option-checking ignore unrecognized
--enable/--with options
1483 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1484 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1485 --enable-multilib build many library versions
(default
)
1486 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1487 --disable-silent-rules verbose build output
(undo
: "make V=0")
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-maintainer-mode
1493 enable make rules and dependencies not useful
(and
1494 sometimes confusing
) to the casual installer
1495 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1496 --enable-static[=PKGS
] build static libraries
[default
=yes]
1497 --enable-fast-install[=PKGS
]
1498 optimize
for fast installation
[default
=yes]
1499 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1500 --disable-werror disable building with
-Werror
1501 --enable-version-specific-runtime-libs
1502 Specify that runtime libraries should be installed
1503 in a compiler-specific directory
1506 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1507 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1508 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1509 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1511 --with-toolexeclibdir=DIR
1512 install libraries built with a cross compiler within
1514 --without-libffi don
't use libffi
1515 --without-libatomic don't use libatomic
1516 --with-system-libunwind use installed libunwind
1518 Some influential environment variables
:
1519 CC C compiler
command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1522 nonstandard directory
<lib dir
>
1523 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1524 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1525 you have headers
in a nonstandard directory
<include dir
>
1526 GOC Go compiler
command
1527 GOFLAGS Go compiler flags
1528 CCAS assembler compiler
command (defaults to CC
)
1529 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1532 Use these variables to override the choices made by
`configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to the package provider.
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1565 .) # We are building in place.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1598 package-unused configure version-unused
1599 generated by GNU Autoconf 2.69
1601 Copyright (C) 2012 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1622 *) ac_try_echo
=$ac_try;;
1624 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1628 if test -s conftest.err
; then
1629 grep -v '^ *+' conftest.err
>conftest.er1
1630 cat conftest.er1
>&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.
$ac_objext; then :
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.
$ac_ext >&5
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status
$ac_retval
1648 } # ac_fn_c_try_compile
1650 # ac_fn_c_try_link LINENO
1651 # -----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded.
1655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1656 rm -f conftest.
$ac_objext conftest
$ac_exeext
1657 if { { ac_try
="$ac_link"
1659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && {
1673 test -z "$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 } && test -s conftest$ac_exeext && {
1676 test "$cross_compiling" = yes ||
1677 test -x conftest$ac_exeext
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1686 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688 # interfere with the next link command; also delete a directory that is
1689 # left behind by Apple's compiler. We do this before executing the actions.
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1694 } # ac_fn_c_try_link
1696 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists and can be compiled using the include files in
1699 # INCLUDES, setting the cache variable VAR accordingly.
1700 ac_fn_c_check_header_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if eval \${$3+:} false; then :
1706 $as_echo_n "(cached) " >&6
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1713 if ac_fn_c_try_compile "$LINENO"; then :
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 } # ac_fn_c_check_header_compile
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1736 *) ac_try_echo
=$ac_try;;
1738 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 if test -s conftest.err
; then
1743 grep -v '^ *+' conftest.err
>conftest.er1
1744 cat conftest.er1
>&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i
&& {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.
$ac_ext >&5
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status
$ac_retval
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1770 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1771 if { { ac_try
="$ac_link"
1773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.
$ac_ext >&5
1798 ac_retval
=$ac_status
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status
$ac_retval
1806 # ac_fn_c_check_func LINENO FUNC VAR
1807 # ----------------------------------
1808 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1809 ac_fn_c_check_func
()
1811 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if eval \
${$3+:} false
; then :
1815 $as_echo_n "(cached) " >&6
1817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1821 #define $2 innocuous_$2
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char $2 (); below.
1825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1826 <limits.h> exists even on freestanding compilers. */
1829 # include <limits.h>
1831 # include <assert.h>
1836 /* Override any GCC internal prototype to avoid an error.
1837 Use char because int might match the return type of a GCC
1838 builtin and then its argument prototype would still apply. */
1843 /* The GNU C library defines this for functions which it implements
1844 to always fail with ENOSYS. Some functions are actually named
1845 something starting with __ and the normal name is an alias. */
1846 #if defined __stub_$2 || defined __stub___$2
1858 if ac_fn_c_try_link
"$LINENO"; then :
1863 rm -f core conftest.err conftest.
$ac_objext \
1864 conftest
$ac_exeext conftest.
$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 } # ac_fn_c_check_func
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1878 ac_fn_c_check_header_mongrel
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 if eval \
${$3+:} false
; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \
${$3+:} false
; then :
1885 $as_echo_n "(cached) " >&6
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1899 if ac_fn_c_try_compile
"$LINENO"; then :
1900 ac_header_compiler
=yes
1902 ac_header_compiler
=no
1904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 if ac_fn_c_try_cpp
"$LINENO"; then :
1916 ac_header_preproc
=yes
1918 ac_header_preproc
=no
1920 rm -f conftest.err conftest.i conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \
${$3+:} false
; then :
1948 $as_echo_n "(cached) " >&6
1950 eval "$3=\$ac_header_compiler"
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_header_mongrel
1960 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1961 # ----------------------------------------------------
1962 # Tries to find if the field MEMBER exists in type AGGR, after including
1963 # INCLUDES, setting cache variable VAR accordingly.
1964 ac_fn_c_check_member
()
1966 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1968 $as_echo_n "checking for $2.$3... " >&6; }
1969 if eval \
${$4+:} false
; then :
1970 $as_echo_n "(cached) " >&6
1972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1985 if ac_fn_c_try_compile
"$LINENO"; then :
1988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1995 if (sizeof ac_aggr.$3)
2001 if ac_fn_c_try_compile
"$LINENO"; then :
2006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_member
2017 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2018 # -------------------------------------------
2019 # Tests whether TYPE exists after having included INCLUDES, setting cache
2020 # variable VAR accordingly.
2021 ac_fn_c_check_type
()
2023 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if eval \
${$3+:} false
; then :
2027 $as_echo_n "(cached) " >&6
2030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2042 if ac_fn_c_try_compile
"$LINENO"; then :
2043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2055 if ac_fn_c_try_compile
"$LINENO"; then :
2060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 } # ac_fn_c_check_type
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 ac_fn_c_compute_int
()
2078 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2113 ac_hi
=$ac_mid; break
2115 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2116 if test $ac_lo -le $ac_mid; then
2120 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) < 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2157 ac_lo
=$ac_mid; break
2159 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2160 if test $ac_mid -le $ac_hi; then
2164 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile
"$LINENO"; then :
2194 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2199 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2206 static long int longval () { return $2; }
2207 static unsigned long int ulongval () { return $2; }
2214 FILE *f = fopen ("conftest.val", "w");
2219 long int i = longval ();
2222 fprintf (f, "%ld", i);
2226 unsigned long int i = ulongval ();
2229 fprintf (f, "%lu", i);
2231 /* Do not output a trailing newline, as this causes \r\n confusion
2232 on some platforms. */
2233 return ferror (f) || fclose (f) != 0;
2239 if ac_fn_c_try_run
"$LINENO"; then :
2240 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status
$ac_retval
2252 } # ac_fn_c_compute_int
2253 cat >config.log
<<_ACEOF
2254 This file contains any messages produced by compilers while
2255 running configure, to aid debugging if configure makes a mistake.
2257 It was created by package-unused $as_me version-unused, which was
2258 generated by GNU Autoconf 2.69. Invocation command line was
2270 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2271 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2272 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2273 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2274 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2277 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2279 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2280 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2281 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2282 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2283 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2284 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2285 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir
=.
2294 $as_echo "PATH: $as_dir"
2310 # Keep a trace of the command line.
2311 # Strip out --no-create and --no-recursion so they do not pile up.
2312 # Strip out --silent because we don't want to record it for future runs.
2313 # Also quote any args containing shell meta-characters.
2314 # Make two passes to allow for proper duplicate-argument suppression.
2318 ac_must_keep_next
=false
2324 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2325 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2326 |
-silent |
--silent |
--silen |
--sile |
--sil)
2329 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2334 as_fn_append ac_configure_args1
" '$ac_arg'"
2335 if test $ac_must_keep_next = true
; then
2336 ac_must_keep_next
=false
# Got value, back to normal.
2339 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2340 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2341 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2342 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2343 case "$ac_configure_args0 " in
2344 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 -* ) ac_must_keep_next
=true
;;
2350 as_fn_append ac_configure_args
" '$ac_arg'"
2355 { ac_configure_args0
=; unset ac_configure_args0
;}
2356 { ac_configure_args1
=; unset ac_configure_args1
;}
2358 # When interrupted or exit'd, cleanup temporary files, and complete
2359 # config.log. We remove comments because anyway the quotes in there
2360 # would cause problems or look ugly.
2361 # WARNING: Use '\'' to represent an apostrophe within the trap.
2362 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2363 trap 'exit_status=$?
2364 # Save into config.log some information that might help in debugging.
2368 $as_echo "## ---------------- ##
2369 ## Cache variables. ##
2370 ## ---------------- ##"
2372 # The following way of writing the cache mishandles newlines in values,
2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375 eval ac_val=\$$ac_var
2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2404 $as_echo "## ----------------- ##
2405 ## Output variables. ##
2406 ## ----------------- ##"
2408 for ac_var in $ac_subst_vars
2410 eval ac_val=\$$ac_var
2412 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -n "$ac_subst_files"; then
2419 $as_echo "## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##"
2423 for ac_var
in $ac_subst_files
2425 eval ac_val
=\$
$ac_var
2427 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2429 $as_echo "$ac_var='\''$ac_val'\''"
2434 if test -s confdefs.h; then
2435 $as_echo "## ----------- ##
2442 test "$ac_signal" != 0 &&
2443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450 for ac_signal
in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest
* confdefs.h
2458 $as_echo "/* confdefs.h */" > confdefs.h
2460 # Predefined preprocessor variables.
2462 cat >>confdefs.h
<<_ACEOF
2463 #define PACKAGE_NAME "$PACKAGE_NAME"
2466 cat >>confdefs.h
<<_ACEOF
2467 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2470 cat >>confdefs.h
<<_ACEOF
2471 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2474 cat >>confdefs.h
<<_ACEOF
2475 #define PACKAGE_STRING "$PACKAGE_STRING"
2478 cat >>confdefs.h
<<_ACEOF
2479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2482 cat >>confdefs.h
<<_ACEOF
2483 #define PACKAGE_URL "$PACKAGE_URL"
2487 # Let the site file select an alternate cache file if it wants to.
2488 # Prefer an explicitly selected file to automatically selected ones.
2491 if test -n "$CONFIG_SITE"; then
2492 # We do not want a PATH search for config.site.
2493 case $CONFIG_SITE in #((
2494 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2495 */*) ac_site_file1
=$CONFIG_SITE;;
2496 *) ac_site_file1
=.
/$CONFIG_SITE;;
2498 elif test "x$prefix" != xNONE
; then
2499 ac_site_file1
=$prefix/share
/config.site
2500 ac_site_file2
=$prefix/etc
/config.site
2502 ac_site_file1
=$ac_default_prefix/share
/config.site
2503 ac_site_file2
=$ac_default_prefix/etc
/config.site
2505 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2507 test "x$ac_site_file" = xNONE
&& continue
2508 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2511 sed 's/^/| /' "$ac_site_file" >&5
2513 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 as_fn_error $?
"failed to load site script $ac_site_file
2516 See \`config.log' for more details" "$LINENO" 5; }
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special files
2522 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2523 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2528 *) .
"./$cache_file";;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 $as_echo "$as_me: creating cache $cache_file" >&6;}
2537 # Check that the precious variables saved in the cache have kept the same
2539 ac_cache_corrupted
=false
2540 for ac_var
in $ac_precious_vars; do
2541 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2542 eval ac_new_set
=\
$ac_env_${ac_var}_set
2543 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2544 eval ac_new_val
=\
$ac_env_${ac_var}_value
2545 case $ac_old_set,$ac_new_set in
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2549 ac_cache_corrupted
=: ;;
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2553 ac_cache_corrupted
=: ;;
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w
=`echo x $ac_old_val`
2559 ac_new_val_w
=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted
=:
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\
$ac_old_val
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2578 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2579 *) ac_arg
=$ac_var=$ac_new_val ;;
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2583 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2587 if $ac_cache_corrupted; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2594 ## -------------------- ##
2595 ## Main body of script. ##
2596 ## -------------------- ##
2599 ac_cpp
='$CPP $CPPFLAGS'
2600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2609 ac_config_headers
="$ac_config_headers config.h"
2612 libtool_VERSION
=22:0:0
2615 # Default to --enable-multilib
2616 # Check whether --enable-multilib was given.
2617 if test "${enable_multilib+set}" = set; then :
2618 enableval
=$enable_multilib; case "$enableval" in
2619 yes) multilib
=yes ;;
2621 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2628 # We may get other options which we leave undocumented:
2629 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2630 # See config-ml.in if you want the gory details.
2632 if test "$srcdir" = "."; then
2633 if test "$with_target_subdir" != "."; then
2634 multi_basedir
="$srcdir/$with_multisrctop../.."
2636 multi_basedir
="$srcdir/$with_multisrctop.."
2639 multi_basedir
="$srcdir/.."
2643 # Even if the default multilib is not a cross compilation,
2644 # it may be that some of the other multilibs are.
2645 if test $cross_compiling = no
&& test $multilib = yes \
2646 && test "x${with_multisubdir}" != x
; then
2647 cross_compiling
=maybe
2650 ac_config_commands
="$ac_config_commands default-1"
2654 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2655 if test -f "$ac_dir/install-sh"; then
2657 ac_install_sh
="$ac_aux_dir/install-sh -c"
2659 elif test -f "$ac_dir/install.sh"; then
2661 ac_install_sh
="$ac_aux_dir/install.sh -c"
2663 elif test -f "$ac_dir/shtool"; then
2665 ac_install_sh
="$ac_aux_dir/shtool install -c"
2669 if test -z "$ac_aux_dir"; then
2670 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2673 # These three variables are undocumented and unsupported,
2674 # and are intended to be withdrawn in a future Autoconf release.
2675 # They can cause serious problems if a builder's source tree is in a directory
2676 # whose full name contains unusual characters.
2677 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2678 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2679 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2682 # Make sure we can run config.sub.
2683 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2684 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2687 $as_echo_n "checking build system type... " >&6; }
2688 if ${ac_cv_build+:} false
; then :
2689 $as_echo_n "(cached) " >&6
2691 ac_build_alias
=$build_alias
2692 test "x$ac_build_alias" = x
&&
2693 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2694 test "x$ac_build_alias" = x
&&
2695 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2696 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2697 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2701 $as_echo "$ac_cv_build" >&6; }
2702 case $ac_cv_build in
2704 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2707 ac_save_IFS
=$IFS; IFS
='-'
2713 # Remember, the first character of IFS is used to create $*,
2714 # except with old shells:
2717 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2721 $as_echo_n "checking host system type... " >&6; }
2722 if ${ac_cv_host+:} false
; then :
2723 $as_echo_n "(cached) " >&6
2725 if test "x$host_alias" = x
; then
2726 ac_cv_host
=$ac_cv_build
2728 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2729 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2734 $as_echo "$ac_cv_host" >&6; }
2737 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2740 ac_save_IFS
=$IFS; IFS
='-'
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2750 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2754 $as_echo_n "checking target system type... " >&6; }
2755 if ${ac_cv_target+:} false
; then :
2756 $as_echo_n "(cached) " >&6
2758 if test "x$target_alias" = x
; then
2759 ac_cv_target
=$ac_cv_host
2761 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2762 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2767 $as_echo "$ac_cv_target" >&6; }
2768 case $ac_cv_target in
2770 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2772 target
=$ac_cv_target
2773 ac_save_IFS
=$IFS; IFS
='-'
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2783 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2786 # The aliases save the names the user supplied, while $host etc.
2787 # will get canonicalized.
2788 test -n "$target_alias" &&
2789 test "$program_prefix$program_suffix$program_transform_name" = \
2791 program_prefix
=${target_alias}-
2793 target_alias
=${target_alias-$host_alias}
2795 am__api_version
='1.15'
2797 # Find a good install program. We prefer a C program (faster),
2798 # so one script is as good as another. But avoid the broken or
2799 # incompatible versions:
2800 # SysV /etc/install, /usr/sbin/install
2801 # SunOS /usr/etc/install
2802 # IRIX /sbin/install
2804 # AmigaOS /C/install, which installs bootblocks on floppy discs
2805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2808 # OS/2's system install, which has a completely different semantic
2809 # ./install, which can be erroneously created by make from ./install.sh.
2810 # Reject install programs that cannot install multiple files.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2812 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2813 if test -z "$INSTALL"; then
2814 if ${ac_cv_path_install+:} false
; then :
2815 $as_echo_n "(cached) " >&6
2817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir
=.
2822 # Account for people who put trailing slashes in PATH elements.
2823 case $as_dir/ in #((
2824 .
/ | .
// |
/[cC
]/* | \
2825 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2826 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2829 # OSF1 and SCO ODT 3.0 have their own names for install.
2830 # Don't use installbsd from OSF since it installs stuff as root
2832 for ac_prog
in ginstall scoinst
install; do
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2835 if test $ac_prog = install &&
2836 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2837 # AIX install. It has an incompatible calling convention.
2839 elif test $ac_prog = install &&
2840 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2841 # program-specific install script used by HP pwplus--don't use.
2844 rm -rf conftest.one conftest.two conftest.dir
2845 echo one
> conftest.one
2846 echo two
> conftest.two
2848 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2849 test -s conftest.one
&& test -s conftest.two
&&
2850 test -s conftest.dir
/conftest.one
&&
2851 test -s conftest.dir
/conftest.two
2853 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2866 rm -rf conftest.one conftest.two conftest.dir
2869 if test "${ac_cv_path_install+set}" = set; then
2870 INSTALL
=$ac_cv_path_install
2872 # As a last resort, use the slow shell script. Don't cache a
2873 # value for INSTALL within a source directory, because that will
2874 # break other packages using the cache if that directory is
2875 # removed, or if the value is a relative name.
2876 INSTALL
=$ac_install_sh
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2880 $as_echo "$INSTALL" >&6; }
2882 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2883 # It thinks the first close brace ends the variable substitution.
2884 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2886 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2888 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2891 $as_echo_n "checking whether build environment is sane... " >&6; }
2892 # Reject unsafe characters in $srcdir or the absolute working directory
2893 # name. Accept space and tab only in the latter.
2897 *[\\\"\
#\$\&\'\`$am_lf]*)
2898 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2901 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2902 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2905 # Do 'set' in a subshell so we don't clobber the current shell's
2906 # arguments. Must try -L first in case configure is actually a
2907 # symlink; some systems play weird games with the mod time of symlinks
2908 # (eg FreeBSD returns the mod time of the symlink's containing
2912 for am_try
in 1 2; do
2913 echo "timestamp, slept: $am_has_slept" > conftest.
file
2914 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2915 if test "$*" = "X"; then
2917 set X
`ls -t "$srcdir/configure" conftest.file`
2919 if test "$*" != "X $srcdir/configure conftest.file" \
2920 && test "$*" != "X conftest.file $srcdir/configure"; then
2922 # If neither matched, then we have a broken ls. This can happen
2923 # if, for instance, CONFIG_SHELL is bash and it inherits a
2924 # broken ls alias from the environment. This has actually
2925 # happened. Such a system could not be considered "sane".
2926 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2927 alias in your environment" "$LINENO" 5
2929 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2936 test "$2" = conftest.
file
2942 as_fn_error $?
"newly created file is older than distributed files!
2943 Check your system clock" "$LINENO" 5
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946 $as_echo "yes" >&6; }
2947 # If we didn't sleep, we still need to ensure time stamps of config.status and
2948 # generated files are strictly newer.
2950 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2957 test "$program_prefix" != NONE
&&
2958 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2959 # Use a double $ so make ignores it.
2960 test "$program_suffix" != NONE
&&
2961 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2962 # Double any \ or $.
2963 # By default was `s,x,x', remove it if useless.
2964 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2965 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2967 # Expand $ac_aux_dir to an absolute path.
2968 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2970 if test x
"${MISSING+set}" != xset
; then
2973 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2975 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2978 # Use eval to expand $SHELL
2979 if eval "$MISSING --is-lightweight"; then
2980 am_missing_run
="$MISSING "
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2984 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2987 if test x
"${install_sh+set}" != xset
; then
2990 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2992 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2996 # Installed binaries are usually stripped using 'strip' when the user
2997 # run "make install-strip". However 'strip' might not be the right
2998 # tool to use in cross-compilation environments, therefore Automake
2999 # will honor the 'STRIP' environment variable to overrule this program.
3000 if test "$cross_compiling" != no
; then
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3003 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_STRIP+:} false
; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$STRIP"; then
3010 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir
=.
3017 for ac_exec_ext
in '' $ac_executable_extensions; do
3018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 STRIP
=$ac_cv_prog_STRIP
3030 if test -n "$STRIP"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3032 $as_echo "$STRIP" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$ac_cv_prog_STRIP"; then
3042 # Extract the first word of "strip", so it can be a program name with args.
3043 set dummy strip
; ac_word
=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$ac_ct_STRIP"; then
3050 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir
=.
3057 for ac_exec_ext
in '' $ac_executable_extensions; do
3058 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_ac_ct_STRIP
="strip"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3070 if test -n "$ac_ct_STRIP"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3072 $as_echo "$ac_ct_STRIP" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3078 if test "x$ac_ct_STRIP" = x
; then
3081 case $cross_compiling:$ac_tool_warned in
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned
=yes ;;
3090 STRIP
="$ac_cv_prog_STRIP"
3094 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3097 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3098 if test -z "$MKDIR_P"; then
3099 if ${ac_cv_path_mkdir+:} false
; then :
3100 $as_echo_n "(cached) " >&6
3102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3103 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3106 test -z "$as_dir" && as_dir
=.
3107 for ac_prog
in mkdir gmkdir
; do
3108 for ac_exec_ext
in '' $ac_executable_extensions; do
3109 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3110 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3111 'mkdir (GNU coreutils) '* | \
3112 'mkdir (coreutils) '* | \
3113 'mkdir (fileutils) '4.1*)
3114 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3124 test -d .
/--version && rmdir .
/--version
3125 if test "${ac_cv_path_mkdir+set}" = set; then
3126 MKDIR_P
="$ac_cv_path_mkdir -p"
3128 # As a last resort, use the slow shell script. Don't cache a
3129 # value for MKDIR_P within a source directory, because that will
3130 # break other packages using the cache if that directory is
3131 # removed, or if the value is a relative name.
3132 MKDIR_P
="$ac_install_sh -d"
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3136 $as_echo "$MKDIR_P" >&6; }
3138 for ac_prog
in gawk mawk nawk
awk
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy
$ac_prog; ac_word
=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_AWK+:} false
; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$AWK"; then
3148 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir
=.
3155 for ac_exec_ext
in '' $ac_executable_extensions; do
3156 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_AWK
="$ac_prog"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$AWK"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3170 $as_echo "$AWK" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3177 test -n "$AWK" && break
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3183 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3184 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3185 $as_echo_n "(cached) " >&6
3187 cat >conftest.
make <<\_ACEOF
3190 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3192 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3195 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3197 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3201 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 SET_MAKE
="MAKE=${MAKE-make}"
3211 rm -rf .tst
2>/dev
/null
3212 mkdir .tst
2>/dev
/null
3213 if test -d .tst
; then
3218 rmdir .tst
2>/dev
/null
3220 # Check whether --enable-silent-rules was given.
3221 if test "${enable_silent_rules+set}" = set; then :
3222 enableval
=$enable_silent_rules;
3225 case $enable_silent_rules in # (((
3226 yes) AM_DEFAULT_VERBOSITY
=0;;
3227 no
) AM_DEFAULT_VERBOSITY
=1;;
3228 *) AM_DEFAULT_VERBOSITY
=1;;
3230 am_make
=${MAKE-make}
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3232 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3233 if ${am_cv_make_support_nested_variables+:} false
; then :
3234 $as_echo_n "(cached) " >&6
3236 if $as_echo 'TRUE=$(BAR$(V))
3242 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3243 am_cv_make_support_nested_variables
=yes
3245 am_cv_make_support_nested_variables
=no
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3249 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3250 if test $am_cv_make_support_nested_variables = yes; then
3252 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3254 AM_V
=$AM_DEFAULT_VERBOSITY
3255 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3259 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3260 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3261 # is not polluted with repeated "-I."
3262 am__isrc
=' -I$(srcdir)'
3263 # test to see if srcdir already configured
3264 if test -f $srcdir/config.status
; then
3265 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3269 # test whether we have cygpath
3270 if test -z "$CYGPATH_W"; then
3271 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3272 CYGPATH_W
='cygpath -w'
3279 # Define the identity of the package.
3281 VERSION
='version-unused'
3284 # Some tools Automake needs.
3286 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3289 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3292 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3295 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3298 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3300 # For better backward compatibility. To be removed once Automake 1.9.x
3301 # dies out for good. For more background, see:
3302 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3303 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3304 mkdir_p
='$(MKDIR_P)'
3306 # We need awk for the "check" target (and possibly the TAP driver). The
3307 # system "awk" is bad on some platforms.
3308 # Always define AMTAR for backward compatibility. Yes, it's still used
3309 # in the wild :-( We should find a proper way to deprecate it ...
3313 # We'll loop over all known methods to create a tar archive until one works.
3314 _am_tools
='gnutar pax cpio none'
3316 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3323 # POSIX will say in a future version that running "rm -f" with no argument
3324 # is OK; and we want to be able to make that assumption in our Makefile
3325 # recipes. So use an aggressive probe to check that the usage we want is
3326 # actually supported "in the wild" to an acceptable degree.
3327 # See automake bug#10828.
3328 # To make any issue more visible, cause the running configure to be aborted
3329 # by default if the 'rm' program in use doesn't match our expectations; the
3330 # user can still override this though.
3331 if rm -f && rm -fr && rm -rf; then : OK
; else
3335 Your 'rm' program seems unable to run without file operands specified
3336 on the command line, even when the '-f' option is present. This is contrary
3337 to the behaviour of most rm programs out there, and not conforming with
3338 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3340 Please tell bug-automake@gnu.org about your system, including the value
3341 of your $PATH and any error possibly output before this message. This
3342 can help us improve future automake versions.
3345 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3346 echo 'Configuration will proceed anyway, since you have set the' >&2
3347 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3351 Aborting the configuration process, to ensure you take notice of the issue.
3353 You can download and install GNU coreutils to get an 'rm' implementation
3354 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3356 If you want to complete the configuration process using your problematic
3357 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3358 to "yes", and re-run configure.
3361 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3371 ac_cpp
='$CPP $CPPFLAGS'
3372 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3377 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_CC+:} false
; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC
="$CC" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$ac_cv_prog_CC"; then
3416 # Extract the first word of "gcc", so it can be a program name with args.
3417 set dummy gcc
; ac_word
=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3421 $as_echo_n "(cached) " >&6
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir
=.
3431 for ac_exec_ext
in '' $ac_executable_extensions; do
3432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_ac_ct_CC
="gcc"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3452 if test "x$ac_ct_CC" = x
; then
3455 case $cross_compiling:$ac_tool_warned in
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned
=yes ;;
3467 if test -z "$CC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3470 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if ${ac_cv_prog_CC+:} false
; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3486 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 # Extract the first word of "cc", so it can be a program name with args.
3510 set dummy cc
; ac_word
=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if ${ac_cv_prog_CC+:} false
; then :
3514 $as_echo_n "(cached) " >&6
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC
="$CC" # Let the user override the test.
3520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir
=.
3525 for ac_exec_ext
in '' $ac_executable_extensions; do
3526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3528 ac_prog_rejected
=yes
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test $ac_prog_rejected = yes; then
3540 # We found a bogon in the path, so make sure we never use it.
3541 set dummy
$ac_cv_prog_CC
3543 if test $# != 0; then
3544 # We chose a different compiler from the bogus one.
3545 # However, it has the same basename, so the bogon will be chosen
3546 # first if we set CC to just the basename; use the full file name.
3548 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 for ac_prog
in cl.exe
3568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_CC+:} false
; then :
3573 $as_echo_n "(cached) " >&6
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC
="$CC" # Let the user override the test.
3578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3582 test -z "$as_dir" && as_dir
=.
3583 for ac_exec_ext
in '' $ac_executable_extensions; do
3584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$CC" && break
3608 if test -z "$CC"; then
3610 for ac_prog
in cl.exe
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy
$ac_prog; ac_word
=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3617 $as_echo_n "(cached) " >&6
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3626 test -z "$as_dir" && as_dir
=.
3627 for ac_exec_ext
in '' $ac_executable_extensions; do
3628 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC
="$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 $as_echo "$ac_ct_CC" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3649 test -n "$ac_ct_CC" && break
3652 if test "x$ac_ct_CC" = x
; then
3655 case $cross_compiling:$ac_tool_warned in
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned
=yes ;;
3668 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error $?
"no acceptable C compiler found in \$PATH
3671 See \`config.log' for more details" "$LINENO" 5; }
3673 # Provide some information about the compiler.
3674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3677 for ac_option
in --version -v -V -qversion; do
3678 { { ac_try
="$ac_compiler $ac_option >&5"
3680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687 if test -s conftest.err; then
3689 ... rest of stderr output deleted ...
3690 10q' conftest.err >conftest.er1
3691 cat conftest.er1 >&5
3693 rm -f conftest.er1 conftest.err
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3709 ac_clean_files_save=$ac_clean_files
3710 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3711 # Try to create an executable without -o first, disregard a.out.
3712 # It will help us diagnose broken compilers, and finding out an intuition
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3715 $as_echo_n "checking whether the C compiler works... " >&6; }
3716 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3718 # The possible output files:
3719 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3722 for ac_file in $ac_files
3725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3731 if { { ac_try="$ac_link_default"
3733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3734 *) ac_try_echo
=$ac_try;;
3736 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_link_default") 2>&5
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3743 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3744 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3745 # so that the user can short-circuit this test for compilers unknown to
3747 for ac_file
in $ac_files ''
3749 test -f "$ac_file" ||
continue
3751 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3754 # We found the default executable, but exeext='' is most
3758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3760 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762 # We set ac_cv_exeext here because the later test for it is not
3763 # safe: cross compilers may not add the suffix if given an `-o'
3764 # argument, so we may need to know it at that point already.
3765 # Even if this section looks crufty: it has the advantage of
3772 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3777 if test -z "$ac_file"; then :
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 $as_echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.
$ac_ext >&5
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error
77 "C compiler cannot create executables
3786 See \`config.log' for more details" "$LINENO" 5; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3789 $as_echo "yes" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3792 $as_echo_n "checking for C compiler default output file name... " >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3794 $as_echo "$ac_file" >&6; }
3795 ac_exeext
=$ac_cv_exeext
3797 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3798 ac_clean_files
=$ac_clean_files_save
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3800 $as_echo_n "checking for suffix of executables... " >&6; }
3801 if { { ac_try
="$ac_link"
3803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_link") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; then :
3812 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3813 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3814 # work properly (i.e., refer to `conftest.exe'), while it won't with
3816 for ac_file
in conftest.exe conftest conftest.
*; do
3817 test -f "$ac_file" ||
continue
3819 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3820 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3829 See \`config.log' for more details" "$LINENO" 5; }
3831 rm -f conftest conftest
$ac_cv_exeext
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3833 $as_echo "$ac_cv_exeext" >&6; }
3835 rm -f conftest.
$ac_ext
3836 EXEEXT
=$ac_cv_exeext
3838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3844 FILE *f = fopen ("conftest.out", "w");
3845 return ferror (f) || fclose (f) != 0;
3851 ac_clean_files
="$ac_clean_files conftest.out"
3852 # Check that the compiler produces executables we can run. If not, either
3853 # the compiler is broken, or we cross compile.
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3855 $as_echo_n "checking whether we are cross compiling... " >&6; }
3856 if test "$cross_compiling" != yes; then
3857 { { ac_try
="$ac_link"
3859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3863 $as_echo "$ac_try_echo"; } >&5
3864 (eval "$ac_link") 2>&5
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3868 if { ac_try='./conftest$ac_cv_exeext'
3869 { { case "(($ac_try" in
3870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3871 *) ac_try_echo
=$ac_try;;
3873 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_try") 2>&5
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; }; then
3881 if test "$cross_compiling" = maybe
; then
3884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886 as_fn_error $?
"cannot run C compiled programs.
3887 If you meant to cross compile, use \`--host'.
3888 See \`config.log' for more details" "$LINENO" 5; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3893 $as_echo "$cross_compiling" >&6; }
3895 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3896 ac_clean_files
=$ac_clean_files_save
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3898 $as_echo_n "checking for suffix of object files... " >&6; }
3899 if ${ac_cv_objext+:} false
; then :
3900 $as_echo_n "(cached) " >&6
3902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3913 rm -f conftest.o conftest.obj
3914 if { { ac_try
="$ac_compile"
3916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_compile") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; then :
3925 for ac_file in conftest.o conftest.obj conftest.*; do
3926 test -f "$ac_file" || continue;
3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3929 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3934 $as_echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3940 See \
`config.log' for more details" "$LINENO" 5; }
3942 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3945 $as_echo "$ac_cv_objext" >&6; }
3946 OBJEXT=$ac_cv_objext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3950 if ${ac_cv_c_compiler_gnu+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3967 if ac_fn_c_try_compile "$LINENO"; then :
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978 if test $ac_compiler_gnu = yes; then
3983 ac_test_CFLAGS=${CFLAGS+set}
3984 ac_save_CFLAGS=$CFLAGS
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3987 if ${ac_cv_prog_cc_g+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_save_c_werror_flag=$ac_c_werror_flag
3991 ac_c_werror_flag=yes
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 if ac_fn_c_try_compile "$LINENO"; then :
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4020 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4047 $as_echo "$ac_cv_prog_cc_g" >&6; }
4048 if test "$ac_test_CFLAGS" = set; then
4049 CFLAGS=$ac_save_CFLAGS
4050 elif test $ac_cv_prog_cc_g = yes; then
4051 if test "$GCC" = yes; then
4057 if test "$GCC" = yes; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4065 if ${ac_cv_prog_cc_c89+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 ac_cv_prog_cc_c89=no
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4076 struct buf { int x; };
4077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4078 static char *e (p, i)
4084 static char *f (char * (*g) (char **, int), char **p, ...)
4089 s = g (p, va_arg (v,int));
4094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4095 function prototypes and stuff, but not '\xHH' hex character constants.
4096 These don't provoke an error unfortunately, instead are silently treated
4097 as 'x'. The following induces an error, until -std is added to get
4098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4099 array size at least. It's necessary to write '\x00'==0 to get something
4100 that's true only with -std. */
4101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4104 inside strings and character constants. */
4106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4108 int test (int i, double x);
4109 struct s1 {int (*f) (int a);};
4110 struct s2 {int (*f) (double a);};
4111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4125 CC="$ac_save_CC $ac_arg"
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_prog_cc_c89=$ac_arg
4129 rm -f core conftest.err conftest.$ac_objext
4130 test "x$ac_cv_prog_cc_c89" != "xno" && break
4132 rm -f conftest.$ac_ext
4137 case "x$ac_cv_prog_cc_c89" in
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4140 $as_echo "none needed" >&6; } ;;
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4143 $as_echo "unsupported" >&6; } ;;
4145 CC="$CC $ac_cv_prog_cc_c89"
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4149 if test "x$ac_cv_prog_cc_c89" != xno; then :
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4165 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4166 if ${am_cv_prog_cc_c_o+:} false; then :
4167 $as_echo_n "(cached) " >&6
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 # Make sure it works both with $CC and with simple cc.
4181 # Following AC_PROG_CC_C_O, we do the test twice because some
4182 # compilers refuse to overwrite an existing .o file with -o,
4183 # though they will create one.
4184 am_cv_prog_cc_c_o=yes
4186 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4187 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } \
4191 && test -f conftest2.$ac_objext; then
4194 am_cv_prog_cc_c_o=no
4198 rm -f core conftest*
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4202 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4203 if test "$am_cv_prog_cc_c_o" != yes; then
4204 # Losing compiler, so override with the script.
4205 # FIXME: It is wrong to rewrite CC.
4206 # But if we don't then we get into trouble of one sort or another.
4207 # A longer-term fix would be to have automake use am__CC in this case,
4208 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4209 CC="$am_aux_dir/compile $CC"
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 DEPDIR="${am__leading_dot}deps"
4219 ac_config_commands="$ac_config_commands depfiles"
4222 am_make=${MAKE-make}
4223 cat > confinc << 'END'
4225 @echo this is the am__doit target
4228 # If we don't find an include directive, just comment out the code.
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4230 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4234 # First try GNU make style include.
4235 echo "include confinc" > confmf
4236 # Ignore all kinds of additional output from 'make'.
4237 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4238 *the\ am__doit\ target*)
4244 # Now try BSD make style include.
4245 if test "$am__include" = "#"; then
4246 echo '.include "confinc"' > confmf
4247 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4248 *the\ am__doit\ target*)
4249 am__include=.include
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4258 $as_echo "$_am_result" >&6; }
4259 rm -f confinc confmf
4261 # Check whether --enable-dependency-tracking was given.
4262 if test "${enable_dependency_tracking+set}" = set; then :
4263 enableval=$enable_dependency_tracking;
4266 if test "x$enable_dependency_tracking" != xno; then
4267 am_depcomp="$ac_aux_dir/depcomp"
4271 if test "x$enable_dependency_tracking" != xno; then
4281 depcc="$CC" am_compiler_list=
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4284 $as_echo_n "checking dependency style of $depcc... " >&6; }
4285 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4289 # We make a subdir and do the tests there. Otherwise we can end up
4290 # making bogus files that we don't know about and never remove. For
4291 # instance it was reported that on HP-UX the gcc test will end up
4292 # making a dummy file named 'D' -- because '-MD' means "put the output
4296 # Copy depcomp to subdir because otherwise we won't find it if we're
4297 # using a relative directory.
4298 cp "$am_depcomp" conftest.dir
4300 # We will build objects and dependencies in a subdirectory because
4301 # it helps to detect inapplicable dependency modes. For instance
4302 # both Tru64's cc and ICC support -MD to output dependencies as a
4303 # side effect of compilation, but ICC will put the dependencies in
4304 # the current directory while Tru64 will put them in the object
4308 am_cv_CC_dependencies_compiler_type=none
4309 if test "$am_compiler_list" = ""; then
4310 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4313 case " $depcc " in #(
4314 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4317 for depmode in $am_compiler_list; do
4318 # Setup a source with many dependencies, because some compilers
4319 # like to wrap large dependency lists on column 80 (with \), and
4320 # we should not choose a depcomp mode which is confused by this.
4322 # We need to recreate these files for each test, as the compiler may
4323 # overwrite some of them when testing with obscure command lines.
4324 # This happens at least with the AIX C compiler.
4326 for i in 1 2 3 4 5 6; do
4327 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4328 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4329 # Solaris 10 /bin/sh.
4330 echo '/* dummy */' > sub/conftst$i.h
4332 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4334 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4335 # mode. It turns out that the SunPro C++ compiler does not properly
4336 # handle '-M -o', and we need to detect this. Also, some Intel
4337 # versions had trouble with output in subdirs.
4338 am__obj=sub/conftest.${OBJEXT-o}
4339 am__minus_obj="-o $am__obj"
4342 # This depmode causes a compiler race in universal mode.
4343 test "$am__universal" = false || continue
4346 # After this tag, mechanisms are not by side-effect, so they'll
4347 # only be used when explicitly requested.
4348 if test "x$enable_dependency_tracking" = xyes; then
4354 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4355 # This compiler won't grok '-c -o', but also, the minuso test has
4356 # not run yet. These depmodes are late enough in the game, and
4357 # so weak that their functioning should not be impacted.
4358 am__obj=conftest.${OBJEXT-o}
4363 if depmode=$depmode \
4364 source=sub/conftest.c object=$am__obj \
4365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4366 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4367 >/dev/null 2>conftest.err &&
4368 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4369 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4370 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4371 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4372 # icc doesn't choke on unknown options, it will just issue warnings
4373 # or remarks (even with -Werror). So we grep stderr for any message
4374 # that says an option was ignored or not supported.
4375 # When given -MP, icc 7.0 and 7.1 complain thusly:
4376 # icc: Command line warning: ignoring option '-M'; no argument required
4377 # The diagnosis changed in icc 8.0:
4378 # icc: Command line remark: option '-MP' not supported
4379 if (grep 'ignoring option' conftest.err ||
4380 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4381 am_cv_CC_dependencies_compiler_type=$depmode
4390 am_cv_CC_dependencies_compiler_type=none
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4395 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4396 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4399 test "x$enable_dependency_tracking" != xno \
4400 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4402 am__fastdepCC_FALSE='#'
4404 am__fastdepCC_TRUE='#'
4405 am__fastdepCC_FALSE=
4410 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4411 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_GOC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4421 if test -n "$GOC"; then
4422 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 if test -n "$GOC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4444 $as_echo "$GOC" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4452 if test -z "$ac_cv_prog_GOC"; then
4454 # Extract the first word of "gccgo", so it can be a program name with args.
4455 set dummy gccgo; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 if test -n "$ac_ct_GOC"; then
4462 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_ac_ct_GOC="gccgo"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4482 if test -n "$ac_ct_GOC"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4484 $as_echo "$ac_ct_GOC" >&6; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4490 if test "x$ac_ct_GOC" = x; then
4493 case $cross_compiling:$ac_tool_warned in
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4502 GOC="$ac_cv_prog_GOC"
4505 if test -z "$GOC"; then
4506 if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4508 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_GOC+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -n "$GOC"; then
4515 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 if test -n "$GOC"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4537 $as_echo "$GOC" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4546 if test -z "$GOC"; then
4547 # Extract the first word of "gccgo", so it can be a program name with args.
4548 set dummy gccgo; ac_word=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if ${ac_cv_prog_GOC+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$GOC"; then
4555 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4566 ac_prog_rejected=yes
4569 ac_cv_prog_GOC="gccgo"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 if test $ac_prog_rejected = yes; then
4578 # We found a bogon in the path, so make sure we never use it.
4579 set dummy $ac_cv_prog_GOC
4581 if test $# != 0; then
4582 # We chose a different compiler from the bogus one.
4583 # However, it has the same basename, so the bogon will be chosen
4584 # first if we set GOC to just the basename; use the full file name.
4586 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4592 if test -n "$GOC"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4594 $as_echo "$GOC" >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4604 # Provide some information about the compiler.
4605 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4608 { { ac_try="$ac_compiler --version >&5"
4610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4611 *) ac_try_echo
=$ac_try;;
4613 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_compiler --version >&5") 2>conftest.err
4617 if test -s conftest.err
; then
4619 ... rest of stderr output deleted ...
4620 10q' conftest.err
>conftest.er1
4621 cat conftest.er1
>&5
4623 rm -f conftest.er1 conftest.err
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }
4628 ac_cpp
='$CPP $CPPFLAGS'
4629 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4633 # By default we simply use the C compiler to build assembly code.
4635 test "${CCAS+set}" = set || CCAS
=$CC
4636 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4640 depcc
="$CCAS" am_compiler_list
=
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4643 $as_echo_n "checking dependency style of $depcc... " >&6; }
4644 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
4645 $as_echo_n "(cached) " >&6
4647 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4648 # We make a subdir and do the tests there. Otherwise we can end up
4649 # making bogus files that we don't know about and never remove. For
4650 # instance it was reported that on HP-UX the gcc test will end up
4651 # making a dummy file named 'D' -- because '-MD' means "put the output
4655 # Copy depcomp to subdir because otherwise we won't find it if we're
4656 # using a relative directory.
4657 cp "$am_depcomp" conftest.dir
4659 # We will build objects and dependencies in a subdirectory because
4660 # it helps to detect inapplicable dependency modes. For instance
4661 # both Tru64's cc and ICC support -MD to output dependencies as a
4662 # side effect of compilation, but ICC will put the dependencies in
4663 # the current directory while Tru64 will put them in the object
4667 am_cv_CCAS_dependencies_compiler_type
=none
4668 if test "$am_compiler_list" = ""; then
4669 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4674 for depmode
in $am_compiler_list; do
4675 # Setup a source with many dependencies, because some compilers
4676 # like to wrap large dependency lists on column 80 (with \), and
4677 # we should not choose a depcomp mode which is confused by this.
4679 # We need to recreate these files for each test, as the compiler may
4680 # overwrite some of them when testing with obscure command lines.
4681 # This happens at least with the AIX C compiler.
4683 for i
in 1 2 3 4 5 6; do
4684 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4685 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4686 # Solaris 10 /bin/sh.
4687 echo '/* dummy */' > sub
/conftst
$i.h
4689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4691 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4692 # mode. It turns out that the SunPro C++ compiler does not properly
4693 # handle '-M -o', and we need to detect this. Also, some Intel
4694 # versions had trouble with output in subdirs.
4695 am__obj
=sub
/conftest.
${OBJEXT-o}
4696 am__minus_obj
="-o $am__obj"
4699 # This depmode causes a compiler race in universal mode.
4700 test "$am__universal" = false ||
continue
4703 # After this tag, mechanisms are not by side-effect, so they'll
4704 # only be used when explicitly requested.
4705 if test "x$enable_dependency_tracking" = xyes
; then
4711 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4712 # This compiler won't grok '-c -o', but also, the minuso test has
4713 # not run yet. These depmodes are late enough in the game, and
4714 # so weak that their functioning should not be impacted.
4715 am__obj
=conftest.
${OBJEXT-o}
4720 if depmode
=$depmode \
4721 source=sub
/conftest.c object
=$am__obj \
4722 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4723 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4724 >/dev
/null
2>conftest.err
&&
4725 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4726 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4727 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4728 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4729 # icc doesn't choke on unknown options, it will just issue warnings
4730 # or remarks (even with -Werror). So we grep stderr for any message
4731 # that says an option was ignored or not supported.
4732 # When given -MP, icc 7.0 and 7.1 complain thusly:
4733 # icc: Command line warning: ignoring option '-M'; no argument required
4734 # The diagnosis changed in icc 8.0:
4735 # icc: Command line remark: option '-MP' not supported
4736 if (grep 'ignoring option' conftest.err ||
4737 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4738 am_cv_CCAS_dependencies_compiler_type
=$depmode
4747 am_cv_CCAS_dependencies_compiler_type
=none
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4752 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4753 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4756 test "x$enable_dependency_tracking" != xno \
4757 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4758 am__fastdepCCAS_TRUE
=
4759 am__fastdepCCAS_FALSE
='#'
4761 am__fastdepCCAS_TRUE
='#'
4762 am__fastdepCCAS_FALSE
=
4772 # Check default architecture for FAT library creation
4773 if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4784 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4785 # Check whether --enable-maintainer-mode was given.
4786 if test "${enable_maintainer_mode+set}" = set; then :
4787 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4789 USE_MAINTAINER_MODE
=no
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4793 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4794 if test $USE_MAINTAINER_MODE = yes; then
4795 MAINTAINER_MODE_TRUE
=
4796 MAINTAINER_MODE_FALSE
='#'
4798 MAINTAINER_MODE_TRUE
='#'
4799 MAINTAINER_MODE_FALSE
=
4802 MAINT
=$MAINTAINER_MODE_TRUE
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4807 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4808 if ${ac_cv_path_SED+:} false
; then :
4809 $as_echo_n "(cached) " >&6
4811 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4812 for ac_i
in 1 2 3 4 5 6 7; do
4813 ac_script
="$ac_script$as_nl$ac_script"
4815 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4816 { ac_script
=; unset ac_script
;}
4817 if test -z "$SED"; then
4818 ac_path_SED_found
=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir
=.
4825 for ac_prog
in sed gsed
; do
4826 for ac_exec_ext
in '' $ac_executable_extensions; do
4827 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4828 as_fn_executable_p
"$ac_path_SED" ||
continue
4829 # Check for GNU ac_path_SED and select it if it is found.
4830 # Check for GNU $ac_path_SED
4831 case `"$ac_path_SED" --version 2>&1` in
4833 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4836 $as_echo_n 0123456789 >"conftest.in"
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 $as_echo '' >> "conftest.nl"
4843 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4844 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4845 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4846 if test $ac_count -gt ${ac_path_SED_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_SED
="$ac_path_SED"
4849 ac_path_SED_max
=$ac_count
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4854 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4857 $ac_path_SED_found && break 3
4862 if test -z "$ac_cv_path_SED"; then
4863 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4871 $as_echo "$ac_cv_path_SED" >&6; }
4872 SED
="$ac_cv_path_SED"
4875 test -z "$SED" && SED
=sed
4876 Xsed
="$SED -e 1s/^X//"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4890 if ${ac_cv_path_GREP+:} false
; then :
4891 $as_echo_n "(cached) " >&6
4893 if test -z "$GREP"; then
4894 ac_path_GREP_found
=false
4895 # Loop through the user's path and test for each of PROGNAME-LIST
4896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4897 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4900 test -z "$as_dir" && as_dir
=.
4901 for ac_prog
in grep ggrep
; do
4902 for ac_exec_ext
in '' $ac_executable_extensions; do
4903 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4904 as_fn_executable_p
"$ac_path_GREP" ||
continue
4905 # Check for GNU ac_path_GREP and select it if it is found.
4906 # Check for GNU $ac_path_GREP
4907 case `"$ac_path_GREP" --version 2>&1` in
4909 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4912 $as_echo_n 0123456789 >"conftest.in"
4915 cat "conftest.in" "conftest.in" >"conftest.tmp"
4916 mv "conftest.tmp" "conftest.in"
4917 cp "conftest.in" "conftest.nl"
4918 $as_echo 'GREP' >> "conftest.nl"
4919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4920 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4921 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4923 # Best one so far, save it but keep looking for a better one
4924 ac_cv_path_GREP
="$ac_path_GREP"
4925 ac_path_GREP_max
=$ac_count
4927 # 10*(2^10) chars as input seems more than enough
4928 test $ac_count -gt 10 && break
4930 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4933 $ac_path_GREP_found && break 3
4938 if test -z "$ac_cv_path_GREP"; then
4939 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4942 ac_cv_path_GREP
=$GREP
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4947 $as_echo "$ac_cv_path_GREP" >&6; }
4948 GREP
="$ac_cv_path_GREP"
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4952 $as_echo_n "checking for egrep... " >&6; }
4953 if ${ac_cv_path_EGREP+:} false
; then :
4954 $as_echo_n "(cached) " >&6
4956 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4957 then ac_cv_path_EGREP
="$GREP -E"
4959 if test -z "$EGREP"; then
4960 ac_path_EGREP_found
=false
4961 # Loop through the user's path and test for each of PROGNAME-LIST
4962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4963 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4966 test -z "$as_dir" && as_dir
=.
4967 for ac_prog
in egrep; do
4968 for ac_exec_ext
in '' $ac_executable_extensions; do
4969 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4970 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4971 # Check for GNU ac_path_EGREP and select it if it is found.
4972 # Check for GNU $ac_path_EGREP
4973 case `"$ac_path_EGREP" --version 2>&1` in
4975 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4978 $as_echo_n 0123456789 >"conftest.in"
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
4984 $as_echo 'EGREP' >> "conftest.nl"
4985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4986 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4987 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_EGREP
="$ac_path_EGREP"
4991 ac_path_EGREP_max
=$ac_count
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4996 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4999 $ac_path_EGREP_found && break 3
5004 if test -z "$ac_cv_path_EGREP"; then
5005 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5008 ac_cv_path_EGREP
=$EGREP
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5014 $as_echo "$ac_cv_path_EGREP" >&6; }
5015 EGREP
="$ac_cv_path_EGREP"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5019 $as_echo_n "checking for fgrep... " >&6; }
5020 if ${ac_cv_path_FGREP+:} false
; then :
5021 $as_echo_n "(cached) " >&6
5023 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5024 then ac_cv_path_FGREP
="$GREP -F"
5026 if test -z "$FGREP"; then
5027 ac_path_FGREP_found
=false
5028 # Loop through the user's path and test for each of PROGNAME-LIST
5029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5030 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5033 test -z "$as_dir" && as_dir
=.
5034 for ac_prog
in fgrep
; do
5035 for ac_exec_ext
in '' $ac_executable_extensions; do
5036 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5037 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5038 # Check for GNU ac_path_FGREP and select it if it is found.
5039 # Check for GNU $ac_path_FGREP
5040 case `"$ac_path_FGREP" --version 2>&1` in
5042 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5045 $as_echo_n 0123456789 >"conftest.in"
5048 cat "conftest.in" "conftest.in" >"conftest.tmp"
5049 mv "conftest.tmp" "conftest.in"
5050 cp "conftest.in" "conftest.nl"
5051 $as_echo 'FGREP' >> "conftest.nl"
5052 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5053 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5054 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5055 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5056 # Best one so far, save it but keep looking for a better one
5057 ac_cv_path_FGREP
="$ac_path_FGREP"
5058 ac_path_FGREP_max
=$ac_count
5060 # 10*(2^10) chars as input seems more than enough
5061 test $ac_count -gt 10 && break
5063 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5066 $ac_path_FGREP_found && break 3
5071 if test -z "$ac_cv_path_FGREP"; then
5072 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5075 ac_cv_path_FGREP
=$FGREP
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5081 $as_echo "$ac_cv_path_FGREP" >&6; }
5082 FGREP
="$ac_cv_path_FGREP"
5085 test -z "$GREP" && GREP
=grep
5103 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5108 $as_echo_n "checking how to print strings... " >&6; }
5109 # Test print first, because it will be a builtin if present.
5110 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5111 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5113 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5116 # Use this function as a fallback that always works.
5117 func_fallback_echo ()
5119 eval 'cat <<_LTECHO_EOF
5123 ECHO='func_fallback_echo
'
5126 # func_echo_all arg...
5127 # Invoke $ECHO with all args, space-separated.
5134 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5135 $as_echo "printf" >&6; } ;;
5136 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5137 $as_echo "print -r" >&6; } ;;
5138 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5139 $as_echo "cat" >&6; } ;;
5157 # Check whether --with-gnu-ld was given.
5158 if test "${with_gnu_ld+set}" = set; then :
5159 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5165 if test "$GCC" = yes; then
5166 # Check if gcc -print-prog-name=ld gives a path.
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5168 $as_echo_n "checking for ld used by $CC... " >&6; }
5171 # gcc leaves a trailing carriage return which upsets mingw
5172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5177 # Accept absolute paths.
5179 re_direlt='/[^
/][^
/]*/\.\.
/'
5180 # Canonicalize the pathname of ld
5181 ac_prog=`$ECHO "$ac_prog"| $SED 's
%\\\\%/%g
'`
5182 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5183 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5185 test -z "$LD" && LD="$ac_prog"
5188 # If it fails, then pretend we aren't using GCC.
5192 # If it is relative, then search for the first ld in PATH.
5196 elif test "$with_gnu_ld" = yes; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5198 $as_echo_n "checking for GNU ld... " >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5201 $as_echo_n "checking for non-GNU ld... " >&6; }
5203 if ${lt_cv_path_LD+:} false
; then :
5204 $as_echo_n "(cached) " >&6
5206 if test -z "$LD"; then
5207 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5208 for ac_dir
in $PATH; do
5210 test -z "$ac_dir" && ac_dir
=.
5211 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5212 lt_cv_path_LD
="$ac_dir/$ac_prog"
5213 # Check to see if the program is GNU ld. I'd rather use --version,
5214 # but apparently some variants of GNU ld only accept -v.
5215 # Break only if it was the GNU/non-GNU ld that we prefer.
5216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5217 *GNU
* |
*'with BFD'*)
5218 test "$with_gnu_ld" != no
&& break
5221 test "$with_gnu_ld" != yes && break
5228 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5233 if test -n "$LD"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5235 $as_echo "$LD" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5240 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5242 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5243 if ${lt_cv_prog_gnu_ld+:} false
; then :
5244 $as_echo_n "(cached) " >&6
5246 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5247 case `$LD -v 2>&1 </dev/null` in
5248 *GNU
* |
*'with BFD'*)
5249 lt_cv_prog_gnu_ld
=yes
5252 lt_cv_prog_gnu_ld
=no
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5257 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5258 with_gnu_ld
=$lt_cv_prog_gnu_ld
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5270 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_RANLIB+:} false
; then :
5274 $as_echo_n "(cached) " >&6
5276 if test -n "$RANLIB"; then
5277 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir
=.
5284 for ac_exec_ext
in '' $ac_executable_extensions; do
5285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5286 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 RANLIB
=$ac_cv_prog_RANLIB
5297 if test -n "$RANLIB"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5299 $as_echo "$RANLIB" >&6; }
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5307 if test -z "$ac_cv_prog_RANLIB"; then
5308 ac_ct_RANLIB
=$RANLIB
5309 # Extract the first word of "ranlib", so it can be a program name with args.
5310 set dummy ranlib
; ac_word
=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -n "$ac_ct_RANLIB"; then
5317 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5323 test -z "$as_dir" && as_dir
=.
5324 for ac_exec_ext
in '' $ac_executable_extensions; do
5325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5326 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5337 if test -n "$ac_ct_RANLIB"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5339 $as_echo "$ac_ct_RANLIB" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5345 if test "x$ac_ct_RANLIB" = x
; then
5348 case $cross_compiling:$ac_tool_warned in
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned
=yes ;;
5354 RANLIB
=$ac_ct_RANLIB
5357 RANLIB
="$ac_cv_prog_RANLIB"
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5362 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_OBJCOPY+:} false
; then :
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$OBJCOPY"; then
5369 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5378 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 OBJCOPY
=$ac_cv_prog_OBJCOPY
5389 if test -n "$OBJCOPY"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5391 $as_echo "$OBJCOPY" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5399 if test -z "$ac_cv_prog_OBJCOPY"; then
5400 ac_ct_OBJCOPY
=$OBJCOPY
5401 # Extract the first word of "objcopy", so it can be a program name with args.
5402 set dummy objcopy
; ac_word
=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false
; then :
5406 $as_echo_n "(cached) " >&6
5408 if test -n "$ac_ct_OBJCOPY"; then
5409 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
5411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir
=.
5416 for ac_exec_ext
in '' $ac_executable_extensions; do
5417 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5418 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
5429 if test -n "$ac_ct_OBJCOPY"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5431 $as_echo "$ac_ct_OBJCOPY" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5437 if test "x$ac_ct_OBJCOPY" = x
; then
5438 OBJCOPY
="missing-objcopy"
5440 case $cross_compiling:$ac_tool_warned in
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned
=yes ;;
5446 OBJCOPY
=$ac_ct_OBJCOPY
5449 OBJCOPY
="$ac_cv_prog_OBJCOPY"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5460 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5465 macro_version
='2.2.7a'
5466 macro_revision
='1.3134'
5480 ltmain
="$ac_aux_dir/ltmain.sh"
5482 # Backslashify metacharacters that are still active within
5483 # double-quoted strings.
5484 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5486 # Same as above, but do not quote variable references.
5487 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5489 # Sed substitution to delay expansion of an escaped shell variable in a
5490 # double_quote_subst'ed string.
5491 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5493 # Sed substitution to delay expansion of an escaped single quote.
5494 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5496 # Sed substitution to avoid accidental globbing in evaled expressions
5497 no_glob_subst
='s/\*/\\\*/g'
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5500 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5501 if ${lt_cv_path_NM+:} false
; then :
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$NM"; then
5505 # Let the user override the test.
5508 lt_nm_to_check
="${ac_tool_prefix}nm"
5509 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5510 lt_nm_to_check
="$lt_nm_to_check nm"
5512 for lt_tmp_nm
in $lt_nm_to_check; do
5513 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5514 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5516 test -z "$ac_dir" && ac_dir
=.
5517 tmp_nm
="$ac_dir/$lt_tmp_nm"
5518 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5519 # Check to see if the nm accepts a BSD-compat flag.
5520 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5521 # nm: unknown option "B" ignored
5522 # Tru64's nm complains that /dev/null is an invalid object file
5523 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5524 */dev
/null
* |
*'Invalid file or object type'*)
5525 lt_cv_path_NM
="$tmp_nm -B"
5529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5531 lt_cv_path_NM
="$tmp_nm -p"
5535 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5536 continue # so that we can try to find one that supports BSD flags
5545 : ${lt_cv_path_NM=no}
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5549 $as_echo "$lt_cv_path_NM" >&6; }
5550 if test "$lt_cv_path_NM" != "no"; then
5553 # Didn't find any BSD compatible name lister, look for dumpbin.
5554 if test -n "$DUMPBIN"; then :
5555 # Let the user override the test.
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog
in dumpbin
"link -dump"
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5565 $as_echo_n "(cached) " >&6
5567 if test -n "$DUMPBIN"; then
5568 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir
=.
5575 for ac_exec_ext
in '' $ac_executable_extensions; do
5576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 DUMPBIN
=$ac_cv_prog_DUMPBIN
5588 if test -n "$DUMPBIN"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5590 $as_echo "$DUMPBIN" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5597 test -n "$DUMPBIN" && break
5600 if test -z "$DUMPBIN"; then
5601 ac_ct_DUMPBIN
=$DUMPBIN
5602 for ac_prog
in dumpbin
"link -dump"
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy
$ac_prog; ac_word
=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$ac_ct_DUMPBIN"; then
5612 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir
=.
5619 for ac_exec_ext
in '' $ac_executable_extensions; do
5620 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5632 if test -n "$ac_ct_DUMPBIN"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5634 $as_echo "$ac_ct_DUMPBIN" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 test -n "$ac_ct_DUMPBIN" && break
5644 if test "x$ac_ct_DUMPBIN" = x
; then
5647 case $cross_compiling:$ac_tool_warned in
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned
=yes ;;
5653 DUMPBIN
=$ac_ct_DUMPBIN
5657 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5659 DUMPBIN
="$DUMPBIN -symbols"
5667 if test "$DUMPBIN" != ":"; then
5671 test -z "$NM" && NM
=nm
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5679 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5680 if ${lt_cv_nm_interface+:} false
; then :
5681 $as_echo_n "(cached) " >&6
5683 lt_cv_nm_interface
="BSD nm"
5684 echo "int some_variable = 0;" > conftest.
$ac_ext
5685 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5686 (eval "$ac_compile" 2>conftest.err
)
5687 cat conftest.err
>&5
5688 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5690 cat conftest.err
>&5
5691 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5692 cat conftest.out
>&5
5693 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5694 lt_cv_nm_interface
="MS dumpbin"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5699 $as_echo "$lt_cv_nm_interface" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5702 $as_echo_n "checking whether ln -s works... " >&6; }
5704 if test "$LN_S" = "ln -s"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5706 $as_echo "yes" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5709 $as_echo "no, using $LN_S" >&6; }
5712 # find the maximum length of command line arguments
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5714 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5715 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5716 $as_echo_n "(cached) " >&6
5723 # On DJGPP, this test can blow up pretty badly due to problems in libc
5724 # (any single argument exceeding 2000 bytes causes a buffer overrun
5725 # during glob expansion). Even if it were fixed, the result of this
5726 # check would be larger than it should be.
5727 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5731 # Under GNU Hurd, this test is not required because there is
5732 # no limit to the length of command line arguments.
5733 # Libtool will interpret -1 as no limit whatsoever
5734 lt_cv_sys_max_cmd_len
=-1;
5737 cygwin
* | mingw
* | cegcc
*)
5738 # On Win9x/ME, this test blows up -- it succeeds, but takes
5739 # about 5 minutes as the teststring grows exponentially.
5740 # Worse, since 9x/ME are not pre-emptively multitasking,
5741 # you end up with a "frozen" computer, even though with patience
5742 # the test eventually succeeds (with a max line length of 256k).
5743 # Instead, let's just punt: use the minimum linelength reported by
5744 # all of the supported platforms: 8192 (on NT/2K/XP).
5745 lt_cv_sys_max_cmd_len
=8192;
5749 # On MiNT this can take a long time and run out of memory.
5750 lt_cv_sys_max_cmd_len
=8192;
5754 # On AmigaOS with pdksh, this test takes hours, literally.
5755 # So we just punt and use a minimum line length of 8192.
5756 lt_cv_sys_max_cmd_len
=8192;
5759 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5760 # This has been around since 386BSD, at least. Likely further.
5761 if test -x /sbin
/sysctl
; then
5762 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5763 elif test -x /usr
/sbin
/sysctl
; then
5764 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5766 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5768 # And add a safety zone
5769 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5770 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5774 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5775 lt_cv_sys_max_cmd_len
=196608
5779 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5780 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5781 # nice to cause kernel panics so lets avoid the loop below.
5782 # First set a reasonable default.
5783 lt_cv_sys_max_cmd_len
=16384
5785 if test -x /sbin
/sysconfig
; then
5786 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5787 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5792 lt_cv_sys_max_cmd_len
=102400
5794 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5795 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5796 if test -n "$kargmax"; then
5797 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5799 lt_cv_sys_max_cmd_len
=32768
5803 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5804 if test -n "$lt_cv_sys_max_cmd_len"; then
5805 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5806 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5808 # Make teststring a little bigger before we do anything with it.
5809 # a 1K string should be a reasonable start.
5810 for i
in 1 2 3 4 5 6 7 8 ; do
5811 teststring
=$teststring$teststring
5813 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5814 # If test is not a shell built-in, we'll probably end up computing a
5815 # maximum length that is only half of the actual maximum length, but
5817 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5818 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5819 test $i != 17 # 1/2 MB should be enough
5822 teststring
=$teststring$teststring
5824 # Only check the string length outside the loop.
5825 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5827 # Add a significant safety factor because C++ compilers can tack on
5828 # massive amounts of additional arguments before passing them to the
5829 # linker. It appears as though 1/2 is a usable value.
5830 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5837 if test -n $lt_cv_sys_max_cmd_len ; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5839 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5842 $as_echo "none" >&6; }
5844 max_cmd_len
=$lt_cv_sys_max_cmd_len
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5856 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5857 # Try some XSI features
5860 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5862 && eval 'test $(( 1 + 1 )) -eq 2 \
5863 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5866 $as_echo "$xsi_shell" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5870 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5872 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5874 && lt_shell_append=yes
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5876 $as_echo "$lt_shell_append" >&6; }
5879 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5889 # test EBCDIC or ASCII
5890 case `echo X|tr X '\101'` in
5891 A) # ASCII based system
5892 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5893 lt_SP2NL='tr \040 \012'
5894 lt_NL2SP='tr \015\012 \040\040'
5896 *) # EBCDIC based system
5897 lt_SP2NL='tr \100 \n'
5898 lt_NL2SP='tr \r\n \100\100'
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5911 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5912 if ${lt_cv_ld_reload_flag+:} false; then :
5913 $as_echo_n "(cached
) " >&6
5915 lt_cv_ld_reload_flag='-r'
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5918 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5919 reload_flag=$lt_cv_ld_reload_flag
5920 case $reload_flag in
5922 *) reload_flag=" $reload_flag" ;;
5924 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5927 if test "$GCC" = yes; then
5928 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5930 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943 if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5945 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5947 $as_echo_n "checking
for $ac_word...
" >&6; }
5948 if ${ac_cv_prog_OBJDUMP+:} false; then :
5949 $as_echo_n "(cached
) " >&6
5951 if test -n "$OBJDUMP"; then
5952 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5971 OBJDUMP=$ac_cv_prog_OBJDUMP
5972 if test -n "$OBJDUMP"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5974 $as_echo "$OBJDUMP" >&6; }
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5977 $as_echo "no
" >&6; }
5982 if test -z "$ac_cv_prog_OBJDUMP"; then
5983 ac_ct_OBJDUMP=$OBJDUMP
5984 # Extract the first word of "objdump
", so it can be a program name with args.
5985 set dummy objdump; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5987 $as_echo_n "checking
for $ac_word...
" >&6; }
5988 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5989 $as_echo_n "(cached
) " >&6
5991 if test -n "$ac_ct_OBJDUMP"; then
5992 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6011 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6012 if test -n "$ac_ct_OBJDUMP"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6014 $as_echo "$ac_ct_OBJDUMP" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6017 $as_echo "no
" >&6; }
6020 if test "x
$ac_ct_OBJDUMP" = x; then
6023 case $cross_compiling:$ac_tool_warned in
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6026 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6027 ac_tool_warned=yes ;;
6029 OBJDUMP=$ac_ct_OBJDUMP
6032 OBJDUMP="$ac_cv_prog_OBJDUMP"
6035 test -z "$OBJDUMP" && OBJDUMP=objdump
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6046 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6047 if ${lt_cv_deplibs_check_method+:} false; then :
6048 $as_echo_n "(cached
) " >&6
6050 lt_cv_file_magic_cmd='$MAGIC_CMD'
6051 lt_cv_file_magic_test_file=
6052 lt_cv_deplibs_check_method='unknown'
6053 # Need to set the preceding variable on all platforms that support
6054 # interlibrary dependencies.
6055 # 'none' -- dependencies not supported.
6056 # `unknown' -- same as none, but documents that we really don't know.
6057 # 'pass_all' -- all dependencies passed with no checks.
6058 # 'test_compile' -- check by making test program.
6059 # 'file_magic [[regex]]' -- check by looking for files in library path
6060 # which responds to the $file_magic_cmd with a given extended regex.
6061 # If you have `file' or equivalent on your system and you're not sure
6062 # whether `pass_all' will *always* work, you probably want this one.
6066 lt_cv_deplibs_check_method=pass_all
6070 lt_cv_deplibs_check_method=pass_all
6074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6075 lt_cv_file_magic_cmd='/usr/bin/file -L'
6076 lt_cv_file_magic_test_file=/shlib/libc.so
6080 # func_win32_libid is a shell function defined in ltmain.sh
6081 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6082 lt_cv_file_magic_cmd='func_win32_libid'
6086 # Base MSYS/MinGW do not provide the 'file' command needed by
6087 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6088 # unless we find 'file', for example because we are cross-compiling.
6089 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6090 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6091 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6092 lt_cv_file_magic_cmd='func_win32_libid'
6094 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6095 lt_cv_file_magic_cmd='$OBJDUMP -f'
6100 # use the weaker test based on 'objdump'. See mingw*.
6101 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6102 lt_cv_file_magic_cmd='$OBJDUMP -f'
6105 darwin* | rhapsody*)
6106 lt_cv_deplibs_check_method=pass_all
6109 freebsd* | dragonfly*)
6110 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6113 # Not sure whether the presence of OpenBSD here was a mistake.
6114 # Let's accept both of them until this is cleared up.
6115 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6116 lt_cv_file_magic_cmd=/usr/bin/file
6117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6121 lt_cv_deplibs_check_method=pass_all
6126 lt_cv_deplibs_check_method=pass_all
6130 lt_cv_deplibs_check_method=pass_all
6133 hpux10.20* | hpux11*)
6134 lt_cv_file_magic_cmd=/usr/bin/file
6137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6138 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6141 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]'
6142 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6146 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6152 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6156 irix5* | irix6* | nonstopux*)
6158 *-32|*"-32 ") libmagic=32-bit;;
6159 *-n32|*"-n32 ") libmagic=N32;;
6160 *-64|*"-64 ") libmagic=64-bit;;
6161 *) libmagic=never-match;;
6163 lt_cv_deplibs_check_method=pass_all
6166 # This must be Linux ELF.
6167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6168 lt_cv_deplibs_check_method=pass_all
6172 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6181 lt_cv_file_magic_cmd=/usr/bin/file
6182 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6186 lt_cv_deplibs_check_method=pass_all
6190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6197 osf3* | osf4* | osf5*)
6198 lt_cv_deplibs_check_method=pass_all
6202 lt_cv_deplibs_check_method=pass_all
6206 lt_cv_deplibs_check_method=pass_all
6209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6210 lt_cv_deplibs_check_method=pass_all
6214 case $host_vendor in
6216 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]'
6217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6220 lt_cv_deplibs_check_method=pass_all
6223 lt_cv_file_magic_cmd='/bin/file'
6224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6227 lt_cv_file_magic_cmd='/bin/file'
6228 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6229 lt_cv_file_magic_test_file=/lib/libc.so
6232 lt_cv_deplibs_check_method=pass_all
6235 lt_cv_deplibs_check_method=pass_all
6241 lt_cv_deplibs_check_method=pass_all
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6247 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6248 file_magic_cmd=$lt_cv_file_magic_cmd
6249 deplibs_check_method=$lt_cv_deplibs_check_method
6250 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}ar; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6267 $as_echo_n "checking
for $ac_word...
" >&6; }
6268 if ${ac_cv_prog_AR+:} false; then :
6269 $as_echo_n "(cached
) " >&6
6271 if test -n "$AR"; then
6272 ac_cv_prog_AR="$AR" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_AR="${ac_tool_prefix}ar"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6292 if test -n "$AR"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6294 $as_echo "$AR" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6297 $as_echo "no
" >&6; }
6302 if test -z "$ac_cv_prog_AR"; then
6304 # Extract the first word of "ar", so it can be a program name with args.
6305 set dummy ar; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6307 $as_echo_n "checking
for $ac_word...
" >&6; }
6308 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6309 $as_echo_n "(cached
) " >&6
6311 if test -n "$ac_ct_AR"; then
6312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_ac_ct_AR="ar"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332 if test -n "$ac_ct_AR"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6334 $as_echo "$ac_ct_AR" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6337 $as_echo "no
" >&6; }
6340 if test "x
$ac_ct_AR" = x; then
6343 case $cross_compiling:$ac_tool_warned in
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6346 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6347 ac_tool_warned=yes ;;
6355 test -z "$AR" && AR=ar
6356 test -z "$AR_FLAGS" && AR_FLAGS=cru
6368 if test -n "$ac_tool_prefix"; then
6369 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6370 set dummy ${ac_tool_prefix}strip; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6372 $as_echo_n "checking
for $ac_word...
" >&6; }
6373 if ${ac_cv_prog_STRIP+:} false; then :
6374 $as_echo_n "(cached
) " >&6
6376 if test -n "$STRIP"; then
6377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6396 STRIP=$ac_cv_prog_STRIP
6397 if test -n "$STRIP"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6399 $as_echo "$STRIP" >&6; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6402 $as_echo "no
" >&6; }
6407 if test -z "$ac_cv_prog_STRIP"; then
6409 # Extract the first word of "strip
", so it can be a program name with args.
6410 set dummy strip; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6412 $as_echo_n "checking
for $ac_word...
" >&6; }
6413 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6414 $as_echo_n "(cached
) " >&6
6416 if test -n "$ac_ct_STRIP"; then
6417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_ac_ct_STRIP="strip
"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6437 if test -n "$ac_ct_STRIP"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6439 $as_echo "$ac_ct_STRIP" >&6; }
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6442 $as_echo "no
" >&6; }
6445 if test "x
$ac_ct_STRIP" = x; then
6448 case $cross_compiling:$ac_tool_warned in
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6451 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6452 ac_tool_warned=yes ;;
6457 STRIP="$ac_cv_prog_STRIP"
6460 test -z "$STRIP" && STRIP=:
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6471 $as_echo_n "checking
for $ac_word...
" >&6; }
6472 if ${ac_cv_prog_RANLIB+:} false; then :
6473 $as_echo_n "(cached
) " >&6
6475 if test -n "$RANLIB"; then
6476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6495 RANLIB=$ac_cv_prog_RANLIB
6496 if test -n "$RANLIB"; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6498 $as_echo "$RANLIB" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6501 $as_echo "no
" >&6; }
6506 if test -z "$ac_cv_prog_RANLIB"; then
6507 ac_ct_RANLIB=$RANLIB
6508 # Extract the first word of "ranlib
", so it can be a program name with args.
6509 set dummy ranlib; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6511 $as_echo_n "checking
for $ac_word...
" >&6; }
6512 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6513 $as_echo_n "(cached
) " >&6
6515 if test -n "$ac_ct_RANLIB"; then
6516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6536 if test -n "$ac_ct_RANLIB"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6538 $as_echo "$ac_ct_RANLIB" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6541 $as_echo "no
" >&6; }
6544 if test "x
$ac_ct_RANLIB" = x; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6550 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6551 ac_tool_warned=yes ;;
6553 RANLIB=$ac_ct_RANLIB
6556 RANLIB="$ac_cv_prog_RANLIB"
6559 test -z "$RANLIB" && RANLIB=:
6566 # Determine commands to create old-style static archives.
6567 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6568 old_postinstall_cmds='chmod 644 $oldlib'
6569 old_postuninstall_cmds=
6571 if test -n "$RANLIB"; then
6574 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6577 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6580 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6585 lock_old_archive_extraction=yes ;;
6587 lock_old_archive_extraction=no ;;
6628 # If no C compiler was specified, use CC.
6631 # If no C compiler flags were specified, use CFLAGS.
6632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6634 # Allow CC to be a program name with arguments.
6638 # Check for command to grab the raw symbol name followed by C symbol from nm.
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6640 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6641 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6642 $as_echo_n "(cached
) " >&6
6645 # These are sane defaults that work on at least a few old systems.
6646 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6648 # Character class describing NM global symbol codes.
6649 symcode='[BCDEGRST]'
6651 # Regexp to match symbols that can be accessed directly from C.
6652 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6654 # Define system-specific variables.
6659 cygwin* | mingw* | pw32* | cegcc*)
6660 symcode='[ABCDGISTW]'
6663 if test "$host_cpu" = ia64; then
6664 symcode='[ABCDEGRST]'
6668 symcode='[BCDEGRST]'
6671 symcode='[BCDEGQRST]'
6682 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6690 # If we're using GNU nm, then use its standard symbol codes.
6691 case `$NM -V 2>&1` in
6692 *GNU* | *'with BFD'*)
6693 symcode='[ABCDGIRSTW]' ;;
6696 # Transform an extracted symbol line into a proper C declaration.
6697 # Some systems (esp. on ia64) link data and code symbols differently,
6698 # so use this general approach.
6699 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6701 # Transform an extracted symbol line into symbol name and symbol address
6702 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6703 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'"
6705 # Handle CRLF in mingw tool chain
6709 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6713 # Try without a prefix underscore, then with it.
6714 for ac_symprfx in "" "_
"; do
6716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6717 symxfrm="\\1 $ac_symprfx\\2 \\2"
6719 # Write the raw and C identifiers.
6720 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6721 # Fake it for dumpbin and say T for any non-static function
6722 # and D for any global variable.
6723 # Also find C++ and __fastcall symbols from MSVC++,
6724 # which start with @ or ?.
6725 lt_cv_sys_global_symbol_pipe="$AWK '"\
6726 " {last_section=section; section=\$ 3};"\
6727 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6728 " \$ 0!~/External *\|/{next};"\
6729 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6730 " {if(hide[section]) next};"\
6731 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6732 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6733 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6734 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6735 " ' prfx
=^
$ac_symprfx"
6737 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6740 # Check to see that the pipe works correctly.
6744 cat > conftest.$ac_ext <<_LT_EOF
6749 void nm_test_func(void);
6750 void nm_test_func(void){}
6754 int main(){nm_test_var='a';nm_test_func();return(0);}
6757 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6758 (eval $ac_compile) 2>&5
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6761 test $ac_status = 0; }; then
6762 # Now try to grab the symbols.
6764 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6765 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6768 test $ac_status = 0; } && test -s "$nlist"; then
6769 # Try sorting and uniquifying the output.
6770 if sort "$nlist" | uniq > "$nlist"T; then
6771 mv -f "$nlist"T "$nlist"
6776 # Make sure that we snagged all the symbols we need.
6777 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6778 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6779 cat <<_LT_EOF > conftest.$ac_ext
6785 # Now generate the symbol file.
6786 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6788 cat <<_LT_EOF >> conftest.$ac_ext
6790 /* The mapping between symbol names and symbols. */
6795 lt__PROGRAM__LTX_preloaded_symbols[] =
6797 { "@PROGRAM@
", (void *) 0 },
6799 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6800 cat <<\_LT_EOF >> conftest.$ac_ext
6804 /* This works around a problem in FreeBSD linker */
6805 #ifdef FREEBSD_WORKAROUND
6806 static const void *lt_preloaded_setup() {
6807 return lt__PROGRAM__LTX_preloaded_symbols;
6815 # Now try linking the two files.
6816 mv conftest.$ac_objext conftstm.$ac_objext
6817 lt_save_LIBS="$LIBS"
6818 lt_save_CFLAGS="$CFLAGS"
6819 LIBS="conftstm.
$ac_objext"
6820 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6821 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6822 (eval $ac_link) 2>&5
6824 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6825 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6828 LIBS="$lt_save_LIBS"
6829 CFLAGS="$lt_save_CFLAGS"
6831 echo "cannot
find nm_test_func
in $nlist" >&5
6834 echo "cannot
find nm_test_var
in $nlist" >&5
6837 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6840 echo "$progname: failed program was
:" >&5
6841 cat conftest.$ac_ext >&5
6843 rm -rf conftest* conftst*
6845 # Do not use the global_symbol_pipe unless it works.
6846 if test "$pipe_works" = yes; then
6849 lt_cv_sys_global_symbol_pipe=
6855 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6856 lt_cv_sys_global_symbol_to_cdecl=
6858 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6860 $as_echo "failed
" >&6; }
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6863 $as_echo "ok
" >&6; }
6888 # Check whether --enable-libtool-lock was given.
6889 if test "${enable_libtool_lock+set}" = set; then :
6890 enableval=$enable_libtool_lock;
6893 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6895 # Some flags need to be propagated to the compiler or linker for good
6899 # Find out which ABI we are using.
6900 echo 'int i;' > conftest.$ac_ext
6901 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902 (eval $ac_compile) 2>&5
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6905 test $ac_status = 0; }; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6918 # Find out which ABI we are using.
6919 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6920 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6921 (eval $ac_compile) 2>&5
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6924 test $ac_status = 0; }; then
6925 if test "$lt_cv_prog_gnu_ld" = yes; then
6926 case `/usr/bin/file conftest.$ac_objext` in
6928 LD="${LD-ld} -melf32bsmip"
6931 LD="${LD-ld} -melf32bmipn32"
6934 LD="${LD-ld} -melf64bmip"
6938 case `/usr/bin/file conftest.$ac_objext` in
6954 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6955 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6956 # Find out which ABI we are using.
6957 echo 'int i;' > conftest.$ac_ext
6958 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6959 (eval $ac_compile) 2>&5
6961 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6962 test $ac_status = 0; }; then
6963 case `/usr/bin/file conftest.o` in
6966 x86_64-*kfreebsd*-gnu)
6967 LD="${LD-ld} -m elf_i386_fbsd
"
6970 case `/usr/bin/file conftest.o` in
6972 LD="${LD-ld} -m elf32_x86_64
"
6975 LD="${LD-ld} -m elf_i386
"
6979 powerpc64le-*linux*)
6980 LD="${LD-ld} -m elf32lppclinux
"
6983 LD="${LD-ld} -m elf32ppclinux
"
6986 LD="${LD-ld} -m elf_s390
"
6989 LD="${LD-ld} -m elf32_sparc
"
6995 x86_64-*kfreebsd*-gnu)
6996 LD="${LD-ld} -m elf_x86_64_fbsd
"
6999 LD="${LD-ld} -m elf_x86_64
"
7002 LD="${LD-ld} -m elf64lppc
"
7005 LD="${LD-ld} -m elf64ppc
"
7007 s390*-*linux*|s390*-*tpf*)
7008 LD="${LD-ld} -m elf64_s390
"
7011 LD="${LD-ld} -m elf64_sparc
"
7021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7022 SAVE_CFLAGS="$CFLAGS"
7023 CFLAGS="$CFLAGS -belf"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7025 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7026 if ${lt_cv_cc_needs_belf+:} false; then :
7027 $as_echo_n "(cached
) " >&6
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7046 if ac_fn_c_try_link "$LINENO"; then :
7047 lt_cv_cc_needs_belf=yes
7049 lt_cv_cc_needs_belf=no
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7061 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7064 CFLAGS="$SAVE_CFLAGS"
7068 # Find out which ABI we are using.
7069 echo 'int i;' > conftest.$ac_ext
7070 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7071 (eval $ac_compile) 2>&5
7073 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7074 test $ac_status = 0; }; then
7075 case `/usr/bin/file conftest.o` in
7077 case $lt_cv_prog_gnu_ld in
7078 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7080 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7092 need_locks="$enable_libtool_lock"
7096 rhapsody* | darwin*)
7097 if test -n "$ac_tool_prefix"; then
7098 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7101 $as_echo_n "checking
for $ac_word...
" >&6; }
7102 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7103 $as_echo_n "(cached
) " >&6
7105 if test -n "$DSYMUTIL"; then
7106 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7125 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7126 if test -n "$DSYMUTIL"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7128 $as_echo "$DSYMUTIL" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7131 $as_echo "no
" >&6; }
7136 if test -z "$ac_cv_prog_DSYMUTIL"; then
7137 ac_ct_DSYMUTIL=$DSYMUTIL
7138 # Extract the first word of "dsymutil
", so it can be a program name with args.
7139 set dummy dsymutil; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7141 $as_echo_n "checking
for $ac_word...
" >&6; }
7142 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7143 $as_echo_n "(cached
) " >&6
7145 if test -n "$ac_ct_DSYMUTIL"; then
7146 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7165 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7166 if test -n "$ac_ct_DSYMUTIL"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7168 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7171 $as_echo "no
" >&6; }
7174 if test "x
$ac_ct_DSYMUTIL" = x; then
7177 case $cross_compiling:$ac_tool_warned in
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7180 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7181 ac_tool_warned=yes ;;
7183 DSYMUTIL=$ac_ct_DSYMUTIL
7186 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7193 $as_echo_n "checking
for $ac_word...
" >&6; }
7194 if ${ac_cv_prog_NMEDIT+:} false; then :
7195 $as_echo_n "(cached
) " >&6
7197 if test -n "$NMEDIT"; then
7198 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7217 NMEDIT=$ac_cv_prog_NMEDIT
7218 if test -n "$NMEDIT"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7220 $as_echo "$NMEDIT" >&6; }
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7223 $as_echo "no
" >&6; }
7228 if test -z "$ac_cv_prog_NMEDIT"; then
7229 ac_ct_NMEDIT=$NMEDIT
7230 # Extract the first word of "nmedit
", so it can be a program name with args.
7231 set dummy nmedit; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7233 $as_echo_n "checking
for $ac_word...
" >&6; }
7234 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7235 $as_echo_n "(cached
) " >&6
7237 if test -n "$ac_ct_NMEDIT"; then
7238 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7257 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7258 if test -n "$ac_ct_NMEDIT"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7260 $as_echo "$ac_ct_NMEDIT" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7263 $as_echo "no
" >&6; }
7266 if test "x
$ac_ct_NMEDIT" = x; then
7269 case $cross_compiling:$ac_tool_warned in
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7272 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7273 ac_tool_warned=yes ;;
7275 NMEDIT=$ac_ct_NMEDIT
7278 NMEDIT="$ac_cv_prog_NMEDIT"
7281 if test -n "$ac_tool_prefix"; then
7282 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7283 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7285 $as_echo_n "checking
for $ac_word...
" >&6; }
7286 if ${ac_cv_prog_LIPO+:} false; then :
7287 $as_echo_n "(cached
) " >&6
7289 if test -n "$LIPO"; then
7290 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7309 LIPO=$ac_cv_prog_LIPO
7310 if test -n "$LIPO"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7312 $as_echo "$LIPO" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7315 $as_echo "no
" >&6; }
7320 if test -z "$ac_cv_prog_LIPO"; then
7322 # Extract the first word of "lipo
", so it can be a program name with args.
7323 set dummy lipo; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7325 $as_echo_n "checking
for $ac_word...
" >&6; }
7326 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7327 $as_echo_n "(cached
) " >&6
7329 if test -n "$ac_ct_LIPO"; then
7330 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_ac_ct_LIPO="lipo
"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7349 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7350 if test -n "$ac_ct_LIPO"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7352 $as_echo "$ac_ct_LIPO" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7355 $as_echo "no
" >&6; }
7358 if test "x
$ac_ct_LIPO" = x; then
7361 case $cross_compiling:$ac_tool_warned in
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7364 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7365 ac_tool_warned=yes ;;
7370 LIPO="$ac_cv_prog_LIPO"
7373 if test -n "$ac_tool_prefix"; then
7374 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7375 set dummy ${ac_tool_prefix}otool; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7377 $as_echo_n "checking
for $ac_word...
" >&6; }
7378 if ${ac_cv_prog_OTOOL+:} false; then :
7379 $as_echo_n "(cached
) " >&6
7381 if test -n "$OTOOL"; then
7382 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7401 OTOOL=$ac_cv_prog_OTOOL
7402 if test -n "$OTOOL"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7404 $as_echo "$OTOOL" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7407 $as_echo "no
" >&6; }
7412 if test -z "$ac_cv_prog_OTOOL"; then
7414 # Extract the first word of "otool
", so it can be a program name with args.
7415 set dummy otool; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7417 $as_echo_n "checking
for $ac_word...
" >&6; }
7418 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7419 $as_echo_n "(cached
) " >&6
7421 if test -n "$ac_ct_OTOOL"; then
7422 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431 ac_cv_prog_ac_ct_OTOOL="otool
"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7441 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7442 if test -n "$ac_ct_OTOOL"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7444 $as_echo "$ac_ct_OTOOL" >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7447 $as_echo "no
" >&6; }
7450 if test "x
$ac_ct_OTOOL" = x; then
7453 case $cross_compiling:$ac_tool_warned in
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7456 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7457 ac_tool_warned=yes ;;
7462 OTOOL="$ac_cv_prog_OTOOL"
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7467 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7469 $as_echo_n "checking
for $ac_word...
" >&6; }
7470 if ${ac_cv_prog_OTOOL64+:} false; then :
7471 $as_echo_n "(cached
) " >&6
7473 if test -n "$OTOOL64"; then
7474 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7493 OTOOL64=$ac_cv_prog_OTOOL64
7494 if test -n "$OTOOL64"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7496 $as_echo "$OTOOL64" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7499 $as_echo "no
" >&6; }
7504 if test -z "$ac_cv_prog_OTOOL64"; then
7505 ac_ct_OTOOL64=$OTOOL64
7506 # Extract the first word of "otool64
", so it can be a program name with args.
7507 set dummy otool64; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7509 $as_echo_n "checking
for $ac_word...
" >&6; }
7510 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7511 $as_echo_n "(cached
) " >&6
7513 if test -n "$ac_ct_OTOOL64"; then
7514 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7533 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7534 if test -n "$ac_ct_OTOOL64"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7536 $as_echo "$ac_ct_OTOOL64" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7539 $as_echo "no
" >&6; }
7542 if test "x
$ac_ct_OTOOL64" = x; then
7545 case $cross_compiling:$ac_tool_warned in
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7548 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7549 ac_tool_warned=yes ;;
7551 OTOOL64=$ac_ct_OTOOL64
7554 OTOOL64="$ac_cv_prog_OTOOL64"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7584 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7585 if ${lt_cv_apple_cc_single_mod+:} false; then :
7586 $as_echo_n "(cached
) " >&6
7588 lt_cv_apple_cc_single_mod=no
7589 if test -z "${LT_MULTI_MODULE}"; then
7590 # By default we will add the -single_module flag. You can override
7591 # by either setting the environment variable LT_MULTI_MODULE
7592 # non-empty at configure time, or by adding -multi_module to the
7594 rm -rf libconftest.dylib*
7595 echo "int foo
(void
){return 1;}" > conftest.c
7596 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7597 -dynamiclib -Wl,-single_module conftest.c
" >&5
7598 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7599 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7601 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7602 lt_cv_apple_cc_single_mod=yes
7604 cat conftest.err >&5
7606 rm -rf libconftest.dylib*
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7611 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7613 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7614 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7615 $as_echo_n "(cached
) " >&6
7617 lt_cv_ld_exported_symbols_list=no
7618 save_LDFLAGS=$LDFLAGS
7619 echo "_main
" > conftest.sym
7620 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7632 if ac_fn_c_try_link "$LINENO"; then :
7633 lt_cv_ld_exported_symbols_list=yes
7635 lt_cv_ld_exported_symbols_list=no
7637 rm -f core conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639 LDFLAGS="$save_LDFLAGS"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7643 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7645 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7646 if ${lt_cv_ld_force_load+:} false; then :
7647 $as_echo_n "(cached
) " >&6
7649 lt_cv_ld_force_load=no
7650 cat > conftest.c << _LT_EOF
7651 int forced_loaded() { return 2;}
7653 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7654 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7655 echo "$AR cru libconftest.a conftest.o
" >&5
7656 $AR cru libconftest.a conftest.o 2>&5
7657 cat > conftest.c << _LT_EOF
7658 int main() { return 0;}
7660 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7661 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7663 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7664 lt_cv_ld_force_load=yes
7666 cat conftest.err >&5
7668 rm -f conftest.err libconftest.a conftest conftest.c
7669 rm -rf conftest.dSYM
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7673 $as_echo "$lt_cv_ld_force_load" >&6; }
7675 rhapsody* | darwin1.[012])
7676 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7678 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7679 darwin*) # darwin 5.x on
7680 # if running on 10.5 or later, the deployment target defaults
7681 # to the OS version, if on x86, and 10.4, the deployment
7682 # target defaults to 10.4. Don't you love it?
7683 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7684 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7685 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7687 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7689 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7693 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7694 _lt_dar_single_mod='$single_module'
7696 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7697 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7699 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7701 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7702 _lt_dsymutil='~$DSYMUTIL $lib || :'
7710 ac_cpp='$CPP $CPPFLAGS'
7711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7715 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7716 # On Suns, sometimes $CPP names a directory.
7717 if test -n "$CPP" && test -d "$CPP"; then
7720 if test -z "$CPP"; then
7721 if ${ac_cv_prog_CPP+:} false; then :
7722 $as_echo_n "(cached
) " >&6
7724 # Double quotes because CPP needs to be expanded
7725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7728 for ac_c_preproc_warn_flag in '' yes
7730 # Use a header file that comes with gcc, so configuring glibc
7731 # with a fresh cross-compiler works.
7732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7733 # <limits.h> exists even on freestanding compilers.
7734 # On the NeXT, cc -E runs the code through the compiler's parser,
7735 # not just through cpp. "Syntax error
" is here to catch this case.
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7739 # include <limits.h>
7741 # include <assert.h>
7745 if ac_fn_c_try_cpp "$LINENO"; then :
7748 # Broken: fails on valid input.
7751 rm -f conftest.err conftest.i conftest.$ac_ext
7753 # OK, works on sane cases. Now check whether nonexistent headers
7754 # can be detected and how.
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #include <ac_nonexistent.h>
7759 if ac_fn_c_try_cpp "$LINENO"; then :
7760 # Broken: success on invalid input.
7763 # Passes both tests.
7767 rm -f conftest.err conftest.i conftest.$ac_ext
7770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7771 rm -f conftest.i conftest.err conftest.$ac_ext
7772 if $ac_preproc_ok; then :
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7785 $as_echo "$CPP" >&6; }
7787 for ac_c_preproc_warn_flag in '' yes
7789 # Use a header file that comes with gcc, so configuring glibc
7790 # with a fresh cross-compiler works.
7791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7792 # <limits.h> exists even on freestanding compilers.
7793 # On the NeXT, cc -E runs the code through the compiler's parser,
7794 # not just through cpp. "Syntax error
" is here to catch this case.
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7798 # include <limits.h>
7800 # include <assert.h>
7804 if ac_fn_c_try_cpp "$LINENO"; then :
7807 # Broken: fails on valid input.
7810 rm -f conftest.err conftest.i conftest.$ac_ext
7812 # OK, works on sane cases. Now check whether nonexistent headers
7813 # can be detected and how.
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 #include <ac_nonexistent.h>
7818 if ac_fn_c_try_cpp "$LINENO"; then :
7819 # Broken: success on invalid input.
7822 # Passes both tests.
7826 rm -f conftest.err conftest.i conftest.$ac_ext
7829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7830 rm -f conftest.i conftest.err conftest.$ac_ext
7831 if $ac_preproc_ok; then :
7834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7836 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7837 See \`config.log' for more details
" "$LINENO" 5; }
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7848 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7849 if ${ac_cv_header_stdc+:} false; then :
7850 $as_echo_n "(cached
) " >&6
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7867 if ac_fn_c_try_compile "$LINENO"; then :
7868 ac_cv_header_stdc=yes
7870 ac_cv_header_stdc=no
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 if test $ac_cv_header_stdc = yes; then
7875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7881 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7882 $EGREP "memchr
" >/dev/null 2>&1; then :
7885 ac_cv_header_stdc=no
7891 if test $ac_cv_header_stdc = yes; then
7892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7898 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7899 $EGREP "free
" >/dev/null 2>&1; then :
7902 ac_cv_header_stdc=no
7908 if test $ac_cv_header_stdc = yes; then
7909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7910 if test "$cross_compiling" = yes; then :
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7917 #if ((' ' & 0x0FF) == 0x020)
7918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7921 # define ISLOWER(c) \
7922 (('a' <= (c) && (c) <= 'i') \
7923 || ('j' <= (c) && (c) <= 'r') \
7924 || ('s' <= (c) && (c) <= 'z'))
7925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7933 for (i = 0; i < 256; i++)
7934 if (XOR (islower (i), ISLOWER (i))
7935 || toupper (i) != TOUPPER (i))
7940 if ac_fn_c_try_run "$LINENO"; then :
7943 ac_cv_header_stdc=no
7945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7946 conftest.$ac_objext conftest.beam conftest.$ac_ext
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7952 $as_echo "$ac_cv_header_stdc" >&6; }
7953 if test $ac_cv_header_stdc = yes; then
7955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7960 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7961 inttypes.h stdint.h unistd.h
7963 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7966 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7967 cat >>confdefs.h
<<_ACEOF
7968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976 for ac_header
in dlfcn.h
7978 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7980 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7981 cat >>confdefs.h
<<_ACEOF
7982 #define HAVE_DLFCN_H 1
7989 if test -n "$ac_tool_prefix"; then
7990 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7991 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_prog_GOC+:} false
; then :
7995 $as_echo_n "(cached) " >&6
7997 if test -n "$GOC"; then
7998 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
8000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8004 test -z "$as_dir" && as_dir
=.
8005 for ac_exec_ext
in '' $ac_executable_extensions; do
8006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 if test -n "$GOC"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
8020 $as_echo "$GOC" >&6; }
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8028 if test -z "$ac_cv_prog_GOC"; then
8030 # Extract the first word of "gccgo", so it can be a program name with args.
8031 set dummy gccgo
; ac_word
=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if ${ac_cv_prog_ac_ct_GOC+:} false
; then :
8035 $as_echo_n "(cached) " >&6
8037 if test -n "$ac_ct_GOC"; then
8038 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
8040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8044 test -z "$as_dir" && as_dir
=.
8045 for ac_exec_ext
in '' $ac_executable_extensions; do
8046 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8047 ac_cv_prog_ac_ct_GOC
="gccgo"
8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
8058 if test -n "$ac_ct_GOC"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
8060 $as_echo "$ac_ct_GOC" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8066 if test "x$ac_ct_GOC" = x
; then
8069 case $cross_compiling:$ac_tool_warned in
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8073 ac_tool_warned
=yes ;;
8078 GOC
="$ac_cv_prog_GOC"
8094 # Check whether --enable-shared was given.
8095 if test "${enable_shared+set}" = set; then :
8096 enableval
=$enable_shared; p
=${PACKAGE-default}
8098 yes) enable_shared
=yes ;;
8099 no
) enable_shared
=no
;;
8102 # Look at the argument we got. We use all the common list separators.
8103 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8104 for pkg
in $enableval; do
8106 if test "X$pkg" = "X$p"; then
8125 # Check whether --enable-static was given.
8126 if test "${enable_static+set}" = set; then :
8127 enableval
=$enable_static; p
=${PACKAGE-default}
8129 yes) enable_static
=yes ;;
8130 no
) enable_static
=no
;;
8133 # Look at the argument we got. We use all the common list separators.
8134 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8135 for pkg
in $enableval; do
8137 if test "X$pkg" = "X$p"; then
8157 # Check whether --with-pic was given.
8158 if test "${with_pic+set}" = set; then :
8159 withval
=$with_pic; pic_mode
="$withval"
8165 test -z "$pic_mode" && pic_mode
=default
8173 # Check whether --enable-fast-install was given.
8174 if test "${enable_fast_install+set}" = set; then :
8175 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8177 yes) enable_fast_install
=yes ;;
8178 no
) enable_fast_install
=no
;;
8180 enable_fast_install
=no
8181 # Look at the argument we got. We use all the common list separators.
8182 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8183 for pkg
in $enableval; do
8185 if test "X$pkg" = "X$p"; then
8186 enable_fast_install
=yes
8193 enable_fast_install
=yes
8206 # This can be used to rebuild libtool when needed
8207 LIBTOOL_DEPS
="$ltmain"
8209 # Always use our own libtool.
8210 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8237 test -z "$LN_S" && LN_S
="ln -s"
8252 if test -n "${ZSH_VERSION+set}" ; then
8253 setopt NO_GLOB_SUBST
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8257 $as_echo_n "checking for objdir... " >&6; }
8258 if ${lt_cv_objdir+:} false
; then :
8259 $as_echo_n "(cached) " >&6
8261 rm -f .libs
2>/dev
/null
8262 mkdir .libs
2>/dev
/null
8263 if test -d .libs
; then
8266 # MS-DOS does not allow filenames that begin with a dot.
8269 rmdir .libs
2>/dev
/null
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8272 $as_echo "$lt_cv_objdir" >&6; }
8273 objdir
=$lt_cv_objdir
8279 cat >>confdefs.h
<<_ACEOF
8280 #define LT_OBJDIR "$lt_cv_objdir/"
8288 # AIX sometimes has problems with the GCC collect2 program. For some
8289 # reason, if we set the COLLECT_NAMES environment variable, the problems
8290 # vanish in a puff of smoke.
8291 if test "X${COLLECT_NAMES+set}" != Xset
; then
8293 export COLLECT_NAMES
8300 can_build_shared
=yes
8302 # All known linkers require a `.a' archive for static linking (except MSVC,
8303 # which needs '.lib').
8306 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8309 old_CFLAGS
="$CFLAGS"
8311 # Set sane defaults for various variables
8312 test -z "$CC" && CC
=cc
8313 test -z "$LTCC" && LTCC
=$CC
8314 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8315 test -z "$LD" && LD
=ld
8316 test -z "$ac_objext" && ac_objext
=o
8318 for cc_temp
in $compiler""; do
8320 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8321 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8326 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8329 # Only perform the check for file, if the check method requires it
8330 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8331 case $deplibs_check_method in
8333 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8335 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8336 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8337 $as_echo_n "(cached) " >&6
8341 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8344 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8345 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8346 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8347 for ac_dir
in $ac_dummy; do
8349 test -z "$ac_dir" && ac_dir
=.
8350 if test -f $ac_dir/${ac_tool_prefix}file; then
8351 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8352 if test -n "$file_magic_test_file"; then
8353 case $deplibs_check_method in
8355 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8356 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8357 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8358 $EGREP "$file_magic_regex" > /dev
/null
; then
8363 *** Warning: the command libtool uses to detect shared libraries,
8364 *** $file_magic_cmd, produces output that libtool cannot recognize.
8365 *** The result is that libtool may fail to recognize shared libraries
8366 *** as such. This will affect the creation of libtool libraries that
8367 *** depend on shared libraries, but programs linked with such libtool
8368 *** libraries will work regardless of this problem. Nevertheless, you
8369 *** may want to report the problem to your system manager and/or to
8370 *** bug-libtool@gnu.org
8380 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8385 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8386 if test -n "$MAGIC_CMD"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8388 $as_echo "$MAGIC_CMD" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8398 if test -z "$lt_cv_path_MAGIC_CMD"; then
8399 if test -n "$ac_tool_prefix"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8401 $as_echo_n "checking for file... " >&6; }
8402 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8403 $as_echo_n "(cached) " >&6
8407 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8410 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8411 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8412 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8413 for ac_dir
in $ac_dummy; do
8415 test -z "$ac_dir" && ac_dir
=.
8416 if test -f $ac_dir/file; then
8417 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8418 if test -n "$file_magic_test_file"; then
8419 case $deplibs_check_method in
8421 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8422 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8423 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8424 $EGREP "$file_magic_regex" > /dev
/null
; then
8429 *** Warning: the command libtool uses to detect shared libraries,
8430 *** $file_magic_cmd, produces output that libtool cannot recognize.
8431 *** The result is that libtool may fail to recognize shared libraries
8432 *** as such. This will affect the creation of libtool libraries that
8433 *** depend on shared libraries, but programs linked with such libtool
8434 *** libraries will work regardless of this problem. Nevertheless, you
8435 *** may want to report the problem to your system manager and/or to
8436 *** bug-libtool@gnu.org
8446 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8451 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8452 if test -n "$MAGIC_CMD"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8454 $as_echo "$MAGIC_CMD" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8470 # Use C for the default configuration in the libtool script
8474 ac_cpp
='$CPP $CPPFLAGS'
8475 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8480 # Source file extension for C test sources.
8483 # Object file extension for compiled C test sources.
8487 # Code to be used in simple compile tests
8488 lt_simple_compile_test_code
="int some_variable = 0;"
8490 # Code to be used in simple link tests
8491 lt_simple_link_test_code
='int main(){return(0);}'
8499 # If no C compiler was specified, use CC.
8502 # If no C compiler flags were specified, use CFLAGS.
8503 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8505 # Allow CC to be a program name with arguments.
8508 # Save the default compiler, since it gets overwritten when the other
8509 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8510 compiler_DEFAULT
=$CC
8512 # save warnings/boilerplate of simple test code
8513 ac_outfile
=conftest.
$ac_objext
8514 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8515 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8516 _lt_compiler_boilerplate
=`cat conftest.err`
8519 ac_outfile
=conftest.
$ac_objext
8520 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8521 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8522 _lt_linker_boilerplate
=`cat conftest.err`
8527 ## There is no encapsulation within the following macros, do not change
8528 ## the running order or otherwise move them around unless you know exactly
8529 ## what you are doing...
8530 if test -n "$compiler"; then
8532 lt_prog_compiler_no_builtin_flag
=
8534 if test "$GCC" = yes; then
8535 case $cc_basename in
8537 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8539 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8543 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8544 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8545 $as_echo_n "(cached) " >&6
8547 lt_cv_prog_compiler_rtti_exceptions
=no
8548 ac_outfile
=conftest.
$ac_objext
8549 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8550 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8551 # Insert the option either (1) after the last *FLAGS variable, or
8552 # (2) before a word containing "conftest.", or (3) at the end.
8553 # Note that $ac_compile itself does not contain backslashes and begins
8554 # with a dollar sign (not a hyphen), so the echo should work correctly.
8555 # The option is referenced via a variable to avoid confusing sed.
8556 lt_compile
=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>conftest.err
)
8563 cat conftest.err
>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s "$ac_outfile"; then
8566 # The compiler can only warn and ignore the option if not recognized
8567 # So say no if there are warnings other than the usual output.
8568 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8569 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8570 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8571 lt_cv_prog_compiler_rtti_exceptions
=yes
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8578 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8580 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8581 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8593 lt_prog_compiler_wl
=
8594 lt_prog_compiler_pic
=
8595 lt_prog_compiler_static
=
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8598 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8600 if test "$GCC" = yes; then
8601 lt_prog_compiler_wl
='-Wl,'
8602 lt_prog_compiler_static
='-static'
8606 # All AIX code is PIC.
8607 if test "$host_cpu" = ia64
; then
8608 # AIX 5 now supports IA64 processor
8609 lt_prog_compiler_static
='-Bstatic'
8611 lt_prog_compiler_pic
='-fPIC'
8617 # see comment about AmigaOS4 .so support
8618 lt_prog_compiler_pic
='-fPIC'
8621 # FIXME: we need at least 68020 code to build shared libraries, but
8622 # adding the `-m68020' flag to GCC prevents building anything better,
8624 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8629 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8630 # PIC is the default for these OSes.
8633 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8634 # This hack is so that the source file can tell whether it is being
8635 # built for inclusion in a dll (and should export symbols for example).
8636 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8637 # (--disable-auto-import) libraries
8638 lt_prog_compiler_pic
='-DDLL_EXPORT'
8641 darwin
* | rhapsody
*)
8642 # PIC is the default on this platform
8643 # Common symbols not allowed in MH_DYLIB files
8644 lt_prog_compiler_pic
='-fno-common'
8648 # PIC is the default for Haiku.
8649 # The "-static" flag exists, but is broken.
8650 lt_prog_compiler_static
=
8654 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8655 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8656 # sets the default TLS model and affects inlining.
8662 lt_prog_compiler_pic
='-fPIC'
8668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8669 # Instead, we relocate shared libraries at runtime.
8673 # Just because we use GCC doesn't mean we suddenly get shared libraries
8674 # on systems that don't support them.
8675 lt_prog_compiler_can_build_shared
=no
8680 # QNX uses GNU C++, but need to define -shared option too, otherwise
8682 lt_prog_compiler_pic
='-fPIC -shared'
8686 if test -d /usr
/nec
; then
8687 lt_prog_compiler_pic
=-Kconform_pic
8692 lt_prog_compiler_pic
='-fPIC'
8696 case $cc_basename in
8697 nvcc
*) # Cuda Compiler Driver 2.2
8698 lt_prog_compiler_wl
='-Xlinker '
8699 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8703 # PORTME Check for flag to pass linker flags through the system compiler.
8706 lt_prog_compiler_wl
='-Wl,'
8707 if test "$host_cpu" = ia64
; then
8708 # AIX 5 now supports IA64 processor
8709 lt_prog_compiler_static
='-Bstatic'
8711 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8715 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8716 # This hack is so that the source file can tell whether it is being
8717 # built for inclusion in a dll (and should export symbols for example).
8718 lt_prog_compiler_pic
='-DDLL_EXPORT'
8721 hpux9
* | hpux10
* | hpux11
*)
8722 lt_prog_compiler_wl
='-Wl,'
8723 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8730 lt_prog_compiler_pic
='+Z'
8733 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8734 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8737 irix5
* | irix6
* | nonstopux
*)
8738 lt_prog_compiler_wl
='-Wl,'
8739 # PIC (with -KPIC) is the default.
8740 lt_prog_compiler_static
='-non_shared'
8743 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8744 case $cc_basename in
8745 # old Intel for x86_64 which still supported -KPIC.
8747 lt_prog_compiler_wl
='-Wl,'
8748 lt_prog_compiler_pic
='-KPIC'
8749 lt_prog_compiler_static
='-static'
8751 # icc used to be incompatible with GCC.
8752 # ICC 10 doesn't accept -KPIC any more.
8754 lt_prog_compiler_wl
='-Wl,'
8755 lt_prog_compiler_pic
='-fPIC'
8756 lt_prog_compiler_static
='-static'
8758 # Lahey Fortran 8.1.
8760 lt_prog_compiler_wl
='-Wl,'
8761 lt_prog_compiler_pic
='--shared'
8762 lt_prog_compiler_static
='--static'
8764 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8765 # Portland Group compilers (*not* the Pentium gcc compiler,
8766 # which looks to be a dead project)
8767 lt_prog_compiler_wl
='-Wl,'
8768 lt_prog_compiler_pic
='-fpic'
8769 lt_prog_compiler_static
='-Bstatic'
8772 lt_prog_compiler_wl
='-Wl,'
8773 # All Alpha code is PIC.
8774 lt_prog_compiler_static
='-non_shared'
8776 xl
* | bgxl
* | bgf
* | mpixl
*)
8777 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8778 lt_prog_compiler_wl
='-Wl,'
8779 lt_prog_compiler_pic
='-qpic'
8780 lt_prog_compiler_static
='-qstaticlink'
8783 case `$CC -V 2>&1 | sed 5q` in
8784 *Sun\ F
* |
*Sun
*Fortran
*)
8785 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8786 lt_prog_compiler_pic
='-KPIC'
8787 lt_prog_compiler_static
='-Bstatic'
8788 lt_prog_compiler_wl
=''
8792 lt_prog_compiler_pic
='-KPIC'
8793 lt_prog_compiler_static
='-Bstatic'
8794 lt_prog_compiler_wl
='-Wl,'
8802 lt_prog_compiler_pic
='-KPIC'
8803 lt_prog_compiler_static
='-Bstatic'
8807 # QNX uses GNU C++, but need to define -shared option too, otherwise
8809 lt_prog_compiler_pic
='-fPIC -shared'
8812 osf3
* | osf4
* | osf5
*)
8813 lt_prog_compiler_wl
='-Wl,'
8814 # All OSF/1 code is PIC.
8815 lt_prog_compiler_static
='-non_shared'
8819 lt_prog_compiler_static
='-non_shared'
8823 lt_prog_compiler_pic
='-KPIC'
8824 lt_prog_compiler_static
='-Bstatic'
8825 case $cc_basename in
8827 lt_prog_compiler_wl
='-Qoption ld ';;
8829 lt_prog_compiler_wl
='-Wl,';;
8834 lt_prog_compiler_wl
='-Qoption ld '
8835 lt_prog_compiler_pic
='-PIC'
8836 lt_prog_compiler_static
='-Bstatic'
8839 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8840 lt_prog_compiler_wl
='-Wl,'
8841 lt_prog_compiler_pic
='-KPIC'
8842 lt_prog_compiler_static
='-Bstatic'
8846 if test -d /usr
/nec
;then
8847 lt_prog_compiler_pic
='-Kconform_pic'
8848 lt_prog_compiler_static
='-Bstatic'
8852 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8853 lt_prog_compiler_wl
='-Wl,'
8854 lt_prog_compiler_pic
='-KPIC'
8855 lt_prog_compiler_static
='-Bstatic'
8859 lt_prog_compiler_wl
='-Wl,'
8860 lt_prog_compiler_can_build_shared
=no
8864 lt_prog_compiler_pic
='-pic'
8865 lt_prog_compiler_static
='-Bstatic'
8869 lt_prog_compiler_can_build_shared
=no
8875 # For platforms which do not support PIC, -DPIC is meaningless:
8877 lt_prog_compiler_pic
=
8880 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8884 $as_echo "$lt_prog_compiler_pic" >&6; }
8892 # Check to make sure the PIC flag actually works.
8894 if test -n "$lt_prog_compiler_pic"; then
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8896 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8897 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8898 $as_echo_n "(cached) " >&6
8900 lt_cv_prog_compiler_pic_works
=no
8901 ac_outfile
=conftest.
$ac_objext
8902 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8903 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8904 # Insert the option either (1) after the last *FLAGS variable, or
8905 # (2) before a word containing "conftest.", or (3) at the end.
8906 # Note that $ac_compile itself does not contain backslashes and begins
8907 # with a dollar sign (not a hyphen), so the echo should work correctly.
8908 # The option is referenced via a variable to avoid confusing sed.
8909 lt_compile
=`echo "$ac_compile" | $SED \
8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912 -e 's:$: $lt_compiler_flag:'`
8913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8914 (eval "$lt_compile" 2>conftest.err
)
8916 cat conftest.err
>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 if (exit $ac_status) && test -s "$ac_outfile"; then
8919 # The compiler can only warn and ignore the option if not recognized
8920 # So say no if there are warnings other than the usual output.
8921 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8922 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8923 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8924 lt_cv_prog_compiler_pic_works
=yes
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8931 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8933 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8934 case $lt_prog_compiler_pic in
8936 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8939 lt_prog_compiler_pic
=
8940 lt_prog_compiler_can_build_shared
=no
8951 # Check to make sure the static flag actually works.
8953 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8955 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8956 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8959 lt_cv_prog_compiler_static_works
=no
8960 save_LDFLAGS
="$LDFLAGS"
8961 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8962 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8963 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8964 # The linker can only warn and ignore the option if not recognized
8965 # So say no if there are warnings
8966 if test -s conftest.err
; then
8967 # Append any errors to the config.log.
8968 cat conftest.err
1>&5
8969 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8970 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8971 if diff conftest.exp conftest.er2
>/dev
/null
; then
8972 lt_cv_prog_compiler_static_works
=yes
8975 lt_cv_prog_compiler_static_works
=yes
8979 LDFLAGS
="$save_LDFLAGS"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8983 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8985 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8988 lt_prog_compiler_static
=
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8999 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9000 $as_echo_n "(cached) " >&6
9002 lt_cv_prog_compiler_c_o
=no
9003 $RM -r conftest
2>/dev
/null
9007 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9009 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 lt_compile
=`echo "$ac_compile" | $SED \
9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017 -e 's:$: $lt_compiler_flag:'`
9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019 (eval "$lt_compile" 2>out
/conftest.err
)
9021 cat out
/conftest.err
>&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings
9027 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9028 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9029 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9030 lt_cv_prog_compiler_c_o
=yes
9035 # SGI C++ compiler will create directory out/ii_files/ for
9036 # template instantiation
9037 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9038 $RM out
/* && rmdir out
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9054 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9055 $as_echo_n "(cached) " >&6
9057 lt_cv_prog_compiler_c_o
=no
9058 $RM -r conftest
2>/dev
/null
9062 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9064 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 lt_compile
=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074 (eval "$lt_compile" 2>out
/conftest.err
)
9076 cat out
/conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings
9082 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9083 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9084 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9085 lt_cv_prog_compiler_c_o
=yes
9090 # SGI C++ compiler will create directory out/ii_files/ for
9091 # template instantiation
9092 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9093 $RM out
/* && rmdir out
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9100 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9105 hard_links
="nottested"
9106 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9107 # do not overwrite the value of need_locks provided by the user
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9109 $as_echo_n "checking if we can lock with hard links... " >&6; }
9112 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9114 ln conftest.a conftest.b
2>&5 || hard_links
=no
9115 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9117 $as_echo "$hard_links" >&6; }
9118 if test "$hard_links" = no
; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9120 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9136 allow_undefined_flag
=
9137 always_export_symbols
=no
9139 archive_expsym_cmds
=
9140 compiler_needs_object
=no
9141 enable_shared_with_static_runtimes
=no
9142 export_dynamic_flag_spec
=
9143 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9144 hardcode_automatic
=no
9146 hardcode_direct_absolute
=no
9147 hardcode_libdir_flag_spec
=
9148 hardcode_libdir_flag_spec_ld
=
9149 hardcode_libdir_separator
=
9151 hardcode_shlibpath_var
=unsupported
9153 link_all_deplibs
=unknown
9156 old_archive_from_new_cmds
=
9157 old_archive_from_expsyms_cmds
=
9158 thread_safe_flag_spec
=
9159 whole_archive_flag_spec
=
9160 # include_expsyms should be a list of space-separated symbols to be *always*
9161 # included in the symbol list
9163 # exclude_expsyms can be an extended regexp of symbols to exclude
9164 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9165 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9166 # as well as any symbol that contains `d'.
9167 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9168 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9169 # platforms (ab)use it in PIC code, but their linkers get confused if
9170 # the symbol is explicitly referenced. Since portable code cannot
9171 # rely on this symbol name, it's probably fine to never include it in
9172 # preloaded symbol tables.
9173 # Exclude shared library initialization/finalization symbols.
9174 extract_expsyms_cmds
=
9177 cygwin
* | mingw
* | pw32
* | cegcc
*)
9178 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9179 # When not using gcc, we currently assume that we are using
9180 # Microsoft Visual C++.
9181 if test "$GCC" != yes; then
9186 # we just hope/assume this is gcc and not c89 (= MSVC++)
9196 # On some targets, GNU ld is compatible enough with the native linker
9197 # that we're better off using the native interface for both.
9198 lt_use_gnu_ld_interface
=no
9199 if test "$with_gnu_ld" = yes; then
9202 # The AIX port of GNU ld has always aspired to compatibility
9203 # with the native linker. However, as the warning in the GNU ld
9204 # block says, versions before 2.19.5* couldn't really create working
9205 # shared libraries, regardless of the interface used.
9206 case `$LD -v 2>&1` in
9207 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9208 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9209 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9211 lt_use_gnu_ld_interface
=yes
9216 lt_use_gnu_ld_interface
=yes
9221 if test "$lt_use_gnu_ld_interface" = yes; then
9222 # If archive_cmds runs LD, not CC, wlarc should be empty
9225 # Set some defaults for GNU ld with shared library support. These
9226 # are reset later if shared libraries are not supported. Putting them
9227 # here allows them to be overridden if necessary.
9228 runpath_var
=LD_RUN_PATH
9229 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9230 export_dynamic_flag_spec
='${wl}--export-dynamic'
9231 # ancient GNU ld didn't support --whole-archive et. al.
9232 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9233 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9235 whole_archive_flag_spec
=
9237 supports_anon_versioning
=no
9238 case `$LD -v 2>&1` in
9239 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9240 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9241 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9242 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9243 *\
2.11.
*) ;; # other 2.11 versions
9244 *) supports_anon_versioning
=yes ;;
9247 # See if GNU ld supports shared libraries.
9250 # On AIX/PPC, the GNU linker is very broken
9251 if test "$host_cpu" != ia64
; then
9255 *** Warning: the GNU linker, at least up to release 2.19, is reported
9256 *** to be unable to reliably create shared libraries on AIX.
9257 *** Therefore, libtool is disabling shared libraries support. If you
9258 *** really care for shared libraries, you may want to install binutils
9259 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9260 *** You will then need to restart the configuration process.
9269 # see comment about AmigaOS4 .so support
9270 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds
=''
9274 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)'
9275 hardcode_libdir_flag_spec
='-L$libdir'
9276 hardcode_minus_L
=yes
9282 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9283 allow_undefined_flag
=unsupported
9284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9285 # support --undefined. This deserves some investigation. FIXME
9286 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 cygwin
* | mingw
* | pw32
* | cegcc
*)
9293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9294 # as there is no search path for DLLs.
9295 hardcode_libdir_flag_spec
='-L$libdir'
9296 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9297 allow_undefined_flag
=unsupported
9298 always_export_symbols
=no
9299 enable_shared_with_static_runtimes
=yes
9300 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9302 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9303 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9304 # If the export-symbols file already is a .def file (1st line
9305 # is EXPORTS), use it as is; otherwise, prepend...
9306 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9307 cp $export_symbols $output_objdir/$soname.def;
9309 echo EXPORTS > $output_objdir/$soname.def;
9310 cat $export_symbols >> $output_objdir/$soname.def;
9312 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9319 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 link_all_deplibs
=yes
9325 hardcode_shlibpath_var
=no
9326 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9327 export_dynamic_flag_spec
='${wl}-E'
9328 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9329 # Instead, shared libraries are loaded at an image base (0x10000000 by
9330 # default) and relocated if they conflict, which is a slow very memory
9331 # consuming and fragmenting process. To avoid this, we pick a random,
9332 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9333 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9334 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9335 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'
9338 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9340 if test "$host_os" = linux-dietlibc
; then
9341 case $cc_basename in
9342 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9345 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9346 && test "$tmp_diet" = no
9349 tmp_sharedflag
='-shared'
9350 case $cc_basename,$host_cpu in
9351 pgcc
*) # Portland Group C compiler
9352 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'
9353 tmp_addflag
=' $pic_flag'
9355 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9356 # Portland Group f77 and f90 compilers
9357 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'
9358 tmp_addflag
=' $pic_flag -Mnomain' ;;
9359 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9360 tmp_addflag
=' -i_dynamic' ;;
9361 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9362 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9363 ifc
* | ifort
*) # Intel Fortran compiler
9364 tmp_addflag
=' -nofor_main' ;;
9365 lf95
*) # Lahey Fortran 8.1
9366 whole_archive_flag_spec
=
9367 tmp_sharedflag
='--shared' ;;
9368 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9369 tmp_sharedflag
='-qmkshrobj'
9371 nvcc
*) # Cuda Compiler Driver 2.2
9372 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'
9373 compiler_needs_object
=yes
9376 case `$CC -V 2>&1 | sed 5q` in
9377 *Sun\ C
*) # Sun C 5.9
9378 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'
9379 compiler_needs_object
=yes
9380 tmp_sharedflag
='-G' ;;
9381 *Sun\ F
*) # Sun Fortran 8.3
9382 tmp_sharedflag
='-G' ;;
9384 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386 if test "x$supports_anon_versioning" = xyes
; then
9387 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9388 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9389 echo "local: *; };" >> $output_objdir/$libname.ver~
9390 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9393 case $cc_basename in
9394 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9395 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9396 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9397 hardcode_libdir_flag_spec
=
9398 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9399 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9400 if test "x$supports_anon_versioning" = xyes
; then
9401 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403 echo "local: *; };" >> $output_objdir/$libname.ver~
9404 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9414 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9415 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9418 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9429 *** create shared libraries on Solaris systems. Therefore, libtool
9430 *** is disabling shared libraries support. We urge you to upgrade GNU
9431 *** binutils to release 2.9.1 or newer. Another option is to modify
9432 *** your PATH or compiler configuration so that the native linker is
9433 *** used, and then restart.
9436 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9437 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9444 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9445 case `$LD -v 2>&1` in
9446 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9451 *** reliably create shared libraries on SCO systems. Therefore, libtool
9452 *** is disabling shared libraries support. We urge you to upgrade GNU
9453 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9454 *** your PATH or compiler configuration so that the native linker is
9455 *** used, and then restart.
9460 # For security reasons, it is highly recommended that you always
9461 # use absolute paths for naming shared libraries, and exclude the
9462 # DT_RUNPATH tag from executables and libraries. But doing so
9463 # requires that you compile everything twice, which is a pain.
9464 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9465 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9466 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9476 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9479 hardcode_shlibpath_var
=no
9483 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9484 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492 if test "$ld_shlibs" = no
; then
9494 hardcode_libdir_flag_spec
=
9495 export_dynamic_flag_spec
=
9496 whole_archive_flag_spec
=
9499 # PORTME fill in a description of your system's linker (not GNU ld)
9502 allow_undefined_flag
=unsupported
9503 always_export_symbols
=yes
9504 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'
9505 # Note: this linker hardcodes the directories in LIBPATH if there
9506 # are no directories specified by -L.
9507 hardcode_minus_L
=yes
9508 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9509 # Neither direct hardcoding nor static linking is supported with a
9511 hardcode_direct
=unsupported
9516 if test "$host_cpu" = ia64
; then
9517 # On IA64, the linker does run time linking by default, so we don't
9518 # have to do anything special.
9519 aix_use_runtimelinking
=no
9520 exp_sym_flag
='-Bexport'
9523 # If we're using GNU nm, then we don't want the "-C" option.
9524 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9525 # Also, AIX nm treats weak defined symbols like other global
9526 # defined symbols, whereas GNU nm marks them as "W".
9527 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9528 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'
9530 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'
9532 aix_use_runtimelinking
=no
9534 # Test if we are trying to use run time linking or normal
9535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9536 # need to do runtime linking.
9537 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9538 for ld_flag
in $LDFLAGS; do
9539 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9540 aix_use_runtimelinking
=yes
9547 exp_sym_flag
='-bexport'
9548 no_entry_flag
='-bnoentry'
9551 # When large executables or shared objects are built, AIX ld can
9552 # have problems creating the table of contents. If linking a library
9553 # or program results in "error TOC overflow" add -mminimal-toc to
9554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9559 hardcode_direct_absolute
=yes
9560 hardcode_libdir_separator
=':'
9561 link_all_deplibs
=yes
9562 file_list_spec
='${wl}-f,'
9564 if test "$GCC" = yes; then
9565 case $host_os in aix4.
[012]|aix4.
[012].
*)
9566 # We only want to do this on AIX 4.2 and lower, the check
9567 # below for broken collect2 doesn't work under 4.3+
9568 collect2name
=`${CC} -print-prog-name=collect2`
9569 if test -f "$collect2name" &&
9570 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9572 # We have reworked collect2
9575 # We have old collect2
9576 hardcode_direct
=unsupported
9577 # It fails to find uninstalled libraries when the uninstalled
9578 # path is not listed in the libpath. Setting hardcode_minus_L
9579 # to unsupported forces relinking
9580 hardcode_minus_L
=yes
9581 hardcode_libdir_flag_spec
='-L$libdir'
9582 hardcode_libdir_separator
=
9586 shared_flag
='-shared'
9587 if test "$aix_use_runtimelinking" = yes; then
9588 shared_flag
="$shared_flag "'${wl}-G'
9592 if test "$host_cpu" = ia64
; then
9593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9594 # chokes on -Wl,-G. The following line is correct:
9597 if test "$aix_use_runtimelinking" = yes; then
9598 shared_flag
='${wl}-G'
9600 shared_flag
='${wl}-bM:SRE'
9605 export_dynamic_flag_spec
='${wl}-bexpall'
9606 # It seems that -bexpall does not export symbols beginning with
9607 # underscore (_), so it is better to generate a list of symbols to export.
9608 always_export_symbols
=yes
9609 if test "$aix_use_runtimelinking" = yes; then
9610 # Warning - without using the other runtime loading flags (-brtl),
9611 # -berok will link without error, but may produce a broken library.
9612 allow_undefined_flag
='-berok'
9613 # Determine the default libpath from the value encoded in an
9615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9626 if ac_fn_c_try_link
"$LINENO"; then :
9628 lt_aix_libpath_sed
='
9629 /Import File Strings/,/^$/ {
9635 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636 # Check for a 64-bit object if we didn't find anything.
9637 if test -z "$aix_libpath"; then
9638 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9641 rm -f core conftest.err conftest.
$ac_objext \
9642 conftest
$ac_exeext conftest.
$ac_ext
9643 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9645 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9646 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"
9648 if test "$host_cpu" = ia64
; then
9649 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9650 allow_undefined_flag
="-z nodefs"
9651 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"
9653 # Determine the default libpath from the value encoded in an
9655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9666 if ac_fn_c_try_link
"$LINENO"; then :
9668 lt_aix_libpath_sed
='
9669 /Import File Strings/,/^$/ {
9675 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9676 # Check for a 64-bit object if we didn't find anything.
9677 if test -z "$aix_libpath"; then
9678 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9681 rm -f core conftest.err conftest.
$ac_objext \
9682 conftest
$ac_exeext conftest.
$ac_ext
9683 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9685 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9686 # Warning - without using the other run time loading flags,
9687 # -berok will link without error, but may produce a broken library.
9688 no_undefined_flag
=' ${wl}-bernotok'
9689 allow_undefined_flag
=' ${wl}-berok'
9690 if test "$with_gnu_ld" = yes; then
9691 # We only use this code for GNU lds that support --whole-archive.
9692 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9694 # Exported symbols can be pulled into shared objects from archives
9695 whole_archive_flag_spec
='$convenience'
9697 archive_cmds_need_lc
=yes
9698 # This is similar to how AIX traditionally builds its shared libraries.
9699 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'
9707 # see comment about AmigaOS4 .so support
9708 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9709 archive_expsym_cmds
=''
9712 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)'
9713 hardcode_libdir_flag_spec
='-L$libdir'
9714 hardcode_minus_L
=yes
9720 export_dynamic_flag_spec
=-rdynamic
9723 cygwin
* | mingw
* | pw32
* | cegcc
*)
9724 # When not using gcc, we currently assume that we are using
9725 # Microsoft Visual C++.
9726 # hardcode_libdir_flag_spec is actually meaningless, as there is
9727 # no search path for DLLs.
9728 hardcode_libdir_flag_spec
=' '
9729 allow_undefined_flag
=unsupported
9730 # Tell ltmain to make .lib files, not .a files.
9732 # Tell ltmain to make .dll files, not .so files.
9734 # FIXME: Setting linknames here is a bad hack.
9735 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9736 # The linker will automatically build a .lib file if we build a DLL.
9737 old_archive_from_new_cmds
='true'
9738 # FIXME: Should let the user specify the lib program.
9739 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9740 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9741 enable_shared_with_static_runtimes
=yes
9744 darwin
* | rhapsody
*)
9747 archive_cmds_need_lc
=no
9749 hardcode_automatic
=yes
9750 hardcode_shlibpath_var
=unsupported
9751 if test "$lt_cv_ld_force_load" = "yes"; then
9752 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\"`'
9754 whole_archive_flag_spec
=''
9756 link_all_deplibs
=yes
9757 allow_undefined_flag
="$_lt_dar_allow_undefined"
9758 case $cc_basename in
9759 ifort
*) _lt_dar_can_shared
=yes ;;
9760 *) _lt_dar_can_shared
=$GCC ;;
9762 if test "$_lt_dar_can_shared" = "yes"; then
9763 output_verbose_link_cmd
=func_echo_all
9764 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9765 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9766 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}"
9767 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}"
9776 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_libdir_flag_spec
='-L$libdir'
9778 hardcode_shlibpath_var
=no
9781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9782 # support. Future versions do this automatically, but an explicit c++rt0.o
9783 # does not break anything, and helps significantly (at the cost of a little
9786 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9787 hardcode_libdir_flag_spec
='-R$libdir'
9789 hardcode_shlibpath_var
=no
9792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9794 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_minus_L
=yes
9797 hardcode_shlibpath_var
=no
9800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9801 freebsd
* | dragonfly
*)
9802 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9803 hardcode_libdir_flag_spec
='-R$libdir'
9805 hardcode_shlibpath_var
=no
9809 if test "$GCC" = yes; then
9810 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'
9812 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'
9814 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9815 hardcode_libdir_separator
=:
9818 # hardcode_minus_L: Not really in the search PATH,
9819 # but as the default location of the library.
9820 hardcode_minus_L
=yes
9821 export_dynamic_flag_spec
='${wl}-E'
9825 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9826 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9830 if test "$with_gnu_ld" = no
; then
9831 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9832 hardcode_libdir_flag_spec_ld
='+b $libdir'
9833 hardcode_libdir_separator
=:
9835 hardcode_direct_absolute
=yes
9836 export_dynamic_flag_spec
='${wl}-E'
9837 # hardcode_minus_L: Not really in the search PATH,
9838 # but as the default location of the library.
9839 hardcode_minus_L
=yes
9844 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9847 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9859 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9866 # Older versions of the 11.00 compiler do not understand -b yet
9867 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9869 $as_echo_n "checking if $CC understands -b... " >&6; }
9870 if ${lt_cv_prog_compiler__b+:} false
; then :
9871 $as_echo_n "(cached) " >&6
9873 lt_cv_prog_compiler__b
=no
9874 save_LDFLAGS
="$LDFLAGS"
9875 LDFLAGS
="$LDFLAGS -b"
9876 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9877 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9878 # The linker can only warn and ignore the option if not recognized
9879 # So say no if there are warnings
9880 if test -s conftest.err
; then
9881 # Append any errors to the config.log.
9882 cat conftest.err
1>&5
9883 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9884 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9885 if diff conftest.exp conftest.er2
>/dev
/null
; then
9886 lt_cv_prog_compiler__b
=yes
9889 lt_cv_prog_compiler__b
=yes
9893 LDFLAGS
="$save_LDFLAGS"
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9897 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9899 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9900 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9908 if test "$with_gnu_ld" = no
; then
9909 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9910 hardcode_libdir_separator
=:
9915 hardcode_shlibpath_var
=no
9919 hardcode_direct_absolute
=yes
9920 export_dynamic_flag_spec
='${wl}-E'
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L
=yes
9930 irix5
* | irix6
* | nonstopux
*)
9931 if test "$GCC" = yes; then
9932 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'
9933 # Try to use the -exported_symbol ld option, if it does not
9934 # work, assume that -exports_file does not work either and
9935 # implicitly export all symbols.
9936 save_LDFLAGS
="$LDFLAGS"
9937 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9942 if ac_fn_c_try_link
"$LINENO"; then :
9943 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'
9946 rm -f core conftest.err conftest.
$ac_objext \
9947 conftest
$ac_exeext conftest.
$ac_ext
9948 LDFLAGS
="$save_LDFLAGS"
9950 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'
9951 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'
9953 archive_cmds_need_lc
='no'
9954 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9955 hardcode_libdir_separator
=:
9957 link_all_deplibs
=yes
9961 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9962 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9964 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9966 hardcode_libdir_flag_spec
='-R$libdir'
9968 hardcode_shlibpath_var
=no
9972 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9975 hardcode_libdir_separator
=:
9976 hardcode_shlibpath_var
=no
9983 if test -f /usr
/libexec
/ld.so
; then
9985 hardcode_shlibpath_var
=no
9986 hardcode_direct_absolute
=yes
9987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9988 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9989 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9990 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9991 export_dynamic_flag_spec
='${wl}-E'
9994 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9995 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9996 hardcode_libdir_flag_spec
='-R$libdir'
9999 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10000 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10010 hardcode_libdir_flag_spec
='-L$libdir'
10011 hardcode_minus_L
=yes
10012 allow_undefined_flag
=unsupported
10013 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'
10014 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10018 if test "$GCC" = yes; then
10019 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10020 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'
10022 allow_undefined_flag
=' -expect_unresolved \*'
10023 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'
10025 archive_cmds_need_lc
='no'
10026 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10027 hardcode_libdir_separator
=:
10030 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10031 if test "$GCC" = yes; then
10032 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10033 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'
10034 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10036 allow_undefined_flag
=' -expect_unresolved \*'
10037 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'
10038 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~
10039 $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'
10041 # Both c and cxx compiler support -rpath directly
10042 hardcode_libdir_flag_spec
='-rpath $libdir'
10044 archive_cmds_need_lc
='no'
10045 hardcode_libdir_separator
=:
10049 no_undefined_flag
=' -z defs'
10050 if test "$GCC" = yes; then
10052 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10054 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10056 case `$CC -V 2>&1` in
10059 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10061 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10065 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10067 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10071 hardcode_libdir_flag_spec
='-R$libdir'
10072 hardcode_shlibpath_var
=no
10074 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10076 # The compiler driver will combine and reorder linker options,
10077 # but understands `-z linker_flag'. GCC discards it without `$wl',
10078 # but is careful enough not to reorder.
10079 # Supported since Solaris 2.6 (maybe 2.5.1?)
10080 if test "$GCC" = yes; then
10081 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10083 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10087 link_all_deplibs
=yes
10091 if test "x$host_vendor" = xsequent
; then
10092 # Use $CC to link under sequent, because it throws in some extra .o
10093 # files that make .init and .fini sections work.
10094 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_libdir_flag_spec
='-L$libdir'
10099 hardcode_direct
=yes
10100 hardcode_minus_L
=yes
10101 hardcode_shlibpath_var
=no
10105 case $host_vendor in
10107 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_direct
=yes # is this really true???
10111 ## LD is ld it makes a PLAMLIB
10112 ## CC just makes a GrossModule.
10113 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10114 reload_cmds
='$CC -r -o $output$reload_objs'
10118 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10122 runpath_var
='LD_RUN_PATH'
10123 hardcode_shlibpath_var
=no
10127 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_shlibpath_var
=no
10129 export_dynamic_flag_spec
='-Bexport'
10133 if test -d /usr
/nec
; then
10134 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_shlibpath_var
=no
10136 runpath_var
=LD_RUN_PATH
10137 hardcode_runpath_var
=yes
10142 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10143 no_undefined_flag
='${wl}-z,text'
10144 archive_cmds_need_lc
=no
10145 hardcode_shlibpath_var
=no
10146 runpath_var
='LD_RUN_PATH'
10148 if test "$GCC" = yes; then
10149 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 sysv5
* | sco3.2v5
* | sco5v6
*)
10158 # Note: We can NOT use -z defs as we might desire, because we do not
10159 # link with -lc, and that would cause any symbols used from libc to
10160 # always be unresolved, which means just about no library would
10161 # ever link correctly. If we're not using GNU ld we use -z text
10162 # though, which does catch some bad symbols but isn't as heavy-handed
10164 no_undefined_flag
='${wl}-z,text'
10165 allow_undefined_flag
='${wl}-z,nodefs'
10166 archive_cmds_need_lc
=no
10167 hardcode_shlibpath_var
=no
10168 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10169 hardcode_libdir_separator
=':'
10170 link_all_deplibs
=yes
10171 export_dynamic_flag_spec
='${wl}-Bexport'
10172 runpath_var
='LD_RUN_PATH'
10174 if test "$GCC" = yes; then
10175 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10185 hardcode_libdir_flag_spec
='-L$libdir'
10186 hardcode_shlibpath_var
=no
10194 if test x
$host_vendor = xsni
; then
10196 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10197 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10204 $as_echo "$ld_shlibs" >&6; }
10205 test "$ld_shlibs" = no
&& can_build_shared
=no
10207 with_gnu_ld
=$with_gnu_ld
10224 # Do we need to explicitly link libc?
10226 case "x$archive_cmds_need_lc" in
10228 # Assume -lc should be added
10229 archive_cmds_need_lc
=yes
10231 if test "$enable_shared" = yes && test "$GCC" = yes; then
10232 case $archive_cmds in
10234 # FIXME: we may have to deal with multi-command sequences.
10237 # Test whether the compiler implicitly links with -lc since on some
10238 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10239 # to ld, don't add -lc before -lgcc.
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10241 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10242 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10243 $as_echo_n "(cached) " >&6
10246 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10249 (eval $ac_compile) 2>&5
10251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10252 test $ac_status = 0; } 2>conftest.err
; then
10255 libobjs
=conftest.
$ac_objext
10257 wl
=$lt_prog_compiler_wl
10258 pic_flag
=$lt_prog_compiler_pic
10264 lt_save_allow_undefined_flag
=$allow_undefined_flag
10265 allow_undefined_flag
=
10266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10267 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270 test $ac_status = 0; }
10272 lt_cv_archive_cmds_need_lc
=no
10274 lt_cv_archive_cmds_need_lc
=yes
10276 allow_undefined_flag
=$lt_save_allow_undefined_flag
10278 cat conftest.err
1>&5
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10284 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10285 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10449 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10451 if test "$GCC" = yes; then
10453 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10454 *) lt_awk_arg
="/^libraries:/" ;;
10457 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10458 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10460 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10461 case $lt_search_path_spec in
10463 # if the path contains ";" then we assume it to be the separator
10464 # otherwise default to the standard path separator (i.e. ":") - it is
10465 # assumed that no part of a normal pathname contains ";" but that should
10466 # okay in the real world where ";" in dirpaths is itself problematic.
10467 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10470 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10473 # Ok, now we have the path, separated by spaces, we can step through it
10474 # and add multilib dir if necessary.
10475 lt_tmp_lt_search_path_spec
=
10476 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10477 for lt_sys_path
in $lt_search_path_spec; do
10478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10479 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10481 test -d "$lt_sys_path" && \
10482 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10485 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10486 BEGIN {RS=" "; FS="/|\n";} {
10489 for (lt_i = NF; lt_i > 0; lt_i--) {
10490 if ($lt_i != "" && $lt_i != ".") {
10491 if ($lt_i == "..") {
10494 if (lt_count == 0) {
10495 lt_foo="/" $lt_i lt_foo;
10502 if (lt_foo != "") { lt_freq[lt_foo]++; }
10503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10505 # AWK program above erroneously prepends '/' to C:/dos/paths
10508 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10509 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10511 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10513 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10515 library_names_spec
=
10516 libname_spec
='lib$name'
10520 postuninstall_cmds
=
10524 shlibpath_overrides_runpath
=unknown
10526 dynamic_linker
="$host_os ld.so"
10527 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10528 need_lib_prefix
=unknown
10529 hardcode_into_libs
=no
10531 # when you set need_version to no, make sure it does not cause -set_version
10532 # flags to be left without arguments
10533 need_version
=unknown
10538 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10539 shlibpath_var
=LIBPATH
10541 # AIX 3 has no versioning support, so we append a major version to the name.
10542 soname_spec
='${libname}${release}${shared_ext}$major'
10549 hardcode_into_libs
=yes
10550 if test "$host_cpu" = ia64
; then
10551 # AIX 5 supports IA64
10552 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10553 shlibpath_var
=LD_LIBRARY_PATH
10555 # With GCC up to 2.95.x, collect2 would create an import file
10556 # for dependence libraries. The import file would start with
10557 # the line `#! .'. This would cause the generated library to
10558 # depend on `.', always an invalid library. This was fixed in
10559 # development snapshots of GCC prior to 3.0.
10561 aix4 | aix4.
[01] | aix4.
[01].
*)
10562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10564 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10567 can_build_shared
=no
10571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10572 # soname into executable. Probably we can add versioning support to
10573 # collect2, so additional links can be useful in future.
10574 if test "$aix_use_runtimelinking" = yes; then
10575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10576 # instead of lib<name>.a to let people know that these are not
10577 # typical AIX shared libraries.
10578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 # We preserve .a as extension for shared libraries through AIX4.2
10581 # and later when we are not doing run time linking.
10582 library_names_spec
='${libname}${release}.a $libname.a'
10583 soname_spec
='${libname}${release}${shared_ext}$major'
10585 shlibpath_var
=LIBPATH
10592 # Since July 2007 AmigaOS4 officially supports .so libraries.
10593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 library_names_spec
='$libname.ixlibrary $libname.a'
10598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10599 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'
10605 library_names_spec
='${libname}${shared_ext}'
10606 dynamic_linker
="$host_os ld.so"
10607 shlibpath_var
=LIBRARY_PATH
10613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 soname_spec
='${libname}${release}${shared_ext}$major'
10615 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10616 shlibpath_var
=LD_LIBRARY_PATH
10617 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10618 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10619 # the default ld.so.conf also contains /usr/contrib/lib and
10620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10621 # libtool to hard-code these into programs
10624 cygwin
* | mingw
* | pw32
* | cegcc
*)
10625 version_type
=windows
10630 case $GCC,$host_os in
10631 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10632 library_names_spec
='$libname.dll.a'
10633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10634 postinstall_cmds
='base_file=`basename \${file}`~
10635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10636 dldir=$destdir/`dirname \$dlpath`~
10637 test -d \$dldir || mkdir -p \$dldir~
10638 $install_prog $dir/$dlname \$dldir/$dlname~
10639 chmod a+x \$dldir/$dlname~
10640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10643 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10644 dlpath=$dir/\$dldll~
10646 shlibpath_overrides_runpath
=yes
10650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10651 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10653 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10656 # MinGW DLLs use traditional 'lib' prefix
10657 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10660 # pw32 DLLs use 'pw' prefix rather than 'lib'
10661 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10667 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10670 dynamic_linker
='Win32 ld.exe'
10671 # FIXME: first we should search . and the directory the executable is in
10675 darwin
* | rhapsody
*)
10676 dynamic_linker
="$host_os dyld"
10677 version_type
=darwin
10680 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10681 soname_spec
='${libname}${release}${major}$shared_ext'
10682 shlibpath_overrides_runpath
=yes
10683 shlibpath_var
=DYLD_LIBRARY_PATH
10684 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10686 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10687 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10695 soname_spec
='${libname}${release}${shared_ext}$major'
10696 shlibpath_var
=LD_LIBRARY_PATH
10699 freebsd
* | dragonfly
*)
10700 # DragonFly does not have aout. When/if they implement a new
10701 # versioning mechanism, adjust this.
10702 if test -x /usr
/bin
/objformat
; then
10703 objformat
=`/usr/bin/objformat`
10706 freebsd
[23].
*) objformat
=aout
;;
10707 *) objformat
=elf
;;
10710 version_type
=freebsd-
$objformat
10711 case $version_type in
10713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10718 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10722 shlibpath_var
=LD_LIBRARY_PATH
10725 shlibpath_overrides_runpath
=yes
10727 freebsd3.
[01]* | freebsdelf3.
[01]*)
10728 shlibpath_overrides_runpath
=yes
10729 hardcode_into_libs
=yes
10731 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10732 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10733 shlibpath_overrides_runpath
=no
10734 hardcode_into_libs
=yes
10736 *) # from 4.6 on, and DragonFly
10737 shlibpath_overrides_runpath
=yes
10738 hardcode_into_libs
=yes
10747 dynamic_linker
="$host_os runtime_loader"
10748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10749 soname_spec
='${libname}${release}${shared_ext}$major'
10750 shlibpath_var
=LIBRARY_PATH
10751 shlibpath_overrides_runpath
=yes
10752 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10753 hardcode_into_libs
=yes
10756 hpux9
* | hpux10
* | hpux11
*)
10757 # Give a soname corresponding to the major version so that dld.sl refuses to
10758 # link against other versions.
10765 hardcode_into_libs
=yes
10766 dynamic_linker
="$host_os dld.so"
10767 shlibpath_var
=LD_LIBRARY_PATH
10768 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10769 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770 soname_spec
='${libname}${release}${shared_ext}$major'
10771 if test "X$HPUX_IA64_MODE" = X32
; then
10772 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10774 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10776 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10780 hardcode_into_libs
=yes
10781 dynamic_linker
="$host_os dld.sl"
10782 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10783 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 soname_spec
='${libname}${release}${shared_ext}$major'
10786 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10787 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10791 dynamic_linker
="$host_os dld.sl"
10792 shlibpath_var
=SHLIB_PATH
10793 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10795 soname_spec
='${libname}${release}${shared_ext}$major'
10798 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10799 postinstall_cmds
='chmod 555 $lib'
10800 # or fails outright, so override atomically:
10801 install_override_mode
=555
10808 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10809 soname_spec
='${libname}${release}${shared_ext}$major'
10810 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10811 shlibpath_var
=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath
=no
10813 hardcode_into_libs
=yes
10816 irix5
* | irix6
* | nonstopux
*)
10818 nonstopux
*) version_type
=nonstopux
;;
10820 if test "$lt_cv_prog_gnu_ld" = yes; then
10828 soname_spec
='${libname}${release}${shared_ext}$major'
10829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10831 irix5
* | nonstopux
*)
10832 libsuff
= shlibsuff
=
10835 case $LD in # libtool.m4 will add one of these switches to LD
10836 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10837 libsuff
= shlibsuff
= libmagic
=32-bit;;
10838 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10839 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10840 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10841 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10842 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10846 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10847 shlibpath_overrides_runpath
=no
10848 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10849 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10850 hardcode_into_libs
=yes
10853 # No shared lib support for Linux oldld, aout, or coff.
10854 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10858 # This must be Linux ELF.
10859 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec
='${libname}${release}${shared_ext}$major'
10865 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10866 shlibpath_var
=LD_LIBRARY_PATH
10867 shlibpath_overrides_runpath
=no
10869 # Some binutils ld are patched to set DT_RUNPATH
10870 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10871 $as_echo_n "(cached) " >&6
10873 lt_cv_shlibpath_overrides_runpath
=no
10874 save_LDFLAGS
=$LDFLAGS
10875 save_libdir
=$libdir
10876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10889 if ac_fn_c_try_link
"$LINENO"; then :
10890 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10891 lt_cv_shlibpath_overrides_runpath
=yes
10894 rm -f core conftest.err conftest.
$ac_objext \
10895 conftest
$ac_exeext conftest.
$ac_ext
10896 LDFLAGS
=$save_LDFLAGS
10897 libdir
=$save_libdir
10901 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10903 # This implies no fast_install, which is unacceptable.
10904 # Some rework will be needed to allow for fast_install
10905 # before this can be enabled.
10906 hardcode_into_libs
=yes
10908 # Append ld.so.conf contents to the search path
10909 if test -f /etc
/ld.so.conf
; then
10910 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' ' '`
10911 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10914 # We used to test for /lib/ld.so.1 and disable shared libraries on
10915 # powerpc, because MkLinux only supported shared libraries with the
10916 # GNU dynamic linker. Since this was broken with cross compilers,
10917 # most powerpc-linux boxes support dynamic linking these days and
10918 # people can always --disable-shared, the test was removed, and we
10919 # assume the GNU/Linux dynamic linker is in use.
10920 dynamic_linker
='GNU/Linux ld.so'
10927 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10928 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10929 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10930 dynamic_linker
='NetBSD (a.out) ld.so'
10932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10933 soname_spec
='${libname}${release}${shared_ext}$major'
10934 dynamic_linker
='NetBSD ld.elf_so'
10936 shlibpath_var
=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath
=yes
10938 hardcode_into_libs
=yes
10943 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath
=yes
10952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 soname_spec
='${libname}${release}${shared_ext}$major'
10954 shlibpath_var
=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath
=no
10956 hardcode_into_libs
=yes
10957 dynamic_linker
='ldqnx.so'
10962 sys_lib_dlsearch_path_spec
="/usr/lib"
10964 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10966 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10967 *) need_version
=no
;;
10969 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10970 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10971 shlibpath_var
=LD_LIBRARY_PATH
10972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10974 openbsd2.
[89] | openbsd2.
[89].
*)
10975 shlibpath_overrides_runpath
=no
10978 shlibpath_overrides_runpath
=yes
10982 shlibpath_overrides_runpath
=yes
10987 libname_spec
='$name'
10990 library_names_spec
='$libname${shared_ext} $libname.a'
10991 dynamic_linker
='OS/2 ld.exe'
10992 shlibpath_var
=LIBPATH
10995 osf3
* | osf4
* | osf5
*)
10999 soname_spec
='${libname}${release}${shared_ext}$major'
11000 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11001 shlibpath_var
=LD_LIBRARY_PATH
11002 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11003 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec
='${libname}${release}${shared_ext}$major'
11016 shlibpath_var
=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath
=yes
11018 hardcode_into_libs
=yes
11019 # ldd complains unless libraries are executable
11020 postinstall_cmds
='chmod +x $lib'
11025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11026 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11027 shlibpath_var
=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath
=yes
11029 if test "$with_gnu_ld" = yes; then
11037 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec
='${libname}${release}${shared_ext}$major'
11039 shlibpath_var
=LD_LIBRARY_PATH
11040 case $host_vendor in
11042 shlibpath_overrides_runpath
=no
11044 runpath_var
=LD_RUN_PATH
11052 shlibpath_overrides_runpath
=no
11053 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11059 if test -d /usr
/nec
;then
11061 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11062 soname_spec
='$libname${shared_ext}.$major'
11063 shlibpath_var
=LD_LIBRARY_PATH
11067 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11068 version_type
=freebsd-elf
11071 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11072 soname_spec
='${libname}${release}${shared_ext}$major'
11073 shlibpath_var
=LD_LIBRARY_PATH
11074 shlibpath_overrides_runpath
=yes
11075 hardcode_into_libs
=yes
11076 if test "$with_gnu_ld" = yes; then
11077 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11079 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11082 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11086 sys_lib_dlsearch_path_spec
='/usr/lib'
11090 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 shlibpath_var
=LD_LIBRARY_PATH
11096 shlibpath_overrides_runpath
=no
11097 hardcode_into_libs
=yes
11102 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec
='${libname}${release}${shared_ext}$major'
11104 shlibpath_var
=LD_LIBRARY_PATH
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11112 $as_echo "$dynamic_linker" >&6; }
11113 test "$dynamic_linker" = no
&& can_build_shared
=no
11115 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11116 if test "$GCC" = yes; then
11117 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11120 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11121 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11123 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11124 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11219 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11221 if test -n "$hardcode_libdir_flag_spec" ||
11222 test -n "$runpath_var" ||
11223 test "X$hardcode_automatic" = "Xyes" ; then
11225 # We can hardcode non-existent directories.
11226 if test "$hardcode_direct" != no
&&
11227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11228 # have to relink, otherwise we might link with an installed library
11229 # when we should be linking with a yet-to-be-installed one
11230 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11231 test "$hardcode_minus_L" != no
; then
11232 # Linking always hardcodes the temporary library directory.
11233 hardcode_action
=relink
11235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11236 hardcode_action
=immediate
11239 # We cannot hardcode anything, or else we can only hardcode existing
11241 hardcode_action
=unsupported
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11244 $as_echo "$hardcode_action" >&6; }
11246 if test "$hardcode_action" = relink ||
11247 test "$inherit_rpath" = yes; then
11248 # Fast installation is not supported
11249 enable_fast_install
=no
11250 elif test "$shlibpath_overrides_runpath" = yes ||
11251 test "$enable_shared" = no
; then
11252 # Fast installation is not necessary
11253 enable_fast_install
=needless
11261 if test "x$enable_dlopen" != xyes
; then
11262 enable_dlopen
=unknown
11263 enable_dlopen_self
=unknown
11264 enable_dlopen_self_static
=unknown
11271 lt_cv_dlopen
="load_add_on"
11273 lt_cv_dlopen_self
=yes
11276 mingw
* | pw32
* | cegcc
*)
11277 lt_cv_dlopen
="LoadLibrary"
11282 lt_cv_dlopen
="dlopen"
11287 # if libdl is installed we need to link against it
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11289 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11290 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11291 $as_echo_n "(cached) " >&6
11293 ac_check_lib_save_LIBS
=$LIBS
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 /* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11313 if ac_fn_c_try_link
"$LINENO"; then :
11314 ac_cv_lib_dl_dlopen
=yes
11316 ac_cv_lib_dl_dlopen
=no
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11320 LIBS
=$ac_check_lib_save_LIBS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11323 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11324 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11325 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11328 lt_cv_dlopen
="dyld"
11330 lt_cv_dlopen_self
=yes
11337 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11338 if test "x$ac_cv_func_shl_load" = xyes
; then :
11339 lt_cv_dlopen
="shl_load"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11342 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11343 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11344 $as_echo_n "(cached) " >&6
11346 ac_check_lib_save_LIBS
=$LIBS
11348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11351 /* Override any GCC internal prototype to avoid an error.
11352 Use char because int might match the return type of a GCC
11353 builtin and then its argument prototype would still apply. */
11361 return shl_load ();
11366 if ac_fn_c_try_link
"$LINENO"; then :
11367 ac_cv_lib_dld_shl_load
=yes
11369 ac_cv_lib_dld_shl_load
=no
11371 rm -f core conftest.err conftest.
$ac_objext \
11372 conftest
$ac_exeext conftest.
$ac_ext
11373 LIBS
=$ac_check_lib_save_LIBS
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11376 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11377 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11378 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11380 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11381 if test "x$ac_cv_func_dlopen" = xyes
; then :
11382 lt_cv_dlopen
="dlopen"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11385 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11386 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11387 $as_echo_n "(cached) " >&6
11389 ac_check_lib_save_LIBS
=$LIBS
11391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11409 if ac_fn_c_try_link
"$LINENO"; then :
11410 ac_cv_lib_dl_dlopen
=yes
11412 ac_cv_lib_dl_dlopen
=no
11414 rm -f core conftest.err conftest.
$ac_objext \
11415 conftest
$ac_exeext conftest.
$ac_ext
11416 LIBS
=$ac_check_lib_save_LIBS
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11419 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11420 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11421 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11424 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11425 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11426 $as_echo_n "(cached) " >&6
11428 ac_check_lib_save_LIBS
=$LIBS
11429 LIBS
="-lsvld $LIBS"
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11448 if ac_fn_c_try_link
"$LINENO"; then :
11449 ac_cv_lib_svld_dlopen
=yes
11451 ac_cv_lib_svld_dlopen
=no
11453 rm -f core conftest.err conftest.
$ac_objext \
11454 conftest
$ac_exeext conftest.
$ac_ext
11455 LIBS
=$ac_check_lib_save_LIBS
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11458 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11459 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11460 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11463 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11464 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11465 $as_echo_n "(cached) " >&6
11467 ac_check_lib_save_LIBS
=$LIBS
11469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11482 return dld_link ();
11487 if ac_fn_c_try_link
"$LINENO"; then :
11488 ac_cv_lib_dld_dld_link
=yes
11490 ac_cv_lib_dld_dld_link
=no
11492 rm -f core conftest.err conftest.
$ac_objext \
11493 conftest
$ac_exeext conftest.
$ac_ext
11494 LIBS
=$ac_check_lib_save_LIBS
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11497 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11498 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11499 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11520 if test "x$lt_cv_dlopen" != xno
; then
11526 case $lt_cv_dlopen in
11528 save_CPPFLAGS
="$CPPFLAGS"
11529 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11531 save_LDFLAGS
="$LDFLAGS"
11532 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11535 LIBS
="$lt_cv_dlopen_libs $LIBS"
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11538 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11539 if ${lt_cv_dlopen_self+:} false
; then :
11540 $as_echo_n "(cached) " >&6
11542 if test "$cross_compiling" = yes; then :
11543 lt_cv_dlopen_self
=cross
11545 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11546 lt_status
=$lt_dlunknown
11547 cat > conftest.
$ac_ext <<_LT_EOF
11548 #line 11548 "configure"
11549 #include "confdefs.h"
11558 # define LT_DLGLOBAL RTLD_GLOBAL
11561 # define LT_DLGLOBAL DL_GLOBAL
11563 # define LT_DLGLOBAL 0
11567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11568 find out it does not work in some platform. */
11569 #ifndef LT_DLLAZY_OR_NOW
11571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11574 # define LT_DLLAZY_OR_NOW DL_LAZY
11577 # define LT_DLLAZY_OR_NOW RTLD_NOW
11580 # define LT_DLLAZY_OR_NOW DL_NOW
11582 # define LT_DLLAZY_OR_NOW 0
11589 /* When -fvisbility=hidden is used, assume the code has been annotated
11590 correspondingly for the symbols needed. */
11591 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11592 void fnord () __attribute__((visibility("default")));
11595 void fnord () { int i=42; }
11598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11599 int status = $lt_dlunknown;
11603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11606 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11607 else puts (dlerror ());
11609 /* dlclose (self); */
11617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11618 (eval $ac_link) 2>&5
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11622 (.
/conftest
; exit; ) >&5 2>/dev
/null
11624 case x
$lt_status in
11625 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11626 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11627 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11630 # compilation failed
11631 lt_cv_dlopen_self
=no
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11639 $as_echo "$lt_cv_dlopen_self" >&6; }
11641 if test "x$lt_cv_dlopen_self" = xyes
; then
11642 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11644 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11645 if ${lt_cv_dlopen_self_static+:} false
; then :
11646 $as_echo_n "(cached) " >&6
11648 if test "$cross_compiling" = yes; then :
11649 lt_cv_dlopen_self_static
=cross
11651 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11652 lt_status
=$lt_dlunknown
11653 cat > conftest.
$ac_ext <<_LT_EOF
11654 #line 11654 "configure"
11655 #include "confdefs.h"
11664 # define LT_DLGLOBAL RTLD_GLOBAL
11667 # define LT_DLGLOBAL DL_GLOBAL
11669 # define LT_DLGLOBAL 0
11673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11674 find out it does not work in some platform. */
11675 #ifndef LT_DLLAZY_OR_NOW
11677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11680 # define LT_DLLAZY_OR_NOW DL_LAZY
11683 # define LT_DLLAZY_OR_NOW RTLD_NOW
11686 # define LT_DLLAZY_OR_NOW DL_NOW
11688 # define LT_DLLAZY_OR_NOW 0
11695 /* When -fvisbility=hidden is used, assume the code has been annotated
11696 correspondingly for the symbols needed. */
11697 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11698 void fnord () __attribute__((visibility("default")));
11701 void fnord () { int i=42; }
11704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11705 int status = $lt_dlunknown;
11709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11712 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11713 else puts (dlerror ());
11715 /* dlclose (self); */
11723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11724 (eval $ac_link) 2>&5
11726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11727 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11728 (.
/conftest
; exit; ) >&5 2>/dev
/null
11730 case x
$lt_status in
11731 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11732 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11733 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11736 # compilation failed
11737 lt_cv_dlopen_self_static
=no
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11745 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11748 CPPFLAGS
="$save_CPPFLAGS"
11749 LDFLAGS
="$save_LDFLAGS"
11754 case $lt_cv_dlopen_self in
11755 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11756 *) enable_dlopen_self
=unknown
;;
11759 case $lt_cv_dlopen_self_static in
11760 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11761 *) enable_dlopen_self_static
=unknown
;;
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11784 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11785 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11786 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11787 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11791 # FIXME - insert some real tests, host_os isn't really good enough
11794 if test -n "$STRIP" ; then
11795 striplib
="$STRIP -x"
11796 old_striplib
="$STRIP -S"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11822 # Report which library types will actually be built
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11824 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11826 $as_echo "$can_build_shared" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11829 $as_echo_n "checking whether to build shared libraries... " >&6; }
11830 test "$can_build_shared" = "no" && enable_shared
=no
11832 # On AIX, shared libraries and static libraries use the same namespace, and
11833 # are all built from PIC.
11836 test "$enable_shared" = yes && enable_static
=no
11837 if test -n "$RANLIB"; then
11838 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11839 postinstall_cmds
='$RANLIB $lib'
11844 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11845 test "$enable_shared" = yes && enable_static
=no
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11850 $as_echo "$enable_shared" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11853 $as_echo_n "checking whether to build static libraries... " >&6; }
11854 # Make sure either enable_shared or enable_static is yes.
11855 test "$enable_shared" = yes || enable_static
=yes
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11857 $as_echo "$enable_static" >&6; }
11864 ac_cpp
='$CPP $CPPFLAGS'
11865 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11883 # Source file extension for Go test sources.
11886 # Object file extension for compiled Go test sources.
11890 # Code to be used in simple compile tests
11891 lt_simple_compile_test_code
="package main; func main() { }"
11893 # Code to be used in simple link tests
11894 lt_simple_link_test_code
='package main; func main() { }'
11896 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11903 # If no C compiler was specified, use CC.
11906 # If no C compiler flags were specified, use CFLAGS.
11907 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11909 # Allow CC to be a program name with arguments.
11913 # save warnings/boilerplate of simple test code
11914 ac_outfile
=conftest.
$ac_objext
11915 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11916 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11917 _lt_compiler_boilerplate
=`cat conftest.err`
11920 ac_outfile
=conftest.
$ac_objext
11921 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11922 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11923 _lt_linker_boilerplate
=`cat conftest.err`
11927 # Allow CC to be a program name with arguments.
11935 for cc_temp
in $compiler""; do
11937 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11938 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11943 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11946 # Go did not exist at the time GCC didn't implicitly link libc in.
11947 archive_cmds_need_lc_GO
=no
11949 old_archive_cmds_GO
=$old_archive_cmds
11952 ## There is no encapsulation within the following macros, do not change
11953 ## the running order or otherwise move them around unless you know exactly
11954 ## what you are doing...
11955 if test -n "$compiler"; then
11957 lt_prog_compiler_no_builtin_flag_GO
=
11959 if test "$GCC" = yes; then
11960 case $cc_basename in
11962 lt_prog_compiler_no_builtin_flag_GO
=' -Xcompiler -fno-builtin' ;;
11964 lt_prog_compiler_no_builtin_flag_GO
=' -fno-builtin' ;;
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11968 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11969 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
11970 $as_echo_n "(cached) " >&6
11972 lt_cv_prog_compiler_rtti_exceptions
=no
11973 ac_outfile
=conftest.
$ac_objext
11974 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11975 lt_compiler_flag
="-fno-rtti -fno-exceptions"
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 # The option is referenced via a variable to avoid confusing sed.
11981 lt_compile
=`echo "$ac_compile" | $SED \
11982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11984 -e 's:$: $lt_compiler_flag:'`
11985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11986 (eval "$lt_compile" 2>conftest.err
)
11988 cat conftest.err
>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 if (exit $ac_status) && test -s "$ac_outfile"; then
11991 # The compiler can only warn and ignore the option if not recognized
11992 # So say no if there are warnings other than the usual output.
11993 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11994 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11995 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11996 lt_cv_prog_compiler_rtti_exceptions
=yes
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12003 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12005 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12006 lt_prog_compiler_no_builtin_flag_GO
="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
12015 lt_prog_compiler_wl_GO
=
12016 lt_prog_compiler_pic_GO
=
12017 lt_prog_compiler_static_GO
=
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12020 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12022 if test "$GCC" = yes; then
12023 lt_prog_compiler_wl_GO
='-Wl,'
12024 lt_prog_compiler_static_GO
='-static'
12028 # All AIX code is PIC.
12029 if test "$host_cpu" = ia64
; then
12030 # AIX 5 now supports IA64 processor
12031 lt_prog_compiler_static_GO
='-Bstatic'
12033 lt_prog_compiler_pic_GO
='-fPIC'
12039 # see comment about AmigaOS4 .so support
12040 lt_prog_compiler_pic_GO
='-fPIC'
12043 # FIXME: we need at least 68020 code to build shared libraries, but
12044 # adding the `-m68020' flag to GCC prevents building anything better,
12046 lt_prog_compiler_pic_GO
='-m68020 -resident32 -malways-restore-a4'
12051 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12052 # PIC is the default for these OSes.
12055 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12056 # This hack is so that the source file can tell whether it is being
12057 # built for inclusion in a dll (and should export symbols for example).
12058 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12059 # (--disable-auto-import) libraries
12060 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
12063 darwin
* | rhapsody
*)
12064 # PIC is the default on this platform
12065 # Common symbols not allowed in MH_DYLIB files
12066 lt_prog_compiler_pic_GO
='-fno-common'
12070 # PIC is the default for Haiku.
12071 # The "-static" flag exists, but is broken.
12072 lt_prog_compiler_static_GO
=
12076 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12077 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12078 # sets the default TLS model and affects inlining.
12084 lt_prog_compiler_pic_GO
='-fPIC'
12090 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12091 # Instead, we relocate shared libraries at runtime.
12095 # Just because we use GCC doesn't mean we suddenly get shared libraries
12096 # on systems that don't support them.
12097 lt_prog_compiler_can_build_shared_GO
=no
12102 # QNX uses GNU C++, but need to define -shared option too, otherwise
12103 # it will coredump.
12104 lt_prog_compiler_pic_GO
='-fPIC -shared'
12108 if test -d /usr
/nec
; then
12109 lt_prog_compiler_pic_GO
=-Kconform_pic
12114 lt_prog_compiler_pic_GO
='-fPIC'
12118 case $cc_basename in
12119 nvcc
*) # Cuda Compiler Driver 2.2
12120 lt_prog_compiler_wl_GO
='-Xlinker '
12121 lt_prog_compiler_pic_GO
='-Xcompiler -fPIC'
12125 # PORTME Check for flag to pass linker flags through the system compiler.
12128 lt_prog_compiler_wl_GO
='-Wl,'
12129 if test "$host_cpu" = ia64
; then
12130 # AIX 5 now supports IA64 processor
12131 lt_prog_compiler_static_GO
='-Bstatic'
12133 lt_prog_compiler_static_GO
='-bnso -bI:/lib/syscalls.exp'
12137 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12138 # This hack is so that the source file can tell whether it is being
12139 # built for inclusion in a dll (and should export symbols for example).
12140 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
12143 hpux9
* | hpux10
* | hpux11
*)
12144 lt_prog_compiler_wl_GO
='-Wl,'
12145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12146 # not for PA HP-UX.
12152 lt_prog_compiler_pic_GO
='+Z'
12155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12156 lt_prog_compiler_static_GO
='${wl}-a ${wl}archive'
12159 irix5
* | irix6
* | nonstopux
*)
12160 lt_prog_compiler_wl_GO
='-Wl,'
12161 # PIC (with -KPIC) is the default.
12162 lt_prog_compiler_static_GO
='-non_shared'
12165 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12166 case $cc_basename in
12167 # old Intel for x86_64 which still supported -KPIC.
12169 lt_prog_compiler_wl_GO
='-Wl,'
12170 lt_prog_compiler_pic_GO
='-KPIC'
12171 lt_prog_compiler_static_GO
='-static'
12173 # icc used to be incompatible with GCC.
12174 # ICC 10 doesn't accept -KPIC any more.
12176 lt_prog_compiler_wl_GO
='-Wl,'
12177 lt_prog_compiler_pic_GO
='-fPIC'
12178 lt_prog_compiler_static_GO
='-static'
12180 # Lahey Fortran 8.1.
12182 lt_prog_compiler_wl_GO
='-Wl,'
12183 lt_prog_compiler_pic_GO
='--shared'
12184 lt_prog_compiler_static_GO
='--static'
12186 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12187 # Portland Group compilers (*not* the Pentium gcc compiler,
12188 # which looks to be a dead project)
12189 lt_prog_compiler_wl_GO
='-Wl,'
12190 lt_prog_compiler_pic_GO
='-fpic'
12191 lt_prog_compiler_static_GO
='-Bstatic'
12194 lt_prog_compiler_wl_GO
='-Wl,'
12195 # All Alpha code is PIC.
12196 lt_prog_compiler_static_GO
='-non_shared'
12198 xl
* | bgxl
* | bgf
* | mpixl
*)
12199 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12200 lt_prog_compiler_wl_GO
='-Wl,'
12201 lt_prog_compiler_pic_GO
='-qpic'
12202 lt_prog_compiler_static_GO
='-qstaticlink'
12205 case `$CC -V 2>&1 | sed 5q` in
12206 *Sun\ F
* |
*Sun
*Fortran
*)
12207 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12208 lt_prog_compiler_pic_GO
='-KPIC'
12209 lt_prog_compiler_static_GO
='-Bstatic'
12210 lt_prog_compiler_wl_GO
=''
12214 lt_prog_compiler_pic_GO
='-KPIC'
12215 lt_prog_compiler_static_GO
='-Bstatic'
12216 lt_prog_compiler_wl_GO
='-Wl,'
12224 lt_prog_compiler_pic_GO
='-KPIC'
12225 lt_prog_compiler_static_GO
='-Bstatic'
12229 # QNX uses GNU C++, but need to define -shared option too, otherwise
12230 # it will coredump.
12231 lt_prog_compiler_pic_GO
='-fPIC -shared'
12234 osf3
* | osf4
* | osf5
*)
12235 lt_prog_compiler_wl_GO
='-Wl,'
12236 # All OSF/1 code is PIC.
12237 lt_prog_compiler_static_GO
='-non_shared'
12241 lt_prog_compiler_static_GO
='-non_shared'
12245 lt_prog_compiler_pic_GO
='-KPIC'
12246 lt_prog_compiler_static_GO
='-Bstatic'
12247 case $cc_basename in
12248 f77
* | f90
* | f95
*)
12249 lt_prog_compiler_wl_GO
='-Qoption ld ';;
12251 lt_prog_compiler_wl_GO
='-Wl,';;
12256 lt_prog_compiler_wl_GO
='-Qoption ld '
12257 lt_prog_compiler_pic_GO
='-PIC'
12258 lt_prog_compiler_static_GO
='-Bstatic'
12261 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12262 lt_prog_compiler_wl_GO
='-Wl,'
12263 lt_prog_compiler_pic_GO
='-KPIC'
12264 lt_prog_compiler_static_GO
='-Bstatic'
12268 if test -d /usr
/nec
;then
12269 lt_prog_compiler_pic_GO
='-Kconform_pic'
12270 lt_prog_compiler_static_GO
='-Bstatic'
12274 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12275 lt_prog_compiler_wl_GO
='-Wl,'
12276 lt_prog_compiler_pic_GO
='-KPIC'
12277 lt_prog_compiler_static_GO
='-Bstatic'
12281 lt_prog_compiler_wl_GO
='-Wl,'
12282 lt_prog_compiler_can_build_shared_GO
=no
12286 lt_prog_compiler_pic_GO
='-pic'
12287 lt_prog_compiler_static_GO
='-Bstatic'
12291 lt_prog_compiler_can_build_shared_GO
=no
12297 # For platforms which do not support PIC, -DPIC is meaningless:
12299 lt_prog_compiler_pic_GO
=
12302 lt_prog_compiler_pic_GO
="$lt_prog_compiler_pic_GO"
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12306 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12311 # Check to make sure the PIC flag actually works.
12313 if test -n "$lt_prog_compiler_pic_GO"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12315 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12316 if ${lt_cv_prog_compiler_pic_works_GO+:} false
; then :
12317 $as_echo_n "(cached) " >&6
12319 lt_cv_prog_compiler_pic_works_GO
=no
12320 ac_outfile
=conftest.
$ac_objext
12321 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12322 lt_compiler_flag
="$lt_prog_compiler_pic_GO"
12323 # Insert the option either (1) after the last *FLAGS variable, or
12324 # (2) before a word containing "conftest.", or (3) at the end.
12325 # Note that $ac_compile itself does not contain backslashes and begins
12326 # with a dollar sign (not a hyphen), so the echo should work correctly.
12327 # The option is referenced via a variable to avoid confusing sed.
12328 lt_compile
=`echo "$ac_compile" | $SED \
12329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12331 -e 's:$: $lt_compiler_flag:'`
12332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12333 (eval "$lt_compile" 2>conftest.err
)
12335 cat conftest.err
>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 if (exit $ac_status) && test -s "$ac_outfile"; then
12338 # The compiler can only warn and ignore the option if not recognized
12339 # So say no if there are warnings other than the usual output.
12340 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12341 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12342 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12343 lt_cv_prog_compiler_pic_works_GO
=yes
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12350 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12352 if test x
"$lt_cv_prog_compiler_pic_works_GO" = xyes
; then
12353 case $lt_prog_compiler_pic_GO in
12355 *) lt_prog_compiler_pic_GO
=" $lt_prog_compiler_pic_GO" ;;
12358 lt_prog_compiler_pic_GO
=
12359 lt_prog_compiler_can_build_shared_GO
=no
12367 # Check to make sure the static flag actually works.
12369 wl
=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GO\"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12372 if ${lt_cv_prog_compiler_static_works_GO+:} false
; then :
12373 $as_echo_n "(cached) " >&6
12375 lt_cv_prog_compiler_static_works_GO
=no
12376 save_LDFLAGS
="$LDFLAGS"
12377 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12378 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12379 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12380 # The linker can only warn and ignore the option if not recognized
12381 # So say no if there are warnings
12382 if test -s conftest.err
; then
12383 # Append any errors to the config.log.
12384 cat conftest.err
1>&5
12385 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12386 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12387 if diff conftest.exp conftest.er2
>/dev
/null
; then
12388 lt_cv_prog_compiler_static_works_GO
=yes
12391 lt_cv_prog_compiler_static_works_GO
=yes
12395 LDFLAGS
="$save_LDFLAGS"
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12399 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12401 if test x
"$lt_cv_prog_compiler_static_works_GO" = xyes
; then
12404 lt_prog_compiler_static_GO
=
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12412 if ${lt_cv_prog_compiler_c_o_GO+:} false
; then :
12413 $as_echo_n "(cached) " >&6
12415 lt_cv_prog_compiler_c_o_GO
=no
12416 $RM -r conftest
2>/dev
/null
12420 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12422 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12423 # Insert the option either (1) after the last *FLAGS variable, or
12424 # (2) before a word containing "conftest.", or (3) at the end.
12425 # Note that $ac_compile itself does not contain backslashes and begins
12426 # with a dollar sign (not a hyphen), so the echo should work correctly.
12427 lt_compile
=`echo "$ac_compile" | $SED \
12428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12430 -e 's:$: $lt_compiler_flag:'`
12431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12432 (eval "$lt_compile" 2>out
/conftest.err
)
12434 cat out
/conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12438 # The compiler can only warn and ignore the option if not recognized
12439 # So say no if there are warnings
12440 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12441 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12442 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12443 lt_cv_prog_compiler_c_o_GO
=yes
12448 # SGI C++ compiler will create directory out/ii_files/ for
12449 # template instantiation
12450 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12451 $RM out
/* && rmdir out
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12458 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12464 if ${lt_cv_prog_compiler_c_o_GO+:} false
; then :
12465 $as_echo_n "(cached) " >&6
12467 lt_cv_prog_compiler_c_o_GO
=no
12468 $RM -r conftest
2>/dev
/null
12472 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12474 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12475 # Insert the option either (1) after the last *FLAGS variable, or
12476 # (2) before a word containing "conftest.", or (3) at the end.
12477 # Note that $ac_compile itself does not contain backslashes and begins
12478 # with a dollar sign (not a hyphen), so the echo should work correctly.
12479 lt_compile
=`echo "$ac_compile" | $SED \
12480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12482 -e 's:$: $lt_compiler_flag:'`
12483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12484 (eval "$lt_compile" 2>out
/conftest.err
)
12486 cat out
/conftest.err
>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12490 # The compiler can only warn and ignore the option if not recognized
12491 # So say no if there are warnings
12492 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12493 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12494 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12495 lt_cv_prog_compiler_c_o_GO
=yes
12500 # SGI C++ compiler will create directory out/ii_files/ for
12501 # template instantiation
12502 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12503 $RM out
/* && rmdir out
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12510 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12515 hard_links
="nottested"
12516 if test "$lt_cv_prog_compiler_c_o_GO" = no
&& test "$need_locks" != no
; then
12517 # do not overwrite the value of need_locks provided by the user
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12519 $as_echo_n "checking if we can lock with hard links... " >&6; }
12522 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12524 ln conftest.a conftest.b
2>&5 || hard_links
=no
12525 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12527 $as_echo "$hard_links" >&6; }
12528 if test "$hard_links" = no
; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12530 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12543 allow_undefined_flag_GO
=
12544 always_export_symbols_GO
=no
12546 archive_expsym_cmds_GO
=
12547 compiler_needs_object_GO
=no
12548 enable_shared_with_static_runtimes_GO
=no
12549 export_dynamic_flag_spec_GO
=
12550 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12551 hardcode_automatic_GO
=no
12552 hardcode_direct_GO
=no
12553 hardcode_direct_absolute_GO
=no
12554 hardcode_libdir_flag_spec_GO
=
12555 hardcode_libdir_flag_spec_ld_GO
=
12556 hardcode_libdir_separator_GO
=
12557 hardcode_minus_L_GO
=no
12558 hardcode_shlibpath_var_GO
=unsupported
12559 inherit_rpath_GO
=no
12560 link_all_deplibs_GO
=unknown
12562 module_expsym_cmds_GO
=
12563 old_archive_from_new_cmds_GO
=
12564 old_archive_from_expsyms_cmds_GO
=
12565 thread_safe_flag_spec_GO
=
12566 whole_archive_flag_spec_GO
=
12567 # include_expsyms should be a list of space-separated symbols to be *always*
12568 # included in the symbol list
12569 include_expsyms_GO
=
12570 # exclude_expsyms can be an extended regexp of symbols to exclude
12571 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12572 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12573 # as well as any symbol that contains `d'.
12574 exclude_expsyms_GO
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12575 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12576 # platforms (ab)use it in PIC code, but their linkers get confused if
12577 # the symbol is explicitly referenced. Since portable code cannot
12578 # rely on this symbol name, it's probably fine to never include it in
12579 # preloaded symbol tables.
12580 # Exclude shared library initialization/finalization symbols.
12581 extract_expsyms_cmds
=
12584 cygwin
* | mingw
* | pw32
* | cegcc
*)
12585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12586 # When not using gcc, we currently assume that we are using
12587 # Microsoft Visual C++.
12588 if test "$GCC" != yes; then
12593 # we just hope/assume this is gcc and not c89 (= MSVC++)
12603 # On some targets, GNU ld is compatible enough with the native linker
12604 # that we're better off using the native interface for both.
12605 lt_use_gnu_ld_interface
=no
12606 if test "$with_gnu_ld" = yes; then
12609 # The AIX port of GNU ld has always aspired to compatibility
12610 # with the native linker. However, as the warning in the GNU ld
12611 # block says, versions before 2.19.5* couldn't really create working
12612 # shared libraries, regardless of the interface used.
12613 case `$LD -v 2>&1` in
12614 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12615 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12616 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12618 lt_use_gnu_ld_interface
=yes
12623 lt_use_gnu_ld_interface
=yes
12628 if test "$lt_use_gnu_ld_interface" = yes; then
12629 # If archive_cmds runs LD, not CC, wlarc should be empty
12632 # Set some defaults for GNU ld with shared library support. These
12633 # are reset later if shared libraries are not supported. Putting them
12634 # here allows them to be overridden if necessary.
12635 runpath_var
=LD_RUN_PATH
12636 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12637 export_dynamic_flag_spec_GO
='${wl}--export-dynamic'
12638 # ancient GNU ld didn't support --whole-archive et. al.
12639 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12640 whole_archive_flag_spec_GO
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12642 whole_archive_flag_spec_GO
=
12644 supports_anon_versioning
=no
12645 case `$LD -v 2>&1` in
12646 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12647 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12648 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12649 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12650 *\
2.11.
*) ;; # other 2.11 versions
12651 *) supports_anon_versioning
=yes ;;
12654 # See if GNU ld supports shared libraries.
12657 # On AIX/PPC, the GNU linker is very broken
12658 if test "$host_cpu" != ia64
; then
12662 *** Warning: the GNU linker, at least up to release 2.19, is reported
12663 *** to be unable to reliably create shared libraries on AIX.
12664 *** Therefore, libtool is disabling shared libraries support. If you
12665 *** really care for shared libraries, you may want to install binutils
12666 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12667 *** You will then need to restart the configuration process.
12676 # see comment about AmigaOS4 .so support
12677 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678 archive_expsym_cmds_GO
=''
12681 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)'
12682 hardcode_libdir_flag_spec_GO
='-L$libdir'
12683 hardcode_minus_L_GO
=yes
12689 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12690 allow_undefined_flag_GO
=unsupported
12691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12692 # support --undefined. This deserves some investigation. FIXME
12693 archive_cmds_GO
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12699 cygwin
* | mingw
* | pw32
* | cegcc
*)
12700 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12701 # as there is no search path for DLLs.
12702 hardcode_libdir_flag_spec_GO
='-L$libdir'
12703 export_dynamic_flag_spec_GO
='${wl}--export-all-symbols'
12704 allow_undefined_flag_GO
=unsupported
12705 always_export_symbols_GO
=no
12706 enable_shared_with_static_runtimes_GO
=yes
12707 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12709 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12710 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12711 # If the export-symbols file already is a .def file (1st line
12712 # is EXPORTS), use it as is; otherwise, prepend...
12713 archive_expsym_cmds_GO
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12714 cp $export_symbols $output_objdir/$soname.def;
12716 echo EXPORTS > $output_objdir/$soname.def;
12717 cat $export_symbols >> $output_objdir/$soname.def;
12719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12726 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12727 link_all_deplibs_GO
=yes
12731 hardcode_direct_GO
=no
12732 hardcode_shlibpath_var_GO
=no
12733 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12734 export_dynamic_flag_spec_GO
='${wl}-E'
12735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12736 # Instead, shared libraries are loaded at an image base (0x10000000 by
12737 # default) and relocated if they conflict, which is a slow very memory
12738 # consuming and fragmenting process. To avoid this, we pick a random,
12739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12741 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'
12742 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'
12745 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12747 if test "$host_os" = linux-dietlibc
; then
12748 case $cc_basename in
12749 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12752 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12753 && test "$tmp_diet" = no
12756 tmp_sharedflag
='-shared'
12757 case $cc_basename,$host_cpu in
12758 pgcc
*) # Portland Group C compiler
12759 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'
12760 tmp_addflag
=' $pic_flag'
12762 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12763 # Portland Group f77 and f90 compilers
12764 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'
12765 tmp_addflag
=' $pic_flag -Mnomain' ;;
12766 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12767 tmp_addflag
=' -i_dynamic' ;;
12768 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12769 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12770 ifc
* | ifort
*) # Intel Fortran compiler
12771 tmp_addflag
=' -nofor_main' ;;
12772 lf95
*) # Lahey Fortran 8.1
12773 whole_archive_flag_spec_GO
=
12774 tmp_sharedflag
='--shared' ;;
12775 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12776 tmp_sharedflag
='-qmkshrobj'
12778 nvcc
*) # Cuda Compiler Driver 2.2
12779 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'
12780 compiler_needs_object_GO
=yes
12783 case `$CC -V 2>&1 | sed 5q` in
12784 *Sun\ C
*) # Sun C 5.9
12785 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'
12786 compiler_needs_object_GO
=yes
12787 tmp_sharedflag
='-G' ;;
12788 *Sun\ F
*) # Sun Fortran 8.3
12789 tmp_sharedflag
='-G' ;;
12791 archive_cmds_GO
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 if test "x$supports_anon_versioning" = xyes
; then
12794 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12796 echo "local: *; };" >> $output_objdir/$libname.ver~
12797 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12800 case $cc_basename in
12801 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12802 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12803 whole_archive_flag_spec_GO
='--whole-archive$convenience --no-whole-archive'
12804 hardcode_libdir_flag_spec_GO
=
12805 hardcode_libdir_flag_spec_ld_GO
='-rpath $libdir'
12806 archive_cmds_GO
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12807 if test "x$supports_anon_versioning" = xyes
; then
12808 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12810 echo "local: *; };" >> $output_objdir/$libname.ver~
12811 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12821 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12822 archive_cmds_GO
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12825 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12831 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12836 *** create shared libraries on Solaris systems. Therefore, libtool
12837 *** is disabling shared libraries support. We urge you to upgrade GNU
12838 *** binutils to release 2.9.1 or newer. Another option is to modify
12839 *** your PATH or compiler configuration so that the native linker is
12840 *** used, and then restart.
12843 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12844 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12851 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12852 case `$LD -v 2>&1` in
12853 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12858 *** reliably create shared libraries on SCO systems. Therefore, libtool
12859 *** is disabling shared libraries support. We urge you to upgrade GNU
12860 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12861 *** your PATH or compiler configuration so that the native linker is
12862 *** used, and then restart.
12867 # For security reasons, it is highly recommended that you always
12868 # use absolute paths for naming shared libraries, and exclude the
12869 # DT_RUNPATH tag from executables and libraries. But doing so
12870 # requires that you compile everything twice, which is a pain.
12871 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12872 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12873 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12874 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12883 archive_cmds_GO
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12885 hardcode_direct_GO
=yes
12886 hardcode_shlibpath_var_GO
=no
12890 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12891 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12892 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12899 if test "$ld_shlibs_GO" = no
; then
12901 hardcode_libdir_flag_spec_GO
=
12902 export_dynamic_flag_spec_GO
=
12903 whole_archive_flag_spec_GO
=
12906 # PORTME fill in a description of your system's linker (not GNU ld)
12909 allow_undefined_flag_GO
=unsupported
12910 always_export_symbols_GO
=yes
12911 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'
12912 # Note: this linker hardcodes the directories in LIBPATH if there
12913 # are no directories specified by -L.
12914 hardcode_minus_L_GO
=yes
12915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12916 # Neither direct hardcoding nor static linking is supported with a
12918 hardcode_direct_GO
=unsupported
12923 if test "$host_cpu" = ia64
; then
12924 # On IA64, the linker does run time linking by default, so we don't
12925 # have to do anything special.
12926 aix_use_runtimelinking
=no
12927 exp_sym_flag
='-Bexport'
12930 # If we're using GNU nm, then we don't want the "-C" option.
12931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12932 # Also, AIX nm treats weak defined symbols like other global
12933 # defined symbols, whereas GNU nm marks them as "W".
12934 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12935 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'
12937 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'
12939 aix_use_runtimelinking
=no
12941 # Test if we are trying to use run time linking or normal
12942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12943 # need to do runtime linking.
12944 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12945 for ld_flag
in $LDFLAGS; do
12946 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12947 aix_use_runtimelinking
=yes
12954 exp_sym_flag
='-bexport'
12955 no_entry_flag
='-bnoentry'
12958 # When large executables or shared objects are built, AIX ld can
12959 # have problems creating the table of contents. If linking a library
12960 # or program results in "error TOC overflow" add -mminimal-toc to
12961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12965 hardcode_direct_GO
=yes
12966 hardcode_direct_absolute_GO
=yes
12967 hardcode_libdir_separator_GO
=':'
12968 link_all_deplibs_GO
=yes
12969 file_list_spec_GO
='${wl}-f,'
12971 if test "$GCC" = yes; then
12972 case $host_os in aix4.
[012]|aix4.
[012].
*)
12973 # We only want to do this on AIX 4.2 and lower, the check
12974 # below for broken collect2 doesn't work under 4.3+
12975 collect2name
=`${CC} -print-prog-name=collect2`
12976 if test -f "$collect2name" &&
12977 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12979 # We have reworked collect2
12982 # We have old collect2
12983 hardcode_direct_GO
=unsupported
12984 # It fails to find uninstalled libraries when the uninstalled
12985 # path is not listed in the libpath. Setting hardcode_minus_L
12986 # to unsupported forces relinking
12987 hardcode_minus_L_GO
=yes
12988 hardcode_libdir_flag_spec_GO
='-L$libdir'
12989 hardcode_libdir_separator_GO
=
12993 shared_flag
='-shared'
12994 if test "$aix_use_runtimelinking" = yes; then
12995 shared_flag
="$shared_flag "'${wl}-G'
12999 if test "$host_cpu" = ia64
; then
13000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13001 # chokes on -Wl,-G. The following line is correct:
13004 if test "$aix_use_runtimelinking" = yes; then
13005 shared_flag
='${wl}-G'
13007 shared_flag
='${wl}-bM:SRE'
13012 export_dynamic_flag_spec_GO
='${wl}-bexpall'
13013 # It seems that -bexpall does not export symbols beginning with
13014 # underscore (_), so it is better to generate a list of symbols to export.
13015 always_export_symbols_GO
=yes
13016 if test "$aix_use_runtimelinking" = yes; then
13017 # Warning - without using the other runtime loading flags (-brtl),
13018 # -berok will link without error, but may produce a broken library.
13019 allow_undefined_flag_GO
='-berok'
13020 # Determine the default libpath from the value encoded in an
13021 # empty executable.
13022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13033 if ac_fn_c_try_link
"$LINENO"; then :
13035 lt_aix_libpath_sed
='
13036 /Import File Strings/,/^$/ {
13042 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13043 # Check for a 64-bit object if we didn't find anything.
13044 if test -z "$aix_libpath"; then
13045 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13048 rm -f core conftest.err conftest.
$ac_objext \
13049 conftest
$ac_exeext conftest.
$ac_ext
13050 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13052 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
13053 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"
13055 if test "$host_cpu" = ia64
; then
13056 hardcode_libdir_flag_spec_GO
='${wl}-R $libdir:/usr/lib:/lib'
13057 allow_undefined_flag_GO
="-z nodefs"
13058 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"
13060 # Determine the default libpath from the value encoded in an
13061 # empty executable.
13062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13073 if ac_fn_c_try_link
"$LINENO"; then :
13075 lt_aix_libpath_sed
='
13076 /Import File Strings/,/^$/ {
13082 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083 # Check for a 64-bit object if we didn't find anything.
13084 if test -z "$aix_libpath"; then
13085 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13088 rm -f core conftest.err conftest.
$ac_objext \
13089 conftest
$ac_exeext conftest.
$ac_ext
13090 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13092 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
13093 # Warning - without using the other run time loading flags,
13094 # -berok will link without error, but may produce a broken library.
13095 no_undefined_flag_GO
=' ${wl}-bernotok'
13096 allow_undefined_flag_GO
=' ${wl}-berok'
13097 if test "$with_gnu_ld" = yes; then
13098 # We only use this code for GNU lds that support --whole-archive.
13099 whole_archive_flag_spec_GO
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13101 # Exported symbols can be pulled into shared objects from archives
13102 whole_archive_flag_spec_GO
='$convenience'
13104 archive_cmds_need_lc_GO
=yes
13105 # This is similar to how AIX traditionally builds its shared libraries.
13106 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'
13114 # see comment about AmigaOS4 .so support
13115 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13116 archive_expsym_cmds_GO
=''
13119 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)'
13120 hardcode_libdir_flag_spec_GO
='-L$libdir'
13121 hardcode_minus_L_GO
=yes
13127 export_dynamic_flag_spec_GO
=-rdynamic
13130 cygwin
* | mingw
* | pw32
* | cegcc
*)
13131 # When not using gcc, we currently assume that we are using
13132 # Microsoft Visual C++.
13133 # hardcode_libdir_flag_spec is actually meaningless, as there is
13134 # no search path for DLLs.
13135 hardcode_libdir_flag_spec_GO
=' '
13136 allow_undefined_flag_GO
=unsupported
13137 # Tell ltmain to make .lib files, not .a files.
13139 # Tell ltmain to make .dll files, not .so files.
13141 # FIXME: Setting linknames here is a bad hack.
13142 archive_cmds_GO
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13143 # The linker will automatically build a .lib file if we build a DLL.
13144 old_archive_from_new_cmds_GO
='true'
13145 # FIXME: Should let the user specify the lib program.
13146 old_archive_cmds_GO
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13147 fix_srcfile_path_GO
='`cygpath -w "$srcfile"`'
13148 enable_shared_with_static_runtimes_GO
=yes
13151 darwin
* | rhapsody
*)
13154 archive_cmds_need_lc_GO
=no
13155 hardcode_direct_GO
=no
13156 hardcode_automatic_GO
=yes
13157 hardcode_shlibpath_var_GO
=unsupported
13158 if test "$lt_cv_ld_force_load" = "yes"; then
13159 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\"`'
13161 whole_archive_flag_spec_GO
=''
13163 link_all_deplibs_GO
=yes
13164 allow_undefined_flag_GO
="$_lt_dar_allow_undefined"
13165 case $cc_basename in
13166 ifort
*) _lt_dar_can_shared
=yes ;;
13167 *) _lt_dar_can_shared
=$GCC ;;
13169 if test "$_lt_dar_can_shared" = "yes"; then
13170 output_verbose_link_cmd
=func_echo_all
13171 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}"
13172 module_cmds_GO
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13173 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}"
13174 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}"
13183 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184 hardcode_libdir_flag_spec_GO
='-L$libdir'
13185 hardcode_shlibpath_var_GO
=no
13188 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13189 # support. Future versions do this automatically, but an explicit c++rt0.o
13190 # does not break anything, and helps significantly (at the cost of a little
13193 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13194 hardcode_libdir_flag_spec_GO
='-R$libdir'
13195 hardcode_direct_GO
=yes
13196 hardcode_shlibpath_var_GO
=no
13199 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13201 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13202 hardcode_direct_GO
=yes
13203 hardcode_minus_L_GO
=yes
13204 hardcode_shlibpath_var_GO
=no
13207 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13208 freebsd
* | dragonfly
*)
13209 archive_cmds_GO
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13210 hardcode_libdir_flag_spec_GO
='-R$libdir'
13211 hardcode_direct_GO
=yes
13212 hardcode_shlibpath_var_GO
=no
13216 if test "$GCC" = yes; then
13217 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'
13219 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'
13221 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13222 hardcode_libdir_separator_GO
=:
13223 hardcode_direct_GO
=yes
13225 # hardcode_minus_L: Not really in the search PATH,
13226 # but as the default location of the library.
13227 hardcode_minus_L_GO
=yes
13228 export_dynamic_flag_spec_GO
='${wl}-E'
13232 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13233 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13235 archive_cmds_GO
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13237 if test "$with_gnu_ld" = no
; then
13238 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13239 hardcode_libdir_flag_spec_ld_GO
='+b $libdir'
13240 hardcode_libdir_separator_GO
=:
13241 hardcode_direct_GO
=yes
13242 hardcode_direct_absolute_GO
=yes
13243 export_dynamic_flag_spec_GO
='${wl}-E'
13244 # hardcode_minus_L: Not really in the search PATH,
13245 # but as the default location of the library.
13246 hardcode_minus_L_GO
=yes
13251 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13254 archive_cmds_GO
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13257 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13260 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13266 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13272 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13276 if test "$with_gnu_ld" = no
; then
13277 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13278 hardcode_libdir_separator_GO
=:
13282 hardcode_direct_GO
=no
13283 hardcode_shlibpath_var_GO
=no
13286 hardcode_direct_GO
=yes
13287 hardcode_direct_absolute_GO
=yes
13288 export_dynamic_flag_spec_GO
='${wl}-E'
13290 # hardcode_minus_L: Not really in the search PATH,
13291 # but as the default location of the library.
13292 hardcode_minus_L_GO
=yes
13298 irix5
* | irix6
* | nonstopux
*)
13299 if test "$GCC" = yes; then
13300 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'
13301 # Try to use the -exported_symbol ld option, if it does not
13302 # work, assume that -exports_file does not work either and
13303 # implicitly export all symbols.
13304 save_LDFLAGS
="$LDFLAGS"
13305 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13310 if ac_fn_c_try_link
"$LINENO"; then :
13311 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'
13314 rm -f core conftest.err conftest.
$ac_objext \
13315 conftest
$ac_exeext conftest.
$ac_ext
13316 LDFLAGS
="$save_LDFLAGS"
13318 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'
13319 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'
13321 archive_cmds_need_lc_GO
='no'
13322 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13323 hardcode_libdir_separator_GO
=:
13324 inherit_rpath_GO
=yes
13325 link_all_deplibs_GO
=yes
13329 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13330 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13332 archive_cmds_GO
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13334 hardcode_libdir_flag_spec_GO
='-R$libdir'
13335 hardcode_direct_GO
=yes
13336 hardcode_shlibpath_var_GO
=no
13340 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13341 hardcode_direct_GO
=yes
13342 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13343 hardcode_libdir_separator_GO
=:
13344 hardcode_shlibpath_var_GO
=no
13351 if test -f /usr
/libexec
/ld.so
; then
13352 hardcode_direct_GO
=yes
13353 hardcode_shlibpath_var_GO
=no
13354 hardcode_direct_absolute_GO
=yes
13355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13356 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13357 archive_expsym_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13358 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
13359 export_dynamic_flag_spec_GO
='${wl}-E'
13362 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13363 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13364 hardcode_libdir_flag_spec_GO
='-R$libdir'
13367 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13368 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
13378 hardcode_libdir_flag_spec_GO
='-L$libdir'
13379 hardcode_minus_L_GO
=yes
13380 allow_undefined_flag_GO
=unsupported
13381 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'
13382 old_archive_from_new_cmds_GO
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13386 if test "$GCC" = yes; then
13387 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
13388 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'
13390 allow_undefined_flag_GO
=' -expect_unresolved \*'
13391 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'
13393 archive_cmds_need_lc_GO
='no'
13394 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13395 hardcode_libdir_separator_GO
=:
13398 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13399 if test "$GCC" = yes; then
13400 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
13401 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'
13402 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13404 allow_undefined_flag_GO
=' -expect_unresolved \*'
13405 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'
13406 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~
13407 $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'
13409 # Both c and cxx compiler support -rpath directly
13410 hardcode_libdir_flag_spec_GO
='-rpath $libdir'
13412 archive_cmds_need_lc_GO
='no'
13413 hardcode_libdir_separator_GO
=:
13417 no_undefined_flag_GO
=' -z defs'
13418 if test "$GCC" = yes; then
13420 archive_cmds_GO
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13421 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13422 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13424 case `$CC -V 2>&1` in
13427 archive_cmds_GO
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13428 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13433 archive_cmds_GO
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13434 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13435 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13439 hardcode_libdir_flag_spec_GO
='-R$libdir'
13440 hardcode_shlibpath_var_GO
=no
13442 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13444 # The compiler driver will combine and reorder linker options,
13445 # but understands `-z linker_flag'. GCC discards it without `$wl',
13446 # but is careful enough not to reorder.
13447 # Supported since Solaris 2.6 (maybe 2.5.1?)
13448 if test "$GCC" = yes; then
13449 whole_archive_flag_spec_GO
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13451 whole_archive_flag_spec_GO
='-z allextract$convenience -z defaultextract'
13455 link_all_deplibs_GO
=yes
13459 if test "x$host_vendor" = xsequent
; then
13460 # Use $CC to link under sequent, because it throws in some extra .o
13461 # files that make .init and .fini sections work.
13462 archive_cmds_GO
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13464 archive_cmds_GO
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13466 hardcode_libdir_flag_spec_GO
='-L$libdir'
13467 hardcode_direct_GO
=yes
13468 hardcode_minus_L_GO
=yes
13469 hardcode_shlibpath_var_GO
=no
13473 case $host_vendor in
13475 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_direct_GO
=yes # is this really true???
13479 ## LD is ld it makes a PLAMLIB
13480 ## CC just makes a GrossModule.
13481 archive_cmds_GO
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13482 reload_cmds_GO
='$CC -r -o $output$reload_objs'
13483 hardcode_direct_GO
=no
13486 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13487 hardcode_direct_GO
=no
#Motorola manual says yes, but my tests say they lie
13490 runpath_var
='LD_RUN_PATH'
13491 hardcode_shlibpath_var_GO
=no
13495 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13496 hardcode_shlibpath_var_GO
=no
13497 export_dynamic_flag_spec_GO
='-Bexport'
13501 if test -d /usr
/nec
; then
13502 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503 hardcode_shlibpath_var_GO
=no
13504 runpath_var
=LD_RUN_PATH
13505 hardcode_runpath_var
=yes
13510 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13511 no_undefined_flag_GO
='${wl}-z,text'
13512 archive_cmds_need_lc_GO
=no
13513 hardcode_shlibpath_var_GO
=no
13514 runpath_var
='LD_RUN_PATH'
13516 if test "$GCC" = yes; then
13517 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 sysv5
* | sco3.2v5
* | sco5v6
*)
13526 # Note: We can NOT use -z defs as we might desire, because we do not
13527 # link with -lc, and that would cause any symbols used from libc to
13528 # always be unresolved, which means just about no library would
13529 # ever link correctly. If we're not using GNU ld we use -z text
13530 # though, which does catch some bad symbols but isn't as heavy-handed
13532 no_undefined_flag_GO
='${wl}-z,text'
13533 allow_undefined_flag_GO
='${wl}-z,nodefs'
13534 archive_cmds_need_lc_GO
=no
13535 hardcode_shlibpath_var_GO
=no
13536 hardcode_libdir_flag_spec_GO
='${wl}-R,$libdir'
13537 hardcode_libdir_separator_GO
=':'
13538 link_all_deplibs_GO
=yes
13539 export_dynamic_flag_spec_GO
='${wl}-Bexport'
13540 runpath_var
='LD_RUN_PATH'
13542 if test "$GCC" = yes; then
13543 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13544 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_libdir_flag_spec_GO
='-L$libdir'
13554 hardcode_shlibpath_var_GO
=no
13562 if test x
$host_vendor = xsni
; then
13564 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13565 export_dynamic_flag_spec_GO
='${wl}-Blargedynsym'
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13572 $as_echo "$ld_shlibs_GO" >&6; }
13573 test "$ld_shlibs_GO" = no
&& can_build_shared
=no
13575 with_gnu_ld_GO
=$with_gnu_ld
13583 # Do we need to explicitly link libc?
13585 case "x$archive_cmds_need_lc_GO" in
13587 # Assume -lc should be added
13588 archive_cmds_need_lc_GO
=yes
13590 if test "$enable_shared" = yes && test "$GCC" = yes; then
13591 case $archive_cmds_GO in
13593 # FIXME: we may have to deal with multi-command sequences.
13596 # Test whether the compiler implicitly links with -lc since on some
13597 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13598 # to ld, don't add -lc before -lgcc.
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13600 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13601 if ${lt_cv_archive_cmds_need_lc_GO+:} false
; then :
13602 $as_echo_n "(cached) " >&6
13605 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13608 (eval $ac_compile) 2>&5
13610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611 test $ac_status = 0; } 2>conftest.err
; then
13614 libobjs
=conftest.
$ac_objext
13616 wl
=$lt_prog_compiler_wl_GO
13617 pic_flag
=$lt_prog_compiler_pic_GO
13623 lt_save_allow_undefined_flag
=$allow_undefined_flag_GO
13624 allow_undefined_flag_GO
=
13625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13626 (eval $archive_cmds_GO 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13629 test $ac_status = 0; }
13631 lt_cv_archive_cmds_need_lc_GO
=no
13633 lt_cv_archive_cmds_need_lc_GO
=yes
13635 allow_undefined_flag_GO
=$lt_save_allow_undefined_flag
13637 cat conftest.err
1>&5
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13643 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13644 archive_cmds_need_lc_GO
=$lt_cv_archive_cmds_need_lc_GO
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13715 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13716 hardcode_action_GO
=
13717 if test -n "$hardcode_libdir_flag_spec_GO" ||
13718 test -n "$runpath_var_GO" ||
13719 test "X$hardcode_automatic_GO" = "Xyes" ; then
13721 # We can hardcode non-existent directories.
13722 if test "$hardcode_direct_GO" != no
&&
13723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13724 # have to relink, otherwise we might link with an installed library
13725 # when we should be linking with a yet-to-be-installed one
13726 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13727 test "$hardcode_minus_L_GO" != no
; then
13728 # Linking always hardcodes the temporary library directory.
13729 hardcode_action_GO
=relink
13731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13732 hardcode_action_GO
=immediate
13735 # We cannot hardcode anything, or else we can only hardcode existing
13737 hardcode_action_GO
=unsupported
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13740 $as_echo "$hardcode_action_GO" >&6; }
13742 if test "$hardcode_action_GO" = relink ||
13743 test "$inherit_rpath_GO" = yes; then
13744 # Fast installation is not supported
13745 enable_fast_install
=no
13746 elif test "$shlibpath_overrides_runpath" = yes ||
13747 test "$enable_shared" = no
; then
13748 # Fast installation is not necessary
13749 enable_fast_install
=needless
13761 ac_cpp
='$CPP $CPPFLAGS'
13762 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13763 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13764 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13773 ac_config_commands
="$ac_config_commands libtool"
13778 # Only expand once:
13784 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
13787 for ac_prog
in gawk mawk nawk
awk
13789 # Extract the first word of "$ac_prog", so it can be a program name with args.
13790 set dummy
$ac_prog; ac_word
=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if ${ac_cv_prog_AWK+:} false
; then :
13794 $as_echo_n "(cached) " >&6
13796 if test -n "$AWK"; then
13797 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13800 for as_dir
in $PATH
13803 test -z "$as_dir" && as_dir
=.
13804 for ac_exec_ext
in '' $ac_executable_extensions; do
13805 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13806 ac_cv_prog_AWK
="$ac_prog"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 AWK
=$ac_cv_prog_AWK
13817 if test -n "$AWK"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13819 $as_echo "$AWK" >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13822 $as_echo "no" >&6; }
13826 test -n "$AWK" && break
13830 WARN_FLAGS
='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13833 # Check whether --enable-werror was given.
13834 if test "${enable_werror+set}" = set; then :
13835 enableval
=$enable_werror;
13838 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
13843 glibgo_toolexecdir
=no
13844 glibgo_toolexeclibdir
=no
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13847 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13848 # Check whether --enable-version-specific-runtime-libs was given.
13849 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13850 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
13851 yes) version_specific_libs
=yes ;;
13852 no
) version_specific_libs
=no
;;
13853 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13856 version_specific_libs
=no
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13860 $as_echo "$version_specific_libs" >&6; }
13863 # Check whether --with-toolexeclibdir was given.
13864 if test "${with_toolexeclibdir+set}" = set; then :
13865 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13869 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
13873 with_toolexeclibdir
=no
13878 # Version-specific runtime libs processing.
13879 if test $version_specific_libs = yes; then
13880 glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13881 glibgo_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13884 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13885 # Install a library built with a cross compiler in tooldir, not libdir.
13886 if test -n "$with_cross_host" &&
13887 test x
"$with_cross_host" != x
"no"; then
13888 nover_glibgo_toolexecdir
='${exec_prefix}/${host_alias}'
13889 case ${with_toolexeclibdir} in
13891 nover_glibgo_toolexeclibdir
='${toolexecdir}/lib'
13894 nover_glibgo_toolexeclibdir
=${with_toolexeclibdir}
13898 nover_glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13899 nover_glibgo_toolexeclibdir
='${libdir}'
13901 multi_os_directory
=`$GOC -print-multi-os-directory`
13902 case $multi_os_directory in
13903 .
) ;; # Avoid trailing /.
13904 *) nover_glibgo_toolexeclibdir
=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13907 if test x
"$glibgo_toolexecdir" = x
"no"; then
13908 glibgo_toolexecdir
="${nover_glibgo_toolexecdir}"
13909 glibgo_toolexeclibdir
="${nover_glibgo_toolexeclibdir}"
13916 # See if the user wants to configure without libffi. Some
13917 # architectures don't support it. FIXME: We should set a default
13918 # based on the host.
13920 # Check whether --with-libffi was given.
13921 if test "${with_libffi+set}" = set; then :
13922 withval
=$with_libffi; :
13924 with_libffi
=${with_libffi_default-yes}
13930 if test "$with_libffi" != no
; then
13932 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13934 LIBFFI
=..
/libffi
/libffi_convenience.la
13935 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13939 if test "$with_libffi" != "no"; then
13941 USE_LIBFFI_FALSE
='#'
13943 USE_LIBFFI_TRUE
='#'
13948 # See if the user wants to configure without libatomic. This is useful if we are
13949 # on an architecture for which libgo does not need an atomic support library and
13950 # libatomic does not support our C compiler.
13952 # Check whether --with-libatomic was given.
13953 if test "${with_libatomic+set}" = set; then :
13954 withval
=$with_libatomic; :
13956 with_libatomic
=${with_libatomic_default-yes}
13961 if test "$with_libatomic" != no
; then
13962 LIBATOMIC
=..
/libatomic
/libatomic_convenience.la
13966 # Used to tell GNU make to include a file without telling automake to
13968 go_include
="-include"
13971 # All known GOOS values. This is the union of all operating systems
13972 # supported by the gofrontend and all operating systems supported by
13973 # the gc toolchain.
13974 ALLGOOS
="aix android darwin dragonfly freebsd hurd illumos ios irix js linux netbsd openbsd plan9 rtems solaris windows zos"
13989 *-*-darwin*) is_darwin
=yes; GOOS
=darwin
;;
13990 *-*-freebsd*) is_freebsd
=yes; GOOS
=freebsd
;;
13991 *-*-irix6*) is_irix
=yes; GOOS
=irix
;;
13992 *-*-linux*) is_linux
=yes; GOOS
=linux
;;
13993 *-*-netbsd*) is_netbsd
=yes; GOOS
=netbsd
;;
13994 *-*-openbsd*) is_openbsd
=yes; GOOS
=openbsd
;;
13995 *-*-dragonfly*) is_dragonfly
=yes; GOOS
=dragonfly
;;
13996 *-*-rtems*) is_rtems
=yes; GOOS
=rtems
;;
13997 *-*-solaris2*) is_solaris
=yes; GOOS
=solaris
;;
13998 *-*-aix*) is_aix
=yes; GOOS
=aix
;;
13999 *-*-gnu*) is_hurd
=yes; GOOS
=hurd
;;
14001 if test $is_darwin = yes; then
14002 LIBGO_IS_DARWIN_TRUE
=
14003 LIBGO_IS_DARWIN_FALSE
='#'
14005 LIBGO_IS_DARWIN_TRUE
='#'
14006 LIBGO_IS_DARWIN_FALSE
=
14009 if test $is_freebsd = yes; then
14010 LIBGO_IS_FREEBSD_TRUE
=
14011 LIBGO_IS_FREEBSD_FALSE
='#'
14013 LIBGO_IS_FREEBSD_TRUE
='#'
14014 LIBGO_IS_FREEBSD_FALSE
=
14017 if test $is_irix = yes; then
14018 LIBGO_IS_IRIX_TRUE
=
14019 LIBGO_IS_IRIX_FALSE
='#'
14021 LIBGO_IS_IRIX_TRUE
='#'
14022 LIBGO_IS_IRIX_FALSE
=
14025 if test $is_linux = yes; then
14026 LIBGO_IS_LINUX_TRUE
=
14027 LIBGO_IS_LINUX_FALSE
='#'
14029 LIBGO_IS_LINUX_TRUE
='#'
14030 LIBGO_IS_LINUX_FALSE
=
14033 if test $is_netbsd = yes; then
14034 LIBGO_IS_NETBSD_TRUE
=
14035 LIBGO_IS_NETBSD_FALSE
='#'
14037 LIBGO_IS_NETBSD_TRUE
='#'
14038 LIBGO_IS_NETBSD_FALSE
=
14041 if test $is_openbsd = yes; then
14042 LIBGO_IS_OPENBSD_TRUE
=
14043 LIBGO_IS_OPENBSD_FALSE
='#'
14045 LIBGO_IS_OPENBSD_TRUE
='#'
14046 LIBGO_IS_OPENBSD_FALSE
=
14049 if test $is_dragonfly = yes; then
14050 LIBGO_IS_DRAGONFLY_TRUE
=
14051 LIBGO_IS_DRAGONFLY_FALSE
='#'
14053 LIBGO_IS_DRAGONFLY_TRUE
='#'
14054 LIBGO_IS_DRAGONFLY_FALSE
=
14057 if test $is_rtems = yes; then
14058 LIBGO_IS_RTEMS_TRUE
=
14059 LIBGO_IS_RTEMS_FALSE
='#'
14061 LIBGO_IS_RTEMS_TRUE
='#'
14062 LIBGO_IS_RTEMS_FALSE
=
14065 if test $is_solaris = yes; then
14066 LIBGO_IS_SOLARIS_TRUE
=
14067 LIBGO_IS_SOLARIS_FALSE
='#'
14069 LIBGO_IS_SOLARIS_TRUE
='#'
14070 LIBGO_IS_SOLARIS_FALSE
=
14073 if test $is_aix = yes; then
14075 LIBGO_IS_AIX_FALSE
='#'
14077 LIBGO_IS_AIX_TRUE
='#'
14078 LIBGO_IS_AIX_FALSE
=
14081 if test $is_hurd = yes; then
14082 LIBGO_IS_HURD_TRUE
=
14083 LIBGO_IS_HURD_FALSE
='#'
14085 LIBGO_IS_HURD_TRUE
='#'
14086 LIBGO_IS_HURD_FALSE
=
14089 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14091 LIBGO_IS_BSD_FALSE
='#'
14093 LIBGO_IS_BSD_TRUE
='#'
14094 LIBGO_IS_BSD_FALSE
=
14102 *-*-rtems*) USE_DEJAGNU
=yes ;;
14104 *) USE_DEJAGNU
=yes ;;
14108 # All known GOARCH values. This is the union of all architectures
14109 # supported by the gofrontend and all architectures supported by the
14111 # To add a new architecture:
14112 # - add it to this list
14113 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14114 # - add an entry to the case on ${host} below to set GOARCH
14115 # - update goarchList in libgo/go/go/build/syslist.go
14116 # - update goarch.sh to report the values for this architecture
14117 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14118 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14119 # - update arch lists in libgo/match.sh
14120 # - update arch lists in libgo/testsuite/gotest
14121 # - update +build lines in several places
14122 # - libgo/go/runtime/lfstack_NNbit.go
14123 # - libgo/go/runtime/hashNN.go
14124 # - libgo/go/runtime/unalignedN.go
14125 # - libgo/go/syscall/endian_XX.go
14126 # - possibly others
14127 # - possibly update files in libgo/go/internal/syscall/unix
14128 ALLGOARCH
="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
14130 # All known GOARCH family values.
14131 ALLGOARCHFAMILY
="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14144 arm
*-*-* | strongarm
*-*-* | ep9312
*-*-* | xscale-
*-*)
14152 i
[34567]86-*-* | x86_64-
*-*)
14153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14161 if ac_fn_c_try_compile
"$LINENO"; then :
14164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14172 if ac_fn_c_try_compile
"$LINENO"; then :
14177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14191 #if _MIPS_SIM != _ABIO32
14196 if ac_fn_c_try_compile
"$LINENO"; then :
14199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14202 #if _MIPS_SIM != _ABIN32
14207 if ac_fn_c_try_compile
"$LINENO"; then :
14210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14213 #if _MIPS_SIM != _ABI64
14218 if ac_fn_c_try_compile
"$LINENO"; then :
14221 as_fn_error $?
"unknown MIPS ABI" "$LINENO" 5
14224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14229 case "$mips_abi" in
14230 "o32") GOARCH
=mips
;;
14231 "n32") GOARCH
=mips64p32
;;
14232 "n64") GOARCH
=mips64
;;
14236 GOARCH
="${GOARCH}le"
14243 rs6000
*-*-* | powerpc
*-*-*)
14244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14252 if ac_fn_c_try_compile
"$LINENO"; then :
14256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14259 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14264 if ac_fn_c_try_compile
"$LINENO"; then :
14269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14277 #if __riscv_xlen == 64
14282 if ac_fn_c_try_compile
"$LINENO"; then :
14287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14291 /* end confdefs.h. */
14293 #if defined(__s390x__)
14298 if ac_fn_c_try_compile
"$LINENO"; then :
14303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14305 sh3eb
*-*-* | sh4eb
*-*-*)
14308 sh3
*-*-* | sh4
*-*-*)
14312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14315 #if defined(__sparcv9) || defined(__arch64__)
14320 if ac_fn_c_try_compile
"$LINENO"; then :
14325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14332 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14334 LIBGO_IS_X86_FALSE
='#'
14336 LIBGO_IS_X86_TRUE
='#'
14337 LIBGO_IS_X86_FALSE
=
14341 FUNCTION_DESCRIPTORS
=false
14343 rs6000
*-*-* | powerpc
*-*-*)
14344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14352 if ac_fn_c_try_compile
"$LINENO"; then :
14353 FUNCTION_DESCRIPTORS
=false
14355 FUNCTION_DESCRIPTORS
=true
14357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14362 GO_LIBCALL_OS_FILE
=
14363 GO_LIBCALL_OS_ARCH_FILE
=
14364 GO_SYSCALL_OS_FILE
=
14365 GO_SYSCALL_OS_ARCH_FILE
=
14366 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14367 GO_LIBCALL_OS_FILE
="go/syscall/libcall_${GOOS}.go"
14369 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14370 GO_LIBCALL_OS_ARCH_FILE
="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14372 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14373 GO_SYSCALL_OS_FILE
="go/syscall/syscall_${GOOS}.go"
14375 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14376 GO_SYSCALL_OS_ARCH_FILE
="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14383 OSCFLAGS
="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14386 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14387 # msghdr in <sys/socket.h>.
14388 OSCFLAGS
="$OSCFLAGS -D_XOPEN_SOURCE=500"
14391 # Solaris 10+ needs this so struct msghdr gets the msg_control
14392 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14393 # above doesn't work with C99.
14394 OSCFLAGS
="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14400 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS
=''
14402 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14403 # with a different meaning.
14404 case ${target_os} in
14406 ac_save_CFLAGS
="$CFLAGS"
14407 CFLAGS
="$CFLAGS -Wa,-nH"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14410 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14422 if ac_fn_c_try_compile
"$LINENO"; then :
14427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14428 if test "$ac_hwcap_flags" = "yes"; then
14429 HWCAP_CFLAGS
="-Wa,-nH $HWCAP_CFLAGS"
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14432 $as_echo "$ac_hwcap_flags" >&6; }
14434 CFLAGS
="$ac_save_CFLAGS"
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14442 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14443 if ${libgo_cv_c_split_stack_supported+:} false
; then :
14444 $as_echo_n "(cached) " >&6
14446 CFLAGS_hold
=$CFLAGS
14447 CFLAGS
="$CFLAGS -fsplit-stack"
14448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14452 if ac_fn_c_try_compile
"$LINENO"; then :
14453 libgo_cv_c_split_stack_supported
=yes
14455 libgo_cv_c_split_stack_supported
=no
14457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14458 CFLAGS
=$CFLAGS_hold
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14461 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14464 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14465 if ${libgo_cv_c_linker_split_non_split+:} false
; then :
14466 $as_echo_n "(cached) " >&6
14468 cat > conftest1.c
<< EOF
14470 int main() { f(); return 0; }
14472 cat > conftest2.c
<< EOF
14475 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
>/dev
/null
2>&1
14476 $CC -c $CFLAGS $CPPFLAGS conftest2.c
> /dev
/null
2>&1
14477 if $CC -o conftest conftest1.
$ac_objext conftest2.
$ac_objext > /dev
/null
2>&1; then
14478 libgo_cv_c_linker_split_non_split
=yes
14480 libgo_cv_c_linker_split_non_split
=no
14482 rm -f conftest1.
* conftest2.
* conftest
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14485 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14487 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14488 SPLIT_STACK
=-fsplit-stack
14490 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14496 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14497 USING_SPLIT_STACK_TRUE
=
14498 USING_SPLIT_STACK_FALSE
='#'
14500 USING_SPLIT_STACK_TRUE
='#'
14501 USING_SPLIT_STACK_FALSE
=
14505 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no
; then
14506 GO_SPLIT_STACK
=-fno-split-stack
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14513 $as_echo_n "checking whether linker supports split stack... " >&6; }
14514 if ${libgo_cv_c_linker_supports_split_stack+:} false
; then :
14515 $as_echo_n "(cached) " >&6
14517 libgo_cv_c_linker_supports_split_stack
=no
14518 if $GOC -Wl,--help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
14519 libgo_cv_c_linker_supports_split_stack
=yes
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14523 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14524 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14526 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14531 $as_echo_n "checking whether compiler is llgo... " >&6; }
14532 if ${libgo_cv_c_goc_is_llgo+:} false
; then :
14533 $as_echo_n "(cached) " >&6
14535 libgo_cv_c_goc_is_llgo
=no
14536 if $GOC -dumpversion 2>/dev
/null |
grep llgo
>/dev
/null
2>&1; then
14537 libgo_cv_c_goc_is_llgo
=yes
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14541 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14542 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14544 GOC_IS_LLGO_FALSE
='#'
14546 GOC_IS_LLGO_TRUE
='#'
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14553 $as_echo_n "checking for sqrt in -lm... " >&6; }
14554 if ${ac_cv_lib_m_sqrt+:} false
; then :
14555 $as_echo_n "(cached) " >&6
14557 ac_check_lib_save_LIBS
=$LIBS
14559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14562 /* Override any GCC internal prototype to avoid an error.
14563 Use char because int might match the return type of a GCC
14564 builtin and then its argument prototype would still apply. */
14577 if ac_fn_c_try_link
"$LINENO"; then :
14578 ac_cv_lib_m_sqrt
=yes
14580 ac_cv_lib_m_sqrt
=no
14582 rm -f core conftest.err conftest.
$ac_objext \
14583 conftest
$ac_exeext conftest.
$ac_ext
14584 LIBS
=$ac_check_lib_save_LIBS
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14587 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14588 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14595 $as_echo_n "checking for socket libraries... " >&6; }
14596 if ${libgo_cv_lib_sockets+:} false
; then :
14597 $as_echo_n "(cached) " >&6
14599 libgo_cv_lib_sockets
=
14600 libgo_check_both
=no
14601 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14602 if test "x$ac_cv_func_connect" = xyes
; then :
14603 libgo_check_socket
=no
14605 libgo_check_socket
=yes
14608 if test "$libgo_check_socket" = "yes"; then
14609 unset ac_cv_func_connect
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14611 $as_echo_n "checking for main in -lsocket... " >&6; }
14612 if ${ac_cv_lib_socket_main+:} false
; then :
14613 $as_echo_n "(cached) " >&6
14615 ac_check_lib_save_LIBS
=$LIBS
14616 LIBS
="-lsocket $LIBS"
14617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14629 if ac_fn_c_try_link
"$LINENO"; then :
14630 ac_cv_lib_socket_main
=yes
14632 ac_cv_lib_socket_main
=no
14634 rm -f core conftest.err conftest.
$ac_objext \
14635 conftest
$ac_exeext conftest.
$ac_ext
14636 LIBS
=$ac_check_lib_save_LIBS
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14639 $as_echo "$ac_cv_lib_socket_main" >&6; }
14640 if test "x$ac_cv_lib_socket_main" = xyes
; then :
14641 libgo_cv_lib_sockets
="-lsocket"
14643 libgo_check_both
=yes
14647 if test "$libgo_check_both" = "yes"; then
14648 libgo_old_libs
=$LIBS
14649 LIBS
="$LIBS -lsocket -lnsl"
14650 unset ac_cv_func_accept
14651 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
14652 if test "x$ac_cv_func_accept" = xyes
; then :
14654 libgo_cv_lib_sockets
="-lsocket -lnsl"
14657 unset ac_cv_func_accept
14658 LIBS
=$libgo_old_libs
14660 unset ac_cv_func_gethostbyname
14661 libgo_old_libs
="$LIBS"
14662 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14663 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14667 $as_echo_n "checking for main in -lnsl... " >&6; }
14668 if ${ac_cv_lib_nsl_main+:} false
; then :
14669 $as_echo_n "(cached) " >&6
14671 ac_check_lib_save_LIBS
=$LIBS
14673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14685 if ac_fn_c_try_link
"$LINENO"; then :
14686 ac_cv_lib_nsl_main
=yes
14688 ac_cv_lib_nsl_main
=no
14690 rm -f core conftest.err conftest.
$ac_objext \
14691 conftest
$ac_exeext conftest.
$ac_ext
14692 LIBS
=$ac_check_lib_save_LIBS
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14695 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14696 if test "x$ac_cv_lib_nsl_main" = xyes
; then :
14697 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lnsl"
14702 unset ac_cv_func_gethostbyname
14703 ac_fn_c_check_func
"$LINENO" "sendfile" "ac_cv_func_sendfile"
14704 if test "x$ac_cv_func_sendfile" = xyes
; then :
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14708 $as_echo_n "checking for main in -lsendfile... " >&6; }
14709 if ${ac_cv_lib_sendfile_main+:} false
; then :
14710 $as_echo_n "(cached) " >&6
14712 ac_check_lib_save_LIBS
=$LIBS
14713 LIBS
="-lsendfile $LIBS"
14714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14726 if ac_fn_c_try_link
"$LINENO"; then :
14727 ac_cv_lib_sendfile_main
=yes
14729 ac_cv_lib_sendfile_main
=no
14731 rm -f core conftest.err conftest.
$ac_objext \
14732 conftest
$ac_exeext conftest.
$ac_ext
14733 LIBS
=$ac_check_lib_save_LIBS
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14736 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14737 if test "x$ac_cv_lib_sendfile_main" = xyes
; then :
14738 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lsendfile"
14743 LIBS
=$libgo_old_libs
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14747 $as_echo "$libgo_cv_lib_sockets" >&6; }
14748 NET_LIBS
="$libgo_cv_lib_sockets"
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14752 $as_echo_n "checking whether -pthread is supported... " >&6; }
14753 if ${libgo_cv_lib_pthread+:} false
; then :
14754 $as_echo_n "(cached) " >&6
14756 CFLAGS_hold
=$CFLAGS
14757 CFLAGS
="$CFLAGS -pthread -L../libatomic/.libs"
14758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14762 if ac_fn_c_try_compile
"$LINENO"; then :
14763 libgo_cv_lib_pthread
=yes
14765 libgo_cv_lib_pthread
=no
14767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14768 CFLAGS
=$CFLAGS_hold
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14771 $as_echo "$libgo_cv_lib_pthread" >&6; }
14773 if test "$libgo_cv_lib_pthread" = yes; then
14774 # RISC-V apparently adds -latomic when using -pthread.
14775 PTHREAD_CFLAGS
="-pthread -L../libatomic/.libs"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14781 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14782 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
14783 $as_echo_n "(cached) " >&6
14785 ac_check_lib_save_LIBS
=$LIBS
14786 LIBS
="-lpthread $LIBS"
14787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14790 /* Override any GCC internal prototype to avoid an error.
14791 Use char because int might match the return type of a GCC
14792 builtin and then its argument prototype would still apply. */
14796 char pthread_create ();
14800 return pthread_create ();
14805 if ac_fn_c_try_link
"$LINENO"; then :
14806 ac_cv_lib_pthread_pthread_create
=yes
14808 ac_cv_lib_pthread_pthread_create
=no
14810 rm -f core conftest.err conftest.
$ac_objext \
14811 conftest
$ac_exeext conftest.
$ac_ext
14812 LIBS
=$ac_check_lib_save_LIBS
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14815 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14816 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
14817 PTHREAD_LIBS
=-lpthread
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing makecontext" >&5
14823 $as_echo_n "checking for library containing makecontext... " >&6; }
14824 if ${ac_cv_search_makecontext+:} false
; then :
14825 $as_echo_n "(cached) " >&6
14827 ac_func_search_save_LIBS
=$LIBS
14828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14837 char makecontext ();
14841 return makecontext ();
14846 for ac_lib
in '' ucontext
; do
14847 if test -z "$ac_lib"; then
14848 ac_res
="none required"
14851 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14853 if ac_fn_c_try_link
"$LINENO"; then :
14854 ac_cv_search_makecontext
=$ac_res
14856 rm -f core conftest.err conftest.
$ac_objext \
14858 if ${ac_cv_search_makecontext+:} false
; then :
14862 if ${ac_cv_search_makecontext+:} false
; then :
14865 ac_cv_search_makecontext
=no
14867 rm conftest.
$ac_ext
14868 LIBS
=$ac_func_search_save_LIBS
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_makecontext" >&5
14871 $as_echo "$ac_cv_search_makecontext" >&6; }
14872 ac_res
=$ac_cv_search_makecontext
14873 if test "$ac_res" != no
; then :
14874 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14880 $as_echo_n "checking for library containing sched_yield... " >&6; }
14881 if ${ac_cv_search_sched_yield+:} false
; then :
14882 $as_echo_n "(cached) " >&6
14884 ac_func_search_save_LIBS
=$LIBS
14885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14894 char sched_yield ();
14898 return sched_yield ();
14903 for ac_lib
in '' rt
; do
14904 if test -z "$ac_lib"; then
14905 ac_res
="none required"
14908 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14910 if ac_fn_c_try_link
"$LINENO"; then :
14911 ac_cv_search_sched_yield
=$ac_res
14913 rm -f core conftest.err conftest.
$ac_objext \
14915 if ${ac_cv_search_sched_yield+:} false
; then :
14919 if ${ac_cv_search_sched_yield+:} false
; then :
14922 ac_cv_search_sched_yield
=no
14924 rm conftest.
$ac_ext
14925 LIBS
=$ac_func_search_save_LIBS
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14928 $as_echo "$ac_cv_search_sched_yield" >&6; }
14929 ac_res
=$ac_cv_search_sched_yield
14930 if test "$ac_res" != no
; then :
14931 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14936 $as_echo_n "checking for library containing nanosleep... " >&6; }
14937 if ${ac_cv_search_nanosleep+:} false
; then :
14938 $as_echo_n "(cached) " >&6
14940 ac_func_search_save_LIBS
=$LIBS
14941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14944 /* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
14954 return nanosleep ();
14959 for ac_lib
in '' rt
; do
14960 if test -z "$ac_lib"; then
14961 ac_res
="none required"
14964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14966 if ac_fn_c_try_link
"$LINENO"; then :
14967 ac_cv_search_nanosleep
=$ac_res
14969 rm -f core conftest.err conftest.
$ac_objext \
14971 if ${ac_cv_search_nanosleep+:} false
; then :
14975 if ${ac_cv_search_nanosleep+:} false
; then :
14978 ac_cv_search_nanosleep
=no
14980 rm conftest.
$ac_ext
14981 LIBS
=$ac_func_search_save_LIBS
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14984 $as_echo "$ac_cv_search_nanosleep" >&6; }
14985 ac_res
=$ac_cv_search_nanosleep
14986 if test "$ac_res" != no
; then :
14987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14992 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14993 if ${ac_cv_search_clock_gettime+:} false
; then :
14994 $as_echo_n "(cached) " >&6
14996 ac_func_search_save_LIBS
=$LIBS
14997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15006 char clock_gettime ();
15010 return clock_gettime ();
15015 for ac_lib
in '' rt
; do
15016 if test -z "$ac_lib"; then
15017 ac_res
="none required"
15020 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15022 if ac_fn_c_try_link
"$LINENO"; then :
15023 ac_cv_search_clock_gettime
=$ac_res
15025 rm -f core conftest.err conftest.
$ac_objext \
15027 if ${ac_cv_search_clock_gettime+:} false
; then :
15031 if ${ac_cv_search_clock_gettime+:} false
; then :
15034 ac_cv_search_clock_gettime
=no
15036 rm conftest.
$ac_ext
15037 LIBS
=$ac_func_search_save_LIBS
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15040 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15041 ac_res
=$ac_cv_search_clock_gettime
15042 if test "$ac_res" != no
; then :
15043 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15049 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15050 if ${ac_cv_c_bigendian+:} false
; then :
15051 $as_echo_n "(cached) " >&6
15053 ac_cv_c_bigendian
=unknown
15054 # See if we're dealing with a universal compiler.
15055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #ifndef __APPLE_CC__
15058 not a universal capable compiler
15063 if ac_fn_c_try_compile
"$LINENO"; then :
15065 # Check for potential -arch flags. It is not universal unless
15066 # there are at least two -arch flags with different values.
15069 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15070 if test -n "$ac_prev"; then
15072 i?
86 | x86_64 | ppc | ppc64
)
15073 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15076 ac_cv_c_bigendian
=universal
15082 elif test "x$ac_word" = "x-arch"; then
15087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15088 if test $ac_cv_c_bigendian = unknown
; then
15089 # See if sys/param.h defines the BYTE_ORDER macro.
15090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <sys/types.h>
15093 #include <sys/param.h>
15098 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15099 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15101 bogus endian macros
15108 if ac_fn_c_try_compile
"$LINENO"; then :
15109 # It does; now see whether it defined to BIG_ENDIAN or not.
15110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112 #include <sys/types.h>
15113 #include <sys/param.h>
15118 #if BYTE_ORDER != BIG_ENDIAN
15126 if ac_fn_c_try_compile
"$LINENO"; then :
15127 ac_cv_c_bigendian
=yes
15129 ac_cv_c_bigendian
=no
15131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15135 if test $ac_cv_c_bigendian = unknown
; then
15136 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 #include <limits.h>
15144 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15145 bogus endian macros
15152 if ac_fn_c_try_compile
"$LINENO"; then :
15153 # It does; now see whether it defined to _BIG_ENDIAN or not.
15154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15156 #include <limits.h>
15161 #ifndef _BIG_ENDIAN
15169 if ac_fn_c_try_compile
"$LINENO"; then :
15170 ac_cv_c_bigendian
=yes
15172 ac_cv_c_bigendian
=no
15174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15178 if test $ac_cv_c_bigendian = unknown
; then
15179 # Compile a test program.
15180 if test "$cross_compiling" = yes; then :
15181 # Try to guess by grepping values from an object file.
15182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 short int ascii_mm[] =
15185 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15186 short int ascii_ii[] =
15187 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15188 int use_ascii (int i) {
15189 return ascii_mm[i] + ascii_ii[i];
15191 short int ebcdic_ii[] =
15192 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15193 short int ebcdic_mm[] =
15194 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15195 int use_ebcdic (int i) {
15196 return ebcdic_mm[i] + ebcdic_ii[i];
15203 return use_ascii (foo) == use_ebcdic (foo);
15208 if ac_fn_c_try_compile
"$LINENO"; then :
15209 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15210 ac_cv_c_bigendian
=yes
15212 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15213 if test "$ac_cv_c_bigendian" = unknown
; then
15214 ac_cv_c_bigendian
=no
15216 # finding both strings is unlikely to happen, but who knows?
15217 ac_cv_c_bigendian
=unknown
15221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 $ac_includes_default
15230 /* Are we little or big endian? From Harbison&Steele. */
15234 char c[sizeof (long int)];
15237 return u.c[sizeof (long int) - 1] == 1;
15243 if ac_fn_c_try_run
"$LINENO"; then :
15244 ac_cv_c_bigendian
=no
15246 ac_cv_c_bigendian
=yes
15248 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15249 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15255 $as_echo "$ac_cv_c_bigendian" >&6; }
15256 case $ac_cv_c_bigendian in #(
15258 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15264 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15268 as_fn_error $?
"unknown endianness
15269 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15275 # Check whether --with-system-libunwind was given.
15276 if test "${with_system_libunwind+set}" = set; then :
15277 withval
=$with_system_libunwind;
15280 # If system-libunwind was not specifically set, pick a default setting.
15281 if test x
$with_system_libunwind = x
; then
15283 ia64-
*-hpux*) with_system_libunwind
=yes ;;
15284 *) with_system_libunwind
=no
;;
15287 # Based on system-libunwind and target, do we have ipinfo?
15288 if test x
$with_system_libunwind = xyes
; then
15290 ia64-
*-*) have_unwind_getipinfo
=no
;;
15291 *) have_unwind_getipinfo
=yes ;;
15294 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15297 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
15298 *) have_unwind_getipinfo
=yes ;;
15303 if test x
$have_unwind_getipinfo = xyes
; then
15305 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15310 for ac_header
in fcntl.h port.h sched.h semaphore.h sys
/file.h sys
/mman.h syscall.h sys
/epoll.h sys
/event.h sys
/inotify.h sys
/ptrace.h sys
/syscall.h sys
/sysctl.h sys
/user.h sys
/utsname.h sys
/select.h sys
/socket.h net
/bpf.h net
/if.h net
/if_arp.h net
/route.h netpacket
/packet.h sys
/prctl.h sys
/mount.h sys
/vfs.h sys
/statfs.h sys
/timex.h sys
/sysinfo.h utime.h linux
/ether.h linux
/fs.h linux
/ptrace.h linux
/reboot.h netinet
/in_syst.h netinet
/ip.h netinet
/ip_mroute.h netinet
/if_ether.h lwp.h
15312 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15313 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15314 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15315 cat >>confdefs.h
<<_ACEOF
15316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15324 for ac_header
in netinet
/icmp6.h
15326 ac_fn_c_check_header_compile
"$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15329 if test "x$ac_cv_header_netinet_icmp6_h" = xyes
; then :
15330 cat >>confdefs.h
<<_ACEOF
15331 #define HAVE_NETINET_ICMP6_H 1
15339 for ac_header
in linux
/filter.h linux
/if_addr.h linux
/if_ether.h linux
/if_tun.h linux
/netlink.h linux
/rtnetlink.h
15341 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15343 #include <sys/socket.h>
15347 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15348 cat >>confdefs.h
<<_ACEOF
15349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15357 if test "$ac_cv_header_sys_mman_h" = yes; then
15358 HAVE_SYS_MMAN_H_TRUE
=
15359 HAVE_SYS_MMAN_H_FALSE
='#'
15361 HAVE_SYS_MMAN_H_TRUE
='#'
15362 HAVE_SYS_MMAN_H_FALSE
=
15366 for ac_func
in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15369 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15370 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15371 cat >>confdefs.h
<<_ACEOF
15372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15378 if test "$ac_cv_func_strerror_r" = yes; then
15379 HAVE_STRERROR_R_TRUE
=
15380 HAVE_STRERROR_R_FALSE
='#'
15382 HAVE_STRERROR_R_TRUE
='#'
15383 HAVE_STRERROR_R_FALSE
=
15386 if test "$ac_cv_func_wait4" = yes; then
15388 HAVE_WAIT4_FALSE
='#'
15390 HAVE_WAIT4_TRUE
='#'
15395 ac_header_dirent
=no
15396 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
15397 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15399 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15400 if eval \
${$as_ac_Header+:} false
; then :
15401 $as_echo_n "(cached) " >&6
15403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 #include <sys/types.h>
15417 if ac_fn_c_try_compile
"$LINENO"; then :
15418 eval "$as_ac_Header=yes"
15420 eval "$as_ac_Header=no"
15422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15424 eval ac_res
=\$
$as_ac_Header
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15426 $as_echo "$ac_res" >&6; }
15427 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15428 cat >>confdefs.h
<<_ACEOF
15429 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15432 ac_header_dirent
=$ac_hdr; break
15436 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15437 if test $ac_header_dirent = dirent.h
; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15439 $as_echo_n "checking for library containing opendir... " >&6; }
15440 if ${ac_cv_search_opendir+:} false
; then :
15441 $as_echo_n "(cached) " >&6
15443 ac_func_search_save_LIBS
=$LIBS
15444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15447 /* Override any GCC internal prototype to avoid an error.
15448 Use char because int might match the return type of a GCC
15449 builtin and then its argument prototype would still apply. */
15462 for ac_lib
in '' dir
; do
15463 if test -z "$ac_lib"; then
15464 ac_res
="none required"
15467 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15469 if ac_fn_c_try_link
"$LINENO"; then :
15470 ac_cv_search_opendir
=$ac_res
15472 rm -f core conftest.err conftest.
$ac_objext \
15474 if ${ac_cv_search_opendir+:} false
; then :
15478 if ${ac_cv_search_opendir+:} false
; then :
15481 ac_cv_search_opendir
=no
15483 rm conftest.
$ac_ext
15484 LIBS
=$ac_func_search_save_LIBS
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15487 $as_echo "$ac_cv_search_opendir" >&6; }
15488 ac_res
=$ac_cv_search_opendir
15489 if test "$ac_res" != no
; then :
15490 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15496 $as_echo_n "checking for library containing opendir... " >&6; }
15497 if ${ac_cv_search_opendir+:} false
; then :
15498 $as_echo_n "(cached) " >&6
15500 ac_func_search_save_LIBS
=$LIBS
15501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15504 /* Override any GCC internal prototype to avoid an error.
15505 Use char because int might match the return type of a GCC
15506 builtin and then its argument prototype would still apply. */
15519 for ac_lib
in '' x
; do
15520 if test -z "$ac_lib"; then
15521 ac_res
="none required"
15524 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15526 if ac_fn_c_try_link
"$LINENO"; then :
15527 ac_cv_search_opendir
=$ac_res
15529 rm -f core conftest.err conftest.
$ac_objext \
15531 if ${ac_cv_search_opendir+:} false
; then :
15535 if ${ac_cv_search_opendir+:} false
; then :
15538 ac_cv_search_opendir
=no
15540 rm conftest.
$ac_ext
15541 LIBS
=$ac_func_search_save_LIBS
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15544 $as_echo "$ac_cv_search_opendir" >&6; }
15545 ac_res
=$ac_cv_search_opendir
15546 if test "$ac_res" != no
; then :
15547 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15555 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
15556 #include <sys/types.h>
15557 #ifdef HAVE_DIRENT_H
15558 # include <dirent.h>
15560 # define dirent direct
15561 # ifdef HAVE_SYS_NDIR_H
15562 # include <sys/ndir.h>
15564 # ifdef HAVE_SYS_DIR_H
15565 # include <sys/dir.h>
15567 # ifdef HAVE_NDIR_H
15573 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
; then :
15575 cat >>confdefs.h
<<_ACEOF
15576 #define HAVE_STRUCT_DIRENT_D_TYPE 1
15584 for ac_func
in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall
tee unlinkat unshare utimensat
15586 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15587 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15588 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15589 cat >>confdefs.h
<<_ACEOF
15590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15596 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15597 if test "x$ac_cv_type_off_t" = xyes
; then :
15601 cat >>confdefs.h
<<_ACEOF
15602 #define off_t long int
15608 CFLAGS_hold
="$CFLAGS"
15609 CFLAGS
="$OSCFLAGS $CFLAGS"
15610 ac_fn_c_check_type
"$LINENO" "loff_t" "ac_cv_type_loff_t" "
15611 #include <sys/types.h>
15615 if test "x$ac_cv_type_loff_t" = xyes
; then :
15617 cat >>confdefs.h
<<_ACEOF
15618 #define HAVE_LOFF_T 1
15624 CFLAGS
="$CFLAGS_hold"
15628 for ac_func
in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15630 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15631 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15632 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15633 cat >>confdefs.h
<<_ACEOF
15634 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15642 CFLAGS_hold
="$CFLAGS"
15643 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15645 LIBS
="$LIBS $PTHREAD_LIBS"
15646 for ac_func
in sem_timedwait
15648 ac_fn_c_check_func
"$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15649 if test "x$ac_cv_func_sem_timedwait" = xyes
; then :
15650 cat >>confdefs.h
<<_ACEOF
15651 #define HAVE_SEM_TIMEDWAIT 1
15657 CFLAGS
="$CFLAGS_hold"
15661 LIBS
="$LIBS $MATH_LIBS"
15662 for ac_func
in matherr
15664 ac_fn_c_check_func
"$LINENO" "matherr" "ac_cv_func_matherr"
15665 if test "x$ac_cv_func_matherr" = xyes
; then :
15666 cat >>confdefs.h
<<_ACEOF
15667 #define HAVE_MATHERR 1
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15676 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15677 if ${libgo_cv_c_stringops+:} false
; then :
15678 $as_echo_n "(cached) " >&6
15680 CFLAGS_hold
=$CFLAGS
15681 CFLAGS
="$CFLAGS -minline-all-stringops"
15682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15686 if ac_fn_c_try_compile
"$LINENO"; then :
15687 libgo_cv_c_stringops
=yes
15689 libgo_cv_c_stringops
=no
15691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15692 CFLAGS
=$CFLAGS_hold
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15695 $as_echo "$libgo_cv_c_stringops" >&6; }
15697 if test "$libgo_cv_c_stringops" = yes; then
15698 STRINGOPS_FLAG
=-minline-all-stringops
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15703 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15704 if ${libgo_cv_c_fancymath+:} false
; then :
15705 $as_echo_n "(cached) " >&6
15707 CFLAGS_hold
=$CFLAGS
15708 CFLAGS
="$CFLAGS -mfancy-math-387"
15709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15713 if ac_fn_c_try_compile
"$LINENO"; then :
15714 libgo_cv_c_fancymath
=yes
15716 libgo_cv_c_fancymath
=no
15718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15719 CFLAGS
=$CFLAGS_hold
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15722 $as_echo "$libgo_cv_c_fancymath" >&6; }
15724 if test "$libgo_cv_c_fancymath" = yes; then
15725 MATH_FLAG
="-mfancy-math-387"
15727 MATH_FLAG
="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15730 CFLAGS_hold
=$CFLAGS
15731 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15732 ac_fn_c_check_type
"$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15733 if test "x$ac_cv_type_off64_t" = xyes
; then :
15735 cat >>confdefs.h
<<_ACEOF
15736 #define HAVE_OFF64_T 1
15742 CFLAGS
=$CFLAGS_hold
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15745 $as_echo_n "checking epoll_event size... " >&6; }
15746 if ${libgo_cv_c_epoll_event_size+:} false
; then :
15747 $as_echo_n "(cached) " >&6
15749 if ac_fn_c_compute_int
"$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15752 libgo_cv_c_epoll_event_size
=0
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15757 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15758 SIZEOF_STRUCT_EPOLL_EVENT
=${libgo_cv_c_epoll_event_size}
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15762 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15763 if ${libgo_cv_c_epoll_event_fd_offset+:} false
; then :
15764 $as_echo_n "(cached) " >&6
15766 if ac_fn_c_compute_int
"$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15767 #include <sys/epoll.h>"; then :
15770 libgo_cv_c_epoll_event_fd_offset
=0
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15775 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15776 STRUCT_EPOLL_EVENT_FD_OFFSET
=${libgo_cv_c_epoll_event_fd_offset}
15779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 #include <sys/stat.h>
15784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15785 $EGREP "timespec_t.*st_atim" >/dev
/null
2>&1; then :
15786 have_stat_timespec
=yes
15788 have_stat_timespec
=no
15792 if test $have_stat_timespec = yes; then
15793 HAVE_STAT_TIMESPEC_TRUE
=
15794 HAVE_STAT_TIMESPEC_FALSE
='#'
15796 HAVE_STAT_TIMESPEC_TRUE
='#'
15797 HAVE_STAT_TIMESPEC_FALSE
=
15801 ac_fn_c_check_type
"$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15803 if test "x$ac_cv_type_struct_exception" = xyes
; then :
15804 libgo_has_struct_exception
=yes
15806 libgo_has_struct_exception
=no
15809 if test "$libgo_has_struct_exception" = "yes"; then
15811 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15816 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15817 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false
; then :
15818 $as_echo_n "(cached) " >&6
15820 CFLAGS_hold
="$CFLAGS"
15821 CFLAGS
="$PTHREAD_CFLAGS"
15823 LIBS
="$LIBS $PTHREAD_LIBS"
15824 # The cast to long int works around a bug in the HP C Compiler
15825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15827 # This bug is HP SR number 8606223364.
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15829 $as_echo_n "checking size of void *... " >&6; }
15830 if ${ac_cv_sizeof_void_p+:} false
; then :
15831 $as_echo_n "(cached) " >&6
15833 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15836 if test "$ac_cv_type_void_p" = yes; then
15837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15839 as_fn_error
77 "cannot compute sizeof (void *)
15840 See \`config.log' for more details" "$LINENO" 5; }
15842 ac_cv_sizeof_void_p
=0
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15848 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15852 cat >>confdefs.h
<<_ACEOF
15853 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15857 as_fn_arith
$ac_cv_sizeof_void_p \
* 8 && ptr_type_size
=$as_val
15858 if test "$cross_compiling" = yes; then :
15859 case "$target:$ptr_type_size" in
15860 i?
86-*-solaris2.1
[01]:64 | x86_64
*-*-solaris2.1
[01]:64)
15861 libgo_cv_lib_setcontext_clobbers_tls
=yes ;;
15863 libgo_cv_lib_setcontext_clobbers_tls
=no
;;
15867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15870 #include <pthread.h>
15871 #include <stdlib.h>
15872 #include <ucontext.h>
15873 #include <unistd.h>
15877 static char stack[10 * 1024 * 1024];
15878 static ucontext_t c;
15880 /* Called via makecontext/setcontext. */
15888 /* Called via pthread_create. */
15893 /* The thread should still see this value after calling
15899 /* The call to setcontext should not return. */
15908 /* The thread should not see this value. */
15911 if (getcontext (&c) < 0)
15914 c.uc_stack.ss_sp = stack;
15915 #ifdef MAKECONTEXT_STACK_TOP
15916 c.uc_stack.ss_sp += sizeof stack;
15918 c.uc_stack.ss_flags = 0;
15919 c.uc_stack.ss_size = sizeof stack;
15921 makecontext (&c, cfn, 0);
15923 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15926 if (pthread_join (tid, NULL) != 0)
15929 /* The thread should have called exit. */
15934 if ac_fn_c_try_run
"$LINENO"; then :
15935 libgo_cv_lib_setcontext_clobbers_tls
=no
15937 libgo_cv_lib_setcontext_clobbers_tls
=yes
15939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15940 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15943 CFLAGS
="$CFLAGS_hold"
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15948 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15949 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15951 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15956 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15957 if ${libgo_cv_ro_eh_frame+:} false
; then :
15958 $as_echo_n "(cached) " >&6
15961 libgo_cv_ro_eh_frame
=no
15962 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15963 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
15964 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
15965 libgo_cv_ro_eh_frame
=yes
15966 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15967 |
grep -v '#write' > /dev
/null
; then
15968 libgo_cv_ro_eh_frame
=yes
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15975 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15976 if test "x$libgo_cv_ro_eh_frame" = xyes
; then
15978 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15982 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15987 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15988 if ${libgo_cv_c_unused_arguments+:} false
; then :
15989 $as_echo_n "(cached) " >&6
15991 CFLAGS_hold
=$CFLAGS
15992 CFLAGS
="$CFLAGS -Qunused-arguments"
15993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15997 if ac_fn_c_try_compile
"$LINENO"; then :
15998 libgo_cv_c_unused_arguments
=yes
16000 libgo_cv_c_unused_arguments
=no
16002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16003 CFLAGS
=$CFLAGS_hold
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
16006 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
16009 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
16010 if ${libgo_cv_as_comdat_gnu+:} false
; then :
16011 $as_echo_n "(cached) " >&6
16014 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
16015 CFLAGS_hold
=$CFLAGS
16016 if test "$libgo_cv_c_unused_arguments" = yes; then
16017 CFLAGS
="$CFLAGS -Qunused-arguments"
16019 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
16020 libgo_cv_as_comdat_gnu
=yes
16022 libgo_cv_as_comdat_gnu
=no
16024 CFLAGS
=$CFLAGS_hold
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
16028 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
16029 if test "x$libgo_cv_as_comdat_gnu" = xyes
; then
16031 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16036 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
16037 if ${libgo_cv_as_x86_pcrel+:} false
; then :
16038 $as_echo_n "(cached) " >&6
16041 libgo_cv_as_x86_pcrel
=yes
16042 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16043 CFLAGS_hold
=$CFLAGS
16044 if test "$libgo_cv_c_unused_arguments" = yes; then
16045 CFLAGS
="$CFLAGS -Qunused-arguments"
16047 if $CC $CFLAGS -c conftest.s
2>&1 |
$EGREP -i 'illegal|warning' > /dev
/null
; then
16048 libgo_cv_as_x86_pcrel
=no
16050 CFLAGS
=$CFLAGS_hold
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
16054 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
16055 if test "x$libgo_cv_as_x86_pcrel" = xyes
; then
16057 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
16062 $as_echo_n "checking assembler supports unwind section type... " >&6; }
16063 if ${libgo_cv_as_x86_64_unwind_section_type+:} false
; then :
16064 $as_echo_n "(cached) " >&6
16067 libgo_cv_as_x86_64_unwind_section_type
=yes
16068 echo '.section .eh_frame,"a",@unwind' > conftest.s
16069 CFLAGS_hold
=$CFLAGS
16070 if test "$libgo_cv_c_unused_arguments" = yes; then
16071 CFLAGS
="$CFLAGS -Qunused-arguments"
16073 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i warning
> /dev
/null
; then
16074 libgo_cv_as_x86_64_unwind_section_type
=no
16076 CFLAGS
=$CFLAGS_hold
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
16080 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
16081 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes
; then
16083 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
16088 $as_echo_n "checking assembler supports AES instructions... " >&6; }
16089 if ${libgo_cv_as_x86_aes+:} false
; then :
16090 $as_echo_n "(cached) " >&6
16093 libgo_cv_as_x86_aes
=yes
16094 echo 'aesenc %xmm0, %xmm1' > conftest.s
16095 CFLAGS_hold
=$CFLAGS
16096 if test "$libgo_cv_c_unused_arguments" = yes; then
16097 CFLAGS
="$CFLAGS -Qunused-arguments"
16099 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i error
> /dev
/null
; then
16100 libgo_cv_as_x86_aes
=no
16102 CFLAGS
=$CFLAGS_hold
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
16106 $as_echo "$libgo_cv_as_x86_aes" >&6; }
16107 if test "x$libgo_cv_as_x86_aes" = xyes
; then
16109 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
16114 $as_echo_n "checking whether -static is supported... " >&6; }
16115 if ${libgo_cv_ld_static+:} false
; then :
16116 $as_echo_n "(cached) " >&6
16118 LDFLAGS_hold
=$LDFLAGS
16119 LDFLAGS
="$LDFLAGS -static"
16120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16131 if ac_fn_c_try_link
"$LINENO"; then :
16132 libgo_cv_ld_static
=yes
16134 libgo_cv_ld_static
=no
16136 rm -f core conftest.err conftest.
$ac_objext \
16137 conftest
$ac_exeext conftest.
$ac_ext
16138 LDFLAGS
=$LDFLAGS_hold
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
16141 $as_echo "$libgo_cv_ld_static" >&6; }
16142 if test "$libgo_cv_ld_static" = yes; then
16143 HAVE_STATIC_LINK_TRUE
=
16144 HAVE_STATIC_LINK_FALSE
='#'
16146 HAVE_STATIC_LINK_TRUE
='#'
16147 HAVE_STATIC_LINK_FALSE
=
16153 cat >confcache
<<\_ACEOF
16154 # This file is a shell script that caches the results of configure
16155 # tests run on this system so they can be shared between configure
16156 # scripts and configure runs, see configure's option --config-cache.
16157 # It is not useful on other systems. If it contains results you don't
16158 # want to keep, you may remove or edit it.
16160 # config.status only pays attention to the cache file if you give it
16161 # the --recheck option to rerun configure.
16163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16165 # following values.
16169 # The following way of writing the cache mishandles newlines in values,
16170 # but we know of no workaround that is simple, portable, and efficient.
16171 # So, we kill variables containing newlines.
16172 # Ultrix sh set writes to stderr and can't be redirected directly,
16173 # and sets the high bit in the cache file unless we assign to the vars.
16175 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16176 eval ac_val
=\$
$ac_var
16180 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16184 _ | IFS | as_nl
) ;; #(
16185 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16186 *) { eval $ac_var=; unset $ac_var;} ;;
16192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16193 *${as_nl}ac_space
=\
*)
16194 # `set' does not quote correctly, so add quotes: double-quote
16195 # substitution turns \\\\ into \\, and sed turns \\ into \.
16198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16201 # `set' quotes correctly as required by POSIX, so do not add quotes.
16202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16215 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16216 if test -w "$cache_file"; then
16217 if test "x$cache_file" != "x/dev/null"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16219 $as_echo "$as_me: updating cache $cache_file" >&6;}
16220 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16221 cat confcache
>"$cache_file"
16223 case $cache_file in #(
16225 mv -f confcache
"$cache_file"$$
&&
16226 mv -f "$cache_file"$$
"$cache_file" ;; #(
16228 mv -f confcache
"$cache_file" ;;
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16234 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16239 if test ${multilib} = yes; then
16240 multilib_arg
="--enable-multilib"
16245 ac_config_files
="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
16248 ac_config_commands
="$ac_config_commands default"
16251 cat >confcache
<<\_ACEOF
16252 # This file is a shell script that caches the results of configure
16253 # tests run on this system so they can be shared between configure
16254 # scripts and configure runs, see configure's option --config-cache.
16255 # It is not useful on other systems. If it contains results you don't
16256 # want to keep, you may remove or edit it.
16258 # config.status only pays attention to the cache file if you give it
16259 # the --recheck option to rerun configure.
16261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16263 # following values.
16267 # The following way of writing the cache mishandles newlines in values,
16268 # but we know of no workaround that is simple, portable, and efficient.
16269 # So, we kill variables containing newlines.
16270 # Ultrix sh set writes to stderr and can't be redirected directly,
16271 # and sets the high bit in the cache file unless we assign to the vars.
16273 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16274 eval ac_val
=\$
$ac_var
16278 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16282 _ | IFS | as_nl
) ;; #(
16283 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16284 *) { eval $ac_var=; unset $ac_var;} ;;
16290 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16291 *${as_nl}ac_space
=\
*)
16292 # `set' does not quote correctly, so add quotes: double-quote
16293 # substitution turns \\\\ into \\, and sed turns \\ into \.
16296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16299 # `set' quotes correctly as required by POSIX, so do not add quotes.
16300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16311 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16313 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16314 if test -w "$cache_file"; then
16315 if test "x$cache_file" != "x/dev/null"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16317 $as_echo "$as_me: updating cache $cache_file" >&6;}
16318 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16319 cat confcache
>"$cache_file"
16321 case $cache_file in #(
16323 mv -f confcache
"$cache_file"$$
&&
16324 mv -f "$cache_file"$$
"$cache_file" ;; #(
16326 mv -f confcache
"$cache_file" ;;
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16332 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16337 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16338 # Let make expand exec_prefix.
16339 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16341 DEFS
=-DHAVE_CONFIG_H
16346 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16347 # 1. Remove the extension, and $U if already installed.
16348 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16349 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16350 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16351 # will be set to the directory where LIBOBJS objects are built.
16352 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16353 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16355 LIBOBJS
=$ac_libobjs
16357 LTLIBOBJS
=$ac_ltlibobjs
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16361 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16362 if test -n "$am_sleep_pid"; then
16363 # Hide warnings about reused PIDs.
16364 wait $am_sleep_pid 2>/dev
/null
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16367 $as_echo "done" >&6; }
16368 if test -n "$EXEEXT"; then
16370 am__EXEEXT_FALSE
='#'
16372 am__EXEEXT_TRUE
='#'
16376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16377 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16381 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16384 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16385 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16389 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16393 as_fn_error $?
"conditional \"USE_LIBFFI\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16397 as_fn_error $?
"conditional \"LIBGO_IS_DARWIN\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16401 as_fn_error $?
"conditional \"LIBGO_IS_FREEBSD\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16405 as_fn_error $?
"conditional \"LIBGO_IS_IRIX\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16408 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16409 as_fn_error $?
"conditional \"LIBGO_IS_LINUX\" was never defined.
16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16412 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16413 as_fn_error $?
"conditional \"LIBGO_IS_NETBSD\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16416 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16417 as_fn_error $?
"conditional \"LIBGO_IS_OPENBSD\" was never defined.
16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16420 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16421 as_fn_error $?
"conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16424 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16425 as_fn_error $?
"conditional \"LIBGO_IS_RTEMS\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16428 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16429 as_fn_error $?
"conditional \"LIBGO_IS_SOLARIS\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16432 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16433 as_fn_error $?
"conditional \"LIBGO_IS_AIX\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16436 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16437 as_fn_error $?
"conditional \"LIBGO_IS_HURD\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16441 as_fn_error $?
"conditional \"LIBGO_IS_BSD\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16444 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16445 as_fn_error $?
"conditional \"LIBGO_IS_X86\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16449 as_fn_error $?
"conditional \"USING_SPLIT_STACK\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16452 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16453 as_fn_error $?
"conditional \"GOC_IS_LLGO\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16457 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16458 as_fn_error $?
"conditional \"HAVE_SYS_MMAN_H\" was never defined.
16459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16461 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16462 as_fn_error $?
"conditional \"HAVE_STRERROR_R\" was never defined.
16463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16465 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16466 as_fn_error $?
"conditional \"HAVE_WAIT4\" was never defined.
16467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16469 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16470 as_fn_error $?
"conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16473 if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16474 as_fn_error $?
"conditional \"HAVE_STATIC_LINK\" was never defined.
16475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16478 : "${CONFIG_STATUS=./config.status}"
16480 ac_clean_files_save
=$ac_clean_files
16481 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16483 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16485 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16487 # Generated by $as_me.
16488 # Run this file to recreate the current configuration.
16489 # Compiler output produced by configure, useful for debugging
16490 # configure, is in config.log if it exists.
16493 ac_cs_recheck=false
16496 SHELL=\${CONFIG_SHELL-$SHELL}
16499 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16500 ## -------------------- ##
16501 ## M4sh Initialization. ##
16502 ## -------------------- ##
16504 # Be more Bourne compatible
16505 DUALCASE
=1; export DUALCASE
# for MKS sh
16506 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16509 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16510 # is contrary to our usage. Disable this feature.
16511 alias -g '${1+"$@"}'='"$@"'
16512 setopt NO_GLOB_SUBST
16514 case `(set -o) 2>/dev/null` in #(
16526 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16527 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16528 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16529 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16530 # Prefer a ksh shell builtin over an external printf program on Solaris,
16531 # but without wasting forks for bash or zsh.
16532 if test -z "$BASH_VERSION$ZSH_VERSION" \
16533 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16534 as_echo='print
-r --'
16535 as_echo_n='print
-rn --'
16536 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16537 as_echo='printf %s
\n'
16538 as_echo_n='printf %s
'
16540 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16541 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16542 as_echo_n='/usr
/ucb
/echo -n'
16544 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16545 as_echo_n_body='eval
16549 expr "X$arg" : "X\\(.*\\)$as_nl";
16550 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16552 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16554 export as_echo_n_body
16555 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16557 export as_echo_body
16558 as_echo='sh
-c $as_echo_body as_echo
'
16561 # The user is always right.
16562 if test "${PATH_SEPARATOR+set}" != set; then
16564 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16565 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16572 # We need space, tab and new line, in precisely that order. Quoting is
16573 # there to prevent editors from complaining about space-tab.
16574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16575 # splitting by setting IFS to empty value.)
16578 # Find who we are. Look in the path if we contain no directory separator.
16581 *[\\/]* ) as_myself=$0 ;;
16582 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16583 for as_dir in $PATH
16586 test -z "$as_dir" && as_dir=.
16587 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16593 # We did not find ourselves, most probably we were run as `sh COMMAND'
16594 # in which case we are not to be found in the path.
16595 if test "x$as_myself" = x
; then
16598 if test ! -f "$as_myself"; then
16599 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16603 # Unset variables that we do not need and which cause bugs (e.g. in
16604 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16605 # suppresses any "Segmentation fault" message there. '((' could
16606 # trigger a bug in pdksh 5.2.14.
16607 for as_var
in BASH_ENV ENV MAIL MAILPATH
16608 do eval test x\
${$as_var+set} = xset \
16609 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16622 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16625 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16626 # ----------------------------------------
16627 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16628 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16629 # script with STATUS, using 1 if that was 0.
16632 as_status
=$1; test $as_status -eq 0 && as_status
=1
16634 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16635 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16637 $as_echo "$as_me: error: $2" >&2
16638 as_fn_exit
$as_status
16642 # as_fn_set_status STATUS
16643 # -----------------------
16644 # Set $? to STATUS, without forking.
16645 as_fn_set_status
()
16648 } # as_fn_set_status
16650 # as_fn_exit STATUS
16651 # -----------------
16652 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16656 as_fn_set_status
$1
16662 # Portably unset VAR.
16665 { eval $1=; unset $1;}
16667 as_unset
=as_fn_unset
16668 # as_fn_append VAR VALUE
16669 # ----------------------
16670 # Append the text in VALUE to the end of the definition contained in VAR. Take
16671 # advantage of any shell optimizations that allow amortized linear growth over
16672 # repeated appends, instead of the typical quadratic growth present in naive
16674 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16675 eval 'as_fn_append ()
16686 # as_fn_arith ARG...
16687 # ------------------
16688 # Perform arithmetic evaluation on the ARGs, and store the result in the
16689 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16690 # must be portable across $(()) and expr.
16691 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16692 eval 'as_fn_arith ()
16699 as_val
=`expr "$@" || test $? -eq 1`
16704 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16705 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16711 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16712 as_basename
=basename
16717 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16723 as_me
=`$as_basename -- "$0" ||
16724 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16725 X"$0" : 'X\(//\)$' \| \
16726 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16728 sed '/^.*\/\([^/][^/]*\)\/*$/{
16742 # Avoid depending upon Character Ranges.
16743 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16744 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16745 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16746 as_cr_digits
='0123456789'
16747 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16749 ECHO_C
= ECHO_N
= ECHO_T
=
16750 case `echo -n x` in #(((((
16752 case `echo 'xy\c'` in
16753 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16755 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16762 rm -f conf$$ conf$$.exe conf$$.
file
16763 if test -d conf$$.dir
; then
16764 rm -f conf$$.dir
/conf$$.
file
16767 mkdir conf$$.dir
2>/dev
/null
16769 if (echo >conf$$.
file) 2>/dev
/null
; then
16770 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16772 # ... but there are two gotchas:
16773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16775 # In both cases, we have to default to `cp -pR'.
16776 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16778 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16786 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16787 rmdir conf$$.dir
2>/dev
/null
16792 # Create "$as_dir" as a directory, including parents if necessary.
16797 -*) as_dir
=.
/$as_dir;;
16799 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16803 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16804 *) as_qdir
=$as_dir;;
16806 as_dirs
="'$as_qdir' $as_dirs"
16807 as_dir
=`$as_dirname -- "$as_dir" ||
16808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16809 X"$as_dir" : 'X\(//\)[^/]' \| \
16810 X"$as_dir" : 'X\(//\)$' \| \
16811 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16812 $as_echo X"$as_dir" |
16813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16817 /^X\(\/\/\)[^/].*/{
16830 test -d "$as_dir" && break
16832 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16833 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16837 if mkdir
-p .
2>/dev
/null
; then
16838 as_mkdir_p
='mkdir -p "$as_dir"'
16840 test -d .
/-p && rmdir .
/-p
16845 # as_fn_executable_p FILE
16846 # -----------------------
16847 # Test if FILE is an executable regular file.
16848 as_fn_executable_p
()
16850 test -f "$1" && test -x "$1"
16851 } # as_fn_executable_p
16852 as_test_x
='test -x'
16853 as_executable_p
=as_fn_executable_p
16855 # Sed expression to map a string onto a valid CPP name.
16856 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16858 # Sed expression to map a string onto a valid variable name.
16859 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16863 ## ----------------------------------- ##
16864 ## Main body of $CONFIG_STATUS script. ##
16865 ## ----------------------------------- ##
16867 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16870 # Save the log message, to keep $0 and so on meaningful, and to
16871 # report actual input values of CONFIG_FILES etc. instead of their
16872 # values after options handling.
16874 This file was extended by package-unused $as_me version-unused, which was
16875 generated by GNU Autoconf 2.69. Invocation command line was
16877 CONFIG_FILES = $CONFIG_FILES
16878 CONFIG_HEADERS = $CONFIG_HEADERS
16879 CONFIG_LINKS = $CONFIG_LINKS
16880 CONFIG_COMMANDS = $CONFIG_COMMANDS
16883 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16888 case $ac_config_files in *"
16889 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16892 case $ac_config_headers in *"
16893 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16898 # Files that config.status was made for.
16899 config_files="$ac_config_files"
16900 config_headers="$ac_config_headers"
16901 config_commands="$ac_config_commands"
16905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16907 \`$as_me' instantiates files and other configuration actions
16908 from templates according to the current configuration. Unless the files
16909 and actions are specified as TAGs, all are instantiated by default.
16911 Usage: $0 [OPTION]... [TAG]...
16913 -h, --help print this help, then exit
16914 -V, --version print version number and configuration settings, then exit
16915 --config print configuration, then exit
16916 -q, --quiet, --silent
16917 do not print progress messages
16918 -d, --debug don't remove temporary files
16919 --recheck update $as_me by reconfiguring in the same conditions
16920 --file=FILE[:TEMPLATE]
16921 instantiate the configuration file FILE
16922 --header=FILE[:TEMPLATE]
16923 instantiate the configuration header FILE
16925 Configuration files:
16928 Configuration headers:
16931 Configuration commands:
16934 Report bugs to the package provider."
16937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16938 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16940 package-unused config.status version-unused
16941 configured by $0, generated by GNU Autoconf 2.69,
16942 with options \\"\$ac_cs_config\\"
16944 Copyright (C) 2012 Free Software Foundation, Inc.
16945 This config.status script is free software; the Free Software Foundation
16946 gives unlimited permission to copy, distribute and modify it."
16953 test -n "\$AWK" || AWK=awk
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16957 # The default lists apply if the user does not specify any file.
16963 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16964 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16968 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16980 # Handling of the options.
16981 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16983 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16984 $as_echo "$ac_cs_version"; exit ;;
16985 --config |
--confi |
--conf |
--con |
--co |
--c )
16986 $as_echo "$ac_cs_config"; exit ;;
16987 --debug |
--debu |
--deb |
--de |
--d |
-d )
16989 --file |
--fil |
--fi |
--f )
16992 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16993 '') as_fn_error $?
"missing file argument" ;;
16995 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16996 ac_need_defaults
=false
;;
16997 --header |
--heade |
--head |
--hea )
17000 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17002 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17003 ac_need_defaults
=false
;;
17005 # Conflict between --help and --header
17006 as_fn_error $?
"ambiguous option: \`$1'
17007 Try \`$0 --help' for more information.";;
17008 --help |
--hel |
-h )
17009 $as_echo "$ac_cs_usage"; exit ;;
17010 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17011 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17014 # This is an error.
17015 -*) as_fn_error $?
"unrecognized option: \`$1'
17016 Try \`$0 --help' for more information." ;;
17018 *) as_fn_append ac_config_targets
" $1"
17019 ac_need_defaults
=false
;;
17025 ac_configure_extra_args
=
17027 if $ac_cs_silent; then
17029 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17034 if \$ac_cs_recheck; then
17035 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17037 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17038 CONFIG_SHELL='$SHELL'
17039 export CONFIG_SHELL
17044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17048 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17049 ## Running $as_me. ##
17055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063 with_multisubdir="$with_multisubdir"
17064 with_multisrctop="$with_multisrctop"
17065 with_target_subdir="$with_target_subdir"
17066 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17067 multi_basedir="$multi_basedir"
17068 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17071 GFORTRAN="$GFORTRAN"
17073 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17076 # The HP-UX ksh and POSIX shell print the target directory to stdout
17077 # if CDPATH is set.
17078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17080 sed_quote_subst='$sed_quote_subst'
17081 double_quote_subst='$double_quote_subst'
17082 delay_variable_subst='$delay_variable_subst'
17083 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17084 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17085 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17086 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17087 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17088 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17089 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17090 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17091 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17092 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17093 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17094 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17095 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17096 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17097 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17098 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17099 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17100 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17101 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17102 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17103 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17104 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17105 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17106 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17107 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17108 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17109 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17110 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17111 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17112 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17113 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17114 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17115 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17116 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17117 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17118 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17119 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17120 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17121 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17122 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17123 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17124 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17125 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17126 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17127 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17128 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17129 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17130 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17131 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"`'
17132 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17133 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17134 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17135 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17136 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17137 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17138 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17139 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17140 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17141 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17142 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17143 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17144 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17145 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17146 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17147 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17148 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17149 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17150 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17151 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17152 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17153 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17154 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17155 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17156 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17157 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17158 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17159 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17160 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17161 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17162 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17163 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17164 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17165 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17166 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17167 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17168 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17169 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17170 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17171 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17172 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17173 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17174 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17175 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17176 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17177 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17178 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17179 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17180 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17181 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17182 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17183 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17184 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17185 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17186 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17187 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17188 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17189 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17190 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17191 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17192 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17193 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17194 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17195 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17196 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17197 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17198 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17199 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17200 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17201 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17202 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17203 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
17204 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
17205 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
17206 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17207 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
17208 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
17209 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
17210 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
17211 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
17212 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
17213 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
17214 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
17215 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
17216 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17217 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17218 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
17219 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
17220 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
17221 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17222 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17223 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
17224 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17225 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
17226 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17227 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17228 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17229 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
17230 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
17231 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
17232 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
17233 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
17234 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
17235 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
17236 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
17237 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
17238 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
17239 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
17240 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
17241 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17242 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17243 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
17244 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
17245 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
17248 LTCFLAGS='$LTCFLAGS'
17249 compiler='$compiler_DEFAULT'
17251 # A function that is used when there is no print builtin or printf.
17252 func_fallback_echo ()
17254 eval 'cat <<_LTECHO_EOF
17259 # Quote evaled strings.
17273 deplibs_check_method \
17282 lt_cv_sys_global_symbol_pipe \
17283 lt_cv_sys_global_symbol_to_cdecl \
17284 lt_cv_sys_global_symbol_to_c_name_address \
17285 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17286 lt_prog_compiler_no_builtin_flag \
17287 lt_prog_compiler_wl \
17288 lt_prog_compiler_pic \
17289 lt_prog_compiler_static \
17290 lt_cv_prog_compiler_c_o \
17298 export_dynamic_flag_spec \
17299 whole_archive_flag_spec \
17300 compiler_needs_object \
17302 allow_undefined_flag \
17303 no_undefined_flag \
17304 hardcode_libdir_flag_spec \
17305 hardcode_libdir_flag_spec_ld \
17306 hardcode_libdir_separator \
17311 variables_saved_for_relink \
17313 library_names_spec \
17315 install_override_mode \
17322 lt_prog_compiler_no_builtin_flag_GO \
17323 lt_prog_compiler_wl_GO \
17324 lt_prog_compiler_pic_GO \
17325 lt_prog_compiler_static_GO \
17326 lt_cv_prog_compiler_c_o_GO \
17327 export_dynamic_flag_spec_GO \
17328 whole_archive_flag_spec_GO \
17329 compiler_needs_object_GO \
17331 allow_undefined_flag_GO \
17332 no_undefined_flag_GO \
17333 hardcode_libdir_flag_spec_GO \
17334 hardcode_libdir_flag_spec_ld_GO \
17335 hardcode_libdir_separator_GO \
17336 fix_srcfile_path_GO \
17337 exclude_expsyms_GO \
17338 include_expsyms_GO \
17339 file_list_spec_GO; do
17340 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17341 *[\\\\\\\`\\"\\\$]*)
17342 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17345 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17350 # Double-quote double-evaled strings.
17351 for var in reload_cmds \
17352 old_postinstall_cmds \
17353 old_postuninstall_cmds \
17355 extract_expsyms_cmds \
17356 old_archive_from_new_cmds \
17357 old_archive_from_expsyms_cmds \
17359 archive_expsym_cmds \
17361 module_expsym_cmds \
17362 export_symbols_cmds \
17365 postuninstall_cmds \
17367 sys_lib_search_path_spec \
17368 sys_lib_dlsearch_path_spec \
17370 old_archive_cmds_GO \
17371 old_archive_from_new_cmds_GO \
17372 old_archive_from_expsyms_cmds_GO \
17374 archive_expsym_cmds_GO \
17376 module_expsym_cmds_GO \
17377 export_symbols_cmds_GO \
17378 prelink_cmds_GO; do
17379 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17380 *[\\\\\\\`\\"\\\$]*)
17381 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17384 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17389 ac_aux_dir='$ac_aux_dir'
17390 xsi_shell='$xsi_shell'
17391 lt_shell_append='$lt_shell_append'
17393 # See if we are running on zsh, and set the options which allow our
17394 # commands through without removal of \ escapes INIT.
17395 if test -n "\${ZSH_VERSION+set}" ; then
17396 setopt NO_GLOB_SUBST
17402 TIMESTAMP='$TIMESTAMP'
17411 # Variables needed in config.status (file generation) which aren't already
17412 # passed by autoconf.
17418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17420 # Handling of arguments.
17421 for ac_config_target
in $ac_config_targets
17423 case $ac_config_target in
17424 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17425 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17426 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17427 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17428 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17429 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17430 "testsuite/libgo-test-support.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17431 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17433 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17438 # If the user did not use the arguments to specify the items to instantiate,
17439 # then the envvar interface is used. Set only those that are not.
17440 # We use the long form for the default assignment because of an extremely
17441 # bizarre bug on SunOS 4.1.3.
17442 if $ac_need_defaults; then
17443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17448 # Have a temporary directory for convenience. Make it in the build tree
17449 # simply because there is no reason against having it here, and in addition,
17450 # creating and moving files from /tmp can sometimes cause problems.
17451 # Hook for its removal unless debugging.
17452 # Note that there is a small window in which the directory will not be cleaned:
17453 # after its creation but before its name has been assigned to `$tmp'.
17457 trap 'exit_status=$?
17458 : "${ac_tmp:=$tmp}"
17459 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17461 trap 'as_fn_exit 1' 1 2 13 15
17463 # Create a (secure) tmp directory for tmp files.
17466 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17470 tmp
=.
/conf$$
-$RANDOM
17471 (umask 077 && mkdir
"$tmp")
17472 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17475 # Set up the scripts for CONFIG_FILES section.
17476 # No need to generate them if there are no CONFIG_FILES.
17477 # This happens for instance with `./config.status config.h'.
17478 if test -n "$CONFIG_FILES"; then
17481 ac_cr
=`echo X | tr X '\015'`
17482 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17483 # But we know of no other shell where ac_cr would be empty at this
17484 # point, so we can use a bashism as a fallback.
17485 if test "x$ac_cr" = x
; then
17486 eval ac_cr
=\$
\'\\r
\'
17488 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17489 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17492 ac_cs_awk_cr
=$ac_cr
17495 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17500 echo "cat >conf$$subs.awk <<_ACEOF" &&
17501 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17503 } >conf$$subs.sh ||
17504 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17505 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17507 for ac_last_try in false false false false false :; do
17508 . ./conf$$subs.sh ||
17509 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17511 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17512 if test $ac_delim_n = $ac_delim_num; then
17514 elif $ac_last_try; then
17515 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17517 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17520 rm -f conf$$subs.sh
17522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17523 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17527 s/^/S["/; s
/!.
*/"]=/
17537 s/\(.\{148\}\)..*/\1/
17539 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17544 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17551 s/\(.\{148\}\)..*/\1/
17553 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17557 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17562 ' <conf$$subs.awk | sed '
17567 ' >>$CONFIG_STATUS || ac_write_fail=1
17568 rm -f conf$$subs.awk
17569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17571 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17572 for (key in S) S_is_set[key] = 1
17578 nfields = split(line, field, "@
")
17580 len = length(field[1])
17581 for (i = 2; i < nfields; i++) {
17583 keylen = length(key)
17584 if (S_is_set[key]) {
17586 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17587 len += length(value) + length(field[++i])
17598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17599 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17600 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17603 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17604 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17607 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17608 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17609 # trailing colons and then remove the whole line if VPATH becomes empty
17610 # (actually we leave an empty line to preserve line numbers).
17611 if test "x
$srcdir" = x.; then
17612 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17631 fi # test -n "$CONFIG_FILES"
17633 # Set up the scripts for CONFIG_HEADERS section.
17634 # No need to generate them if there are no CONFIG_HEADERS.
17635 # This happens for instance with `./config.status Makefile'.
17636 if test -n "$CONFIG_HEADERS"; then
17637 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17641 # Transform confdefs.h into an awk script `defines.awk', embedded as
17642 # here-document in config.status, that substitutes the proper values into
17643 # config.h.in to produce config.h.
17645 # Create a delimiter string that does not exist in confdefs.h, to ease
17646 # handling of long lines.
17648 for ac_last_try in false false :; do
17649 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17650 if test -z "$ac_tt"; then
17652 elif $ac_last_try; then
17653 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17655 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17659 # For the awk script, D is an array of macro values keyed by name,
17660 # likewise P contains macro parameters if any. Preserve backslash
17661 # newline sequences.
17663 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17665 s/.\{148\}/&'"$ac_delim"'/g
17668 s/^[ ]*#[ ]*define[ ][ ]*/ /
17675 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17677 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17681 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17682 D["\
1"]=" \
3\\\\\\n
"\\/p
17684 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17689 s/.\{148\}/&'"$ac_delim"'/g
17694 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17697 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17699 ' <confdefs.h | sed '
17700 s/'"$ac_delim"'/"\\\
17701 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17704 for (key in D) D_is_set[key] = 1
17707 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17709 split(line, arg, " ")
17710 if (arg[1] == "#") {
17714 defundef
= substr
(arg
[1], 2)
17717 split(mac1
, mac2
, "(") #)
17719 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17720 if (D_is_set
[macro
]) {
17721 # Preserve the white space surrounding the "#".
17722 print prefix
"define", macro P
[macro
] D
[macro
]
17725 # Replace #undef with comments. This is necessary, for example,
17726 # in the case of _POSIX_SOURCE, which is predefined and required
17727 # on some systems where configure will not decide to define it.
17728 if (defundef
== "undef") {
17729 print
"/*", prefix defundef
, macro
, "*/"
17737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17738 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17739 fi # test -n "$CONFIG_HEADERS"
17742 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17747 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17749 case $ac_mode$ac_tag in
17751 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17752 :[FH
]-) ac_tag
=-:-;;
17753 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17770 -) ac_f
="$ac_tmp/stdin";;
17771 *) # Look for the file first in the build tree, then in the source tree
17772 # (if the path is not absolute). The absolute path cannot be DOS-style,
17773 # because $ac_f cannot contain `:'.
17777 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17779 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17781 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17782 as_fn_append ac_file_inputs
" '$ac_f'"
17785 # Let's still pretend it is `configure' which instantiates (i.e., don't
17786 # use $as_me), people would be surprised to read:
17787 # /* config.h. Generated by config.status. */
17788 configure_input
='Generated from '`
17789 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17791 if test x
"$ac_file" != x-
; then
17792 configure_input
="$ac_file. $configure_input"
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17794 $as_echo "$as_me: creating $ac_file" >&6;}
17796 # Neutralize special characters interpreted by sed in replacement strings.
17797 case $configure_input in #(
17798 *\
&* |
*\|
* |
*\\* )
17799 ac_sed_conf_input
=`$as_echo "$configure_input" |
17800 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17801 *) ac_sed_conf_input
=$configure_input;;
17805 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17806 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17811 ac_dir
=`$as_dirname -- "$ac_file" ||
17812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17813 X"$ac_file" : 'X\(//\)[^/]' \| \
17814 X"$ac_file" : 'X\(//\)$' \| \
17815 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17816 $as_echo X"$ac_file" |
17817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17821 /^X\(\/\/\)[^/].*/{
17834 as_dir
="$ac_dir"; as_fn_mkdir_p
17838 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17840 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17841 # A ".." for each directory in $ac_dir_suffix.
17842 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17843 case $ac_top_builddir_sub in
17844 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17845 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17848 ac_abs_top_builddir
=$ac_pwd
17849 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17850 # for backward compatibility:
17851 ac_top_builddir
=$ac_top_build_prefix
17854 .
) # We are building in place.
17856 ac_top_srcdir
=$ac_top_builddir_sub
17857 ac_abs_top_srcdir
=$ac_pwd ;;
17858 [\\/]* | ?
:[\\/]* ) # Absolute name.
17859 ac_srcdir
=$srcdir$ac_dir_suffix;
17860 ac_top_srcdir
=$srcdir
17861 ac_abs_top_srcdir
=$srcdir ;;
17862 *) # Relative name.
17863 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17864 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17865 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17867 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17877 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17878 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17880 ac_MKDIR_P
=$MKDIR_P
17882 [\\/$
]* | ?
:[\\/]* ) ;;
17883 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17888 # If the template does not know about datarootdir, expand it.
17889 # FIXME: This hack should be removed a few years after 2.60.
17890 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17901 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17902 *datarootdir
*) ac_datarootdir_seen
=yes;;
17903 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17905 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17908 ac_datarootdir_hack='
17909 s&@datadir@&$datadir&g
17910 s&@docdir@&$docdir&g
17911 s&@infodir@&$infodir&g
17912 s&@localedir@&$localedir&g
17913 s&@mandir@&$mandir&g
17914 s&\\\${datarootdir}&$datarootdir&g' ;;
17918 # Neutralize VPATH when `$srcdir' = `.'.
17919 # Shell code in configure.ac might set extrasub.
17920 # FIXME: do we really want to maintain this feature?
17921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922 ac_sed_extra="$ac_vpsub
17925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17927 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17928 s|@configure_input@|
$ac_sed_conf_input|
;t t
17929 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17930 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17931 s
&@srcdir@
&$ac_srcdir&;t t
17932 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17933 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17934 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17935 s
&@builddir@
&$ac_builddir&;t t
17936 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17937 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17938 s
&@INSTALL@
&$ac_INSTALL&;t t
17939 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17940 $ac_datarootdir_hack
17942 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17943 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17945 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17946 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17948 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17950 which seems to be undefined. Please make sure it is defined" >&5
17951 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17952 which seems to be undefined. Please make sure it is defined" >&2;}
17954 rm -f "$ac_tmp/stdin"
17956 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17957 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17965 if test x"$ac_file" != x-; then
17967 $as_echo "/* $configure_input */" \
17968 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17969 } >"$ac_tmp/config.h" \
17970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17971 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17973 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17976 mv "$ac_tmp/config.h" "$ac_file" \
17977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17980 $as_echo "/* $configure_input */" \
17981 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17982 || as_fn_error $? "could not create -" "$LINENO" 5
17984 # Compute "$ac_file"'s index
in $config_headers.
17987 for _am_header
in $config_headers :; do
17988 case $_am_header in
17989 $_am_arg |
$_am_arg:* )
17992 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17995 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17996 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17997 X"$_am_arg" : 'X\(//\)[^/]' \| \
17998 X"$_am_arg" : 'X\(//\)$' \| \
17999 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18000 $as_echo X"$_am_arg" |
18001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18005 /^X\(\/\/\)[^/].*/{
18017 s/.*/./; q'`/stamp-h
$_am_stamp_count
18020 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18021 $as_echo "$as_me: executing $ac_file commands" >&6;}
18026 case $ac_file$ac_mode in
18028 # Only add multilib support code if we just rebuilt the top-level
18030 case " $CONFIG_FILES " in
18032 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18035 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18036 # Older Autoconf quotes --file arguments for eval, but not when files
18037 # are listed without --file. Let's play safe and only enable the eval
18038 # if we detect the quoting.
18039 case $CONFIG_FILES in
18040 *\'*) eval set x
"$CONFIG_FILES" ;;
18041 *) set x
$CONFIG_FILES ;;
18046 # Strip MF so we end up with the name of the file.
18047 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18048 # Check whether this is an Automake generated Makefile or not.
18049 # We used to match only the files named 'Makefile.in', but
18050 # some people rename them; so instead we look at the file content.
18051 # Grep'ing the first line is not enough: some people post-process
18052 # each Makefile.in and add a new line on top of each file to say so.
18053 # Grep'ing the whole file is not good either: AIX grep has a line
18054 # limit of 2048, but all sed's we know have understand at least 4000.
18055 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18056 dirpart
=`$as_dirname -- "$mf" ||
18057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18058 X"$mf" : 'X\(//\)[^/]' \| \
18059 X"$mf" : 'X\(//\)$' \| \
18060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18066 /^X\(\/\/\)[^/].*/{
18082 # Extract the definition of DEPDIR, am__include, and am__quote
18083 # from the Makefile without running 'make'.
18084 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18085 test -z "$DEPDIR" && continue
18086 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18087 test -z "$am__include" && continue
18088 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18089 # Find all dependency output files, they are included files with
18090 # $(DEPDIR) in their names. We invoke sed twice because it is the
18091 # simplest approach to changing $(DEPDIR) to its actual value in the
18093 for file in `sed -n "
18094 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18095 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18096 # Make sure the directory exists.
18097 test -f "$dirpart/$file" && continue
18098 fdir
=`$as_dirname -- "$file" ||
18099 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18100 X"$file" : 'X\(//\)[^/]' \| \
18101 X"$file" : 'X\(//\)$' \| \
18102 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18103 $as_echo X"$file" |
18104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18108 /^X\(\/\/\)[^/].*/{
18121 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18122 # echo "creating $dirpart/$file"
18123 echo '# dummy' > "$dirpart/$file"
18130 # See if we are running on zsh, and set the options which allow our
18131 # commands through without removal of \ escapes.
18132 if test -n "${ZSH_VERSION+set}" ; then
18133 setopt NO_GLOB_SUBST
18136 cfgfile
="${ofile}T"
18137 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18140 cat <<_LT_EOF >> "$cfgfile"
18143 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18144 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18148 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18149 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18150 # Written by Gordon Matzigkeit, 1996
18152 # This file is part of GNU Libtool.
18154 # GNU Libtool is free software; you can redistribute it and/or
18155 # modify it under the terms of the GNU General Public License as
18156 # published by the Free Software Foundation; either version 2 of
18157 # the License, or (at your option) any later version.
18159 # As a special exception to the GNU General Public License,
18160 # if you distribute this file as part of a program or library that
18161 # is built using GNU Libtool, you may include this file under the
18162 # same distribution terms that you use for the rest of that program.
18164 # GNU Libtool is distributed in the hope that it will be useful,
18165 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18167 # GNU General Public License for more details.
18169 # You should have received a copy of the GNU General Public License
18170 # along with GNU Libtool; see the file COPYING. If not, a copy
18171 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18172 # obtained by writing to the Free Software Foundation, Inc.,
18173 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18176 # The names of the tagged configurations supported by this script.
18177 available_tags="GO "
18179 # ### BEGIN LIBTOOL CONFIG
18181 # A sed program that does not truncate output.
18184 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18185 Xsed="\$SED -e 1s/^X//"
18187 # A grep program that handles long lines.
18193 # A literal string matcher.
18196 # Shell to use when invoking shell scripts.
18199 # An echo program that protects backslashes.
18202 # Which release of libtool.m4 was used?
18203 macro_version=$macro_version
18204 macro_revision=$macro_revision
18206 # Whether or not to build shared libraries.
18207 build_libtool_libs=$enable_shared
18209 # Whether or not to build static libraries.
18210 build_old_libs=$enable_static
18212 # What type of objects to build.
18215 # Whether or not to optimize for fast installation.
18216 fast_install=$enable_fast_install
18219 host_alias=$host_alias
18223 # The build system.
18224 build_alias=$build_alias
18228 # A BSD- or MS-compatible name lister.
18231 # Whether we need soft or hard links.
18234 # What is the maximum length of a command?
18235 max_cmd_len=$max_cmd_len
18237 # Object file suffix (normally "o").
18240 # Executable file suffix (normally "").
18243 # whether the shell understands "unset".
18246 # turn spaces into newlines.
18249 # turn newlines into spaces.
18252 # An object symbol dumper.
18253 OBJDUMP=$lt_OBJDUMP
18255 # Method to check whether dependent libraries are shared objects.
18256 deplibs_check_method=$lt_deplibs_check_method
18258 # Command to use when deplibs_check_method == "file_magic".
18259 file_magic_cmd=$lt_file_magic_cmd
18263 AR_FLAGS=$lt_AR_FLAGS
18265 # A symbol stripping program.
18268 # Commands used to install an old-style archive.
18270 old_postinstall_cmds=$lt_old_postinstall_cmds
18271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18273 # Whether to use a lock for old archive extraction.
18274 lock_old_archive_extraction=$lock_old_archive_extraction
18279 # LTCC compiler flags.
18280 LTCFLAGS=$lt_CFLAGS
18282 # Take the output of nm and produce a listing of raw symbols and C names.
18283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18285 # Transform the output of nm in a proper C declaration.
18286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18288 # Transform the output of nm in a C name address pair.
18289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18291 # Transform the output of nm in a C name address pair when lib prefix is needed.
18292 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18294 # The name of the directory that contains temporary libtool files.
18297 # Used to examine libraries when file_magic_cmd begins with "file".
18298 MAGIC_CMD=$MAGIC_CMD
18300 # Must we lock files when doing compilation?
18301 need_locks=$lt_need_locks
18303 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18304 DSYMUTIL=$lt_DSYMUTIL
18306 # Tool to change global to local symbols on Mac OS X.
18309 # Tool to manipulate fat objects and archives on Mac OS X.
18312 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18315 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18316 OTOOL64=$lt_OTOOL64
18318 # Old archive suffix (normally "a").
18321 # Shared library suffix (normally ".so").
18322 shrext_cmds=$lt_shrext_cmds
18324 # The commands to extract the exported symbol list from a shared archive.
18325 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18327 # Variables whose values should be saved in libtool wrapper scripts and
18328 # restored at link time.
18329 variables_saved_for_relink=$lt_variables_saved_for_relink
18331 # Do we need the "lib" prefix for modules?
18332 need_lib_prefix=$need_lib_prefix
18334 # Do we need a version for libraries?
18335 need_version=$need_version
18337 # Library versioning type.
18338 version_type=$version_type
18340 # Shared library runtime path variable.
18341 runpath_var=$runpath_var
18343 # Shared library path variable.
18344 shlibpath_var=$shlibpath_var
18346 # Is shlibpath searched before the hard-coded library search path?
18347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18349 # Format of library name prefix.
18350 libname_spec=$lt_libname_spec
18352 # List of archive names. First name is the real one, the rest are links.
18353 # The last name is the one that the linker finds with -lNAME
18354 library_names_spec=$lt_library_names_spec
18356 # The coded name of the library, if different from the real name.
18357 soname_spec=$lt_soname_spec
18359 # Permission mode override for installation of shared libraries.
18360 install_override_mode=$lt_install_override_mode
18362 # Command to use after installation of a shared archive.
18363 postinstall_cmds=$lt_postinstall_cmds
18365 # Command to use after uninstallation of a shared archive.
18366 postuninstall_cmds=$lt_postuninstall_cmds
18368 # Commands used to finish a libtool library installation in a directory.
18369 finish_cmds=$lt_finish_cmds
18371 # As "finish_cmds", except a single script fragment to be evaled but
18373 finish_eval=$lt_finish_eval
18375 # Whether we should hardcode library paths into libraries.
18376 hardcode_into_libs=$hardcode_into_libs
18378 # Compile-time system search path for libraries.
18379 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18381 # Run-time system search path for libraries.
18382 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18384 # Whether dlopen is supported.
18385 dlopen_support=$enable_dlopen
18387 # Whether dlopen of programs is supported.
18388 dlopen_self=$enable_dlopen_self
18390 # Whether dlopen of statically linked programs is supported.
18391 dlopen_self_static=$enable_dlopen_self_static
18393 # Commands to strip libraries.
18394 old_striplib=$lt_old_striplib
18395 striplib=$lt_striplib
18398 # The linker used to build libraries.
18401 # How to create reloadable object files.
18402 reload_flag=$lt_reload_flag
18403 reload_cmds=$lt_reload_cmds
18405 # Commands used to build an old-style archive.
18406 old_archive_cmds=$lt_old_archive_cmds
18408 # A language specific compiler.
18411 # Is the compiler the GNU compiler?
18414 # Compiler flag to turn off builtin functions.
18415 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18417 # How to pass a linker flag through the compiler.
18418 wl=$lt_lt_prog_compiler_wl
18420 # Additional compiler flags for building library objects.
18421 pic_flag=$lt_lt_prog_compiler_pic
18423 # Compiler flag to prevent dynamic linking.
18424 link_static_flag=$lt_lt_prog_compiler_static
18426 # Does compiler simultaneously support -c and -o options?
18427 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18429 # Whether or not to add -lc for building shared libraries.
18430 build_libtool_need_lc=$archive_cmds_need_lc
18432 # Whether or not to disallow shared libs when runtime libs are static.
18433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18435 # Compiler flag to allow reflexive dlopens.
18436 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18438 # Compiler flag to generate shared objects directly from archives.
18439 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18441 # Whether the compiler copes with passing no objects directly.
18442 compiler_needs_object=$lt_compiler_needs_object
18444 # Create an old-style archive from a shared archive.
18445 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18447 # Create a temporary old-style archive to link instead of a shared archive.
18448 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18450 # Commands used to build a shared archive.
18451 archive_cmds=$lt_archive_cmds
18452 archive_expsym_cmds=$lt_archive_expsym_cmds
18454 # Commands used to build a loadable module if different from building
18455 # a shared archive.
18456 module_cmds=$lt_module_cmds
18457 module_expsym_cmds=$lt_module_expsym_cmds
18459 # Whether we are building with GNU ld or not.
18460 with_gnu_ld=$lt_with_gnu_ld
18462 # Flag that allows shared libraries with undefined symbols to be built.
18463 allow_undefined_flag=$lt_allow_undefined_flag
18465 # Flag that enforces no undefined symbols.
18466 no_undefined_flag=$lt_no_undefined_flag
18468 # Flag to hardcode \$libdir into a binary during linking.
18469 # This must work even if \$libdir does not exist
18470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18472 # If ld is used when linking, flag to hardcode \$libdir into a binary
18473 # during linking. This must work even if \$libdir does not exist.
18474 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18476 # Whether we need a single "-rpath" flag with a separated argument.
18477 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18479 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18480 # DIR into the resulting binary.
18481 hardcode_direct=$hardcode_direct
18483 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18484 # DIR into the resulting binary and the resulting library dependency is
18485 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18486 # library is relocated.
18487 hardcode_direct_absolute=$hardcode_direct_absolute
18489 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18490 # into the resulting binary.
18491 hardcode_minus_L=$hardcode_minus_L
18493 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18494 # into the resulting binary.
18495 hardcode_shlibpath_var=$hardcode_shlibpath_var
18497 # Set to "yes" if building a shared library automatically hardcodes DIR
18498 # into the library and all subsequent libraries and executables linked
18500 hardcode_automatic=$hardcode_automatic
18502 # Set to yes if linker adds runtime paths of dependent libraries
18503 # to runtime path list.
18504 inherit_rpath=$inherit_rpath
18506 # Whether libtool must link a program against all its dependency libraries.
18507 link_all_deplibs=$link_all_deplibs
18509 # Fix the shell variable \$srcfile for the compiler.
18510 fix_srcfile_path=$lt_fix_srcfile_path
18512 # Set to "yes" if exported symbols are required.
18513 always_export_symbols=$always_export_symbols
18515 # The commands to list exported symbols.
18516 export_symbols_cmds=$lt_export_symbols_cmds
18518 # Symbols that should not be listed in the preloaded symbols.
18519 exclude_expsyms=$lt_exclude_expsyms
18521 # Symbols that must always be exported.
18522 include_expsyms=$lt_include_expsyms
18524 # Commands necessary for linking programs (against libraries) with templates.
18525 prelink_cmds=$lt_prelink_cmds
18527 # Specify filename containing input files.
18528 file_list_spec=$lt_file_list_spec
18530 # How to hardcode a shared library path into an executable.
18531 hardcode_action=$hardcode_action
18533 # ### END LIBTOOL CONFIG
18539 cat <<\_LT_EOF
>> "$cfgfile"
18540 # AIX sometimes has problems with the GCC collect2 program. For some
18541 # reason, if we set the COLLECT_NAMES environment variable, the problems
18542 # vanish in a puff of smoke.
18543 if test "X${COLLECT_NAMES+set}" != Xset
; then
18545 export COLLECT_NAMES
18552 ltmain
="$ac_aux_dir/ltmain.sh"
18555 # We use sed instead of cat because bash on DJGPP gets confused if
18556 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18557 # text mode, it properly converts lines to CR/LF. This bash problem
18558 # is reportedly fixed, but why not run on old versions too?
18559 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18560 ||
(rm -f "$cfgfile"; exit 1)
18564 cat << \_LT_EOF
>> "$cfgfile"
18566 # func_dirname file append nondir_replacement
18567 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18568 # otherwise set result to NONDIR_REPLACEMENT.
18572 */*) func_dirname_result
="${1%/*}${2}" ;;
18573 * ) func_dirname_result
="${3}" ;;
18577 # func_basename file
18580 func_basename_result
="${1##*/}"
18583 # func_dirname_and_basename file append nondir_replacement
18584 # perform func_basename and func_dirname in a single function
18586 # dirname: Compute the dirname of FILE. If nonempty,
18587 # add APPEND to the result, otherwise set result
18588 # to NONDIR_REPLACEMENT.
18589 # value returned in "$func_dirname_result"
18590 # basename: Compute filename of FILE.
18591 # value retuned in "$func_basename_result"
18592 # Implementation must be kept synchronized with func_dirname
18593 # and func_basename. For efficiency, we do not delegate to
18594 # those functions but instead duplicate the functionality here.
18595 func_dirname_and_basename
()
18598 */*) func_dirname_result
="${1%/*}${2}" ;;
18599 * ) func_dirname_result
="${3}" ;;
18601 func_basename_result
="${1##*/}"
18604 # func_stripname prefix suffix name
18605 # strip PREFIX and SUFFIX off of NAME.
18606 # PREFIX and SUFFIX must not contain globbing or regex special
18607 # characters, hashes, percent signs, but SUFFIX may contain a leading
18608 # dot (in which case that matches only a dot).
18611 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18612 # positional parameters, so assign one to ordinary parameter first.
18613 func_stripname_result
=${3}
18614 func_stripname_result
=${func_stripname_result#"${1}"}
18615 func_stripname_result
=${func_stripname_result%"${2}"}
18621 func_opt_split_opt
=${1%%=*}
18622 func_opt_split_arg
=${1#*=}
18629 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18630 *) func_lo2o_result
=${1} ;;
18634 # func_xform libobj-or-source
18637 func_xform_result
=${1%.*}.lo
18640 # func_arith arithmetic-term...
18643 func_arith_result
=$
(( $
* ))
18647 # STRING may not start with a hyphen.
18650 func_len_result
=${#1}
18655 *) # Bourne compatible functions.
18656 cat << \_LT_EOF
>> "$cfgfile"
18658 # func_dirname file append nondir_replacement
18659 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18660 # otherwise set result to NONDIR_REPLACEMENT.
18663 # Extract subdirectory from the argument.
18664 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18665 if test "X$func_dirname_result" = "X${1}"; then
18666 func_dirname_result
="${3}"
18668 func_dirname_result
="$func_dirname_result${2}"
18672 # func_basename file
18675 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18679 # func_stripname prefix suffix name
18680 # strip PREFIX and SUFFIX off of NAME.
18681 # PREFIX and SUFFIX must not contain globbing or regex special
18682 # characters, hashes, percent signs, but SUFFIX may contain a leading
18683 # dot (in which case that matches only a dot).
18684 # func_strip_suffix prefix name
18688 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18689 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18694 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18695 my_sed_long_arg
='1s/^-[^=]*=//'
18700 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18701 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18707 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18710 # func_xform libobj-or-source
18713 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18716 # func_arith arithmetic-term...
18719 func_arith_result
=`expr "$@"`
18723 # STRING may not start with a hyphen.
18726 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18732 case $lt_shell_append in
18734 cat << \_LT_EOF
>> "$cfgfile"
18736 # func_append var value
18737 # Append VALUE to the end of shell variable VAR.
18745 cat << \_LT_EOF
>> "$cfgfile"
18747 # func_append var value
18748 # Append VALUE to the end of shell variable VAR.
18759 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18760 ||
(rm -f "$cfgfile"; exit 1)
18762 mv -f "$cfgfile" "$ofile" ||
18763 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18767 cat <<_LT_EOF >> "$ofile"
18769 # ### BEGIN LIBTOOL TAG CONFIG: GO
18771 # The linker used to build libraries.
18774 # How to create reloadable object files.
18775 reload_flag=$lt_reload_flag_GO
18776 reload_cmds=$lt_reload_cmds_GO
18778 # Commands used to build an old-style archive.
18779 old_archive_cmds=$lt_old_archive_cmds_GO
18781 # A language specific compiler.
18784 # Is the compiler the GNU compiler?
18787 # Compiler flag to turn off builtin functions.
18788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18790 # How to pass a linker flag through the compiler.
18791 wl=$lt_lt_prog_compiler_wl_GO
18793 # Additional compiler flags for building library objects.
18794 pic_flag=$lt_lt_prog_compiler_pic_GO
18796 # Compiler flag to prevent dynamic linking.
18797 link_static_flag=$lt_lt_prog_compiler_static_GO
18799 # Does compiler simultaneously support -c and -o options?
18800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18802 # Whether or not to add -lc for building shared libraries.
18803 build_libtool_need_lc=$archive_cmds_need_lc_GO
18805 # Whether or not to disallow shared libs when runtime libs are static.
18806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18808 # Compiler flag to allow reflexive dlopens.
18809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18811 # Compiler flag to generate shared objects directly from archives.
18812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18814 # Whether the compiler copes with passing no objects directly.
18815 compiler_needs_object=$lt_compiler_needs_object_GO
18817 # Create an old-style archive from a shared archive.
18818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18820 # Create a temporary old-style archive to link instead of a shared archive.
18821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18823 # Commands used to build a shared archive.
18824 archive_cmds=$lt_archive_cmds_GO
18825 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18827 # Commands used to build a loadable module if different from building
18828 # a shared archive.
18829 module_cmds=$lt_module_cmds_GO
18830 module_expsym_cmds=$lt_module_expsym_cmds_GO
18832 # Whether we are building with GNU ld or not.
18833 with_gnu_ld=$lt_with_gnu_ld_GO
18835 # Flag that allows shared libraries with undefined symbols to be built.
18836 allow_undefined_flag=$lt_allow_undefined_flag_GO
18838 # Flag that enforces no undefined symbols.
18839 no_undefined_flag=$lt_no_undefined_flag_GO
18841 # Flag to hardcode \$libdir into a binary during linking.
18842 # This must work even if \$libdir does not exist
18843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18845 # If ld is used when linking, flag to hardcode \$libdir into a binary
18846 # during linking. This must work even if \$libdir does not exist.
18847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18849 # Whether we need a single "-rpath" flag with a separated argument.
18850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18853 # DIR into the resulting binary.
18854 hardcode_direct=$hardcode_direct_GO
18856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18857 # DIR into the resulting binary and the resulting library dependency is
18858 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18859 # library is relocated.
18860 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18863 # into the resulting binary.
18864 hardcode_minus_L=$hardcode_minus_L_GO
18866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18867 # into the resulting binary.
18868 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18870 # Set to "yes" if building a shared library automatically hardcodes DIR
18871 # into the library and all subsequent libraries and executables linked
18873 hardcode_automatic=$hardcode_automatic_GO
18875 # Set to yes if linker adds runtime paths of dependent libraries
18876 # to runtime path list.
18877 inherit_rpath=$inherit_rpath_GO
18879 # Whether libtool must link a program against all its dependency libraries.
18880 link_all_deplibs=$link_all_deplibs_GO
18882 # Fix the shell variable \$srcfile for the compiler.
18883 fix_srcfile_path=$lt_fix_srcfile_path_GO
18885 # Set to "yes" if exported symbols are required.
18886 always_export_symbols=$always_export_symbols_GO
18888 # The commands to list exported symbols.
18889 export_symbols_cmds=$lt_export_symbols_cmds_GO
18891 # Symbols that should not be listed in the preloaded symbols.
18892 exclude_expsyms=$lt_exclude_expsyms_GO
18894 # Symbols that must always be exported.
18895 include_expsyms=$lt_include_expsyms_GO
18897 # Commands necessary for linking programs (against libraries) with templates.
18898 prelink_cmds=$lt_prelink_cmds_GO
18900 # Specify filename containing input files.
18901 file_list_spec=$lt_file_list_spec_GO
18903 # How to hardcode a shared library path into an executable.
18904 hardcode_action=$hardcode_action_GO
18906 # ### END LIBTOOL TAG CONFIG: GO
18910 "default":C
) if test -n "$CONFIG_FILES"; then
18911 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18912 # that multilib installs will end up installed in the correct place.
18913 # The testsuite needs it for multilib-aware ABI baseline files.
18914 # To work around this not being passed down from config-ml.in ->
18915 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18916 # append it here. Only modify Makefiles that have just been created.
18918 # Also, get rid of this simulated-VPATH thing that automake does.
18919 cat > vpsed
<< \_EOF
18920 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18922 for i
in $SUBDIRS; do
18923 case $CONFIG_FILES in
18925 #echo "Adding MULTISUBDIR to $i/Makefile"
18926 sed -f vpsed
$i/Makefile
> tmp
18927 grep '^MULTISUBDIR =' Makefile
>> tmp
18942 ac_clean_files
=$ac_clean_files_save
18944 test $ac_write_fail = 0 ||
18945 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18948 # configure is writing to config.log, and then calls config.status.
18949 # config.status does its own redirection, appending to config.log.
18950 # Unfortunately, on DOS this fails, as config.log is still kept open
18951 # by configure, so config.status won't be able to write to it; its
18952 # output is simply discarded. So we exec the FD to /dev/null,
18953 # effectively closing config.log, so it can be properly (re)opened and
18954 # appended to by config.status. When coming back to configure, we
18955 # need to make the FD available again.
18956 if test "$no_create" != yes; then
18958 ac_config_status_args
=
18959 test "$silent" = yes &&
18960 ac_config_status_args
="$ac_config_status_args --quiet"
18962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18965 # would make configure fail if this is the last instruction.
18966 $ac_cs_success || as_fn_exit
1
18968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}