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
712 ENABLE_DARWIN_AT_RPATH_FALSE
713 ENABLE_DARWIN_AT_RPATH_TRUE
737 MAINTAINER_MODE_FALSE
740 am__fastdepCCAS_FALSE
776 INSTALL_STRIP_PROGRAM
832 program_transform_name
845 enable_option_checking
848 enable_dependency_tracking
849 enable_maintainer_mode
857 enable_version_specific_runtime_libs
861 with_system_libunwind
863 ac_precious_vars
='build_alias
870 # Initialize some variables set by options.
872 ac_init_version
=false
873 ac_unrecognized_opts
=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name
=s
,x
,x
,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir
='${exec_prefix}/bin'
899 sbindir
='${exec_prefix}/sbin'
900 libexecdir
='${exec_prefix}/libexec'
901 datarootdir
='${prefix}/share'
902 datadir
='${datarootdir}'
903 sysconfdir
='${prefix}/etc'
904 sharedstatedir
='${prefix}/com'
905 localstatedir
='${prefix}/var'
906 includedir
='${prefix}/include'
907 oldincludedir
='/usr/include'
908 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir
='${datarootdir}/info'
914 libdir
='${exec_prefix}/lib'
915 localedir
='${datarootdir}/locale'
916 mandir
='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\
$ac_option
930 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
943 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
946 -build |
--build |
--buil |
--bui |
--bu)
947 ac_prev
=build_alias
;;
948 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
949 build_alias
=$ac_optarg ;;
951 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
952 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
953 ac_prev
=cache_file
;;
954 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
955 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
956 cache_file
=$ac_optarg ;;
959 cache_file
=config.cache
;;
961 -datadir |
--datadir |
--datadi |
--datad)
963 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
964 datadir
=$ac_optarg ;;
966 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
967 |
--dataroo |
--dataro |
--datar)
968 ac_prev
=datarootdir
;;
969 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
970 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
971 datarootdir
=$ac_optarg ;;
973 -disable-* |
--disable-*)
974 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
977 as_fn_error $?
"invalid feature name: $ac_useropt"
978 ac_useropt_orig
=$ac_useropt
979 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep
=', ';;
987 eval enable_
$ac_useropt=no
;;
989 -docdir |
--docdir |
--docdi |
--doc |
--do)
991 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
994 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
996 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
999 -enable-* |
--enable-*)
1000 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1003 as_fn_error $?
"invalid feature name: $ac_useropt"
1004 ac_useropt_orig
=$ac_useropt
1005 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_
$ac_useropt"
1010 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep
=', ';;
1013 eval enable_
$ac_useropt=\
$ac_optarg ;;
1015 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1016 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1017 |
--exec |
--exe |
--ex)
1018 ac_prev
=exec_prefix
;;
1019 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1020 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1021 |
--exec=* |
--exe=* |
--ex=*)
1022 exec_prefix
=$ac_optarg ;;
1024 -gas |
--gas |
--ga |
--g)
1025 # Obsolete; use --with-gas.
1028 -help |
--help |
--hel |
--he |
-h)
1029 ac_init_help
=long
;;
1030 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1031 ac_init_help
=recursive
;;
1032 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1033 ac_init_help
=short
;;
1035 -host |
--host |
--hos |
--ho)
1036 ac_prev
=host_alias
;;
1037 -host=* |
--host=* |
--hos=* |
--ho=*)
1038 host_alias
=$ac_optarg ;;
1040 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1042 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1044 htmldir
=$ac_optarg ;;
1046 -includedir |
--includedir |
--includedi |
--included |
--include \
1047 |
--includ |
--inclu |
--incl |
--inc)
1048 ac_prev
=includedir
;;
1049 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1050 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1051 includedir
=$ac_optarg ;;
1053 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1055 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1056 infodir
=$ac_optarg ;;
1058 -libdir |
--libdir |
--libdi |
--libd)
1060 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1061 libdir
=$ac_optarg ;;
1063 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1064 |
--libexe |
--libex |
--libe)
1065 ac_prev
=libexecdir
;;
1066 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1067 |
--libexe=* |
--libex=* |
--libe=*)
1068 libexecdir
=$ac_optarg ;;
1070 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1071 ac_prev
=localedir
;;
1072 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1073 localedir
=$ac_optarg ;;
1075 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1076 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1077 ac_prev
=localstatedir
;;
1078 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1079 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1080 localstatedir
=$ac_optarg ;;
1082 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1084 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1085 mandir
=$ac_optarg ;;
1087 -nfp |
--nfp |
--nf)
1088 # Obsolete; use --without-fp.
1091 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1092 |
--no-cr |
--no-c |
-n)
1095 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1096 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1099 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1100 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1101 |
--oldin |
--oldi |
--old |
--ol |
--o)
1102 ac_prev
=oldincludedir
;;
1103 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1104 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1105 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1106 oldincludedir
=$ac_optarg ;;
1108 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1110 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1111 prefix
=$ac_optarg ;;
1113 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1114 |
--program-pre |
--program-pr |
--program-p)
1115 ac_prev
=program_prefix
;;
1116 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1117 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1118 program_prefix
=$ac_optarg ;;
1120 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1121 |
--program-suf |
--program-su |
--program-s)
1122 ac_prev
=program_suffix
;;
1123 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1124 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1125 program_suffix
=$ac_optarg ;;
1127 -program-transform-name |
--program-transform-name \
1128 |
--program-transform-nam |
--program-transform-na \
1129 |
--program-transform-n |
--program-transform- \
1130 |
--program-transform |
--program-transfor \
1131 |
--program-transfo |
--program-transf \
1132 |
--program-trans |
--program-tran \
1133 |
--progr-tra |
--program-tr |
--program-t)
1134 ac_prev
=program_transform_name
;;
1135 -program-transform-name=* |
--program-transform-name=* \
1136 |
--program-transform-nam=* |
--program-transform-na=* \
1137 |
--program-transform-n=* |
--program-transform-=* \
1138 |
--program-transform=* |
--program-transfor=* \
1139 |
--program-transfo=* |
--program-transf=* \
1140 |
--program-trans=* |
--program-tran=* \
1141 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1142 program_transform_name
=$ac_optarg ;;
1144 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1146 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1147 pdfdir
=$ac_optarg ;;
1149 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1151 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1154 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1155 |
-silent |
--silent |
--silen |
--sile |
--sil)
1158 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1160 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1162 sbindir
=$ac_optarg ;;
1164 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1165 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1166 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1168 ac_prev
=sharedstatedir
;;
1169 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1170 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1171 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1173 sharedstatedir
=$ac_optarg ;;
1175 -site |
--site |
--sit)
1177 -site=* |
--site=* |
--sit=*)
1180 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1182 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1183 srcdir
=$ac_optarg ;;
1185 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1186 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1187 ac_prev
=sysconfdir
;;
1188 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1189 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1190 sysconfdir
=$ac_optarg ;;
1192 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1193 ac_prev
=target_alias
;;
1194 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1195 target_alias
=$ac_optarg ;;
1197 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1200 -version |
--version |
--versio |
--versi |
--vers |
-V)
1201 ac_init_version
=: ;;
1204 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1207 as_fn_error $?
"invalid package name: $ac_useropt"
1208 ac_useropt_orig
=$ac_useropt
1209 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep
=', ';;
1217 eval with_
$ac_useropt=\
$ac_optarg ;;
1219 -without-* |
--without-*)
1220 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1223 as_fn_error $?
"invalid package name: $ac_useropt"
1224 ac_useropt_orig
=$ac_useropt
1225 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep
=', ';;
1233 eval with_
$ac_useropt=no
;;
1236 # Obsolete; use --with-x.
1239 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1240 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1241 ac_prev
=x_includes
;;
1242 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1243 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1244 x_includes
=$ac_optarg ;;
1246 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1247 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1248 ac_prev
=x_libraries
;;
1249 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1250 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1251 x_libraries
=$ac_optarg ;;
1253 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1258 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1262 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1264 eval $ac_envvar=\
$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 if test -n "$ac_prev"; then
1279 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error $?
"missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val
=\$
$ac_var
1298 # Remove trailing slashes.
1301 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\
$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$
]* | ?
:[\\/]* ) continue;;
1307 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1309 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target
=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x
; then
1321 if test "x$build_alias" = x
; then
1322 cross_compiling
=maybe
1323 elif test "x$build_alias" != "x$host_alias"; then
1329 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1331 test "$silent" = yes && exec 6>/dev
/null
1334 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di
=`ls -di .` &&
1336 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1337 as_fn_error $?
"working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 as_fn_error $?
"pwd does not report name of working directory"
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted
=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir
=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1374 ac_srcdir_defaulted
=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1378 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1380 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1392 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 for ac_var
in $ac_precious_vars; do
1395 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1397 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1408 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking ...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1471 --build=BUILD configure
for building on BUILD
[guessed
]
1472 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1473 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive
) echo "Configuration of package-unused version-unused:";;
1484 --disable-option-checking ignore unrecognized
--enable/--with options
1485 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1486 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1487 --enable-multilib build many library versions
(default
)
1488 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1489 --disable-silent-rules verbose build output
(undo
: "make V=0")
1490 --enable-dependency-tracking
1491 do not reject slow dependency extractors
1492 --disable-dependency-tracking
1493 speeds up one-time build
1494 --enable-maintainer-mode
1495 enable make rules and dependencies not useful
(and
1496 sometimes confusing
) to the casual installer
1497 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1498 --enable-static[=PKGS
] build static libraries
[default
=yes]
1499 --enable-fast-install[=PKGS
]
1500 optimize
for fast installation
[default
=yes]
1501 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1502 --disable-werror disable building with
-Werror
1503 --enable-version-specific-runtime-libs
1504 Specify that runtime libraries should be installed
1505 in a compiler-specific directory
1508 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1509 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1510 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1511 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1513 --with-toolexeclibdir=DIR
1514 install libraries built with a cross compiler within
1516 --without-libffi don
't use libffi
1517 --without-libatomic don't use libatomic
1518 --with-system-libunwind use installed libunwind
1520 Some influential environment variables
:
1521 CC C compiler
command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1524 nonstandard directory
<lib dir
>
1525 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1526 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1527 you have headers
in a nonstandard directory
<include dir
>
1528 GOC Go compiler
command
1529 GOFLAGS Go compiler flags
1530 CCAS assembler compiler
command (defaults to CC
)
1531 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1534 Use these variables to override the choices made by
`configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to the package provider.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 package-unused configure version-unused
1601 generated by GNU Autoconf 2.69
1603 Copyright (C) 2012 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext
1621 if { { ac_try="$ac_compile"
1623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1624 *) ac_try_echo
=$ac_try;;
1626 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1630 if test -s conftest.err
; then
1631 grep -v '^ *+' conftest.err
>conftest.er1
1632 cat conftest.er1
>&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.
$ac_objext; then :
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.
$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status
$ac_retval
1650 } # ac_fn_c_try_compile
1652 # ac_fn_c_try_link LINENO
1653 # -----------------------
1654 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1658 rm -f conftest.
$ac_objext conftest
$ac_exeext
1659 if { { ac_try
="$ac_link"
1661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_link") 2>conftest.err
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest$ac_exeext && {
1678 test "$cross_compiling" = yes ||
1679 test -x conftest$ac_exeext
1683 $as_echo "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1690 # interfere with the next link command; also delete a directory that is
1691 # left behind by Apple's compiler. We do this before executing the actions.
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_link
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile "$LINENO"; then :
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_header_compile
1729 # ac_fn_c_try_cpp LINENO
1730 # ----------------------
1731 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1738 *) ac_try_echo
=$ac_try;;
1740 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 if test -s conftest.err
; then
1745 grep -v '^ *+' conftest.err
>conftest.er1
1746 cat conftest.er1
>&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } > conftest.i
&& {
1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.
$ac_ext >&5
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status
$ac_retval
1766 # ac_fn_c_try_run LINENO
1767 # ----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1769 # that executables *can* be run.
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 if { { ac_try
="$ac_link"
1775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>&5
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1784 { { case "(($ac_try" in
1785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1786 *) ac_try_echo
=$ac_try;;
1788 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_try") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; }; }; then :
1796 $as_echo "$as_me: program exited with status $ac_status" >&5
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.
$ac_ext >&5
1800 ac_retval
=$ac_status
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status
$ac_retval
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func
()
1813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \
${$3+:} false
; then :
1817 $as_echo_n "(cached) " >&6
1819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1831 # include <limits.h>
1833 # include <assert.h>
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1860 if ac_fn_c_try_link
"$LINENO"; then :
1865 rm -f core conftest.err conftest.
$ac_objext \
1866 conftest
$ac_exeext conftest.
$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_func
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1880 ac_fn_c_check_header_mongrel
()
1882 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1883 if eval \
${$3+:} false
; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \
${$3+:} false
; then :
1887 $as_echo_n "(cached) " >&6
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1901 if ac_fn_c_try_compile
"$LINENO"; then :
1902 ac_header_compiler
=yes
1904 ac_header_compiler
=no
1906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1917 if ac_fn_c_try_cpp
"$LINENO"; then :
1918 ac_header_preproc
=yes
1920 ac_header_preproc
=no
1922 rm -f conftest.err conftest.i conftest.
$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \
${$3+:} false
; then :
1950 $as_echo_n "(cached) " >&6
1952 eval "$3=\$ac_header_compiler"
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_mongrel
1962 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1963 # ----------------------------------------------------
1964 # Tries to find if the field MEMBER exists in type AGGR, after including
1965 # INCLUDES, setting cache variable VAR accordingly.
1966 ac_fn_c_check_member
()
1968 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1970 $as_echo_n "checking for $2.$3... " >&6; }
1971 if eval \
${$4+:} false
; then :
1972 $as_echo_n "(cached) " >&6
1974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1987 if ac_fn_c_try_compile
"$LINENO"; then :
1990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1997 if (sizeof ac_aggr.$3)
2003 if ac_fn_c_try_compile
"$LINENO"; then :
2008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_member
2019 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020 # -------------------------------------------
2021 # Tests whether TYPE exists after having included INCLUDES, setting cache
2022 # variable VAR accordingly.
2023 ac_fn_c_check_type
()
2025 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \
${$3+:} false
; then :
2029 $as_echo_n "(cached) " >&6
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2044 if ac_fn_c_try_compile
"$LINENO"; then :
2045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2057 if ac_fn_c_try_compile
"$LINENO"; then :
2062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_type
2073 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2074 # --------------------------------------------
2075 # Tries to find the compile-time value of EXPR in a program that includes
2076 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2078 ac_fn_c_compute_int
()
2080 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2081 if test "$cross_compiling" = yes; then
2082 # Depending upon the size, compute the lo and hi bounds.
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) >= 0)];
2091 return test_array [0];
2097 if ac_fn_c_try_compile
"$LINENO"; then :
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 return test_array [0];
2114 if ac_fn_c_try_compile
"$LINENO"; then :
2115 ac_hi
=$ac_mid; break
2117 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2118 if test $ac_lo -le $ac_mid; then
2122 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2133 static int test_array [1 - 2 * !(($2) < 0)];
2135 return test_array [0];
2141 if ac_fn_c_try_compile
"$LINENO"; then :
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152 return test_array [0];
2158 if ac_fn_c_try_compile
"$LINENO"; then :
2159 ac_lo
=$ac_mid; break
2161 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2162 if test $ac_mid -le $ac_hi; then
2166 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 # Binary search between lo and hi bounds.
2177 while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile
"$LINENO"; then :
2196 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2201 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2208 static long int longval () { return $2; }
2209 static unsigned long int ulongval () { return $2; }
2216 FILE *f = fopen ("conftest.val", "w");
2221 long int i = longval ();
2224 fprintf (f, "%ld", i);
2228 unsigned long int i = ulongval ();
2231 fprintf (f, "%lu", i);
2233 /* Do not output a trailing newline, as this causes \r\n confusion
2234 on some platforms. */
2235 return ferror (f) || fclose (f) != 0;
2241 if ac_fn_c_try_run
"$LINENO"; then :
2242 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2247 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2251 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 as_fn_set_status
$ac_retval
2254 } # ac_fn_c_compute_int
2255 cat >config.log
<<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by package-unused $as_me version-unused, which was
2260 generated by GNU Autoconf 2.69. Invocation command line was
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir
=.
2296 $as_echo "PATH: $as_dir"
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_must_keep_next
=false
2326 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2328 |
-silent |
--silent |
--silen |
--sile |
--sil)
2331 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1
" '$ac_arg'"
2337 if test $ac_must_keep_next = true
; then
2338 ac_must_keep_next
=false
# Got value, back to normal.
2341 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2342 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2343 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2344 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 -* ) ac_must_keep_next
=true
;;
2352 as_fn_append ac_configure_args
" '$ac_arg'"
2357 { ac_configure_args0
=; unset ac_configure_args0
;}
2358 { ac_configure_args1
=; unset ac_configure_args1
;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2370 $as_echo "## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##"
2374 # The following way of writing the cache mishandles newlines in values,
2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377 eval ac_val=\$$ac_var
2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 _ | IFS | as_nl) ;; #(
2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387 *) { eval $ac_var=; unset $ac_var;} ;;
2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393 *${as_nl}ac_space=\ *)
2395 "s/'\''/'\''\\\\'\'''\''/g;
2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406 $as_echo "## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##"
2410 for ac_var in $ac_subst_vars
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 $as_echo "$ac_var='\''$ac_val'\''"
2420 if test -n "$ac_subst_files"; then
2421 $as_echo "## ------------------- ##
2422 ## File substitutions. ##
2423 ## ------------------- ##"
2425 for ac_var
in $ac_subst_files
2427 eval ac_val
=\$
$ac_var
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 $as_echo "$ac_var='\''$ac_val'\''"
2436 if test -s confdefs.h; then
2437 $as_echo "## ----------- ##
2444 test "$ac_signal" != 0 &&
2445 $as_echo "$as_me: caught signal $ac_signal"
2446 $as_echo "$as_me: exit $exit_status"
2448 rm -f core *.core core.conftest.* &&
2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 for ac_signal
in 1 2 13 15; do
2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2458 rm -f -r conftest
* confdefs.h
2460 $as_echo "/* confdefs.h */" > confdefs.h
2462 # Predefined preprocessor variables.
2464 cat >>confdefs.h
<<_ACEOF
2465 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 cat >>confdefs.h
<<_ACEOF
2469 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 cat >>confdefs.h
<<_ACEOF
2473 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 cat >>confdefs.h
<<_ACEOF
2481 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 cat >>confdefs.h
<<_ACEOF
2485 #define PACKAGE_URL "$PACKAGE_URL"
2489 # Let the site file select an alternate cache file if it wants to.
2490 # Prefer an explicitly selected file to automatically selected ones.
2493 if test -n "$CONFIG_SITE"; then
2494 # We do not want a PATH search for config.site.
2495 case $CONFIG_SITE in #((
2496 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2497 */*) ac_site_file1
=$CONFIG_SITE;;
2498 *) ac_site_file1
=.
/$CONFIG_SITE;;
2500 elif test "x$prefix" != xNONE
; then
2501 ac_site_file1
=$prefix/share
/config.site
2502 ac_site_file2
=$prefix/etc
/config.site
2504 ac_site_file1
=$ac_default_prefix/share
/config.site
2505 ac_site_file2
=$ac_default_prefix/etc
/config.site
2507 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2509 test "x$ac_site_file" = xNONE
&& continue
2510 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2513 sed 's/^/| /' "$ac_site_file" >&5
2515 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2517 as_fn_error $?
"failed to load site script $ac_site_file
2518 See \`config.log' for more details" "$LINENO" 5; }
2522 if test -r "$cache_file"; then
2523 # Some versions of bash will fail to source /dev/null (special files
2524 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2525 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2527 $as_echo "$as_me: loading cache $cache_file" >&6;}
2529 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2530 *) .
"./$cache_file";;
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2535 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 # Check that the precious variables saved in the cache have kept the same
2541 ac_cache_corrupted
=false
2542 for ac_var
in $ac_precious_vars; do
2543 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2544 eval ac_new_set
=\
$ac_env_${ac_var}_set
2545 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2546 eval ac_new_val
=\
$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted
=: ;;
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted
=: ;;
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w
=`echo x $ac_old_val`
2561 ac_new_val_w
=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted
=:
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\
$ac_old_val
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2580 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg
=$ac_var=$ac_new_val ;;
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2589 if $ac_cache_corrupted; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596 ## -------------------- ##
2597 ## Main body of script. ##
2598 ## -------------------- ##
2601 ac_cpp
='$CPP $CPPFLAGS'
2602 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2611 ac_config_headers
="$ac_config_headers config.h"
2614 libtool_VERSION
=22:0:0
2617 # Default to --enable-multilib
2618 # Check whether --enable-multilib was given.
2619 if test "${enable_multilib+set}" = set; then :
2620 enableval
=$enable_multilib; case "$enableval" in
2621 yes) multilib
=yes ;;
2623 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2630 # We may get other options which we leave undocumented:
2631 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2632 # See config-ml.in if you want the gory details.
2634 if test "$srcdir" = "."; then
2635 if test "$with_target_subdir" != "."; then
2636 multi_basedir
="$srcdir/$with_multisrctop../.."
2638 multi_basedir
="$srcdir/$with_multisrctop.."
2641 multi_basedir
="$srcdir/.."
2645 # Even if the default multilib is not a cross compilation,
2646 # it may be that some of the other multilibs are.
2647 if test $cross_compiling = no
&& test $multilib = yes \
2648 && test "x${with_multisubdir}" != x
; then
2649 cross_compiling
=maybe
2652 ac_config_commands
="$ac_config_commands default-1"
2656 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2657 if test -f "$ac_dir/install-sh"; then
2659 ac_install_sh
="$ac_aux_dir/install-sh -c"
2661 elif test -f "$ac_dir/install.sh"; then
2663 ac_install_sh
="$ac_aux_dir/install.sh -c"
2665 elif test -f "$ac_dir/shtool"; then
2667 ac_install_sh
="$ac_aux_dir/shtool install -c"
2671 if test -z "$ac_aux_dir"; then
2672 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2675 # These three variables are undocumented and unsupported,
2676 # and are intended to be withdrawn in a future Autoconf release.
2677 # They can cause serious problems if a builder's source tree is in a directory
2678 # whose full name contains unusual characters.
2679 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2680 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2681 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2684 # Make sure we can run config.sub.
2685 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2686 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2689 $as_echo_n "checking build system type... " >&6; }
2690 if ${ac_cv_build+:} false
; then :
2691 $as_echo_n "(cached) " >&6
2693 ac_build_alias
=$build_alias
2694 test "x$ac_build_alias" = x
&&
2695 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2696 test "x$ac_build_alias" = x
&&
2697 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2698 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2699 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2703 $as_echo "$ac_cv_build" >&6; }
2704 case $ac_cv_build in
2706 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2709 ac_save_IFS
=$IFS; IFS
='-'
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2719 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2723 $as_echo_n "checking host system type... " >&6; }
2724 if ${ac_cv_host+:} false
; then :
2725 $as_echo_n "(cached) " >&6
2727 if test "x$host_alias" = x
; then
2728 ac_cv_host
=$ac_cv_build
2730 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2731 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2736 $as_echo "$ac_cv_host" >&6; }
2739 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2742 ac_save_IFS
=$IFS; IFS
='-'
2748 # Remember, the first character of IFS is used to create $*,
2749 # except with old shells:
2752 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2756 $as_echo_n "checking target system type... " >&6; }
2757 if ${ac_cv_target+:} false
; then :
2758 $as_echo_n "(cached) " >&6
2760 if test "x$target_alias" = x
; then
2761 ac_cv_target
=$ac_cv_host
2763 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2764 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2769 $as_echo "$ac_cv_target" >&6; }
2770 case $ac_cv_target in
2772 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2774 target
=$ac_cv_target
2775 ac_save_IFS
=$IFS; IFS
='-'
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2785 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2788 # The aliases save the names the user supplied, while $host etc.
2789 # will get canonicalized.
2790 test -n "$target_alias" &&
2791 test "$program_prefix$program_suffix$program_transform_name" = \
2793 program_prefix
=${target_alias}-
2795 target_alias
=${target_alias-$host_alias}
2797 am__api_version
='1.15'
2799 # Find a good install program. We prefer a C program (faster),
2800 # so one script is as good as another. But avoid the broken or
2801 # incompatible versions:
2802 # SysV /etc/install, /usr/sbin/install
2803 # SunOS /usr/etc/install
2804 # IRIX /sbin/install
2806 # AmigaOS /C/install, which installs bootblocks on floppy discs
2807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2810 # OS/2's system install, which has a completely different semantic
2811 # ./install, which can be erroneously created by make from ./install.sh.
2812 # Reject install programs that cannot install multiple files.
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2814 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2815 if test -z "$INSTALL"; then
2816 if ${ac_cv_path_install+:} false
; then :
2817 $as_echo_n "(cached) " >&6
2819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir
=.
2824 # Account for people who put trailing slashes in PATH elements.
2825 case $as_dir/ in #((
2826 .
/ | .
// |
/[cC
]/* | \
2827 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2828 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2831 # OSF1 and SCO ODT 3.0 have their own names for install.
2832 # Don't use installbsd from OSF since it installs stuff as root
2834 for ac_prog
in ginstall scoinst
install; do
2835 for ac_exec_ext
in '' $ac_executable_extensions; do
2836 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2837 if test $ac_prog = install &&
2838 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2839 # AIX install. It has an incompatible calling convention.
2841 elif test $ac_prog = install &&
2842 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2843 # program-specific install script used by HP pwplus--don't use.
2846 rm -rf conftest.one conftest.two conftest.dir
2847 echo one
> conftest.one
2848 echo two
> conftest.two
2850 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2851 test -s conftest.one
&& test -s conftest.two
&&
2852 test -s conftest.dir
/conftest.one
&&
2853 test -s conftest.dir
/conftest.two
2855 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2868 rm -rf conftest.one conftest.two conftest.dir
2871 if test "${ac_cv_path_install+set}" = set; then
2872 INSTALL
=$ac_cv_path_install
2874 # As a last resort, use the slow shell script. Don't cache a
2875 # value for INSTALL within a source directory, because that will
2876 # break other packages using the cache if that directory is
2877 # removed, or if the value is a relative name.
2878 INSTALL
=$ac_install_sh
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2882 $as_echo "$INSTALL" >&6; }
2884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2885 # It thinks the first close brace ends the variable substitution.
2886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2890 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2893 $as_echo_n "checking whether build environment is sane... " >&6; }
2894 # Reject unsafe characters in $srcdir or the absolute working directory
2895 # name. Accept space and tab only in the latter.
2899 *[\\\"\
#\$\&\'\`$am_lf]*)
2900 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2903 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2904 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2907 # Do 'set' in a subshell so we don't clobber the current shell's
2908 # arguments. Must try -L first in case configure is actually a
2909 # symlink; some systems play weird games with the mod time of symlinks
2910 # (eg FreeBSD returns the mod time of the symlink's containing
2914 for am_try
in 1 2; do
2915 echo "timestamp, slept: $am_has_slept" > conftest.
file
2916 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2917 if test "$*" = "X"; then
2919 set X
`ls -t "$srcdir/configure" conftest.file`
2921 if test "$*" != "X $srcdir/configure conftest.file" \
2922 && test "$*" != "X conftest.file $srcdir/configure"; then
2924 # If neither matched, then we have a broken ls. This can happen
2925 # if, for instance, CONFIG_SHELL is bash and it inherits a
2926 # broken ls alias from the environment. This has actually
2927 # happened. Such a system could not be considered "sane".
2928 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2929 alias in your environment" "$LINENO" 5
2931 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2938 test "$2" = conftest.
file
2944 as_fn_error $?
"newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 # If we didn't sleep, we still need to ensure time stamps of config.status and
2950 # generated files are strictly newer.
2952 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2959 test "$program_prefix" != NONE
&&
2960 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2961 # Use a double $ so make ignores it.
2962 test "$program_suffix" != NONE
&&
2963 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2964 # Double any \ or $.
2965 # By default was `s,x,x', remove it if useless.
2966 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2967 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2969 # Expand $ac_aux_dir to an absolute path.
2970 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2972 if test x
"${MISSING+set}" != xset
; then
2975 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2977 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2980 # Use eval to expand $SHELL
2981 if eval "$MISSING --is-lightweight"; then
2982 am_missing_run
="$MISSING "
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2986 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2989 if test x
"${install_sh+set}" != xset
; then
2992 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2994 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2998 # Installed binaries are usually stripped using 'strip' when the user
2999 # run "make install-strip". However 'strip' might not be the right
3000 # tool to use in cross-compilation environments, therefore Automake
3001 # will honor the 'STRIP' environment variable to overrule this program.
3002 if test "$cross_compiling" != no
; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3005 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_STRIP+:} false
; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$STRIP"; then
3012 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 STRIP
=$ac_cv_prog_STRIP
3032 if test -n "$STRIP"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3034 $as_echo "$STRIP" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3042 if test -z "$ac_cv_prog_STRIP"; then
3044 # Extract the first word of "strip", so it can be a program name with args.
3045 set dummy strip
; ac_word
=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$ac_ct_STRIP"; then
3052 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir
=.
3059 for ac_exec_ext
in '' $ac_executable_extensions; do
3060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_ac_ct_STRIP
="strip"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3072 if test -n "$ac_ct_STRIP"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3074 $as_echo "$ac_ct_STRIP" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3080 if test "x$ac_ct_STRIP" = x
; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned
=yes ;;
3092 STRIP
="$ac_cv_prog_STRIP"
3096 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3099 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3100 if test -z "$MKDIR_P"; then
3101 if ${ac_cv_path_mkdir+:} false
; then :
3102 $as_echo_n "(cached) " >&6
3104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3105 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3108 test -z "$as_dir" && as_dir
=.
3109 for ac_prog
in mkdir gmkdir
; do
3110 for ac_exec_ext
in '' $ac_executable_extensions; do
3111 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3112 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3113 'mkdir (GNU coreutils) '* | \
3114 'mkdir (coreutils) '* | \
3115 'mkdir (fileutils) '4.1*)
3116 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3126 test -d .
/--version && rmdir .
/--version
3127 if test "${ac_cv_path_mkdir+set}" = set; then
3128 MKDIR_P
="$ac_cv_path_mkdir -p"
3130 # As a last resort, use the slow shell script. Don't cache a
3131 # value for MKDIR_P within a source directory, because that will
3132 # break other packages using the cache if that directory is
3133 # removed, or if the value is a relative name.
3134 MKDIR_P
="$ac_install_sh -d"
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3138 $as_echo "$MKDIR_P" >&6; }
3140 for ac_prog
in gawk mawk nawk
awk
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy
$ac_prog; ac_word
=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_AWK+:} false
; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$AWK"; then
3150 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir
=.
3157 for ac_exec_ext
in '' $ac_executable_extensions; do
3158 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_AWK
="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$AWK"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3172 $as_echo "$AWK" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$AWK" && break
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3183 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3185 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3186 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3187 $as_echo_n "(cached) " >&6
3189 cat >conftest.
make <<\_ACEOF
3192 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3195 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3197 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3199 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3203 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 SET_MAKE
="MAKE=${MAKE-make}"
3213 rm -rf .tst
2>/dev
/null
3214 mkdir .tst
2>/dev
/null
3215 if test -d .tst
; then
3220 rmdir .tst
2>/dev
/null
3222 # Check whether --enable-silent-rules was given.
3223 if test "${enable_silent_rules+set}" = set; then :
3224 enableval
=$enable_silent_rules;
3227 case $enable_silent_rules in # (((
3228 yes) AM_DEFAULT_VERBOSITY
=0;;
3229 no
) AM_DEFAULT_VERBOSITY
=1;;
3230 *) AM_DEFAULT_VERBOSITY
=1;;
3232 am_make
=${MAKE-make}
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3234 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3235 if ${am_cv_make_support_nested_variables+:} false
; then :
3236 $as_echo_n "(cached) " >&6
3238 if $as_echo 'TRUE=$(BAR$(V))
3244 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3245 am_cv_make_support_nested_variables
=yes
3247 am_cv_make_support_nested_variables
=no
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3251 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3252 if test $am_cv_make_support_nested_variables = yes; then
3254 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3256 AM_V
=$AM_DEFAULT_VERBOSITY
3257 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3261 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3262 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3263 # is not polluted with repeated "-I."
3264 am__isrc
=' -I$(srcdir)'
3265 # test to see if srcdir already configured
3266 if test -f $srcdir/config.status
; then
3267 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3271 # test whether we have cygpath
3272 if test -z "$CYGPATH_W"; then
3273 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3274 CYGPATH_W
='cygpath -w'
3281 # Define the identity of the package.
3283 VERSION
='version-unused'
3286 # Some tools Automake needs.
3288 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3291 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3294 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3297 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3300 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3302 # For better backward compatibility. To be removed once Automake 1.9.x
3303 # dies out for good. For more background, see:
3304 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3305 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3306 mkdir_p
='$(MKDIR_P)'
3308 # We need awk for the "check" target (and possibly the TAP driver). The
3309 # system "awk" is bad on some platforms.
3310 # Always define AMTAR for backward compatibility. Yes, it's still used
3311 # in the wild :-( We should find a proper way to deprecate it ...
3315 # We'll loop over all known methods to create a tar archive until one works.
3316 _am_tools
='gnutar pax cpio none'
3318 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3325 # POSIX will say in a future version that running "rm -f" with no argument
3326 # is OK; and we want to be able to make that assumption in our Makefile
3327 # recipes. So use an aggressive probe to check that the usage we want is
3328 # actually supported "in the wild" to an acceptable degree.
3329 # See automake bug#10828.
3330 # To make any issue more visible, cause the running configure to be aborted
3331 # by default if the 'rm' program in use doesn't match our expectations; the
3332 # user can still override this though.
3333 if rm -f && rm -fr && rm -rf; then : OK
; else
3337 Your 'rm' program seems unable to run without file operands specified
3338 on the command line, even when the '-f' option is present. This is contrary
3339 to the behaviour of most rm programs out there, and not conforming with
3340 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3342 Please tell bug-automake@gnu.org about your system, including the value
3343 of your $PATH and any error possibly output before this message. This
3344 can help us improve future automake versions.
3347 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3348 echo 'Configuration will proceed anyway, since you have set the' >&2
3349 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3353 Aborting the configuration process, to ensure you take notice of the issue.
3355 You can download and install GNU coreutils to get an 'rm' implementation
3356 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3358 If you want to complete the configuration process using your problematic
3359 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3360 to "yes", and re-run configure.
3363 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3373 ac_cpp
='$CPP $CPPFLAGS'
3374 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3379 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_CC+:} false
; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC
="$CC" # Let the user override the test.
3388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir
=.
3393 for ac_exec_ext
in '' $ac_executable_extensions; do
3394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test -z "$ac_cv_prog_CC"; then
3418 # Extract the first word of "gcc", so it can be a program name with args.
3419 set dummy gcc
; ac_word
=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$ac_ct_CC"; then
3426 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_ac_ct_CC
="gcc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3446 if test -n "$ac_ct_CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3448 $as_echo "$ac_ct_CC" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3454 if test "x$ac_ct_CC" = x
; then
3457 case $cross_compiling:$ac_tool_warned in
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned
=yes ;;
3469 if test -z "$CC"; then
3470 if test -n "$ac_tool_prefix"; then
3471 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3472 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_CC+:} false
; then :
3476 $as_echo_n "(cached) " >&6
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC
="$CC" # Let the user override the test.
3481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir
=.
3486 for ac_exec_ext
in '' $ac_executable_extensions; do
3487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 if test -n "$CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3501 $as_echo "$CC" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3510 if test -z "$CC"; then
3511 # Extract the first word of "cc", so it can be a program name with args.
3512 set dummy cc
; ac_word
=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if ${ac_cv_prog_CC+:} false
; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC
="$CC" # Let the user override the test.
3522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir
=.
3527 for ac_exec_ext
in '' $ac_executable_extensions; do
3528 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3530 ac_prog_rejected
=yes
3534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 if test $ac_prog_rejected = yes; then
3542 # We found a bogon in the path, so make sure we never use it.
3543 set dummy
$ac_cv_prog_CC
3545 if test $# != 0; then
3546 # We chose a different compiler from the bogus one.
3547 # However, it has the same basename, so the bogon will be chosen
3548 # first if we set CC to just the basename; use the full file name.
3550 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3566 if test -z "$CC"; then
3567 if test -n "$ac_tool_prefix"; then
3568 for ac_prog
in cl.exe
3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_CC+:} false
; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC
="$CC" # Let the user override the test.
3580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir
=.
3585 for ac_exec_ext
in '' $ac_executable_extensions; do
3586 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test -n "$CC"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3600 $as_echo "$CC" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$CC" && break
3610 if test -z "$CC"; then
3612 for ac_prog
in cl.exe
3614 # Extract the first word of "$ac_prog", so it can be a program name with args.
3615 set dummy
$ac_prog; ac_word
=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_exec_ext
in '' $ac_executable_extensions; do
3630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC
="$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$ac_ct_CC" && break
3654 if test "x$ac_ct_CC" = x
; then
3657 case $cross_compiling:$ac_tool_warned in
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned
=yes ;;
3670 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error $?
"no acceptable C compiler found in \$PATH
3673 See \`config.log' for more details" "$LINENO" 5; }
3675 # Provide some information about the compiler.
3676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679 for ac_option
in --version -v -V -qversion; do
3680 { { ac_try
="$ac_compiler $ac_option >&5"
3682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3689 if test -s conftest.err; then
3691 ... rest of stderr output deleted ...
3692 10q' conftest.err >conftest.er1
3693 cat conftest.er1 >&5
3695 rm -f conftest.er1 conftest.err
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3711 ac_clean_files_save=$ac_clean_files
3712 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3713 # Try to create an executable without -o first, disregard a.out.
3714 # It will help us diagnose broken compilers, and finding out an intuition
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3717 $as_echo_n "checking whether the C compiler works... " >&6; }
3718 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3720 # The possible output files:
3721 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3724 for ac_file in $ac_files
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3728 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3733 if { { ac_try="$ac_link_default"
3735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3736 *) ac_try_echo
=$ac_try;;
3738 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_link_default") 2>&5
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; then :
3744 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3745 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3746 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3747 # so that the user can short-circuit this test for compilers unknown to
3749 for ac_file
in $ac_files ''
3751 test -f "$ac_file" ||
continue
3753 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3756 # We found the default executable, but exeext='' is most
3760 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3762 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3764 # We set ac_cv_exeext here because the later test for it is not
3765 # safe: cross compilers may not add the suffix if given an `-o'
3766 # argument, so we may need to know it at that point already.
3767 # Even if this section looks crufty: it has the advantage of
3774 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3779 if test -z "$ac_file"; then :
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.
$ac_ext >&5
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error
77 "C compiler cannot create executables
3788 See \`config.log' for more details" "$LINENO" 5; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3791 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3794 $as_echo_n "checking for C compiler default output file name... " >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3796 $as_echo "$ac_file" >&6; }
3797 ac_exeext
=$ac_cv_exeext
3799 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3800 ac_clean_files
=$ac_clean_files_save
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3802 $as_echo_n "checking for suffix of executables... " >&6; }
3803 if { { ac_try
="$ac_link"
3805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_link") 2>&5
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; then :
3814 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3815 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3816 # work properly (i.e., refer to `conftest.exe'), while it won't with
3818 for ac_file
in conftest.exe conftest conftest.
*; do
3819 test -f "$ac_file" ||
continue
3821 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3822 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3831 See \`config.log' for more details" "$LINENO" 5; }
3833 rm -f conftest conftest
$ac_cv_exeext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3835 $as_echo "$ac_cv_exeext" >&6; }
3837 rm -f conftest.
$ac_ext
3838 EXEEXT
=$ac_cv_exeext
3840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3846 FILE *f = fopen ("conftest.out", "w");
3847 return ferror (f) || fclose (f) != 0;
3853 ac_clean_files
="$ac_clean_files conftest.out"
3854 # Check that the compiler produces executables we can run. If not, either
3855 # the compiler is broken, or we cross compile.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3857 $as_echo_n "checking whether we are cross compiling... " >&6; }
3858 if test "$cross_compiling" != yes; then
3859 { { ac_try
="$ac_link"
3861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_link") 2>&5
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3870 if { ac_try='./conftest$ac_cv_exeext'
3871 { { case "(($ac_try" in
3872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3873 *) ac_try_echo
=$ac_try;;
3875 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_try") 2>&5
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; }; then
3883 if test "$cross_compiling" = maybe
; then
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $?
"cannot run C compiled programs.
3889 If you meant to cross compile, use \`--host'.
3890 See \`config.log' for more details" "$LINENO" 5; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3895 $as_echo "$cross_compiling" >&6; }
3897 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3898 ac_clean_files
=$ac_clean_files_save
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3900 $as_echo_n "checking for suffix of object files... " >&6; }
3901 if ${ac_cv_objext+:} false
; then :
3902 $as_echo_n "(cached) " >&6
3904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 rm -f conftest.o conftest.obj
3916 if { { ac_try
="$ac_compile"
3918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_compile") 2>&5
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 for ac_file in conftest.o conftest.obj conftest.*; do
3928 test -f "$ac_file" || continue;
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3936 $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3942 See \
`config.log' for more details" "$LINENO" 5; }
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 $as_echo "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3952 if ${ac_cv_c_compiler_gnu+:} false; then :
3953 $as_echo_n "(cached) " >&6
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3985 ac_test_CFLAGS=${CFLAGS+set}
3986 ac_save_CFLAGS=$CFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3989 if ${ac_cv_prog_cc_g+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 ac_save_c_werror_flag=$ac_c_werror_flag
3993 ac_c_werror_flag=yes
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4007 if ac_fn_c_try_compile "$LINENO"; then :
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4022 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4049 $as_echo "$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4059 if test "$GCC" = yes; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4067 if ${ac_cv_prog_cc_c89+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 ac_cv_prog_cc_c89=no
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4078 struct buf { int x; };
4079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4080 static char *e (p, i)
4086 static char *f (char * (*g) (char **, int), char **p, ...)
4091 s = g (p, va_arg (v,int));
4096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4097 function prototypes and stuff, but not '\xHH' hex character constants.
4098 These don't provoke an error unfortunately, instead are silently treated
4099 as 'x'. The following induces an error, until -std is added to get
4100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4101 array size at least. It's necessary to write '\x00'==0 to get something
4102 that's true only with -std. */
4103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4106 inside strings and character constants. */
4108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110 int test (int i, double x);
4111 struct s1 {int (*f) (int a);};
4112 struct s2 {int (*f) (double a);};
4113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 CC="$ac_save_CC $ac_arg"
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_c89=$ac_arg
4131 rm -f core conftest.err conftest.$ac_objext
4132 test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 rm -f conftest.$ac_ext
4139 case "x$ac_cv_prog_cc_c89" in
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142 $as_echo "none needed" >&6; } ;;
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4145 $as_echo "unsupported" >&6; } ;;
4147 CC="$CC $ac_cv_prog_cc_c89"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 if test "x$ac_cv_prog_cc_c89" != xno; then :
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4167 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4168 if ${am_cv_prog_cc_c_o+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4182 # Make sure it works both with $CC and with simple cc.
4183 # Following AC_PROG_CC_C_O, we do the test twice because some
4184 # compilers refuse to overwrite an existing .o file with -o,
4185 # though they will create one.
4186 am_cv_prog_cc_c_o=yes
4188 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4189 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } \
4193 && test -f conftest2.$ac_objext; then
4196 am_cv_prog_cc_c_o=no
4200 rm -f core conftest*
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4204 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4205 if test "$am_cv_prog_cc_c_o" != yes; then
4206 # Losing compiler, so override with the script.
4207 # FIXME: It is wrong to rewrite CC.
4208 # But if we don't then we get into trouble of one sort or another.
4209 # A longer-term fix would be to have automake use am__CC in this case,
4210 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4211 CC="$am_aux_dir/compile $CC"
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219 DEPDIR="${am__leading_dot}deps"
4221 ac_config_commands="$ac_config_commands depfiles"
4224 am_make=${MAKE-make}
4225 cat > confinc << 'END'
4227 @echo this is the am__doit target
4230 # If we don't find an include directive, just comment out the code.
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4232 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4236 # First try GNU make style include.
4237 echo "include confinc" > confmf
4238 # Ignore all kinds of additional output from 'make'.
4239 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4240 *the\ am__doit\ target*)
4246 # Now try BSD make style include.
4247 if test "$am__include" = "#"; then
4248 echo '.include "confinc"' > confmf
4249 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4250 *the\ am__doit\ target*)
4251 am__include=.include
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4260 $as_echo "$_am_result" >&6; }
4261 rm -f confinc confmf
4263 # Check whether --enable-dependency-tracking was given.
4264 if test "${enable_dependency_tracking+set}" = set; then :
4265 enableval=$enable_dependency_tracking;
4268 if test "x$enable_dependency_tracking" != xno; then
4269 am_depcomp="$ac_aux_dir/depcomp"
4273 if test "x$enable_dependency_tracking" != xno; then
4283 depcc="$CC" am_compiler_list=
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4286 $as_echo_n "checking dependency style of $depcc... " >&6; }
4287 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4288 $as_echo_n "(cached) " >&6
4290 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4291 # We make a subdir and do the tests there. Otherwise we can end up
4292 # making bogus files that we don't know about and never remove. For
4293 # instance it was reported that on HP-UX the gcc test will end up
4294 # making a dummy file named 'D' -- because '-MD' means "put the output
4298 # Copy depcomp to subdir because otherwise we won't find it if we're
4299 # using a relative directory.
4300 cp "$am_depcomp" conftest.dir
4302 # We will build objects and dependencies in a subdirectory because
4303 # it helps to detect inapplicable dependency modes. For instance
4304 # both Tru64's cc and ICC support -MD to output dependencies as a
4305 # side effect of compilation, but ICC will put the dependencies in
4306 # the current directory while Tru64 will put them in the object
4310 am_cv_CC_dependencies_compiler_type=none
4311 if test "$am_compiler_list" = ""; then
4312 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4315 case " $depcc " in #(
4316 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4319 for depmode in $am_compiler_list; do
4320 # Setup a source with many dependencies, because some compilers
4321 # like to wrap large dependency lists on column 80 (with \), and
4322 # we should not choose a depcomp mode which is confused by this.
4324 # We need to recreate these files for each test, as the compiler may
4325 # overwrite some of them when testing with obscure command lines.
4326 # This happens at least with the AIX C compiler.
4328 for i in 1 2 3 4 5 6; do
4329 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4330 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4331 # Solaris 10 /bin/sh.
4332 echo '/* dummy */' > sub/conftst$i.h
4334 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4336 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4337 # mode. It turns out that the SunPro C++ compiler does not properly
4338 # handle '-M -o', and we need to detect this. Also, some Intel
4339 # versions had trouble with output in subdirs.
4340 am__obj=sub/conftest.${OBJEXT-o}
4341 am__minus_obj="-o $am__obj"
4344 # This depmode causes a compiler race in universal mode.
4345 test "$am__universal" = false || continue
4348 # After this tag, mechanisms are not by side-effect, so they'll
4349 # only be used when explicitly requested.
4350 if test "x$enable_dependency_tracking" = xyes; then
4356 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4357 # This compiler won't grok '-c -o', but also, the minuso test has
4358 # not run yet. These depmodes are late enough in the game, and
4359 # so weak that their functioning should not be impacted.
4360 am__obj=conftest.${OBJEXT-o}
4365 if depmode=$depmode \
4366 source=sub/conftest.c object=$am__obj \
4367 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4368 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4369 >/dev/null 2>conftest.err &&
4370 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4371 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4372 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4373 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4374 # icc doesn't choke on unknown options, it will just issue warnings
4375 # or remarks (even with -Werror). So we grep stderr for any message
4376 # that says an option was ignored or not supported.
4377 # When given -MP, icc 7.0 and 7.1 complain thusly:
4378 # icc: Command line warning: ignoring option '-M'; no argument required
4379 # The diagnosis changed in icc 8.0:
4380 # icc: Command line remark: option '-MP' not supported
4381 if (grep 'ignoring option' conftest.err ||
4382 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4383 am_cv_CC_dependencies_compiler_type=$depmode
4392 am_cv_CC_dependencies_compiler_type=none
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4397 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4398 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4401 test "x$enable_dependency_tracking" != xno \
4402 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4404 am__fastdepCC_FALSE='#'
4406 am__fastdepCC_TRUE='#'
4407 am__fastdepCC_FALSE=
4412 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4413 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_GOC+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$GOC"; then
4424 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test -n "$GOC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4446 $as_echo "$GOC" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4454 if test -z "$ac_cv_prog_GOC"; then
4456 # Extract the first word of "gccgo", so it can be a program name with args.
4457 set dummy gccgo; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$ac_ct_GOC"; then
4464 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_ac_ct_GOC="gccgo"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4484 if test -n "$ac_ct_GOC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4486 $as_echo "$ac_ct_GOC" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4492 if test "x$ac_ct_GOC" = x; then
4495 case $cross_compiling:$ac_tool_warned in
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4504 GOC="$ac_cv_prog_GOC"
4507 if test -z "$GOC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_GOC+:} false; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$GOC"; then
4517 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 if test -n "$GOC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4539 $as_echo "$GOC" >&6; }
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4548 if test -z "$GOC"; then
4549 # Extract the first word of "gccgo", so it can be a program name with args.
4550 set dummy gccgo; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_GOC+:} false; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -n "$GOC"; then
4557 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4568 ac_prog_rejected=yes
4571 ac_cv_prog_GOC="gccgo"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy $ac_cv_prog_GOC
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set GOC to just the basename; use the full file name.
4588 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4594 if test -n "$GOC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4596 $as_echo "$GOC" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4606 # Provide some information about the compiler.
4607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4610 { { ac_try="$ac_compiler --version >&5"
4612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4613 *) ac_try_echo
=$ac_try;;
4615 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616 $as_echo "$ac_try_echo"; } >&5
4617 (eval "$ac_compiler --version >&5") 2>conftest.err
4619 if test -s conftest.err
; then
4621 ... rest of stderr output deleted ...
4622 10q' conftest.err
>conftest.er1
4623 cat conftest.er1
>&5
4625 rm -f conftest.er1 conftest.err
4626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4627 test $ac_status = 0; }
4630 ac_cpp
='$CPP $CPPFLAGS'
4631 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4635 # By default we simply use the C compiler to build assembly code.
4637 test "${CCAS+set}" = set || CCAS
=$CC
4638 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4642 depcc
="$CCAS" am_compiler_list
=
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4645 $as_echo_n "checking dependency style of $depcc... " >&6; }
4646 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4650 # We make a subdir and do the tests there. Otherwise we can end up
4651 # making bogus files that we don't know about and never remove. For
4652 # instance it was reported that on HP-UX the gcc test will end up
4653 # making a dummy file named 'D' -- because '-MD' means "put the output
4657 # Copy depcomp to subdir because otherwise we won't find it if we're
4658 # using a relative directory.
4659 cp "$am_depcomp" conftest.dir
4661 # We will build objects and dependencies in a subdirectory because
4662 # it helps to detect inapplicable dependency modes. For instance
4663 # both Tru64's cc and ICC support -MD to output dependencies as a
4664 # side effect of compilation, but ICC will put the dependencies in
4665 # the current directory while Tru64 will put them in the object
4669 am_cv_CCAS_dependencies_compiler_type
=none
4670 if test "$am_compiler_list" = ""; then
4671 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4676 for depmode
in $am_compiler_list; do
4677 # Setup a source with many dependencies, because some compilers
4678 # like to wrap large dependency lists on column 80 (with \), and
4679 # we should not choose a depcomp mode which is confused by this.
4681 # We need to recreate these files for each test, as the compiler may
4682 # overwrite some of them when testing with obscure command lines.
4683 # This happens at least with the AIX C compiler.
4685 for i
in 1 2 3 4 5 6; do
4686 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4687 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4688 # Solaris 10 /bin/sh.
4689 echo '/* dummy */' > sub
/conftst
$i.h
4691 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4693 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4694 # mode. It turns out that the SunPro C++ compiler does not properly
4695 # handle '-M -o', and we need to detect this. Also, some Intel
4696 # versions had trouble with output in subdirs.
4697 am__obj
=sub
/conftest.
${OBJEXT-o}
4698 am__minus_obj
="-o $am__obj"
4701 # This depmode causes a compiler race in universal mode.
4702 test "$am__universal" = false ||
continue
4705 # After this tag, mechanisms are not by side-effect, so they'll
4706 # only be used when explicitly requested.
4707 if test "x$enable_dependency_tracking" = xyes
; then
4713 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4714 # This compiler won't grok '-c -o', but also, the minuso test has
4715 # not run yet. These depmodes are late enough in the game, and
4716 # so weak that their functioning should not be impacted.
4717 am__obj
=conftest.
${OBJEXT-o}
4722 if depmode
=$depmode \
4723 source=sub
/conftest.c object
=$am__obj \
4724 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4725 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4726 >/dev
/null
2>conftest.err
&&
4727 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4728 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4729 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4730 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4731 # icc doesn't choke on unknown options, it will just issue warnings
4732 # or remarks (even with -Werror). So we grep stderr for any message
4733 # that says an option was ignored or not supported.
4734 # When given -MP, icc 7.0 and 7.1 complain thusly:
4735 # icc: Command line warning: ignoring option '-M'; no argument required
4736 # The diagnosis changed in icc 8.0:
4737 # icc: Command line remark: option '-MP' not supported
4738 if (grep 'ignoring option' conftest.err ||
4739 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4740 am_cv_CCAS_dependencies_compiler_type
=$depmode
4749 am_cv_CCAS_dependencies_compiler_type
=none
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4754 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4755 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4758 test "x$enable_dependency_tracking" != xno \
4759 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4760 am__fastdepCCAS_TRUE
=
4761 am__fastdepCCAS_FALSE
='#'
4763 am__fastdepCCAS_TRUE
='#'
4764 am__fastdepCCAS_FALSE
=
4774 # Check default architecture for FAT library creation
4775 if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4786 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4787 # Check whether --enable-maintainer-mode was given.
4788 if test "${enable_maintainer_mode+set}" = set; then :
4789 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4791 USE_MAINTAINER_MODE
=no
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4795 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4796 if test $USE_MAINTAINER_MODE = yes; then
4797 MAINTAINER_MODE_TRUE
=
4798 MAINTAINER_MODE_FALSE
='#'
4800 MAINTAINER_MODE_TRUE
='#'
4801 MAINTAINER_MODE_FALSE
=
4804 MAINT
=$MAINTAINER_MODE_TRUE
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4809 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4810 if ${ac_cv_path_SED+:} false
; then :
4811 $as_echo_n "(cached) " >&6
4813 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4814 for ac_i
in 1 2 3 4 5 6 7; do
4815 ac_script
="$ac_script$as_nl$ac_script"
4817 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4818 { ac_script
=; unset ac_script
;}
4819 if test -z "$SED"; then
4820 ac_path_SED_found
=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir
=.
4827 for ac_prog
in sed gsed
; do
4828 for ac_exec_ext
in '' $ac_executable_extensions; do
4829 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4830 as_fn_executable_p
"$ac_path_SED" ||
continue
4831 # Check for GNU ac_path_SED and select it if it is found.
4832 # Check for GNU $ac_path_SED
4833 case `"$ac_path_SED" --version 2>&1` in
4835 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4838 $as_echo_n 0123456789 >"conftest.in"
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo '' >> "conftest.nl"
4845 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4846 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4847 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4848 if test $ac_count -gt ${ac_path_SED_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_SED
="$ac_path_SED"
4851 ac_path_SED_max
=$ac_count
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4856 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4859 $ac_path_SED_found && break 3
4864 if test -z "$ac_cv_path_SED"; then
4865 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4873 $as_echo "$ac_cv_path_SED" >&6; }
4874 SED
="$ac_cv_path_SED"
4877 test -z "$SED" && SED
=sed
4878 Xsed
="$SED -e 1s/^X//"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4891 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4892 if ${ac_cv_path_GREP+:} false
; then :
4893 $as_echo_n "(cached) " >&6
4895 if test -z "$GREP"; then
4896 ac_path_GREP_found
=false
4897 # Loop through the user's path and test for each of PROGNAME-LIST
4898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4899 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4902 test -z "$as_dir" && as_dir
=.
4903 for ac_prog
in grep ggrep
; do
4904 for ac_exec_ext
in '' $ac_executable_extensions; do
4905 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4906 as_fn_executable_p
"$ac_path_GREP" ||
continue
4907 # Check for GNU ac_path_GREP and select it if it is found.
4908 # Check for GNU $ac_path_GREP
4909 case `"$ac_path_GREP" --version 2>&1` in
4911 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4914 $as_echo_n 0123456789 >"conftest.in"
4917 cat "conftest.in" "conftest.in" >"conftest.tmp"
4918 mv "conftest.tmp" "conftest.in"
4919 cp "conftest.in" "conftest.nl"
4920 $as_echo 'GREP' >> "conftest.nl"
4921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4922 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4923 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4924 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4925 # Best one so far, save it but keep looking for a better one
4926 ac_cv_path_GREP
="$ac_path_GREP"
4927 ac_path_GREP_max
=$ac_count
4929 # 10*(2^10) chars as input seems more than enough
4930 test $ac_count -gt 10 && break
4932 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4935 $ac_path_GREP_found && break 3
4940 if test -z "$ac_cv_path_GREP"; then
4941 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4944 ac_cv_path_GREP
=$GREP
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4949 $as_echo "$ac_cv_path_GREP" >&6; }
4950 GREP
="$ac_cv_path_GREP"
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4954 $as_echo_n "checking for egrep... " >&6; }
4955 if ${ac_cv_path_EGREP+:} false
; then :
4956 $as_echo_n "(cached) " >&6
4958 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4959 then ac_cv_path_EGREP
="$GREP -E"
4961 if test -z "$EGREP"; then
4962 ac_path_EGREP_found
=false
4963 # Loop through the user's path and test for each of PROGNAME-LIST
4964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4965 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4968 test -z "$as_dir" && as_dir
=.
4969 for ac_prog
in egrep; do
4970 for ac_exec_ext
in '' $ac_executable_extensions; do
4971 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4972 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4973 # Check for GNU ac_path_EGREP and select it if it is found.
4974 # Check for GNU $ac_path_EGREP
4975 case `"$ac_path_EGREP" --version 2>&1` in
4977 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4980 $as_echo_n 0123456789 >"conftest.in"
4983 cat "conftest.in" "conftest.in" >"conftest.tmp"
4984 mv "conftest.tmp" "conftest.in"
4985 cp "conftest.in" "conftest.nl"
4986 $as_echo 'EGREP' >> "conftest.nl"
4987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4988 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4989 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4991 # Best one so far, save it but keep looking for a better one
4992 ac_cv_path_EGREP
="$ac_path_EGREP"
4993 ac_path_EGREP_max
=$ac_count
4995 # 10*(2^10) chars as input seems more than enough
4996 test $ac_count -gt 10 && break
4998 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5001 $ac_path_EGREP_found && break 3
5006 if test -z "$ac_cv_path_EGREP"; then
5007 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5010 ac_cv_path_EGREP
=$EGREP
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5016 $as_echo "$ac_cv_path_EGREP" >&6; }
5017 EGREP
="$ac_cv_path_EGREP"
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5021 $as_echo_n "checking for fgrep... " >&6; }
5022 if ${ac_cv_path_FGREP+:} false
; then :
5023 $as_echo_n "(cached) " >&6
5025 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5026 then ac_cv_path_FGREP
="$GREP -F"
5028 if test -z "$FGREP"; then
5029 ac_path_FGREP_found
=false
5030 # Loop through the user's path and test for each of PROGNAME-LIST
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5032 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5035 test -z "$as_dir" && as_dir
=.
5036 for ac_prog
in fgrep
; do
5037 for ac_exec_ext
in '' $ac_executable_extensions; do
5038 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5039 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5040 # Check for GNU ac_path_FGREP and select it if it is found.
5041 # Check for GNU $ac_path_FGREP
5042 case `"$ac_path_FGREP" --version 2>&1` in
5044 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5047 $as_echo_n 0123456789 >"conftest.in"
5050 cat "conftest.in" "conftest.in" >"conftest.tmp"
5051 mv "conftest.tmp" "conftest.in"
5052 cp "conftest.in" "conftest.nl"
5053 $as_echo 'FGREP' >> "conftest.nl"
5054 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5055 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5056 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5057 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5058 # Best one so far, save it but keep looking for a better one
5059 ac_cv_path_FGREP
="$ac_path_FGREP"
5060 ac_path_FGREP_max
=$ac_count
5062 # 10*(2^10) chars as input seems more than enough
5063 test $ac_count -gt 10 && break
5065 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5068 $ac_path_FGREP_found && break 3
5073 if test -z "$ac_cv_path_FGREP"; then
5074 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5077 ac_cv_path_FGREP
=$FGREP
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5083 $as_echo "$ac_cv_path_FGREP" >&6; }
5084 FGREP
="$ac_cv_path_FGREP"
5087 test -z "$GREP" && GREP
=grep
5105 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5110 $as_echo_n "checking how to print strings... " >&6; }
5111 # Test print first, because it will be a builtin if present.
5112 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5113 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5115 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5118 # Use this function as a fallback that always works.
5119 func_fallback_echo ()
5121 eval 'cat <<_LTECHO_EOF
5125 ECHO='func_fallback_echo
'
5128 # func_echo_all arg...
5129 # Invoke $ECHO with all args, space-separated.
5136 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5137 $as_echo "printf" >&6; } ;;
5138 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5139 $as_echo "print -r" >&6; } ;;
5140 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5141 $as_echo "cat" >&6; } ;;
5159 # Check whether --with-gnu-ld was given.
5160 if test "${with_gnu_ld+set}" = set; then :
5161 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5167 if test "$GCC" = yes; then
5168 # Check if gcc -print-prog-name=ld gives a path.
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5170 $as_echo_n "checking for ld used by $CC... " >&6; }
5173 # gcc leaves a trailing carriage return which upsets mingw
5174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179 # Accept absolute paths.
5181 re_direlt='/[^
/][^
/]*/\.\.
/'
5182 # Canonicalize the pathname of ld
5183 ac_prog=`$ECHO "$ac_prog"| $SED 's
%\\\\%/%g
'`
5184 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5185 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5187 test -z "$LD" && LD="$ac_prog"
5190 # If it fails, then pretend we aren't using GCC.
5194 # If it is relative, then search for the first ld in PATH.
5198 elif test "$with_gnu_ld" = yes; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5200 $as_echo_n "checking for GNU ld... " >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5203 $as_echo_n "checking for non-GNU ld... " >&6; }
5205 if ${lt_cv_path_LD+:} false
; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -z "$LD"; then
5209 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5210 for ac_dir
in $PATH; do
5212 test -z "$ac_dir" && ac_dir
=.
5213 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5214 lt_cv_path_LD
="$ac_dir/$ac_prog"
5215 # Check to see if the program is GNU ld. I'd rather use --version,
5216 # but apparently some variants of GNU ld only accept -v.
5217 # Break only if it was the GNU/non-GNU ld that we prefer.
5218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5219 *GNU
* |
*'with BFD'*)
5220 test "$with_gnu_ld" != no
&& break
5223 test "$with_gnu_ld" != yes && break
5230 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5235 if test -n "$LD"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5237 $as_echo "$LD" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5242 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5244 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5245 if ${lt_cv_prog_gnu_ld+:} false
; then :
5246 $as_echo_n "(cached) " >&6
5248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5249 case `$LD -v 2>&1 </dev/null` in
5250 *GNU
* |
*'with BFD'*)
5251 lt_cv_prog_gnu_ld
=yes
5254 lt_cv_prog_gnu_ld
=no
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5259 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5260 with_gnu_ld
=$lt_cv_prog_gnu_ld
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5272 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_prog_RANLIB+:} false
; then :
5276 $as_echo_n "(cached) " >&6
5278 if test -n "$RANLIB"; then
5279 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir
=.
5286 for ac_exec_ext
in '' $ac_executable_extensions; do
5287 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 RANLIB
=$ac_cv_prog_RANLIB
5299 if test -n "$RANLIB"; then
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5301 $as_echo "$RANLIB" >&6; }
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5309 if test -z "$ac_cv_prog_RANLIB"; then
5310 ac_ct_RANLIB
=$RANLIB
5311 # Extract the first word of "ranlib", so it can be a program name with args.
5312 set dummy ranlib
; ac_word
=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5316 $as_echo_n "(cached) " >&6
5318 if test -n "$ac_ct_RANLIB"; then
5319 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5325 test -z "$as_dir" && as_dir
=.
5326 for ac_exec_ext
in '' $ac_executable_extensions; do
5327 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5339 if test -n "$ac_ct_RANLIB"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5341 $as_echo "$ac_ct_RANLIB" >&6; }
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5347 if test "x$ac_ct_RANLIB" = x
; then
5350 case $cross_compiling:$ac_tool_warned in
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned
=yes ;;
5356 RANLIB
=$ac_ct_RANLIB
5359 RANLIB
="$ac_cv_prog_RANLIB"
5362 if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5364 set dummy
${ac_tool_prefix}objcopy
; ac_word
=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_OBJCOPY+:} false
; then :
5368 $as_echo_n "(cached) " >&6
5370 if test -n "$OBJCOPY"; then
5371 ac_cv_prog_OBJCOPY
="$OBJCOPY" # Let the user override the test.
5373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5377 test -z "$as_dir" && as_dir
=.
5378 for ac_exec_ext
in '' $ac_executable_extensions; do
5379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_OBJCOPY
="${ac_tool_prefix}objcopy"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 OBJCOPY
=$ac_cv_prog_OBJCOPY
5391 if test -n "$OBJCOPY"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5393 $as_echo "$OBJCOPY" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5401 if test -z "$ac_cv_prog_OBJCOPY"; then
5402 ac_ct_OBJCOPY
=$OBJCOPY
5403 # Extract the first word of "objcopy", so it can be a program name with args.
5404 set dummy objcopy
; ac_word
=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false
; then :
5408 $as_echo_n "(cached) " >&6
5410 if test -n "$ac_ct_OBJCOPY"; then
5411 ac_cv_prog_ac_ct_OBJCOPY
="$ac_ct_OBJCOPY" # Let the user override the test.
5413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir
=.
5418 for ac_exec_ext
in '' $ac_executable_extensions; do
5419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_ac_ct_OBJCOPY
="objcopy"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 ac_ct_OBJCOPY
=$ac_cv_prog_ac_ct_OBJCOPY
5431 if test -n "$ac_ct_OBJCOPY"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5433 $as_echo "$ac_ct_OBJCOPY" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5439 if test "x$ac_ct_OBJCOPY" = x
; then
5440 OBJCOPY
="missing-objcopy"
5442 case $cross_compiling:$ac_tool_warned in
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned
=yes ;;
5448 OBJCOPY
=$ac_ct_OBJCOPY
5451 OBJCOPY
="$ac_cv_prog_OBJCOPY"
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5462 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5467 macro_version
='2.2.7a'
5468 macro_revision
='1.3134'
5482 ltmain
="$ac_aux_dir/ltmain.sh"
5484 # Backslashify metacharacters that are still active within
5485 # double-quoted strings.
5486 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5488 # Same as above, but do not quote variable references.
5489 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5491 # Sed substitution to delay expansion of an escaped shell variable in a
5492 # double_quote_subst'ed string.
5493 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5495 # Sed substitution to delay expansion of an escaped single quote.
5496 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5498 # Sed substitution to avoid accidental globbing in evaled expressions
5499 no_glob_subst
='s/\*/\\\*/g'
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5502 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5503 if ${lt_cv_path_NM+:} false
; then :
5504 $as_echo_n "(cached) " >&6
5506 if test -n "$NM"; then
5507 # Let the user override the test.
5510 lt_nm_to_check
="${ac_tool_prefix}nm"
5511 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5512 lt_nm_to_check
="$lt_nm_to_check nm"
5514 for lt_tmp_nm
in $lt_nm_to_check; do
5515 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5516 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5518 test -z "$ac_dir" && ac_dir
=.
5519 tmp_nm
="$ac_dir/$lt_tmp_nm"
5520 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5521 # Check to see if the nm accepts a BSD-compat flag.
5522 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5523 # nm: unknown option "B" ignored
5524 # Tru64's nm complains that /dev/null is an invalid object file
5525 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5526 */dev
/null
* |
*'Invalid file or object type'*)
5527 lt_cv_path_NM
="$tmp_nm -B"
5531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5533 lt_cv_path_NM
="$tmp_nm -p"
5537 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5538 continue # so that we can try to find one that supports BSD flags
5547 : ${lt_cv_path_NM=no}
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5551 $as_echo "$lt_cv_path_NM" >&6; }
5552 if test "$lt_cv_path_NM" != "no"; then
5555 # Didn't find any BSD compatible name lister, look for dumpbin.
5556 if test -n "$DUMPBIN"; then :
5557 # Let the user override the test.
5559 if test -n "$ac_tool_prefix"; then
5560 for ac_prog
in dumpbin
"link -dump"
5562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5563 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 if test -n "$DUMPBIN"; then
5570 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir
=.
5577 for ac_exec_ext
in '' $ac_executable_extensions; do
5578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 DUMPBIN
=$ac_cv_prog_DUMPBIN
5590 if test -n "$DUMPBIN"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5592 $as_echo "$DUMPBIN" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5599 test -n "$DUMPBIN" && break
5602 if test -z "$DUMPBIN"; then
5603 ac_ct_DUMPBIN
=$DUMPBIN
5604 for ac_prog
in dumpbin
"link -dump"
5606 # Extract the first word of "$ac_prog", so it can be a program name with args.
5607 set dummy
$ac_prog; ac_word
=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5611 $as_echo_n "(cached) " >&6
5613 if test -n "$ac_ct_DUMPBIN"; then
5614 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir
=.
5621 for ac_exec_ext
in '' $ac_executable_extensions; do
5622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5623 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5634 if test -n "$ac_ct_DUMPBIN"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5636 $as_echo "$ac_ct_DUMPBIN" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 test -n "$ac_ct_DUMPBIN" && break
5646 if test "x$ac_ct_DUMPBIN" = x
; then
5649 case $cross_compiling:$ac_tool_warned in
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned
=yes ;;
5655 DUMPBIN
=$ac_ct_DUMPBIN
5659 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5661 DUMPBIN
="$DUMPBIN -symbols"
5669 if test "$DUMPBIN" != ":"; then
5673 test -z "$NM" && NM
=nm
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5681 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5682 if ${lt_cv_nm_interface+:} false
; then :
5683 $as_echo_n "(cached) " >&6
5685 lt_cv_nm_interface
="BSD nm"
5686 echo "int some_variable = 0;" > conftest.
$ac_ext
5687 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5688 (eval "$ac_compile" 2>conftest.err
)
5689 cat conftest.err
>&5
5690 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5691 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5692 cat conftest.err
>&5
5693 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5694 cat conftest.out
>&5
5695 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5696 lt_cv_nm_interface
="MS dumpbin"
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5701 $as_echo "$lt_cv_nm_interface" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5704 $as_echo_n "checking whether ln -s works... " >&6; }
5706 if test "$LN_S" = "ln -s"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5708 $as_echo "yes" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5711 $as_echo "no, using $LN_S" >&6; }
5714 # find the maximum length of command line arguments
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5716 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5717 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5718 $as_echo_n "(cached) " >&6
5725 # On DJGPP, this test can blow up pretty badly due to problems in libc
5726 # (any single argument exceeding 2000 bytes causes a buffer overrun
5727 # during glob expansion). Even if it were fixed, the result of this
5728 # check would be larger than it should be.
5729 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5733 # Under GNU Hurd, this test is not required because there is
5734 # no limit to the length of command line arguments.
5735 # Libtool will interpret -1 as no limit whatsoever
5736 lt_cv_sys_max_cmd_len
=-1;
5739 cygwin
* | mingw
* | cegcc
*)
5740 # On Win9x/ME, this test blows up -- it succeeds, but takes
5741 # about 5 minutes as the teststring grows exponentially.
5742 # Worse, since 9x/ME are not pre-emptively multitasking,
5743 # you end up with a "frozen" computer, even though with patience
5744 # the test eventually succeeds (with a max line length of 256k).
5745 # Instead, let's just punt: use the minimum linelength reported by
5746 # all of the supported platforms: 8192 (on NT/2K/XP).
5747 lt_cv_sys_max_cmd_len
=8192;
5751 # On MiNT this can take a long time and run out of memory.
5752 lt_cv_sys_max_cmd_len
=8192;
5756 # On AmigaOS with pdksh, this test takes hours, literally.
5757 # So we just punt and use a minimum line length of 8192.
5758 lt_cv_sys_max_cmd_len
=8192;
5761 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
5762 # This has been around since 386BSD, at least. Likely further.
5763 if test -x /sbin
/sysctl
; then
5764 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5765 elif test -x /usr
/sbin
/sysctl
; then
5766 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5768 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5770 # And add a safety zone
5771 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5772 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5776 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5777 lt_cv_sys_max_cmd_len
=196608
5781 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5782 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5783 # nice to cause kernel panics so lets avoid the loop below.
5784 # First set a reasonable default.
5785 lt_cv_sys_max_cmd_len
=16384
5787 if test -x /sbin
/sysconfig
; then
5788 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5789 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5794 lt_cv_sys_max_cmd_len
=102400
5796 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5797 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5798 if test -n "$kargmax"; then
5799 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5801 lt_cv_sys_max_cmd_len
=32768
5805 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5806 if test -n "$lt_cv_sys_max_cmd_len"; then
5807 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5808 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5810 # Make teststring a little bigger before we do anything with it.
5811 # a 1K string should be a reasonable start.
5812 for i
in 1 2 3 4 5 6 7 8 ; do
5813 teststring
=$teststring$teststring
5815 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5816 # If test is not a shell built-in, we'll probably end up computing a
5817 # maximum length that is only half of the actual maximum length, but
5819 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5820 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5821 test $i != 17 # 1/2 MB should be enough
5824 teststring
=$teststring$teststring
5826 # Only check the string length outside the loop.
5827 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5829 # Add a significant safety factor because C++ compilers can tack on
5830 # massive amounts of additional arguments before passing them to the
5831 # linker. It appears as though 1/2 is a usable value.
5832 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5839 if test -n $lt_cv_sys_max_cmd_len ; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5841 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5844 $as_echo "none" >&6; }
5846 max_cmd_len
=$lt_cv_sys_max_cmd_len
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5858 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5859 # Try some XSI features
5862 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5864 && eval 'test $(( 1 + 1 )) -eq 2 \
5865 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5868 $as_echo "$xsi_shell" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5872 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5874 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5876 && lt_shell_append=yes
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5878 $as_echo "$lt_shell_append" >&6; }
5881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5891 # test EBCDIC or ASCII
5892 case `echo X|tr X '\101'` in
5893 A) # ASCII based system
5894 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5895 lt_SP2NL='tr \040 \012'
5896 lt_NL2SP='tr \015\012 \040\040'
5898 *) # EBCDIC based system
5899 lt_SP2NL='tr \100 \n'
5900 lt_NL2SP='tr \r\n \100\100'
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5913 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5914 if ${lt_cv_ld_reload_flag+:} false; then :
5915 $as_echo_n "(cached
) " >&6
5917 lt_cv_ld_reload_flag='-r'
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5920 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5921 reload_flag=$lt_cv_ld_reload_flag
5922 case $reload_flag in
5924 *) reload_flag=" $reload_flag" ;;
5926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5929 if test "$GCC" = yes; then
5930 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5932 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5945 if test -n "$ac_tool_prefix"; then
5946 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5949 $as_echo_n "checking
for $ac_word...
" >&6; }
5950 if ${ac_cv_prog_OBJDUMP+:} false; then :
5951 $as_echo_n "(cached
) " >&6
5953 if test -n "$OBJDUMP"; then
5954 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5973 OBJDUMP=$ac_cv_prog_OBJDUMP
5974 if test -n "$OBJDUMP"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5976 $as_echo "$OBJDUMP" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5979 $as_echo "no
" >&6; }
5984 if test -z "$ac_cv_prog_OBJDUMP"; then
5985 ac_ct_OBJDUMP=$OBJDUMP
5986 # Extract the first word of "objdump
", so it can be a program name with args.
5987 set dummy objdump; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5989 $as_echo_n "checking
for $ac_word...
" >&6; }
5990 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5991 $as_echo_n "(cached
) " >&6
5993 if test -n "$ac_ct_OBJDUMP"; then
5994 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6013 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6014 if test -n "$ac_ct_OBJDUMP"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6016 $as_echo "$ac_ct_OBJDUMP" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6019 $as_echo "no
" >&6; }
6022 if test "x
$ac_ct_OBJDUMP" = x; then
6025 case $cross_compiling:$ac_tool_warned in
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6028 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6029 ac_tool_warned=yes ;;
6031 OBJDUMP=$ac_ct_OBJDUMP
6034 OBJDUMP="$ac_cv_prog_OBJDUMP"
6037 test -z "$OBJDUMP" && OBJDUMP=objdump
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6048 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6049 if ${lt_cv_deplibs_check_method+:} false; then :
6050 $as_echo_n "(cached
) " >&6
6052 lt_cv_file_magic_cmd='$MAGIC_CMD'
6053 lt_cv_file_magic_test_file=
6054 lt_cv_deplibs_check_method='unknown'
6055 # Need to set the preceding variable on all platforms that support
6056 # interlibrary dependencies.
6057 # 'none' -- dependencies not supported.
6058 # `unknown' -- same as none, but documents that we really don't know.
6059 # 'pass_all' -- all dependencies passed with no checks.
6060 # 'test_compile' -- check by making test program.
6061 # 'file_magic [[regex]]' -- check by looking for files in library path
6062 # which responds to the $file_magic_cmd with a given extended regex.
6063 # If you have `file' or equivalent on your system and you're not sure
6064 # whether `pass_all' will *always* work, you probably want this one.
6068 lt_cv_deplibs_check_method=pass_all
6072 lt_cv_deplibs_check_method=pass_all
6076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6077 lt_cv_file_magic_cmd='/usr/bin/file -L'
6078 lt_cv_file_magic_test_file=/shlib/libc.so
6082 # func_win32_libid is a shell function defined in ltmain.sh
6083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6084 lt_cv_file_magic_cmd='func_win32_libid'
6088 # Base MSYS/MinGW do not provide the 'file' command needed by
6089 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6090 # unless we find 'file', for example because we are cross-compiling.
6091 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6092 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6094 lt_cv_file_magic_cmd='func_win32_libid'
6096 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6097 lt_cv_file_magic_cmd='$OBJDUMP -f'
6102 # use the weaker test based on 'objdump'. See mingw*.
6103 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6104 lt_cv_file_magic_cmd='$OBJDUMP -f'
6107 darwin* | rhapsody*)
6108 lt_cv_deplibs_check_method=pass_all
6111 freebsd* | dragonfly*)
6112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6115 # Not sure whether the presence of OpenBSD here was a mistake.
6116 # Let's accept both of them until this is cleared up.
6117 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6118 lt_cv_file_magic_cmd=/usr/bin/file
6119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6123 lt_cv_deplibs_check_method=pass_all
6128 lt_cv_deplibs_check_method=pass_all
6132 lt_cv_deplibs_check_method=pass_all
6135 hpux10.20* | hpux11*)
6136 lt_cv_file_magic_cmd=/usr/bin/file
6139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6143 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]'
6144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6158 irix5* | irix6* | nonstopux*)
6160 *-32|*"-32 ") libmagic=32-bit;;
6161 *-n32|*"-n32 ") libmagic=N32;;
6162 *-64|*"-64 ") libmagic=64-bit;;
6163 *) libmagic=never-match;;
6165 lt_cv_deplibs_check_method=pass_all
6168 # This must be Linux ELF.
6169 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6170 lt_cv_deplibs_check_method=pass_all
6174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6183 lt_cv_file_magic_cmd=/usr/bin/file
6184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6188 lt_cv_deplibs_check_method=pass_all
6192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6199 osf3* | osf4* | osf5*)
6200 lt_cv_deplibs_check_method=pass_all
6204 lt_cv_deplibs_check_method=pass_all
6208 lt_cv_deplibs_check_method=pass_all
6211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6212 lt_cv_deplibs_check_method=pass_all
6216 case $host_vendor in
6218 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]'
6219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6222 lt_cv_deplibs_check_method=pass_all
6225 lt_cv_file_magic_cmd='/bin/file'
6226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6229 lt_cv_file_magic_cmd='/bin/file'
6230 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6231 lt_cv_file_magic_test_file=/lib/libc.so
6234 lt_cv_deplibs_check_method=pass_all
6237 lt_cv_deplibs_check_method=pass_all
6243 lt_cv_deplibs_check_method=pass_all
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6249 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6250 file_magic_cmd=$lt_cv_file_magic_cmd
6251 deplibs_check_method=$lt_cv_deplibs_check_method
6252 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6265 if test -n "$ac_tool_prefix"; then
6266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6267 set dummy ${ac_tool_prefix}ar; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6269 $as_echo_n "checking
for $ac_word...
" >&6; }
6270 if ${ac_cv_prog_AR+:} false; then :
6271 $as_echo_n "(cached
) " >&6
6273 if test -n "$AR"; then
6274 ac_cv_prog_AR="$AR" # Let the user override the test.
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283 ac_cv_prog_AR="${ac_tool_prefix}ar"
6284 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6294 if test -n "$AR"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6296 $as_echo "$AR" >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6299 $as_echo "no
" >&6; }
6304 if test -z "$ac_cv_prog_AR"; then
6306 # Extract the first word of "ar", so it can be a program name with args.
6307 set dummy ar; ac_word=$2
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6309 $as_echo_n "checking
for $ac_word...
" >&6; }
6310 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6311 $as_echo_n "(cached
) " >&6
6313 if test -n "$ac_ct_AR"; then
6314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_prog_ac_ct_AR="ar"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6334 if test -n "$ac_ct_AR"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6336 $as_echo "$ac_ct_AR" >&6; }
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6339 $as_echo "no
" >&6; }
6342 if test "x
$ac_ct_AR" = x; then
6345 case $cross_compiling:$ac_tool_warned in
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6348 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6349 ac_tool_warned=yes ;;
6357 test -z "$AR" && AR=ar
6358 test -z "$AR_FLAGS" && AR_FLAGS=cru
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}strip; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6374 $as_echo_n "checking
for $ac_word...
" >&6; }
6375 if ${ac_cv_prog_STRIP+:} false; then :
6376 $as_echo_n "(cached
) " >&6
6378 if test -n "$STRIP"; then
6379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6398 STRIP=$ac_cv_prog_STRIP
6399 if test -n "$STRIP"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6401 $as_echo "$STRIP" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6404 $as_echo "no
" >&6; }
6409 if test -z "$ac_cv_prog_STRIP"; then
6411 # Extract the first word of "strip
", so it can be a program name with args.
6412 set dummy strip; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6414 $as_echo_n "checking
for $ac_word...
" >&6; }
6415 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6416 $as_echo_n "(cached
) " >&6
6418 if test -n "$ac_ct_STRIP"; then
6419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_STRIP="strip
"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6439 if test -n "$ac_ct_STRIP"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6441 $as_echo "$ac_ct_STRIP" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6444 $as_echo "no
" >&6; }
6447 if test "x
$ac_ct_STRIP" = x; then
6450 case $cross_compiling:$ac_tool_warned in
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6453 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6454 ac_tool_warned=yes ;;
6459 STRIP="$ac_cv_prog_STRIP"
6462 test -z "$STRIP" && STRIP=:
6469 if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6473 $as_echo_n "checking
for $ac_word...
" >&6; }
6474 if ${ac_cv_prog_RANLIB+:} false; then :
6475 $as_echo_n "(cached
) " >&6
6477 if test -n "$RANLIB"; then
6478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6497 RANLIB=$ac_cv_prog_RANLIB
6498 if test -n "$RANLIB"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6500 $as_echo "$RANLIB" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6503 $as_echo "no
" >&6; }
6508 if test -z "$ac_cv_prog_RANLIB"; then
6509 ac_ct_RANLIB=$RANLIB
6510 # Extract the first word of "ranlib
", so it can be a program name with args.
6511 set dummy ranlib; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6513 $as_echo_n "checking
for $ac_word...
" >&6; }
6514 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6515 $as_echo_n "(cached
) " >&6
6517 if test -n "$ac_ct_RANLIB"; then
6518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6538 if test -n "$ac_ct_RANLIB"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6540 $as_echo "$ac_ct_RANLIB" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6543 $as_echo "no
" >&6; }
6546 if test "x
$ac_ct_RANLIB" = x; then
6549 case $cross_compiling:$ac_tool_warned in
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6552 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6553 ac_tool_warned=yes ;;
6555 RANLIB=$ac_ct_RANLIB
6558 RANLIB="$ac_cv_prog_RANLIB"
6561 test -z "$RANLIB" && RANLIB=:
6568 # Determine commands to create old-style static archives.
6569 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6570 old_postinstall_cmds='chmod 644 $oldlib'
6571 old_postuninstall_cmds=
6573 if test -n "$RANLIB"; then
6576 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6579 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6582 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6587 lock_old_archive_extraction=yes ;;
6589 lock_old_archive_extraction=no ;;
6630 # If no C compiler was specified, use CC.
6633 # If no C compiler flags were specified, use CFLAGS.
6634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6636 # Allow CC to be a program name with arguments.
6640 # Check for command to grab the raw symbol name followed by C symbol from nm.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6642 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6643 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6644 $as_echo_n "(cached
) " >&6
6647 # These are sane defaults that work on at least a few old systems.
6648 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6650 # Character class describing NM global symbol codes.
6651 symcode='[BCDEGRST]'
6653 # Regexp to match symbols that can be accessed directly from C.
6654 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6656 # Define system-specific variables.
6661 cygwin* | mingw* | pw32* | cegcc*)
6662 symcode='[ABCDGISTW]'
6665 if test "$host_cpu" = ia64; then
6666 symcode='[ABCDEGRST]'
6670 symcode='[BCDEGRST]'
6673 symcode='[BCDEGQRST]'
6684 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6692 # If we're using GNU nm, then use its standard symbol codes.
6693 case `$NM -V 2>&1` in
6694 *GNU* | *'with BFD'*)
6695 symcode='[ABCDGIRSTW]' ;;
6698 # Transform an extracted symbol line into a proper C declaration.
6699 # Some systems (esp. on ia64) link data and code symbols differently,
6700 # so use this general approach.
6701 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6703 # Transform an extracted symbol line into symbol name and symbol address
6704 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6705 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'"
6707 # Handle CRLF in mingw tool chain
6711 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6715 # Try without a prefix underscore, then with it.
6716 for ac_symprfx in "" "_
"; do
6718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6719 symxfrm="\\1 $ac_symprfx\\2 \\2"
6721 # Write the raw and C identifiers.
6722 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6723 # Fake it for dumpbin and say T for any non-static function
6724 # and D for any global variable.
6725 # Also find C++ and __fastcall symbols from MSVC++,
6726 # which start with @ or ?.
6727 lt_cv_sys_global_symbol_pipe="$AWK '"\
6728 " {last_section=section; section=\$ 3};"\
6729 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6730 " \$ 0!~/External *\|/{next};"\
6731 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6732 " {if(hide[section]) next};"\
6733 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6734 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6735 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6736 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6737 " ' prfx
=^
$ac_symprfx"
6739 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6742 # Check to see that the pipe works correctly.
6746 cat > conftest.$ac_ext <<_LT_EOF
6751 void nm_test_func(void);
6752 void nm_test_func(void){}
6756 int main(){nm_test_var='a';nm_test_func();return(0);}
6759 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6760 (eval $ac_compile) 2>&5
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6763 test $ac_status = 0; }; then
6764 # Now try to grab the symbols.
6766 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6767 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6770 test $ac_status = 0; } && test -s "$nlist"; then
6771 # Try sorting and uniquifying the output.
6772 if sort "$nlist" | uniq > "$nlist"T; then
6773 mv -f "$nlist"T "$nlist"
6778 # Make sure that we snagged all the symbols we need.
6779 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6780 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6781 cat <<_LT_EOF > conftest.$ac_ext
6787 # Now generate the symbol file.
6788 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6790 cat <<_LT_EOF >> conftest.$ac_ext
6792 /* The mapping between symbol names and symbols. */
6797 lt__PROGRAM__LTX_preloaded_symbols[] =
6799 { "@PROGRAM@
", (void *) 0 },
6801 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6802 cat <<\_LT_EOF >> conftest.$ac_ext
6806 /* This works around a problem in FreeBSD linker */
6807 #ifdef FREEBSD_WORKAROUND
6808 static const void *lt_preloaded_setup() {
6809 return lt__PROGRAM__LTX_preloaded_symbols;
6817 # Now try linking the two files.
6818 mv conftest.$ac_objext conftstm.$ac_objext
6819 lt_save_LIBS="$LIBS"
6820 lt_save_CFLAGS="$CFLAGS"
6821 LIBS="conftstm.
$ac_objext"
6822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6823 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6824 (eval $ac_link) 2>&5
6826 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6827 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6830 LIBS="$lt_save_LIBS"
6831 CFLAGS="$lt_save_CFLAGS"
6833 echo "cannot
find nm_test_func
in $nlist" >&5
6836 echo "cannot
find nm_test_var
in $nlist" >&5
6839 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6842 echo "$progname: failed program was
:" >&5
6843 cat conftest.$ac_ext >&5
6845 rm -rf conftest* conftst*
6847 # Do not use the global_symbol_pipe unless it works.
6848 if test "$pipe_works" = yes; then
6851 lt_cv_sys_global_symbol_pipe=
6857 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6858 lt_cv_sys_global_symbol_to_cdecl=
6860 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6862 $as_echo "failed
" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6865 $as_echo "ok
" >&6; }
6890 # Check whether --enable-libtool-lock was given.
6891 if test "${enable_libtool_lock+set}" = set; then :
6892 enableval=$enable_libtool_lock;
6895 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6897 # Some flags need to be propagated to the compiler or linker for good
6901 # Find out which ABI we are using.
6902 echo 'int i;' > conftest.$ac_ext
6903 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6904 (eval $ac_compile) 2>&5
6906 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6907 test $ac_status = 0; }; then
6908 case `/usr/bin/file conftest.$ac_objext` in
6920 # Find out which ABI we are using.
6921 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6922 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923 (eval $ac_compile) 2>&5
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6926 test $ac_status = 0; }; then
6927 if test "$lt_cv_prog_gnu_ld" = yes; then
6928 case `/usr/bin/file conftest.$ac_objext` in
6930 LD="${LD-ld} -melf32bsmip"
6933 LD="${LD-ld} -melf32bmipn32"
6936 LD="${LD-ld} -melf64bmip"
6940 case `/usr/bin/file conftest.$ac_objext` in
6956 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6957 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6958 # Find out which ABI we are using.
6959 echo 'int i;' > conftest.$ac_ext
6960 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 case `/usr/bin/file conftest.o` in
6968 x86_64-*kfreebsd*-gnu)
6969 LD="${LD-ld} -m elf_i386_fbsd
"
6972 case `/usr/bin/file conftest.o` in
6974 LD="${LD-ld} -m elf32_x86_64
"
6977 LD="${LD-ld} -m elf_i386
"
6981 powerpc64le-*linux*)
6982 LD="${LD-ld} -m elf32lppclinux
"
6985 LD="${LD-ld} -m elf32ppclinux
"
6988 LD="${LD-ld} -m elf_s390
"
6991 LD="${LD-ld} -m elf32_sparc
"
6997 x86_64-*kfreebsd*-gnu)
6998 LD="${LD-ld} -m elf_x86_64_fbsd
"
7001 LD="${LD-ld} -m elf_x86_64
"
7004 LD="${LD-ld} -m elf64lppc
"
7007 LD="${LD-ld} -m elf64ppc
"
7009 s390*-*linux*|s390*-*tpf*)
7010 LD="${LD-ld} -m elf64_s390
"
7013 LD="${LD-ld} -m elf64_sparc
"
7023 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7024 SAVE_CFLAGS="$CFLAGS"
7025 CFLAGS="$CFLAGS -belf"
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7027 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7028 if ${lt_cv_cc_needs_belf+:} false; then :
7029 $as_echo_n "(cached
) " >&6
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7048 if ac_fn_c_try_link "$LINENO"; then :
7049 lt_cv_cc_needs_belf=yes
7051 lt_cv_cc_needs_belf=no
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7056 ac_cpp='$CPP $CPPFLAGS'
7057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7063 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7064 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7065 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7066 CFLAGS="$SAVE_CFLAGS"
7070 # Find out which ABI we are using.
7071 echo 'int i;' > conftest.$ac_ext
7072 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7073 (eval $ac_compile) 2>&5
7075 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7076 test $ac_status = 0; }; then
7077 case `/usr/bin/file conftest.o` in
7079 case $lt_cv_prog_gnu_ld in
7080 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7082 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7094 need_locks="$enable_libtool_lock"
7098 rhapsody* | darwin*)
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7103 $as_echo_n "checking
for $ac_word...
" >&6; }
7104 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7105 $as_echo_n "(cached
) " >&6
7107 if test -n "$DSYMUTIL"; then
7108 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7127 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7128 if test -n "$DSYMUTIL"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7130 $as_echo "$DSYMUTIL" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7133 $as_echo "no
" >&6; }
7138 if test -z "$ac_cv_prog_DSYMUTIL"; then
7139 ac_ct_DSYMUTIL=$DSYMUTIL
7140 # Extract the first word of "dsymutil
", so it can be a program name with args.
7141 set dummy dsymutil; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7143 $as_echo_n "checking
for $ac_word...
" >&6; }
7144 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7145 $as_echo_n "(cached
) " >&6
7147 if test -n "$ac_ct_DSYMUTIL"; then
7148 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7167 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7168 if test -n "$ac_ct_DSYMUTIL"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7170 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7173 $as_echo "no
" >&6; }
7176 if test "x
$ac_ct_DSYMUTIL" = x; then
7179 case $cross_compiling:$ac_tool_warned in
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7182 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7183 ac_tool_warned=yes ;;
7185 DSYMUTIL=$ac_ct_DSYMUTIL
7188 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7195 $as_echo_n "checking
for $ac_word...
" >&6; }
7196 if ${ac_cv_prog_NMEDIT+:} false; then :
7197 $as_echo_n "(cached
) " >&6
7199 if test -n "$NMEDIT"; then
7200 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7209 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7219 NMEDIT=$ac_cv_prog_NMEDIT
7220 if test -n "$NMEDIT"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7222 $as_echo "$NMEDIT" >&6; }
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7225 $as_echo "no
" >&6; }
7230 if test -z "$ac_cv_prog_NMEDIT"; then
7231 ac_ct_NMEDIT=$NMEDIT
7232 # Extract the first word of "nmedit
", so it can be a program name with args.
7233 set dummy nmedit; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7235 $as_echo_n "checking
for $ac_word...
" >&6; }
7236 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7237 $as_echo_n "(cached
) " >&6
7239 if test -n "$ac_ct_NMEDIT"; then
7240 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7259 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7260 if test -n "$ac_ct_NMEDIT"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7262 $as_echo "$ac_ct_NMEDIT" >&6; }
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7265 $as_echo "no
" >&6; }
7268 if test "x
$ac_ct_NMEDIT" = x; then
7271 case $cross_compiling:$ac_tool_warned in
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7274 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7275 ac_tool_warned=yes ;;
7277 NMEDIT=$ac_ct_NMEDIT
7280 NMEDIT="$ac_cv_prog_NMEDIT"
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7287 $as_echo_n "checking
for $ac_word...
" >&6; }
7288 if ${ac_cv_prog_LIPO+:} false; then :
7289 $as_echo_n "(cached
) " >&6
7291 if test -n "$LIPO"; then
7292 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7311 LIPO=$ac_cv_prog_LIPO
7312 if test -n "$LIPO"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7314 $as_echo "$LIPO" >&6; }
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7317 $as_echo "no
" >&6; }
7322 if test -z "$ac_cv_prog_LIPO"; then
7324 # Extract the first word of "lipo
", so it can be a program name with args.
7325 set dummy lipo; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7327 $as_echo_n "checking
for $ac_word...
" >&6; }
7328 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7329 $as_echo_n "(cached
) " >&6
7331 if test -n "$ac_ct_LIPO"; then
7332 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_ac_ct_LIPO="lipo
"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7351 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7352 if test -n "$ac_ct_LIPO"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7354 $as_echo "$ac_ct_LIPO" >&6; }
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7357 $as_echo "no
" >&6; }
7360 if test "x
$ac_ct_LIPO" = x; then
7363 case $cross_compiling:$ac_tool_warned in
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7366 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7367 ac_tool_warned=yes ;;
7372 LIPO="$ac_cv_prog_LIPO"
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}otool; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7379 $as_echo_n "checking
for $ac_word...
" >&6; }
7380 if ${ac_cv_prog_OTOOL+:} false; then :
7381 $as_echo_n "(cached
) " >&6
7383 if test -n "$OTOOL"; then
7384 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7403 OTOOL=$ac_cv_prog_OTOOL
7404 if test -n "$OTOOL"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7406 $as_echo "$OTOOL" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7409 $as_echo "no
" >&6; }
7414 if test -z "$ac_cv_prog_OTOOL"; then
7416 # Extract the first word of "otool
", so it can be a program name with args.
7417 set dummy otool; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7419 $as_echo_n "checking
for $ac_word...
" >&6; }
7420 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7421 $as_echo_n "(cached
) " >&6
7423 if test -n "$ac_ct_OTOOL"; then
7424 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_ac_ct_OTOOL="otool
"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7443 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7444 if test -n "$ac_ct_OTOOL"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7446 $as_echo "$ac_ct_OTOOL" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7449 $as_echo "no
" >&6; }
7452 if test "x
$ac_ct_OTOOL" = x; then
7455 case $cross_compiling:$ac_tool_warned in
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7458 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7459 ac_tool_warned=yes ;;
7464 OTOOL="$ac_cv_prog_OTOOL"
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7469 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7471 $as_echo_n "checking
for $ac_word...
" >&6; }
7472 if ${ac_cv_prog_OTOOL64+:} false; then :
7473 $as_echo_n "(cached
) " >&6
7475 if test -n "$OTOOL64"; then
7476 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7495 OTOOL64=$ac_cv_prog_OTOOL64
7496 if test -n "$OTOOL64"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7498 $as_echo "$OTOOL64" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7501 $as_echo "no
" >&6; }
7506 if test -z "$ac_cv_prog_OTOOL64"; then
7507 ac_ct_OTOOL64=$OTOOL64
7508 # Extract the first word of "otool64
", so it can be a program name with args.
7509 set dummy otool64; ac_word=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7511 $as_echo_n "checking
for $ac_word...
" >&6; }
7512 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7513 $as_echo_n "(cached
) " >&6
7515 if test -n "$ac_ct_OTOOL64"; then
7516 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7535 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7536 if test -n "$ac_ct_OTOOL64"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7538 $as_echo "$ac_ct_OTOOL64" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7541 $as_echo "no
" >&6; }
7544 if test "x
$ac_ct_OTOOL64" = x; then
7547 case $cross_compiling:$ac_tool_warned in
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7550 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7551 ac_tool_warned=yes ;;
7553 OTOOL64=$ac_ct_OTOOL64
7556 OTOOL64="$ac_cv_prog_OTOOL64"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7586 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7587 if ${lt_cv_apple_cc_single_mod+:} false; then :
7588 $as_echo_n "(cached
) " >&6
7590 lt_cv_apple_cc_single_mod=no
7591 if test -z "${LT_MULTI_MODULE}"; then
7592 # By default we will add the -single_module flag. You can override
7593 # by either setting the environment variable LT_MULTI_MODULE
7594 # non-empty at configure time, or by adding -multi_module to the
7596 rm -rf libconftest.dylib*
7597 echo "int foo
(void
){return 1;}" > conftest.c
7598 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7599 -dynamiclib -Wl,-single_module conftest.c
" >&5
7600 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7601 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7603 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7604 lt_cv_apple_cc_single_mod=yes
7606 cat conftest.err >&5
7608 rm -rf libconftest.dylib*
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7613 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7615 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7616 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7617 $as_echo_n "(cached
) " >&6
7619 lt_cv_ld_exported_symbols_list=no
7620 save_LDFLAGS=$LDFLAGS
7621 echo "_main
" > conftest.sym
7622 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 lt_cv_ld_exported_symbols_list=yes
7637 lt_cv_ld_exported_symbols_list=no
7639 rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 LDFLAGS="$save_LDFLAGS"
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7645 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7647 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7648 if ${lt_cv_ld_force_load+:} false; then :
7649 $as_echo_n "(cached
) " >&6
7651 lt_cv_ld_force_load=no
7652 cat > conftest.c << _LT_EOF
7653 int forced_loaded() { return 2;}
7655 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7656 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7657 echo "$AR cru libconftest.a conftest.o
" >&5
7658 $AR cru libconftest.a conftest.o 2>&5
7659 cat > conftest.c << _LT_EOF
7660 int main() { return 0;}
7662 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7663 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7665 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7666 lt_cv_ld_force_load=yes
7668 cat conftest.err >&5
7670 rm -f conftest.err libconftest.a conftest conftest.c
7671 rm -rf conftest.dSYM
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7675 $as_echo "$lt_cv_ld_force_load" >&6; }
7677 rhapsody* | darwin1.[012])
7678 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7680 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7681 darwin*) # darwin 5.x on
7682 # if running on 10.5 or later, the deployment target defaults
7683 # to the OS version, if on x86, and 10.4, the deployment
7684 # target defaults to 10.4. Don't you love it?
7685 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7686 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7687 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7689 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7691 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7695 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7696 _lt_dar_single_mod='$single_module'
7698 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7699 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7701 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7703 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7704 _lt_dsymutil='~$DSYMUTIL $lib || :'
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7717 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7718 # On Suns, sometimes $CPP names a directory.
7719 if test -n "$CPP" && test -d "$CPP"; then
7722 if test -z "$CPP"; then
7723 if ${ac_cv_prog_CPP+:} false; then :
7724 $as_echo_n "(cached
) " >&6
7726 # Double quotes because CPP needs to be expanded
7727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7730 for ac_c_preproc_warn_flag in '' yes
7732 # Use a header file that comes with gcc, so configuring glibc
7733 # with a fresh cross-compiler works.
7734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7735 # <limits.h> exists even on freestanding compilers.
7736 # On the NeXT, cc -E runs the code through the compiler's parser,
7737 # not just through cpp. "Syntax error
" is here to catch this case.
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7741 # include <limits.h>
7743 # include <assert.h>
7747 if ac_fn_c_try_cpp "$LINENO"; then :
7750 # Broken: fails on valid input.
7753 rm -f conftest.err conftest.i conftest.$ac_ext
7755 # OK, works on sane cases. Now check whether nonexistent headers
7756 # can be detected and how.
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #include <ac_nonexistent.h>
7761 if ac_fn_c_try_cpp "$LINENO"; then :
7762 # Broken: success on invalid input.
7765 # Passes both tests.
7769 rm -f conftest.err conftest.i conftest.$ac_ext
7772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7773 rm -f conftest.i conftest.err conftest.$ac_ext
7774 if $ac_preproc_ok; then :
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7787 $as_echo "$CPP" >&6; }
7789 for ac_c_preproc_warn_flag in '' yes
7791 # Use a header file that comes with gcc, so configuring glibc
7792 # with a fresh cross-compiler works.
7793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7794 # <limits.h> exists even on freestanding compilers.
7795 # On the NeXT, cc -E runs the code through the compiler's parser,
7796 # not just through cpp. "Syntax error
" is here to catch this case.
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7800 # include <limits.h>
7802 # include <assert.h>
7806 if ac_fn_c_try_cpp "$LINENO"; then :
7809 # Broken: fails on valid input.
7812 rm -f conftest.err conftest.i conftest.$ac_ext
7814 # OK, works on sane cases. Now check whether nonexistent headers
7815 # can be detected and how.
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7818 #include <ac_nonexistent.h>
7820 if ac_fn_c_try_cpp "$LINENO"; then :
7821 # Broken: success on invalid input.
7824 # Passes both tests.
7828 rm -f conftest.err conftest.i conftest.$ac_ext
7831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7832 rm -f conftest.i conftest.err conftest.$ac_ext
7833 if $ac_preproc_ok; then :
7836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7838 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7839 See \`config.log' for more details
" "$LINENO" 5; }
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7850 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7851 if ${ac_cv_header_stdc+:} false; then :
7852 $as_echo_n "(cached
) " >&6
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7869 if ac_fn_c_try_compile "$LINENO"; then :
7870 ac_cv_header_stdc=yes
7872 ac_cv_header_stdc=no
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 if test $ac_cv_header_stdc = yes; then
7877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7883 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7884 $EGREP "memchr
" >/dev/null 2>&1; then :
7887 ac_cv_header_stdc=no
7893 if test $ac_cv_header_stdc = yes; then
7894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7900 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7901 $EGREP "free
" >/dev/null 2>&1; then :
7904 ac_cv_header_stdc=no
7910 if test $ac_cv_header_stdc = yes; then
7911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7912 if test "$cross_compiling" = yes; then :
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7919 #if ((' ' & 0x0FF) == 0x020)
7920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7923 # define ISLOWER(c) \
7924 (('a' <= (c) && (c) <= 'i') \
7925 || ('j' <= (c) && (c) <= 'r') \
7926 || ('s' <= (c) && (c) <= 'z'))
7927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7935 for (i = 0; i < 256; i++)
7936 if (XOR (islower (i), ISLOWER (i))
7937 || toupper (i) != TOUPPER (i))
7942 if ac_fn_c_try_run "$LINENO"; then :
7945 ac_cv_header_stdc=no
7947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7948 conftest.$ac_objext conftest.beam conftest.$ac_ext
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7954 $as_echo "$ac_cv_header_stdc" >&6; }
7955 if test $ac_cv_header_stdc = yes; then
7957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7962 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7963 inttypes.h stdint.h unistd.h
7965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7966 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7968 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7969 cat >>confdefs.h
<<_ACEOF
7970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7978 for ac_header
in dlfcn.h
7980 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7982 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7983 cat >>confdefs.h
<<_ACEOF
7984 #define HAVE_DLFCN_H 1
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7993 set dummy
${ac_tool_prefix}gccgo
; ac_word
=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_GOC+:} false
; then :
7997 $as_echo_n "(cached) " >&6
7999 if test -n "$GOC"; then
8000 ac_cv_prog_GOC
="$GOC" # Let the user override the test.
8002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir
=.
8007 for ac_exec_ext
in '' $ac_executable_extensions; do
8008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_GOC
="${ac_tool_prefix}gccgo"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 if test -n "$GOC"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
8022 $as_echo "$GOC" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 if test -z "$ac_cv_prog_GOC"; then
8032 # Extract the first word of "gccgo", so it can be a program name with args.
8033 set dummy gccgo
; ac_word
=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_GOC+:} false
; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$ac_ct_GOC"; then
8040 ac_cv_prog_ac_ct_GOC
="$ac_ct_GOC" # Let the user override the test.
8042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir
=.
8047 for ac_exec_ext
in '' $ac_executable_extensions; do
8048 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8049 ac_cv_prog_ac_ct_GOC
="gccgo"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 ac_ct_GOC
=$ac_cv_prog_ac_ct_GOC
8060 if test -n "$ac_ct_GOC"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
8062 $as_echo "$ac_ct_GOC" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8068 if test "x$ac_ct_GOC" = x
; then
8071 case $cross_compiling:$ac_tool_warned in
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned
=yes ;;
8080 GOC
="$ac_cv_prog_GOC"
8096 # Check whether --enable-shared was given.
8097 if test "${enable_shared+set}" = set; then :
8098 enableval
=$enable_shared; p
=${PACKAGE-default}
8100 yes) enable_shared
=yes ;;
8101 no
) enable_shared
=no
;;
8104 # Look at the argument we got. We use all the common list separators.
8105 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8106 for pkg
in $enableval; do
8108 if test "X$pkg" = "X$p"; then
8127 # Check whether --enable-static was given.
8128 if test "${enable_static+set}" = set; then :
8129 enableval
=$enable_static; p
=${PACKAGE-default}
8131 yes) enable_static
=yes ;;
8132 no
) enable_static
=no
;;
8135 # Look at the argument we got. We use all the common list separators.
8136 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8137 for pkg
in $enableval; do
8139 if test "X$pkg" = "X$p"; then
8159 # Check whether --with-pic was given.
8160 if test "${with_pic+set}" = set; then :
8161 withval
=$with_pic; pic_mode
="$withval"
8167 test -z "$pic_mode" && pic_mode
=default
8175 # Check whether --enable-fast-install was given.
8176 if test "${enable_fast_install+set}" = set; then :
8177 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8179 yes) enable_fast_install
=yes ;;
8180 no
) enable_fast_install
=no
;;
8182 enable_fast_install
=no
8183 # Look at the argument we got. We use all the common list separators.
8184 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8185 for pkg
in $enableval; do
8187 if test "X$pkg" = "X$p"; then
8188 enable_fast_install
=yes
8195 enable_fast_install
=yes
8208 # This can be used to rebuild libtool when needed
8209 LIBTOOL_DEPS
="$ltmain"
8211 # Always use our own libtool.
8212 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8239 test -z "$LN_S" && LN_S
="ln -s"
8254 if test -n "${ZSH_VERSION+set}" ; then
8255 setopt NO_GLOB_SUBST
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8259 $as_echo_n "checking for objdir... " >&6; }
8260 if ${lt_cv_objdir+:} false
; then :
8261 $as_echo_n "(cached) " >&6
8263 rm -f .libs
2>/dev
/null
8264 mkdir .libs
2>/dev
/null
8265 if test -d .libs
; then
8268 # MS-DOS does not allow filenames that begin with a dot.
8271 rmdir .libs
2>/dev
/null
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8274 $as_echo "$lt_cv_objdir" >&6; }
8275 objdir
=$lt_cv_objdir
8281 cat >>confdefs.h
<<_ACEOF
8282 #define LT_OBJDIR "$lt_cv_objdir/"
8290 # AIX sometimes has problems with the GCC collect2 program. For some
8291 # reason, if we set the COLLECT_NAMES environment variable, the problems
8292 # vanish in a puff of smoke.
8293 if test "X${COLLECT_NAMES+set}" != Xset
; then
8295 export COLLECT_NAMES
8302 can_build_shared
=yes
8304 # All known linkers require a `.a' archive for static linking (except MSVC,
8305 # which needs '.lib').
8308 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8311 old_CFLAGS
="$CFLAGS"
8313 # Set sane defaults for various variables
8314 test -z "$CC" && CC
=cc
8315 test -z "$LTCC" && LTCC
=$CC
8316 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8317 test -z "$LD" && LD
=ld
8318 test -z "$ac_objext" && ac_objext
=o
8320 for cc_temp
in $compiler""; do
8322 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8323 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8328 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8331 # Only perform the check for file, if the check method requires it
8332 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8333 case $deplibs_check_method in
8335 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8337 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8338 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8339 $as_echo_n "(cached) " >&6
8343 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8346 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8347 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8348 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8349 for ac_dir
in $ac_dummy; do
8351 test -z "$ac_dir" && ac_dir
=.
8352 if test -f $ac_dir/${ac_tool_prefix}file; then
8353 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8354 if test -n "$file_magic_test_file"; then
8355 case $deplibs_check_method in
8357 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8358 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8359 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8360 $EGREP "$file_magic_regex" > /dev
/null
; then
8365 *** Warning: the command libtool uses to detect shared libraries,
8366 *** $file_magic_cmd, produces output that libtool cannot recognize.
8367 *** The result is that libtool may fail to recognize shared libraries
8368 *** as such. This will affect the creation of libtool libraries that
8369 *** depend on shared libraries, but programs linked with such libtool
8370 *** libraries will work regardless of this problem. Nevertheless, you
8371 *** may want to report the problem to your system manager and/or to
8372 *** bug-libtool@gnu.org
8382 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8387 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8388 if test -n "$MAGIC_CMD"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8390 $as_echo "$MAGIC_CMD" >&6; }
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8400 if test -z "$lt_cv_path_MAGIC_CMD"; then
8401 if test -n "$ac_tool_prefix"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8403 $as_echo_n "checking for file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8405 $as_echo_n "(cached) " >&6
8409 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8412 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8413 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8414 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8415 for ac_dir
in $ac_dummy; do
8417 test -z "$ac_dir" && ac_dir
=.
8418 if test -f $ac_dir/file; then
8419 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8420 if test -n "$file_magic_test_file"; then
8421 case $deplibs_check_method in
8423 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8425 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8426 $EGREP "$file_magic_regex" > /dev
/null
; then
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such. This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem. Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8448 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8453 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8472 # Use C for the default configuration in the libtool script
8476 ac_cpp
='$CPP $CPPFLAGS'
8477 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8482 # Source file extension for C test sources.
8485 # Object file extension for compiled C test sources.
8489 # Code to be used in simple compile tests
8490 lt_simple_compile_test_code
="int some_variable = 0;"
8492 # Code to be used in simple link tests
8493 lt_simple_link_test_code
='int main(){return(0);}'
8501 # If no C compiler was specified, use CC.
8504 # If no C compiler flags were specified, use CFLAGS.
8505 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8507 # Allow CC to be a program name with arguments.
8510 # Save the default compiler, since it gets overwritten when the other
8511 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8512 compiler_DEFAULT
=$CC
8514 # save warnings/boilerplate of simple test code
8515 ac_outfile
=conftest.
$ac_objext
8516 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8517 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8518 _lt_compiler_boilerplate
=`cat conftest.err`
8521 ac_outfile
=conftest.
$ac_objext
8522 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8523 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8524 _lt_linker_boilerplate
=`cat conftest.err`
8529 ## There is no encapsulation within the following macros, do not change
8530 ## the running order or otherwise move them around unless you know exactly
8531 ## what you are doing...
8532 if test -n "$compiler"; then
8534 lt_prog_compiler_no_builtin_flag
=
8536 if test "$GCC" = yes; then
8537 case $cc_basename in
8539 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8541 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8545 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8546 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8547 $as_echo_n "(cached) " >&6
8549 lt_cv_prog_compiler_rtti_exceptions
=no
8550 ac_outfile
=conftest.
$ac_objext
8551 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8552 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8553 # Insert the option either (1) after the last *FLAGS variable, or
8554 # (2) before a word containing "conftest.", or (3) at the end.
8555 # Note that $ac_compile itself does not contain backslashes and begins
8556 # with a dollar sign (not a hyphen), so the echo should work correctly.
8557 # The option is referenced via a variable to avoid confusing sed.
8558 lt_compile
=`echo "$ac_compile" | $SED \
8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561 -e 's:$: $lt_compiler_flag:'`
8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563 (eval "$lt_compile" 2>conftest.err
)
8565 cat conftest.err
>&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 if (exit $ac_status) && test -s "$ac_outfile"; then
8568 # The compiler can only warn and ignore the option if not recognized
8569 # So say no if there are warnings other than the usual output.
8570 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8571 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8572 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8573 lt_cv_prog_compiler_rtti_exceptions
=yes
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8582 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8583 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8595 lt_prog_compiler_wl
=
8596 lt_prog_compiler_pic
=
8597 lt_prog_compiler_static
=
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8602 if test "$GCC" = yes; then
8603 lt_prog_compiler_wl
='-Wl,'
8604 lt_prog_compiler_static
='-static'
8608 # All AIX code is PIC.
8609 if test "$host_cpu" = ia64
; then
8610 # AIX 5 now supports IA64 processor
8611 lt_prog_compiler_static
='-Bstatic'
8613 lt_prog_compiler_pic
='-fPIC'
8619 # see comment about AmigaOS4 .so support
8620 lt_prog_compiler_pic
='-fPIC'
8623 # FIXME: we need at least 68020 code to build shared libraries, but
8624 # adding the `-m68020' flag to GCC prevents building anything better,
8626 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8631 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8632 # PIC is the default for these OSes.
8635 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8636 # This hack is so that the source file can tell whether it is being
8637 # built for inclusion in a dll (and should export symbols for example).
8638 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8639 # (--disable-auto-import) libraries
8640 lt_prog_compiler_pic
='-DDLL_EXPORT'
8643 darwin
* | rhapsody
*)
8644 # PIC is the default on this platform
8645 # Common symbols not allowed in MH_DYLIB files
8646 lt_prog_compiler_pic
='-fno-common'
8650 # PIC is the default for Haiku.
8651 # The "-static" flag exists, but is broken.
8652 lt_prog_compiler_static
=
8656 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8657 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8658 # sets the default TLS model and affects inlining.
8664 lt_prog_compiler_pic
='-fPIC'
8670 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8671 # Instead, we relocate shared libraries at runtime.
8675 # Just because we use GCC doesn't mean we suddenly get shared libraries
8676 # on systems that don't support them.
8677 lt_prog_compiler_can_build_shared
=no
8682 # QNX uses GNU C++, but need to define -shared option too, otherwise
8684 lt_prog_compiler_pic
='-fPIC -shared'
8688 if test -d /usr
/nec
; then
8689 lt_prog_compiler_pic
=-Kconform_pic
8694 lt_prog_compiler_pic
='-fPIC'
8698 case $cc_basename in
8699 nvcc
*) # Cuda Compiler Driver 2.2
8700 lt_prog_compiler_wl
='-Xlinker '
8701 lt_prog_compiler_pic
='-Xcompiler -fPIC'
8705 # PORTME Check for flag to pass linker flags through the system compiler.
8708 lt_prog_compiler_wl
='-Wl,'
8709 if test "$host_cpu" = ia64
; then
8710 # AIX 5 now supports IA64 processor
8711 lt_prog_compiler_static
='-Bstatic'
8713 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8717 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8718 # This hack is so that the source file can tell whether it is being
8719 # built for inclusion in a dll (and should export symbols for example).
8720 lt_prog_compiler_pic
='-DDLL_EXPORT'
8723 hpux9
* | hpux10
* | hpux11
*)
8724 lt_prog_compiler_wl
='-Wl,'
8725 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8732 lt_prog_compiler_pic
='+Z'
8735 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8736 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8739 irix5
* | irix6
* | nonstopux
*)
8740 lt_prog_compiler_wl
='-Wl,'
8741 # PIC (with -KPIC) is the default.
8742 lt_prog_compiler_static
='-non_shared'
8745 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8746 case $cc_basename in
8747 # old Intel for x86_64 which still supported -KPIC.
8749 lt_prog_compiler_wl
='-Wl,'
8750 lt_prog_compiler_pic
='-KPIC'
8751 lt_prog_compiler_static
='-static'
8753 # icc used to be incompatible with GCC.
8754 # ICC 10 doesn't accept -KPIC any more.
8756 lt_prog_compiler_wl
='-Wl,'
8757 lt_prog_compiler_pic
='-fPIC'
8758 lt_prog_compiler_static
='-static'
8760 # Lahey Fortran 8.1.
8762 lt_prog_compiler_wl
='-Wl,'
8763 lt_prog_compiler_pic
='--shared'
8764 lt_prog_compiler_static
='--static'
8766 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8767 # Portland Group compilers (*not* the Pentium gcc compiler,
8768 # which looks to be a dead project)
8769 lt_prog_compiler_wl
='-Wl,'
8770 lt_prog_compiler_pic
='-fpic'
8771 lt_prog_compiler_static
='-Bstatic'
8774 lt_prog_compiler_wl
='-Wl,'
8775 # All Alpha code is PIC.
8776 lt_prog_compiler_static
='-non_shared'
8778 xl
* | bgxl
* | bgf
* | mpixl
*)
8779 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780 lt_prog_compiler_wl
='-Wl,'
8781 lt_prog_compiler_pic
='-qpic'
8782 lt_prog_compiler_static
='-qstaticlink'
8785 case `$CC -V 2>&1 | sed 5q` in
8786 *Sun\ F
* |
*Sun
*Fortran
*)
8787 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788 lt_prog_compiler_pic
='-KPIC'
8789 lt_prog_compiler_static
='-Bstatic'
8790 lt_prog_compiler_wl
=''
8794 lt_prog_compiler_pic
='-KPIC'
8795 lt_prog_compiler_static
='-Bstatic'
8796 lt_prog_compiler_wl
='-Wl,'
8804 lt_prog_compiler_pic
='-KPIC'
8805 lt_prog_compiler_static
='-Bstatic'
8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
8811 lt_prog_compiler_pic
='-fPIC -shared'
8814 osf3
* | osf4
* | osf5
*)
8815 lt_prog_compiler_wl
='-Wl,'
8816 # All OSF/1 code is PIC.
8817 lt_prog_compiler_static
='-non_shared'
8821 lt_prog_compiler_static
='-non_shared'
8825 lt_prog_compiler_pic
='-KPIC'
8826 lt_prog_compiler_static
='-Bstatic'
8827 case $cc_basename in
8829 lt_prog_compiler_wl
='-Qoption ld ';;
8831 lt_prog_compiler_wl
='-Wl,';;
8836 lt_prog_compiler_wl
='-Qoption ld '
8837 lt_prog_compiler_pic
='-PIC'
8838 lt_prog_compiler_static
='-Bstatic'
8841 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8842 lt_prog_compiler_wl
='-Wl,'
8843 lt_prog_compiler_pic
='-KPIC'
8844 lt_prog_compiler_static
='-Bstatic'
8848 if test -d /usr
/nec
;then
8849 lt_prog_compiler_pic
='-Kconform_pic'
8850 lt_prog_compiler_static
='-Bstatic'
8854 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8855 lt_prog_compiler_wl
='-Wl,'
8856 lt_prog_compiler_pic
='-KPIC'
8857 lt_prog_compiler_static
='-Bstatic'
8861 lt_prog_compiler_wl
='-Wl,'
8862 lt_prog_compiler_can_build_shared
=no
8866 lt_prog_compiler_pic
='-pic'
8867 lt_prog_compiler_static
='-Bstatic'
8871 lt_prog_compiler_can_build_shared
=no
8877 # For platforms which do not support PIC, -DPIC is meaningless:
8879 lt_prog_compiler_pic
=
8882 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8886 $as_echo "$lt_prog_compiler_pic" >&6; }
8894 # Check to make sure the PIC flag actually works.
8896 if test -n "$lt_prog_compiler_pic"; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8898 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8899 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler_pic_works
=no
8903 ac_outfile
=conftest.
$ac_objext
8904 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8905 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8906 # Insert the option either (1) after the last *FLAGS variable, or
8907 # (2) before a word containing "conftest.", or (3) at the end.
8908 # Note that $ac_compile itself does not contain backslashes and begins
8909 # with a dollar sign (not a hyphen), so the echo should work correctly.
8910 # The option is referenced via a variable to avoid confusing sed.
8911 lt_compile
=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916 (eval "$lt_compile" 2>conftest.err
)
8918 cat conftest.err
>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 if (exit $ac_status) && test -s "$ac_outfile"; then
8921 # The compiler can only warn and ignore the option if not recognized
8922 # So say no if there are warnings other than the usual output.
8923 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8924 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8925 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8926 lt_cv_prog_compiler_pic_works
=yes
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8933 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8935 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8936 case $lt_prog_compiler_pic in
8938 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8941 lt_prog_compiler_pic
=
8942 lt_prog_compiler_can_build_shared
=no
8953 # Check to make sure the static flag actually works.
8955 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8957 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8958 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8959 $as_echo_n "(cached) " >&6
8961 lt_cv_prog_compiler_static_works
=no
8962 save_LDFLAGS
="$LDFLAGS"
8963 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8964 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8965 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8966 # The linker can only warn and ignore the option if not recognized
8967 # So say no if there are warnings
8968 if test -s conftest.err
; then
8969 # Append any errors to the config.log.
8970 cat conftest.err
1>&5
8971 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8972 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8973 if diff conftest.exp conftest.er2
>/dev
/null
; then
8974 lt_cv_prog_compiler_static_works
=yes
8977 lt_cv_prog_compiler_static_works
=yes
8981 LDFLAGS
="$save_LDFLAGS"
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8985 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8987 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8990 lt_prog_compiler_static
=
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9001 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9002 $as_echo_n "(cached) " >&6
9004 lt_cv_prog_compiler_c_o
=no
9005 $RM -r conftest
2>/dev
/null
9009 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9011 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9012 # Insert the option either (1) after the last *FLAGS variable, or
9013 # (2) before a word containing "conftest.", or (3) at the end.
9014 # Note that $ac_compile itself does not contain backslashes and begins
9015 # with a dollar sign (not a hyphen), so the echo should work correctly.
9016 lt_compile
=`echo "$ac_compile" | $SED \
9017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9019 -e 's:$: $lt_compiler_flag:'`
9020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9021 (eval "$lt_compile" 2>out
/conftest.err
)
9023 cat out
/conftest.err
>&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9027 # The compiler can only warn and ignore the option if not recognized
9028 # So say no if there are warnings
9029 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9030 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9031 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9032 lt_cv_prog_compiler_c_o
=yes
9037 # SGI C++ compiler will create directory out/ii_files/ for
9038 # template instantiation
9039 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9040 $RM out
/* && rmdir out
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9047 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9056 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9057 $as_echo_n "(cached) " >&6
9059 lt_cv_prog_compiler_c_o
=no
9060 $RM -r conftest
2>/dev
/null
9064 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9066 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 lt_compile
=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>out
/conftest.err
)
9078 cat out
/conftest.err
>&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings
9084 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9085 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9086 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9087 lt_cv_prog_compiler_c_o
=yes
9092 # SGI C++ compiler will create directory out/ii_files/ for
9093 # template instantiation
9094 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9095 $RM out
/* && rmdir out
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9102 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9107 hard_links
="nottested"
9108 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9109 # do not overwrite the value of need_locks provided by the user
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9111 $as_echo_n "checking if we can lock with hard links... " >&6; }
9114 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9116 ln conftest.a conftest.b
2>&5 || hard_links
=no
9117 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9119 $as_echo "$hard_links" >&6; }
9120 if test "$hard_links" = no
; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9122 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9135 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9138 allow_undefined_flag
=
9139 always_export_symbols
=no
9141 archive_expsym_cmds
=
9142 compiler_needs_object
=no
9143 enable_shared_with_static_runtimes
=no
9144 export_dynamic_flag_spec
=
9145 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9146 hardcode_automatic
=no
9148 hardcode_direct_absolute
=no
9149 hardcode_libdir_flag_spec
=
9150 hardcode_libdir_flag_spec_ld
=
9151 hardcode_libdir_separator
=
9153 hardcode_shlibpath_var
=unsupported
9155 link_all_deplibs
=unknown
9158 old_archive_from_new_cmds
=
9159 old_archive_from_expsyms_cmds
=
9160 thread_safe_flag_spec
=
9161 whole_archive_flag_spec
=
9162 # include_expsyms should be a list of space-separated symbols to be *always*
9163 # included in the symbol list
9165 # exclude_expsyms can be an extended regexp of symbols to exclude
9166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9168 # as well as any symbol that contains `d'.
9169 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9171 # platforms (ab)use it in PIC code, but their linkers get confused if
9172 # the symbol is explicitly referenced. Since portable code cannot
9173 # rely on this symbol name, it's probably fine to never include it in
9174 # preloaded symbol tables.
9175 # Exclude shared library initialization/finalization symbols.
9176 extract_expsyms_cmds
=
9179 cygwin
* | mingw
* | pw32
* | cegcc
*)
9180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9181 # When not using gcc, we currently assume that we are using
9182 # Microsoft Visual C++.
9183 if test "$GCC" != yes; then
9188 # we just hope/assume this is gcc and not c89 (= MSVC++)
9198 # On some targets, GNU ld is compatible enough with the native linker
9199 # that we're better off using the native interface for both.
9200 lt_use_gnu_ld_interface
=no
9201 if test "$with_gnu_ld" = yes; then
9204 # The AIX port of GNU ld has always aspired to compatibility
9205 # with the native linker. However, as the warning in the GNU ld
9206 # block says, versions before 2.19.5* couldn't really create working
9207 # shared libraries, regardless of the interface used.
9208 case `$LD -v 2>&1` in
9209 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9210 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9211 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9213 lt_use_gnu_ld_interface
=yes
9218 lt_use_gnu_ld_interface
=yes
9223 if test "$lt_use_gnu_ld_interface" = yes; then
9224 # If archive_cmds runs LD, not CC, wlarc should be empty
9227 # Set some defaults for GNU ld with shared library support. These
9228 # are reset later if shared libraries are not supported. Putting them
9229 # here allows them to be overridden if necessary.
9230 runpath_var
=LD_RUN_PATH
9231 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9232 export_dynamic_flag_spec
='${wl}--export-dynamic'
9233 # ancient GNU ld didn't support --whole-archive et. al.
9234 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9235 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9237 whole_archive_flag_spec
=
9239 supports_anon_versioning
=no
9240 case `$LD -v 2>&1` in
9241 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9242 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9243 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9244 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9245 *\
2.11.
*) ;; # other 2.11 versions
9246 *) supports_anon_versioning
=yes ;;
9249 # See if GNU ld supports shared libraries.
9252 # On AIX/PPC, the GNU linker is very broken
9253 if test "$host_cpu" != ia64
; then
9257 *** Warning: the GNU linker, at least up to release 2.19, is reported
9258 *** to be unable to reliably create shared libraries on AIX.
9259 *** Therefore, libtool is disabling shared libraries support. If you
9260 *** really care for shared libraries, you may want to install binutils
9261 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9262 *** You will then need to restart the configuration process.
9271 # see comment about AmigaOS4 .so support
9272 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 archive_expsym_cmds
=''
9276 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)'
9277 hardcode_libdir_flag_spec
='-L$libdir'
9278 hardcode_minus_L
=yes
9284 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9285 allow_undefined_flag
=unsupported
9286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9287 # support --undefined. This deserves some investigation. FIXME
9288 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 cygwin
* | mingw
* | pw32
* | cegcc
*)
9295 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9296 # as there is no search path for DLLs.
9297 hardcode_libdir_flag_spec
='-L$libdir'
9298 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9299 allow_undefined_flag
=unsupported
9300 always_export_symbols
=no
9301 enable_shared_with_static_runtimes
=yes
9302 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9304 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9305 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9306 # If the export-symbols file already is a .def file (1st line
9307 # is EXPORTS), use it as is; otherwise, prepend...
9308 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9309 cp $export_symbols $output_objdir/$soname.def;
9311 echo EXPORTS > $output_objdir/$soname.def;
9312 cat $export_symbols >> $output_objdir/$soname.def;
9314 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9321 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322 link_all_deplibs
=yes
9327 hardcode_shlibpath_var
=no
9328 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9329 export_dynamic_flag_spec
='${wl}-E'
9330 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9331 # Instead, shared libraries are loaded at an image base (0x10000000 by
9332 # default) and relocated if they conflict, which is a slow very memory
9333 # consuming and fragmenting process. To avoid this, we pick a random,
9334 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9335 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9336 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9337 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'
9340 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9342 if test "$host_os" = linux-dietlibc
; then
9343 case $cc_basename in
9344 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9347 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9348 && test "$tmp_diet" = no
9351 tmp_sharedflag
='-shared'
9352 case $cc_basename,$host_cpu in
9353 pgcc
*) # Portland Group C compiler
9354 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'
9355 tmp_addflag
=' $pic_flag'
9357 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9358 # Portland Group f77 and f90 compilers
9359 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'
9360 tmp_addflag
=' $pic_flag -Mnomain' ;;
9361 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9362 tmp_addflag
=' -i_dynamic' ;;
9363 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9364 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9365 ifc
* | ifort
*) # Intel Fortran compiler
9366 tmp_addflag
=' -nofor_main' ;;
9367 lf95
*) # Lahey Fortran 8.1
9368 whole_archive_flag_spec
=
9369 tmp_sharedflag
='--shared' ;;
9370 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9371 tmp_sharedflag
='-qmkshrobj'
9373 nvcc
*) # Cuda Compiler Driver 2.2
9374 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'
9375 compiler_needs_object
=yes
9378 case `$CC -V 2>&1 | sed 5q` in
9379 *Sun\ C
*) # Sun C 5.9
9380 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'
9381 compiler_needs_object
=yes
9382 tmp_sharedflag
='-G' ;;
9383 *Sun\ F
*) # Sun Fortran 8.3
9384 tmp_sharedflag
='-G' ;;
9386 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388 if test "x$supports_anon_versioning" = xyes
; then
9389 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9390 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9391 echo "local: *; };" >> $output_objdir/$libname.ver~
9392 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9395 case $cc_basename in
9396 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9397 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9398 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9399 hardcode_libdir_flag_spec
=
9400 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9401 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9402 if test "x$supports_anon_versioning" = xyes
; then
9403 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9405 echo "local: *; };" >> $output_objdir/$libname.ver~
9406 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9416 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9417 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9420 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9426 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9430 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9431 *** create shared libraries on Solaris systems. Therefore, libtool
9432 *** is disabling shared libraries support. We urge you to upgrade GNU
9433 *** binutils to release 2.9.1 or newer. Another option is to modify
9434 *** your PATH or compiler configuration so that the native linker is
9435 *** used, and then restart.
9438 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9439 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9446 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9447 case `$LD -v 2>&1` in
9448 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9452 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9453 *** reliably create shared libraries on SCO systems. Therefore, libtool
9454 *** is disabling shared libraries support. We urge you to upgrade GNU
9455 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9456 *** your PATH or compiler configuration so that the native linker is
9457 *** used, and then restart.
9462 # For security reasons, it is highly recommended that you always
9463 # use absolute paths for naming shared libraries, and exclude the
9464 # DT_RUNPATH tag from executables and libraries. But doing so
9465 # requires that you compile everything twice, which is a pain.
9466 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9467 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9468 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9478 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9481 hardcode_shlibpath_var
=no
9485 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9486 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494 if test "$ld_shlibs" = no
; then
9496 hardcode_libdir_flag_spec
=
9497 export_dynamic_flag_spec
=
9498 whole_archive_flag_spec
=
9501 # PORTME fill in a description of your system's linker (not GNU ld)
9504 allow_undefined_flag
=unsupported
9505 always_export_symbols
=yes
9506 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'
9507 # Note: this linker hardcodes the directories in LIBPATH if there
9508 # are no directories specified by -L.
9509 hardcode_minus_L
=yes
9510 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9511 # Neither direct hardcoding nor static linking is supported with a
9513 hardcode_direct
=unsupported
9518 if test "$host_cpu" = ia64
; then
9519 # On IA64, the linker does run time linking by default, so we don't
9520 # have to do anything special.
9521 aix_use_runtimelinking
=no
9522 exp_sym_flag
='-Bexport'
9525 # If we're using GNU nm, then we don't want the "-C" option.
9526 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9527 # Also, AIX nm treats weak defined symbols like other global
9528 # defined symbols, whereas GNU nm marks them as "W".
9529 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9530 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'
9532 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'
9534 aix_use_runtimelinking
=no
9536 # Test if we are trying to use run time linking or normal
9537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9538 # need to do runtime linking.
9539 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9540 for ld_flag
in $LDFLAGS; do
9541 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9542 aix_use_runtimelinking
=yes
9549 exp_sym_flag
='-bexport'
9550 no_entry_flag
='-bnoentry'
9553 # When large executables or shared objects are built, AIX ld can
9554 # have problems creating the table of contents. If linking a library
9555 # or program results in "error TOC overflow" add -mminimal-toc to
9556 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9557 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9561 hardcode_direct_absolute
=yes
9562 hardcode_libdir_separator
=':'
9563 link_all_deplibs
=yes
9564 file_list_spec
='${wl}-f,'
9566 if test "$GCC" = yes; then
9567 case $host_os in aix4.
[012]|aix4.
[012].
*)
9568 # We only want to do this on AIX 4.2 and lower, the check
9569 # below for broken collect2 doesn't work under 4.3+
9570 collect2name
=`${CC} -print-prog-name=collect2`
9571 if test -f "$collect2name" &&
9572 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9574 # We have reworked collect2
9577 # We have old collect2
9578 hardcode_direct
=unsupported
9579 # It fails to find uninstalled libraries when the uninstalled
9580 # path is not listed in the libpath. Setting hardcode_minus_L
9581 # to unsupported forces relinking
9582 hardcode_minus_L
=yes
9583 hardcode_libdir_flag_spec
='-L$libdir'
9584 hardcode_libdir_separator
=
9588 shared_flag
='-shared'
9589 if test "$aix_use_runtimelinking" = yes; then
9590 shared_flag
="$shared_flag "'${wl}-G'
9594 if test "$host_cpu" = ia64
; then
9595 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9596 # chokes on -Wl,-G. The following line is correct:
9599 if test "$aix_use_runtimelinking" = yes; then
9600 shared_flag
='${wl}-G'
9602 shared_flag
='${wl}-bM:SRE'
9607 export_dynamic_flag_spec
='${wl}-bexpall'
9608 # It seems that -bexpall does not export symbols beginning with
9609 # underscore (_), so it is better to generate a list of symbols to export.
9610 always_export_symbols
=yes
9611 if test "$aix_use_runtimelinking" = yes; then
9612 # Warning - without using the other runtime loading flags (-brtl),
9613 # -berok will link without error, but may produce a broken library.
9614 allow_undefined_flag
='-berok'
9615 # Determine the default libpath from the value encoded in an
9617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9628 if ac_fn_c_try_link
"$LINENO"; then :
9630 lt_aix_libpath_sed
='
9631 /Import File Strings/,/^$/ {
9637 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 # Check for a 64-bit object if we didn't find anything.
9639 if test -z "$aix_libpath"; then
9640 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643 rm -f core conftest.err conftest.
$ac_objext \
9644 conftest
$ac_exeext conftest.
$ac_ext
9645 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9647 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9648 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"
9650 if test "$host_cpu" = ia64
; then
9651 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9652 allow_undefined_flag
="-z nodefs"
9653 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"
9655 # Determine the default libpath from the value encoded in an
9657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9668 if ac_fn_c_try_link
"$LINENO"; then :
9670 lt_aix_libpath_sed
='
9671 /Import File Strings/,/^$/ {
9677 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678 # Check for a 64-bit object if we didn't find anything.
9679 if test -z "$aix_libpath"; then
9680 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9683 rm -f core conftest.err conftest.
$ac_objext \
9684 conftest
$ac_exeext conftest.
$ac_ext
9685 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9687 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9688 # Warning - without using the other run time loading flags,
9689 # -berok will link without error, but may produce a broken library.
9690 no_undefined_flag
=' ${wl}-bernotok'
9691 allow_undefined_flag
=' ${wl}-berok'
9692 if test "$with_gnu_ld" = yes; then
9693 # We only use this code for GNU lds that support --whole-archive.
9694 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9696 # Exported symbols can be pulled into shared objects from archives
9697 whole_archive_flag_spec
='$convenience'
9699 archive_cmds_need_lc
=yes
9700 # This is similar to how AIX traditionally builds its shared libraries.
9701 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'
9709 # see comment about AmigaOS4 .so support
9710 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711 archive_expsym_cmds
=''
9714 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)'
9715 hardcode_libdir_flag_spec
='-L$libdir'
9716 hardcode_minus_L
=yes
9722 export_dynamic_flag_spec
=-rdynamic
9725 cygwin
* | mingw
* | pw32
* | cegcc
*)
9726 # When not using gcc, we currently assume that we are using
9727 # Microsoft Visual C++.
9728 # hardcode_libdir_flag_spec is actually meaningless, as there is
9729 # no search path for DLLs.
9730 hardcode_libdir_flag_spec
=' '
9731 allow_undefined_flag
=unsupported
9732 # Tell ltmain to make .lib files, not .a files.
9734 # Tell ltmain to make .dll files, not .so files.
9736 # FIXME: Setting linknames here is a bad hack.
9737 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9738 # The linker will automatically build a .lib file if we build a DLL.
9739 old_archive_from_new_cmds
='true'
9740 # FIXME: Should let the user specify the lib program.
9741 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9742 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9743 enable_shared_with_static_runtimes
=yes
9746 darwin
* | rhapsody
*)
9749 archive_cmds_need_lc
=no
9751 hardcode_automatic
=yes
9752 hardcode_shlibpath_var
=unsupported
9753 if test "$lt_cv_ld_force_load" = "yes"; then
9754 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\"`'
9756 whole_archive_flag_spec
=''
9758 link_all_deplibs
=yes
9759 allow_undefined_flag
="$_lt_dar_allow_undefined"
9760 case $cc_basename in
9761 ifort
*) _lt_dar_can_shared
=yes ;;
9762 *) _lt_dar_can_shared
=$GCC ;;
9764 if test "$_lt_dar_can_shared" = "yes"; then
9765 output_verbose_link_cmd
=func_echo_all
9766 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9767 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9768 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}"
9769 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}"
9778 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_libdir_flag_spec
='-L$libdir'
9780 hardcode_shlibpath_var
=no
9783 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9784 # support. Future versions do this automatically, but an explicit c++rt0.o
9785 # does not break anything, and helps significantly (at the cost of a little
9788 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9789 hardcode_libdir_flag_spec
='-R$libdir'
9791 hardcode_shlibpath_var
=no
9794 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_minus_L
=yes
9799 hardcode_shlibpath_var
=no
9802 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9803 freebsd
* | dragonfly
*)
9804 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9805 hardcode_libdir_flag_spec
='-R$libdir'
9807 hardcode_shlibpath_var
=no
9811 if test "$GCC" = yes; then
9812 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'
9814 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'
9816 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9817 hardcode_libdir_separator
=:
9820 # hardcode_minus_L: Not really in the search PATH,
9821 # but as the default location of the library.
9822 hardcode_minus_L
=yes
9823 export_dynamic_flag_spec
='${wl}-E'
9827 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9828 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9832 if test "$with_gnu_ld" = no
; then
9833 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9834 hardcode_libdir_flag_spec_ld
='+b $libdir'
9835 hardcode_libdir_separator
=:
9837 hardcode_direct_absolute
=yes
9838 export_dynamic_flag_spec
='${wl}-E'
9839 # hardcode_minus_L: Not really in the search PATH,
9840 # but as the default location of the library.
9841 hardcode_minus_L
=yes
9846 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9849 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9868 # Older versions of the 11.00 compiler do not understand -b yet
9869 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9871 $as_echo_n "checking if $CC understands -b... " >&6; }
9872 if ${lt_cv_prog_compiler__b+:} false
; then :
9873 $as_echo_n "(cached) " >&6
9875 lt_cv_prog_compiler__b
=no
9876 save_LDFLAGS
="$LDFLAGS"
9877 LDFLAGS
="$LDFLAGS -b"
9878 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9879 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9880 # The linker can only warn and ignore the option if not recognized
9881 # So say no if there are warnings
9882 if test -s conftest.err
; then
9883 # Append any errors to the config.log.
9884 cat conftest.err
1>&5
9885 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9886 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9887 if diff conftest.exp conftest.er2
>/dev
/null
; then
9888 lt_cv_prog_compiler__b
=yes
9891 lt_cv_prog_compiler__b
=yes
9895 LDFLAGS
="$save_LDFLAGS"
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9899 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9901 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9902 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910 if test "$with_gnu_ld" = no
; then
9911 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9912 hardcode_libdir_separator
=:
9917 hardcode_shlibpath_var
=no
9921 hardcode_direct_absolute
=yes
9922 export_dynamic_flag_spec
='${wl}-E'
9924 # hardcode_minus_L: Not really in the search PATH,
9925 # but as the default location of the library.
9926 hardcode_minus_L
=yes
9932 irix5
* | irix6
* | nonstopux
*)
9933 if test "$GCC" = yes; then
9934 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'
9935 # Try to use the -exported_symbol ld option, if it does not
9936 # work, assume that -exports_file does not work either and
9937 # implicitly export all symbols.
9938 save_LDFLAGS
="$LDFLAGS"
9939 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9944 if ac_fn_c_try_link
"$LINENO"; then :
9945 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'
9948 rm -f core conftest.err conftest.
$ac_objext \
9949 conftest
$ac_exeext conftest.
$ac_ext
9950 LDFLAGS
="$save_LDFLAGS"
9952 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'
9953 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'
9955 archive_cmds_need_lc
='no'
9956 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9957 hardcode_libdir_separator
=:
9959 link_all_deplibs
=yes
9963 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9964 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9966 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9968 hardcode_libdir_flag_spec
='-R$libdir'
9970 hardcode_shlibpath_var
=no
9974 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9977 hardcode_libdir_separator
=:
9978 hardcode_shlibpath_var
=no
9985 if test -f /usr
/libexec
/ld.so
; then
9987 hardcode_shlibpath_var
=no
9988 hardcode_direct_absolute
=yes
9989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9990 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9992 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9993 export_dynamic_flag_spec
='${wl}-E'
9996 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9997 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_libdir_flag_spec
='-R$libdir'
10001 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10002 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10012 hardcode_libdir_flag_spec
='-L$libdir'
10013 hardcode_minus_L
=yes
10014 allow_undefined_flag
=unsupported
10015 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'
10016 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10020 if test "$GCC" = yes; then
10021 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10022 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'
10024 allow_undefined_flag
=' -expect_unresolved \*'
10025 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'
10027 archive_cmds_need_lc
='no'
10028 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10029 hardcode_libdir_separator
=:
10032 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10033 if test "$GCC" = yes; then
10034 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10035 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'
10036 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10038 allow_undefined_flag
=' -expect_unresolved \*'
10039 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'
10040 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~
10041 $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'
10043 # Both c and cxx compiler support -rpath directly
10044 hardcode_libdir_flag_spec
='-rpath $libdir'
10046 archive_cmds_need_lc
='no'
10047 hardcode_libdir_separator
=:
10051 no_undefined_flag
=' -z defs'
10052 if test "$GCC" = yes; then
10054 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10056 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10058 case `$CC -V 2>&1` in
10061 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10062 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10067 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10068 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10073 hardcode_libdir_flag_spec
='-R$libdir'
10074 hardcode_shlibpath_var
=no
10076 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10078 # The compiler driver will combine and reorder linker options,
10079 # but understands `-z linker_flag'. GCC discards it without `$wl',
10080 # but is careful enough not to reorder.
10081 # Supported since Solaris 2.6 (maybe 2.5.1?)
10082 if test "$GCC" = yes; then
10083 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10085 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10089 link_all_deplibs
=yes
10093 if test "x$host_vendor" = xsequent
; then
10094 # Use $CC to link under sequent, because it throws in some extra .o
10095 # files that make .init and .fini sections work.
10096 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10100 hardcode_libdir_flag_spec
='-L$libdir'
10101 hardcode_direct
=yes
10102 hardcode_minus_L
=yes
10103 hardcode_shlibpath_var
=no
10107 case $host_vendor in
10109 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10110 hardcode_direct
=yes # is this really true???
10113 ## LD is ld it makes a PLAMLIB
10114 ## CC just makes a GrossModule.
10115 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10116 reload_cmds
='$CC -r -o $output$reload_objs'
10120 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10124 runpath_var
='LD_RUN_PATH'
10125 hardcode_shlibpath_var
=no
10129 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_shlibpath_var
=no
10131 export_dynamic_flag_spec
='-Bexport'
10135 if test -d /usr
/nec
; then
10136 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_shlibpath_var
=no
10138 runpath_var
=LD_RUN_PATH
10139 hardcode_runpath_var
=yes
10144 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10145 no_undefined_flag
='${wl}-z,text'
10146 archive_cmds_need_lc
=no
10147 hardcode_shlibpath_var
=no
10148 runpath_var
='LD_RUN_PATH'
10150 if test "$GCC" = yes; then
10151 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 sysv5
* | sco3.2v5
* | sco5v6
*)
10160 # Note: We can NOT use -z defs as we might desire, because we do not
10161 # link with -lc, and that would cause any symbols used from libc to
10162 # always be unresolved, which means just about no library would
10163 # ever link correctly. If we're not using GNU ld we use -z text
10164 # though, which does catch some bad symbols but isn't as heavy-handed
10166 no_undefined_flag
='${wl}-z,text'
10167 allow_undefined_flag
='${wl}-z,nodefs'
10168 archive_cmds_need_lc
=no
10169 hardcode_shlibpath_var
=no
10170 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10171 hardcode_libdir_separator
=':'
10172 link_all_deplibs
=yes
10173 export_dynamic_flag_spec
='${wl}-Bexport'
10174 runpath_var
='LD_RUN_PATH'
10176 if test "$GCC" = yes; then
10177 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_libdir_flag_spec
='-L$libdir'
10188 hardcode_shlibpath_var
=no
10196 if test x
$host_vendor = xsni
; then
10198 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10199 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10206 $as_echo "$ld_shlibs" >&6; }
10207 test "$ld_shlibs" = no
&& can_build_shared
=no
10209 with_gnu_ld
=$with_gnu_ld
10226 # Do we need to explicitly link libc?
10228 case "x$archive_cmds_need_lc" in
10230 # Assume -lc should be added
10231 archive_cmds_need_lc
=yes
10233 if test "$enable_shared" = yes && test "$GCC" = yes; then
10234 case $archive_cmds in
10236 # FIXME: we may have to deal with multi-command sequences.
10239 # Test whether the compiler implicitly links with -lc since on some
10240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10241 # to ld, don't add -lc before -lgcc.
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10243 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10244 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10245 $as_echo_n "(cached) " >&6
10248 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10251 (eval $ac_compile) 2>&5
10253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254 test $ac_status = 0; } 2>conftest.err
; then
10257 libobjs
=conftest.
$ac_objext
10259 wl
=$lt_prog_compiler_wl
10260 pic_flag
=$lt_prog_compiler_pic
10266 lt_save_allow_undefined_flag
=$allow_undefined_flag
10267 allow_undefined_flag
=
10268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10269 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10272 test $ac_status = 0; }
10274 lt_cv_archive_cmds_need_lc
=no
10276 lt_cv_archive_cmds_need_lc
=yes
10278 allow_undefined_flag
=$lt_save_allow_undefined_flag
10280 cat conftest.err
1>&5
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10286 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10287 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10451 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10453 if test "$GCC" = yes; then
10455 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10456 *) lt_awk_arg
="/^libraries:/" ;;
10459 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10460 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10462 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10463 case $lt_search_path_spec in
10465 # if the path contains ";" then we assume it to be the separator
10466 # otherwise default to the standard path separator (i.e. ":") - it is
10467 # assumed that no part of a normal pathname contains ";" but that should
10468 # okay in the real world where ";" in dirpaths is itself problematic.
10469 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10472 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475 # Ok, now we have the path, separated by spaces, we can step through it
10476 # and add multilib dir if necessary.
10477 lt_tmp_lt_search_path_spec
=
10478 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10479 for lt_sys_path
in $lt_search_path_spec; do
10480 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10481 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10483 test -d "$lt_sys_path" && \
10484 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10487 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10488 BEGIN {RS=" "; FS="/|\n";} {
10491 for (lt_i = NF; lt_i > 0; lt_i--) {
10492 if ($lt_i != "" && $lt_i != ".") {
10493 if ($lt_i == "..") {
10496 if (lt_count == 0) {
10497 lt_foo="/" $lt_i lt_foo;
10504 if (lt_foo != "") { lt_freq[lt_foo]++; }
10505 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10507 # AWK program above erroneously prepends '/' to C:/dos/paths
10510 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10511 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10513 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10515 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10517 library_names_spec
=
10518 libname_spec
='lib$name'
10522 postuninstall_cmds
=
10526 shlibpath_overrides_runpath
=unknown
10528 dynamic_linker
="$host_os ld.so"
10529 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10530 need_lib_prefix
=unknown
10531 hardcode_into_libs
=no
10533 # when you set need_version to no, make sure it does not cause -set_version
10534 # flags to be left without arguments
10535 need_version
=unknown
10540 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10541 shlibpath_var
=LIBPATH
10543 # AIX 3 has no versioning support, so we append a major version to the name.
10544 soname_spec
='${libname}${release}${shared_ext}$major'
10551 hardcode_into_libs
=yes
10552 if test "$host_cpu" = ia64
; then
10553 # AIX 5 supports IA64
10554 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10555 shlibpath_var
=LD_LIBRARY_PATH
10557 # With GCC up to 2.95.x, collect2 would create an import file
10558 # for dependence libraries. The import file would start with
10559 # the line `#! .'. This would cause the generated library to
10560 # depend on `.', always an invalid library. This was fixed in
10561 # development snapshots of GCC prior to 3.0.
10563 aix4 | aix4.
[01] | aix4.
[01].
*)
10564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10566 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10569 can_build_shared
=no
10573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10574 # soname into executable. Probably we can add versioning support to
10575 # collect2, so additional links can be useful in future.
10576 if test "$aix_use_runtimelinking" = yes; then
10577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10578 # instead of lib<name>.a to let people know that these are not
10579 # typical AIX shared libraries.
10580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 # We preserve .a as extension for shared libraries through AIX4.2
10583 # and later when we are not doing run time linking.
10584 library_names_spec
='${libname}${release}.a $libname.a'
10585 soname_spec
='${libname}${release}${shared_ext}$major'
10587 shlibpath_var
=LIBPATH
10594 # Since July 2007 AmigaOS4 officially supports .so libraries.
10595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 library_names_spec
='$libname.ixlibrary $libname.a'
10600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10601 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'
10607 library_names_spec
='${libname}${shared_ext}'
10608 dynamic_linker
="$host_os ld.so"
10609 shlibpath_var
=LIBRARY_PATH
10615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec
='${libname}${release}${shared_ext}$major'
10617 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10618 shlibpath_var
=LD_LIBRARY_PATH
10619 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10620 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10621 # the default ld.so.conf also contains /usr/contrib/lib and
10622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10623 # libtool to hard-code these into programs
10626 cygwin
* | mingw
* | pw32
* | cegcc
*)
10627 version_type
=windows
10632 case $GCC,$host_os in
10633 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10634 library_names_spec
='$libname.dll.a'
10635 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10636 postinstall_cmds
='base_file=`basename \${file}`~
10637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10638 dldir=$destdir/`dirname \$dlpath`~
10639 test -d \$dldir || mkdir -p \$dldir~
10640 $install_prog $dir/$dlname \$dldir/$dlname~
10641 chmod a+x \$dldir/$dlname~
10642 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10643 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10645 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10646 dlpath=$dir/\$dldll~
10648 shlibpath_overrides_runpath
=yes
10652 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10653 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10655 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10658 # MinGW DLLs use traditional 'lib' prefix
10659 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662 # pw32 DLLs use 'pw' prefix rather than 'lib'
10663 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10672 dynamic_linker
='Win32 ld.exe'
10673 # FIXME: first we should search . and the directory the executable is in
10677 darwin
* | rhapsody
*)
10678 dynamic_linker
="$host_os dyld"
10679 version_type
=darwin
10682 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10683 soname_spec
='${libname}${release}${major}$shared_ext'
10684 shlibpath_overrides_runpath
=yes
10685 shlibpath_var
=DYLD_LIBRARY_PATH
10686 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10688 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10689 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10696 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10697 soname_spec
='${libname}${release}${shared_ext}$major'
10698 shlibpath_var
=LD_LIBRARY_PATH
10701 freebsd
* | dragonfly
*)
10702 # DragonFly does not have aout. When/if they implement a new
10703 # versioning mechanism, adjust this.
10704 if test -x /usr
/bin
/objformat
; then
10705 objformat
=`/usr/bin/objformat`
10708 freebsd
[23].
*) objformat
=aout
;;
10709 *) objformat
=elf
;;
10712 version_type
=freebsd-
$objformat
10713 case $version_type in
10715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10720 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10724 shlibpath_var
=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath
=yes
10729 freebsd3.
[01]* | freebsdelf3.
[01]*)
10730 shlibpath_overrides_runpath
=yes
10731 hardcode_into_libs
=yes
10733 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10734 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10735 shlibpath_overrides_runpath
=no
10736 hardcode_into_libs
=yes
10738 *) # from 4.6 on, and DragonFly
10739 shlibpath_overrides_runpath
=yes
10740 hardcode_into_libs
=yes
10749 dynamic_linker
="$host_os runtime_loader"
10750 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10751 soname_spec
='${libname}${release}${shared_ext}$major'
10752 shlibpath_var
=LIBRARY_PATH
10753 shlibpath_overrides_runpath
=yes
10754 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10755 hardcode_into_libs
=yes
10758 hpux9
* | hpux10
* | hpux11
*)
10759 # Give a soname corresponding to the major version so that dld.sl refuses to
10760 # link against other versions.
10767 hardcode_into_libs
=yes
10768 dynamic_linker
="$host_os dld.so"
10769 shlibpath_var
=LD_LIBRARY_PATH
10770 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10771 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10772 soname_spec
='${libname}${release}${shared_ext}$major'
10773 if test "X$HPUX_IA64_MODE" = X32
; then
10774 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10776 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10778 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10782 hardcode_into_libs
=yes
10783 dynamic_linker
="$host_os dld.sl"
10784 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10785 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec
='${libname}${release}${shared_ext}$major'
10788 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10789 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10793 dynamic_linker
="$host_os dld.sl"
10794 shlibpath_var
=SHLIB_PATH
10795 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 soname_spec
='${libname}${release}${shared_ext}$major'
10800 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10801 postinstall_cmds
='chmod 555 $lib'
10802 # or fails outright, so override atomically:
10803 install_override_mode
=555
10810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10811 soname_spec
='${libname}${release}${shared_ext}$major'
10812 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10813 shlibpath_var
=LD_LIBRARY_PATH
10814 shlibpath_overrides_runpath
=no
10815 hardcode_into_libs
=yes
10818 irix5
* | irix6
* | nonstopux
*)
10820 nonstopux
*) version_type
=nonstopux
;;
10822 if test "$lt_cv_prog_gnu_ld" = yes; then
10830 soname_spec
='${libname}${release}${shared_ext}$major'
10831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 irix5
* | nonstopux
*)
10834 libsuff
= shlibsuff
=
10837 case $LD in # libtool.m4 will add one of these switches to LD
10838 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10839 libsuff
= shlibsuff
= libmagic
=32-bit;;
10840 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10841 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10842 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10843 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10844 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10848 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10849 shlibpath_overrides_runpath
=no
10850 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10851 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10852 hardcode_into_libs
=yes
10855 # No shared lib support for Linux oldld, aout, or coff.
10856 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10860 # This must be Linux ELF.
10861 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10865 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866 soname_spec
='${libname}${release}${shared_ext}$major'
10867 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10868 shlibpath_var
=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath
=no
10871 # Some binutils ld are patched to set DT_RUNPATH
10872 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10873 $as_echo_n "(cached) " >&6
10875 lt_cv_shlibpath_overrides_runpath
=no
10876 save_LDFLAGS
=$LDFLAGS
10877 save_libdir
=$libdir
10878 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10879 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10891 if ac_fn_c_try_link
"$LINENO"; then :
10892 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10893 lt_cv_shlibpath_overrides_runpath
=yes
10896 rm -f core conftest.err conftest.
$ac_objext \
10897 conftest
$ac_exeext conftest.
$ac_ext
10898 LDFLAGS
=$save_LDFLAGS
10899 libdir
=$save_libdir
10903 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10905 # This implies no fast_install, which is unacceptable.
10906 # Some rework will be needed to allow for fast_install
10907 # before this can be enabled.
10908 hardcode_into_libs
=yes
10910 # Append ld.so.conf contents to the search path
10911 if test -f /etc
/ld.so.conf
; then
10912 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' ' '`
10913 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10916 # We used to test for /lib/ld.so.1 and disable shared libraries on
10917 # powerpc, because MkLinux only supported shared libraries with the
10918 # GNU dynamic linker. Since this was broken with cross compilers,
10919 # most powerpc-linux boxes support dynamic linking these days and
10920 # people can always --disable-shared, the test was removed, and we
10921 # assume the GNU/Linux dynamic linker is in use.
10922 dynamic_linker
='GNU/Linux ld.so'
10929 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10931 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10932 dynamic_linker
='NetBSD (a.out) ld.so'
10934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10935 soname_spec
='${libname}${release}${shared_ext}$major'
10936 dynamic_linker
='NetBSD ld.elf_so'
10938 shlibpath_var
=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath
=yes
10940 hardcode_into_libs
=yes
10945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 shlibpath_var
=LD_LIBRARY_PATH
10947 shlibpath_overrides_runpath
=yes
10954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 soname_spec
='${libname}${release}${shared_ext}$major'
10956 shlibpath_var
=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath
=no
10958 hardcode_into_libs
=yes
10959 dynamic_linker
='ldqnx.so'
10964 sys_lib_dlsearch_path_spec
="/usr/lib"
10966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10968 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10969 *) need_version
=no
;;
10971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10972 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10973 shlibpath_var
=LD_LIBRARY_PATH
10974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10976 openbsd2.
[89] | openbsd2.
[89].
*)
10977 shlibpath_overrides_runpath
=no
10980 shlibpath_overrides_runpath
=yes
10984 shlibpath_overrides_runpath
=yes
10989 libname_spec
='$name'
10992 library_names_spec
='$libname${shared_ext} $libname.a'
10993 dynamic_linker
='OS/2 ld.exe'
10994 shlibpath_var
=LIBPATH
10997 osf3
* | osf4
* | osf5
*)
11001 soname_spec
='${libname}${release}${shared_ext}$major'
11002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003 shlibpath_var
=LD_LIBRARY_PATH
11004 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11005 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 soname_spec
='${libname}${release}${shared_ext}$major'
11018 shlibpath_var
=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath
=yes
11020 hardcode_into_libs
=yes
11021 # ldd complains unless libraries are executable
11022 postinstall_cmds
='chmod +x $lib'
11027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11029 shlibpath_var
=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath
=yes
11031 if test "$with_gnu_ld" = yes; then
11039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec
='${libname}${release}${shared_ext}$major'
11041 shlibpath_var
=LD_LIBRARY_PATH
11042 case $host_vendor in
11044 shlibpath_overrides_runpath
=no
11046 runpath_var
=LD_RUN_PATH
11054 shlibpath_overrides_runpath
=no
11055 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11061 if test -d /usr
/nec
;then
11063 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11064 soname_spec
='$libname${shared_ext}.$major'
11065 shlibpath_var
=LD_LIBRARY_PATH
11069 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11070 version_type
=freebsd-elf
11073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11074 soname_spec
='${libname}${release}${shared_ext}$major'
11075 shlibpath_var
=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath
=yes
11077 hardcode_into_libs
=yes
11078 if test "$with_gnu_ld" = yes; then
11079 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11081 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11084 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11088 sys_lib_dlsearch_path_spec
='/usr/lib'
11092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11096 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 shlibpath_var
=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath
=no
11099 hardcode_into_libs
=yes
11104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec
='${libname}${release}${shared_ext}$major'
11106 shlibpath_var
=LD_LIBRARY_PATH
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11114 $as_echo "$dynamic_linker" >&6; }
11115 test "$dynamic_linker" = no
&& can_build_shared
=no
11117 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11118 if test "$GCC" = yes; then
11119 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11123 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11126 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11221 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11223 if test -n "$hardcode_libdir_flag_spec" ||
11224 test -n "$runpath_var" ||
11225 test "X$hardcode_automatic" = "Xyes" ; then
11227 # We can hardcode non-existent directories.
11228 if test "$hardcode_direct" != no
&&
11229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11230 # have to relink, otherwise we might link with an installed library
11231 # when we should be linking with a yet-to-be-installed one
11232 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11233 test "$hardcode_minus_L" != no
; then
11234 # Linking always hardcodes the temporary library directory.
11235 hardcode_action
=relink
11237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11238 hardcode_action
=immediate
11241 # We cannot hardcode anything, or else we can only hardcode existing
11243 hardcode_action
=unsupported
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11246 $as_echo "$hardcode_action" >&6; }
11248 if test "$hardcode_action" = relink ||
11249 test "$inherit_rpath" = yes; then
11250 # Fast installation is not supported
11251 enable_fast_install
=no
11252 elif test "$shlibpath_overrides_runpath" = yes ||
11253 test "$enable_shared" = no
; then
11254 # Fast installation is not necessary
11255 enable_fast_install
=needless
11263 if test "x$enable_dlopen" != xyes
; then
11264 enable_dlopen
=unknown
11265 enable_dlopen_self
=unknown
11266 enable_dlopen_self_static
=unknown
11273 lt_cv_dlopen
="load_add_on"
11275 lt_cv_dlopen_self
=yes
11278 mingw
* | pw32
* | cegcc
*)
11279 lt_cv_dlopen
="LoadLibrary"
11284 lt_cv_dlopen
="dlopen"
11289 # if libdl is installed we need to link against it
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11292 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11293 $as_echo_n "(cached) " >&6
11295 ac_check_lib_save_LIBS
=$LIBS
11297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 /* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11315 if ac_fn_c_try_link
"$LINENO"; then :
11316 ac_cv_lib_dl_dlopen
=yes
11318 ac_cv_lib_dl_dlopen
=no
11320 rm -f core conftest.err conftest.
$ac_objext \
11321 conftest
$ac_exeext conftest.
$ac_ext
11322 LIBS
=$ac_check_lib_save_LIBS
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11326 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11327 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11330 lt_cv_dlopen
="dyld"
11332 lt_cv_dlopen_self
=yes
11339 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11340 if test "x$ac_cv_func_shl_load" = xyes
; then :
11341 lt_cv_dlopen
="shl_load"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11344 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11345 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11346 $as_echo_n "(cached) " >&6
11348 ac_check_lib_save_LIBS
=$LIBS
11350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11353 /* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11363 return shl_load ();
11368 if ac_fn_c_try_link
"$LINENO"; then :
11369 ac_cv_lib_dld_shl_load
=yes
11371 ac_cv_lib_dld_shl_load
=no
11373 rm -f core conftest.err conftest.
$ac_objext \
11374 conftest
$ac_exeext conftest.
$ac_ext
11375 LIBS
=$ac_check_lib_save_LIBS
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11378 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11379 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11380 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11382 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11383 if test "x$ac_cv_func_dlopen" = xyes
; then :
11384 lt_cv_dlopen
="dlopen"
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11387 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11388 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11389 $as_echo_n "(cached) " >&6
11391 ac_check_lib_save_LIBS
=$LIBS
11393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11411 if ac_fn_c_try_link
"$LINENO"; then :
11412 ac_cv_lib_dl_dlopen
=yes
11414 ac_cv_lib_dl_dlopen
=no
11416 rm -f core conftest.err conftest.
$ac_objext \
11417 conftest
$ac_exeext conftest.
$ac_ext
11418 LIBS
=$ac_check_lib_save_LIBS
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11421 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11422 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11423 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11426 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11427 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11428 $as_echo_n "(cached) " >&6
11430 ac_check_lib_save_LIBS
=$LIBS
11431 LIBS
="-lsvld $LIBS"
11432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11433 /* end confdefs.h. */
11435 /* Override any GCC internal prototype to avoid an error.
11436 Use char because int might match the return type of a GCC
11437 builtin and then its argument prototype would still apply. */
11450 if ac_fn_c_try_link
"$LINENO"; then :
11451 ac_cv_lib_svld_dlopen
=yes
11453 ac_cv_lib_svld_dlopen
=no
11455 rm -f core conftest.err conftest.
$ac_objext \
11456 conftest
$ac_exeext conftest.
$ac_ext
11457 LIBS
=$ac_check_lib_save_LIBS
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11460 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11461 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11462 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11465 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11466 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11467 $as_echo_n "(cached) " >&6
11469 ac_check_lib_save_LIBS
=$LIBS
11471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11484 return dld_link ();
11489 if ac_fn_c_try_link
"$LINENO"; then :
11490 ac_cv_lib_dld_dld_link
=yes
11492 ac_cv_lib_dld_dld_link
=no
11494 rm -f core conftest.err conftest.
$ac_objext \
11495 conftest
$ac_exeext conftest.
$ac_ext
11496 LIBS
=$ac_check_lib_save_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11500 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11501 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11522 if test "x$lt_cv_dlopen" != xno
; then
11528 case $lt_cv_dlopen in
11530 save_CPPFLAGS
="$CPPFLAGS"
11531 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11533 save_LDFLAGS
="$LDFLAGS"
11534 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11537 LIBS
="$lt_cv_dlopen_libs $LIBS"
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11541 if ${lt_cv_dlopen_self+:} false
; then :
11542 $as_echo_n "(cached) " >&6
11544 if test "$cross_compiling" = yes; then :
11545 lt_cv_dlopen_self
=cross
11547 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11548 lt_status
=$lt_dlunknown
11549 cat > conftest.
$ac_ext <<_LT_EOF
11550 #line 11550 "configure"
11551 #include "confdefs.h"
11560 # define LT_DLGLOBAL RTLD_GLOBAL
11563 # define LT_DLGLOBAL DL_GLOBAL
11565 # define LT_DLGLOBAL 0
11569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11570 find out it does not work in some platform. */
11571 #ifndef LT_DLLAZY_OR_NOW
11573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11576 # define LT_DLLAZY_OR_NOW DL_LAZY
11579 # define LT_DLLAZY_OR_NOW RTLD_NOW
11582 # define LT_DLLAZY_OR_NOW DL_NOW
11584 # define LT_DLLAZY_OR_NOW 0
11591 /* When -fvisbility=hidden is used, assume the code has been annotated
11592 correspondingly for the symbols needed. */
11593 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11594 void fnord () __attribute__((visibility("default")));
11597 void fnord () { int i=42; }
11600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11601 int status = $lt_dlunknown;
11605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11609 else puts (dlerror ());
11611 /* dlclose (self); */
11619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11620 (eval $ac_link) 2>&5
11622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11623 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11624 (.
/conftest
; exit; ) >&5 2>/dev
/null
11626 case x
$lt_status in
11627 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11628 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11629 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11632 # compilation failed
11633 lt_cv_dlopen_self
=no
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11641 $as_echo "$lt_cv_dlopen_self" >&6; }
11643 if test "x$lt_cv_dlopen_self" = xyes
; then
11644 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11646 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11647 if ${lt_cv_dlopen_self_static+:} false
; then :
11648 $as_echo_n "(cached) " >&6
11650 if test "$cross_compiling" = yes; then :
11651 lt_cv_dlopen_self_static
=cross
11653 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11654 lt_status
=$lt_dlunknown
11655 cat > conftest.
$ac_ext <<_LT_EOF
11656 #line 11656 "configure"
11657 #include "confdefs.h"
11666 # define LT_DLGLOBAL RTLD_GLOBAL
11669 # define LT_DLGLOBAL DL_GLOBAL
11671 # define LT_DLGLOBAL 0
11675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676 find out it does not work in some platform. */
11677 #ifndef LT_DLLAZY_OR_NOW
11679 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11682 # define LT_DLLAZY_OR_NOW DL_LAZY
11685 # define LT_DLLAZY_OR_NOW RTLD_NOW
11688 # define LT_DLLAZY_OR_NOW DL_NOW
11690 # define LT_DLLAZY_OR_NOW 0
11697 /* When -fvisbility=hidden is used, assume the code has been annotated
11698 correspondingly for the symbols needed. */
11699 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11700 void fnord () __attribute__((visibility("default")));
11703 void fnord () { int i=42; }
11706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11707 int status = $lt_dlunknown;
11711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11714 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11715 else puts (dlerror ());
11717 /* dlclose (self); */
11725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11726 (eval $ac_link) 2>&5
11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11729 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11730 (.
/conftest
; exit; ) >&5 2>/dev
/null
11732 case x
$lt_status in
11733 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11734 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11735 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11738 # compilation failed
11739 lt_cv_dlopen_self_static
=no
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11747 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11750 CPPFLAGS
="$save_CPPFLAGS"
11751 LDFLAGS
="$save_LDFLAGS"
11756 case $lt_cv_dlopen_self in
11757 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11758 *) enable_dlopen_self
=unknown
;;
11761 case $lt_cv_dlopen_self_static in
11762 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11763 *) enable_dlopen_self_static
=unknown
;;
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11786 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11787 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11788 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11789 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11791 $as_echo "yes" >&6; }
11793 # FIXME - insert some real tests, host_os isn't really good enough
11796 if test -n "$STRIP" ; then
11797 striplib
="$STRIP -x"
11798 old_striplib
="$STRIP -S"
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800 $as_echo "yes" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11824 # Report which library types will actually be built
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11826 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11828 $as_echo "$can_build_shared" >&6; }
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11831 $as_echo_n "checking whether to build shared libraries... " >&6; }
11832 test "$can_build_shared" = "no" && enable_shared
=no
11834 # On AIX, shared libraries and static libraries use the same namespace, and
11835 # are all built from PIC.
11838 test "$enable_shared" = yes && enable_static
=no
11839 if test -n "$RANLIB"; then
11840 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11841 postinstall_cmds
='$RANLIB $lib'
11846 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11847 test "$enable_shared" = yes && enable_static
=no
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11852 $as_echo "$enable_shared" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11855 $as_echo_n "checking whether to build static libraries... " >&6; }
11856 # Make sure either enable_shared or enable_static is yes.
11857 test "$enable_shared" = yes || enable_static
=yes
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11859 $as_echo "$enable_static" >&6; }
11866 ac_cpp
='$CPP $CPPFLAGS'
11867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11885 # Source file extension for Go test sources.
11888 # Object file extension for compiled Go test sources.
11892 # Code to be used in simple compile tests
11893 lt_simple_compile_test_code
="package main; func main() { }"
11895 # Code to be used in simple link tests
11896 lt_simple_link_test_code
='package main; func main() { }'
11898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11905 # If no C compiler was specified, use CC.
11908 # If no C compiler flags were specified, use CFLAGS.
11909 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
11911 # Allow CC to be a program name with arguments.
11915 # save warnings/boilerplate of simple test code
11916 ac_outfile
=conftest.
$ac_objext
11917 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
11918 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11919 _lt_compiler_boilerplate
=`cat conftest.err`
11922 ac_outfile
=conftest.
$ac_objext
11923 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
11924 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
11925 _lt_linker_boilerplate
=`cat conftest.err`
11929 # Allow CC to be a program name with arguments.
11937 for cc_temp
in $compiler""; do
11939 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11940 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11945 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11948 # Go did not exist at the time GCC didn't implicitly link libc in.
11949 archive_cmds_need_lc_GO
=no
11951 old_archive_cmds_GO
=$old_archive_cmds
11954 ## There is no encapsulation within the following macros, do not change
11955 ## the running order or otherwise move them around unless you know exactly
11956 ## what you are doing...
11957 if test -n "$compiler"; then
11959 lt_prog_compiler_no_builtin_flag_GO
=
11961 if test "$GCC" = yes; then
11962 case $cc_basename in
11964 lt_prog_compiler_no_builtin_flag_GO
=' -Xcompiler -fno-builtin' ;;
11966 lt_prog_compiler_no_builtin_flag_GO
=' -fno-builtin' ;;
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11971 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
11972 $as_echo_n "(cached) " >&6
11974 lt_cv_prog_compiler_rtti_exceptions
=no
11975 ac_outfile
=conftest.
$ac_objext
11976 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11977 lt_compiler_flag
="-fno-rtti -fno-exceptions"
11978 # Insert the option either (1) after the last *FLAGS variable, or
11979 # (2) before a word containing "conftest.", or (3) at the end.
11980 # Note that $ac_compile itself does not contain backslashes and begins
11981 # with a dollar sign (not a hyphen), so the echo should work correctly.
11982 # The option is referenced via a variable to avoid confusing sed.
11983 lt_compile
=`echo "$ac_compile" | $SED \
11984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11986 -e 's:$: $lt_compiler_flag:'`
11987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11988 (eval "$lt_compile" 2>conftest.err
)
11990 cat conftest.err
>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 if (exit $ac_status) && test -s "$ac_outfile"; then
11993 # The compiler can only warn and ignore the option if not recognized
11994 # So say no if there are warnings other than the usual output.
11995 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
11996 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11997 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
11998 lt_cv_prog_compiler_rtti_exceptions
=yes
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12007 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12008 lt_prog_compiler_no_builtin_flag_GO
="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
12017 lt_prog_compiler_wl_GO
=
12018 lt_prog_compiler_pic_GO
=
12019 lt_prog_compiler_static_GO
=
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12024 if test "$GCC" = yes; then
12025 lt_prog_compiler_wl_GO
='-Wl,'
12026 lt_prog_compiler_static_GO
='-static'
12030 # All AIX code is PIC.
12031 if test "$host_cpu" = ia64
; then
12032 # AIX 5 now supports IA64 processor
12033 lt_prog_compiler_static_GO
='-Bstatic'
12035 lt_prog_compiler_pic_GO
='-fPIC'
12041 # see comment about AmigaOS4 .so support
12042 lt_prog_compiler_pic_GO
='-fPIC'
12045 # FIXME: we need at least 68020 code to build shared libraries, but
12046 # adding the `-m68020' flag to GCC prevents building anything better,
12048 lt_prog_compiler_pic_GO
='-m68020 -resident32 -malways-restore-a4'
12053 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12054 # PIC is the default for these OSes.
12057 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12058 # This hack is so that the source file can tell whether it is being
12059 # built for inclusion in a dll (and should export symbols for example).
12060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12061 # (--disable-auto-import) libraries
12062 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
12065 darwin
* | rhapsody
*)
12066 # PIC is the default on this platform
12067 # Common symbols not allowed in MH_DYLIB files
12068 lt_prog_compiler_pic_GO
='-fno-common'
12072 # PIC is the default for Haiku.
12073 # The "-static" flag exists, but is broken.
12074 lt_prog_compiler_static_GO
=
12078 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12079 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12080 # sets the default TLS model and affects inlining.
12086 lt_prog_compiler_pic_GO
='-fPIC'
12092 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12093 # Instead, we relocate shared libraries at runtime.
12097 # Just because we use GCC doesn't mean we suddenly get shared libraries
12098 # on systems that don't support them.
12099 lt_prog_compiler_can_build_shared_GO
=no
12104 # QNX uses GNU C++, but need to define -shared option too, otherwise
12105 # it will coredump.
12106 lt_prog_compiler_pic_GO
='-fPIC -shared'
12110 if test -d /usr
/nec
; then
12111 lt_prog_compiler_pic_GO
=-Kconform_pic
12116 lt_prog_compiler_pic_GO
='-fPIC'
12120 case $cc_basename in
12121 nvcc
*) # Cuda Compiler Driver 2.2
12122 lt_prog_compiler_wl_GO
='-Xlinker '
12123 lt_prog_compiler_pic_GO
='-Xcompiler -fPIC'
12127 # PORTME Check for flag to pass linker flags through the system compiler.
12130 lt_prog_compiler_wl_GO
='-Wl,'
12131 if test "$host_cpu" = ia64
; then
12132 # AIX 5 now supports IA64 processor
12133 lt_prog_compiler_static_GO
='-Bstatic'
12135 lt_prog_compiler_static_GO
='-bnso -bI:/lib/syscalls.exp'
12139 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12140 # This hack is so that the source file can tell whether it is being
12141 # built for inclusion in a dll (and should export symbols for example).
12142 lt_prog_compiler_pic_GO
='-DDLL_EXPORT'
12145 hpux9
* | hpux10
* | hpux11
*)
12146 lt_prog_compiler_wl_GO
='-Wl,'
12147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12148 # not for PA HP-UX.
12154 lt_prog_compiler_pic_GO
='+Z'
12157 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12158 lt_prog_compiler_static_GO
='${wl}-a ${wl}archive'
12161 irix5
* | irix6
* | nonstopux
*)
12162 lt_prog_compiler_wl_GO
='-Wl,'
12163 # PIC (with -KPIC) is the default.
12164 lt_prog_compiler_static_GO
='-non_shared'
12167 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12168 case $cc_basename in
12169 # old Intel for x86_64 which still supported -KPIC.
12171 lt_prog_compiler_wl_GO
='-Wl,'
12172 lt_prog_compiler_pic_GO
='-KPIC'
12173 lt_prog_compiler_static_GO
='-static'
12175 # icc used to be incompatible with GCC.
12176 # ICC 10 doesn't accept -KPIC any more.
12178 lt_prog_compiler_wl_GO
='-Wl,'
12179 lt_prog_compiler_pic_GO
='-fPIC'
12180 lt_prog_compiler_static_GO
='-static'
12182 # Lahey Fortran 8.1.
12184 lt_prog_compiler_wl_GO
='-Wl,'
12185 lt_prog_compiler_pic_GO
='--shared'
12186 lt_prog_compiler_static_GO
='--static'
12188 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12189 # Portland Group compilers (*not* the Pentium gcc compiler,
12190 # which looks to be a dead project)
12191 lt_prog_compiler_wl_GO
='-Wl,'
12192 lt_prog_compiler_pic_GO
='-fpic'
12193 lt_prog_compiler_static_GO
='-Bstatic'
12196 lt_prog_compiler_wl_GO
='-Wl,'
12197 # All Alpha code is PIC.
12198 lt_prog_compiler_static_GO
='-non_shared'
12200 xl
* | bgxl
* | bgf
* | mpixl
*)
12201 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12202 lt_prog_compiler_wl_GO
='-Wl,'
12203 lt_prog_compiler_pic_GO
='-qpic'
12204 lt_prog_compiler_static_GO
='-qstaticlink'
12207 case `$CC -V 2>&1 | sed 5q` in
12208 *Sun\ F
* |
*Sun
*Fortran
*)
12209 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12210 lt_prog_compiler_pic_GO
='-KPIC'
12211 lt_prog_compiler_static_GO
='-Bstatic'
12212 lt_prog_compiler_wl_GO
=''
12216 lt_prog_compiler_pic_GO
='-KPIC'
12217 lt_prog_compiler_static_GO
='-Bstatic'
12218 lt_prog_compiler_wl_GO
='-Wl,'
12226 lt_prog_compiler_pic_GO
='-KPIC'
12227 lt_prog_compiler_static_GO
='-Bstatic'
12231 # QNX uses GNU C++, but need to define -shared option too, otherwise
12232 # it will coredump.
12233 lt_prog_compiler_pic_GO
='-fPIC -shared'
12236 osf3
* | osf4
* | osf5
*)
12237 lt_prog_compiler_wl_GO
='-Wl,'
12238 # All OSF/1 code is PIC.
12239 lt_prog_compiler_static_GO
='-non_shared'
12243 lt_prog_compiler_static_GO
='-non_shared'
12247 lt_prog_compiler_pic_GO
='-KPIC'
12248 lt_prog_compiler_static_GO
='-Bstatic'
12249 case $cc_basename in
12250 f77
* | f90
* | f95
*)
12251 lt_prog_compiler_wl_GO
='-Qoption ld ';;
12253 lt_prog_compiler_wl_GO
='-Wl,';;
12258 lt_prog_compiler_wl_GO
='-Qoption ld '
12259 lt_prog_compiler_pic_GO
='-PIC'
12260 lt_prog_compiler_static_GO
='-Bstatic'
12263 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12264 lt_prog_compiler_wl_GO
='-Wl,'
12265 lt_prog_compiler_pic_GO
='-KPIC'
12266 lt_prog_compiler_static_GO
='-Bstatic'
12270 if test -d /usr
/nec
;then
12271 lt_prog_compiler_pic_GO
='-Kconform_pic'
12272 lt_prog_compiler_static_GO
='-Bstatic'
12276 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12277 lt_prog_compiler_wl_GO
='-Wl,'
12278 lt_prog_compiler_pic_GO
='-KPIC'
12279 lt_prog_compiler_static_GO
='-Bstatic'
12283 lt_prog_compiler_wl_GO
='-Wl,'
12284 lt_prog_compiler_can_build_shared_GO
=no
12288 lt_prog_compiler_pic_GO
='-pic'
12289 lt_prog_compiler_static_GO
='-Bstatic'
12293 lt_prog_compiler_can_build_shared_GO
=no
12299 # For platforms which do not support PIC, -DPIC is meaningless:
12301 lt_prog_compiler_pic_GO
=
12304 lt_prog_compiler_pic_GO
="$lt_prog_compiler_pic_GO"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12308 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12313 # Check to make sure the PIC flag actually works.
12315 if test -n "$lt_prog_compiler_pic_GO"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12317 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12318 if ${lt_cv_prog_compiler_pic_works_GO+:} false
; then :
12319 $as_echo_n "(cached) " >&6
12321 lt_cv_prog_compiler_pic_works_GO
=no
12322 ac_outfile
=conftest.
$ac_objext
12323 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12324 lt_compiler_flag
="$lt_prog_compiler_pic_GO"
12325 # Insert the option either (1) after the last *FLAGS variable, or
12326 # (2) before a word containing "conftest.", or (3) at the end.
12327 # Note that $ac_compile itself does not contain backslashes and begins
12328 # with a dollar sign (not a hyphen), so the echo should work correctly.
12329 # The option is referenced via a variable to avoid confusing sed.
12330 lt_compile
=`echo "$ac_compile" | $SED \
12331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12333 -e 's:$: $lt_compiler_flag:'`
12334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12335 (eval "$lt_compile" 2>conftest.err
)
12337 cat conftest.err
>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 if (exit $ac_status) && test -s "$ac_outfile"; then
12340 # The compiler can only warn and ignore the option if not recognized
12341 # So say no if there are warnings other than the usual output.
12342 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12343 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12344 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12345 lt_cv_prog_compiler_pic_works_GO
=yes
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12352 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12354 if test x
"$lt_cv_prog_compiler_pic_works_GO" = xyes
; then
12355 case $lt_prog_compiler_pic_GO in
12357 *) lt_prog_compiler_pic_GO
=" $lt_prog_compiler_pic_GO" ;;
12360 lt_prog_compiler_pic_GO
=
12361 lt_prog_compiler_can_build_shared_GO
=no
12369 # Check to make sure the static flag actually works.
12371 wl
=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GO\"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12373 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12374 if ${lt_cv_prog_compiler_static_works_GO+:} false
; then :
12375 $as_echo_n "(cached) " >&6
12377 lt_cv_prog_compiler_static_works_GO
=no
12378 save_LDFLAGS
="$LDFLAGS"
12379 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12380 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12381 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12382 # The linker can only warn and ignore the option if not recognized
12383 # So say no if there are warnings
12384 if test -s conftest.err
; then
12385 # Append any errors to the config.log.
12386 cat conftest.err
1>&5
12387 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12388 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12389 if diff conftest.exp conftest.er2
>/dev
/null
; then
12390 lt_cv_prog_compiler_static_works_GO
=yes
12393 lt_cv_prog_compiler_static_works_GO
=yes
12397 LDFLAGS
="$save_LDFLAGS"
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12401 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12403 if test x
"$lt_cv_prog_compiler_static_works_GO" = xyes
; then
12406 lt_prog_compiler_static_GO
=
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12414 if ${lt_cv_prog_compiler_c_o_GO+:} false
; then :
12415 $as_echo_n "(cached) " >&6
12417 lt_cv_prog_compiler_c_o_GO
=no
12418 $RM -r conftest
2>/dev
/null
12422 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12424 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12425 # Insert the option either (1) after the last *FLAGS variable, or
12426 # (2) before a word containing "conftest.", or (3) at the end.
12427 # Note that $ac_compile itself does not contain backslashes and begins
12428 # with a dollar sign (not a hyphen), so the echo should work correctly.
12429 lt_compile
=`echo "$ac_compile" | $SED \
12430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12432 -e 's:$: $lt_compiler_flag:'`
12433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12434 (eval "$lt_compile" 2>out
/conftest.err
)
12436 cat out
/conftest.err
>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12440 # The compiler can only warn and ignore the option if not recognized
12441 # So say no if there are warnings
12442 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12443 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12444 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12445 lt_cv_prog_compiler_c_o_GO
=yes
12450 # SGI C++ compiler will create directory out/ii_files/ for
12451 # template instantiation
12452 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12453 $RM out
/* && rmdir out
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12460 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12466 if ${lt_cv_prog_compiler_c_o_GO+:} false
; then :
12467 $as_echo_n "(cached) " >&6
12469 lt_cv_prog_compiler_c_o_GO
=no
12470 $RM -r conftest
2>/dev
/null
12474 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12476 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12477 # Insert the option either (1) after the last *FLAGS variable, or
12478 # (2) before a word containing "conftest.", or (3) at the end.
12479 # Note that $ac_compile itself does not contain backslashes and begins
12480 # with a dollar sign (not a hyphen), so the echo should work correctly.
12481 lt_compile
=`echo "$ac_compile" | $SED \
12482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12484 -e 's:$: $lt_compiler_flag:'`
12485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12486 (eval "$lt_compile" 2>out
/conftest.err
)
12488 cat out
/conftest.err
>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12492 # The compiler can only warn and ignore the option if not recognized
12493 # So say no if there are warnings
12494 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12495 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12496 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12497 lt_cv_prog_compiler_c_o_GO
=yes
12502 # SGI C++ compiler will create directory out/ii_files/ for
12503 # template instantiation
12504 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12505 $RM out
/* && rmdir out
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12512 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12517 hard_links
="nottested"
12518 if test "$lt_cv_prog_compiler_c_o_GO" = no
&& test "$need_locks" != no
; then
12519 # do not overwrite the value of need_locks provided by the user
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12521 $as_echo_n "checking if we can lock with hard links... " >&6; }
12524 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12526 ln conftest.a conftest.b
2>&5 || hard_links
=no
12527 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12529 $as_echo "$hard_links" >&6; }
12530 if test "$hard_links" = no
; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12532 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12542 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12545 allow_undefined_flag_GO
=
12546 always_export_symbols_GO
=no
12548 archive_expsym_cmds_GO
=
12549 compiler_needs_object_GO
=no
12550 enable_shared_with_static_runtimes_GO
=no
12551 export_dynamic_flag_spec_GO
=
12552 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12553 hardcode_automatic_GO
=no
12554 hardcode_direct_GO
=no
12555 hardcode_direct_absolute_GO
=no
12556 hardcode_libdir_flag_spec_GO
=
12557 hardcode_libdir_flag_spec_ld_GO
=
12558 hardcode_libdir_separator_GO
=
12559 hardcode_minus_L_GO
=no
12560 hardcode_shlibpath_var_GO
=unsupported
12561 inherit_rpath_GO
=no
12562 link_all_deplibs_GO
=unknown
12564 module_expsym_cmds_GO
=
12565 old_archive_from_new_cmds_GO
=
12566 old_archive_from_expsyms_cmds_GO
=
12567 thread_safe_flag_spec_GO
=
12568 whole_archive_flag_spec_GO
=
12569 # include_expsyms should be a list of space-separated symbols to be *always*
12570 # included in the symbol list
12571 include_expsyms_GO
=
12572 # exclude_expsyms can be an extended regexp of symbols to exclude
12573 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12574 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12575 # as well as any symbol that contains `d'.
12576 exclude_expsyms_GO
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12577 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12578 # platforms (ab)use it in PIC code, but their linkers get confused if
12579 # the symbol is explicitly referenced. Since portable code cannot
12580 # rely on this symbol name, it's probably fine to never include it in
12581 # preloaded symbol tables.
12582 # Exclude shared library initialization/finalization symbols.
12583 extract_expsyms_cmds
=
12586 cygwin
* | mingw
* | pw32
* | cegcc
*)
12587 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12588 # When not using gcc, we currently assume that we are using
12589 # Microsoft Visual C++.
12590 if test "$GCC" != yes; then
12595 # we just hope/assume this is gcc and not c89 (= MSVC++)
12605 # On some targets, GNU ld is compatible enough with the native linker
12606 # that we're better off using the native interface for both.
12607 lt_use_gnu_ld_interface
=no
12608 if test "$with_gnu_ld" = yes; then
12611 # The AIX port of GNU ld has always aspired to compatibility
12612 # with the native linker. However, as the warning in the GNU ld
12613 # block says, versions before 2.19.5* couldn't really create working
12614 # shared libraries, regardless of the interface used.
12615 case `$LD -v 2>&1` in
12616 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12617 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12618 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12620 lt_use_gnu_ld_interface
=yes
12625 lt_use_gnu_ld_interface
=yes
12630 if test "$lt_use_gnu_ld_interface" = yes; then
12631 # If archive_cmds runs LD, not CC, wlarc should be empty
12634 # Set some defaults for GNU ld with shared library support. These
12635 # are reset later if shared libraries are not supported. Putting them
12636 # here allows them to be overridden if necessary.
12637 runpath_var
=LD_RUN_PATH
12638 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12639 export_dynamic_flag_spec_GO
='${wl}--export-dynamic'
12640 # ancient GNU ld didn't support --whole-archive et. al.
12641 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12642 whole_archive_flag_spec_GO
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12644 whole_archive_flag_spec_GO
=
12646 supports_anon_versioning
=no
12647 case `$LD -v 2>&1` in
12648 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12649 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12650 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12651 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12652 *\
2.11.
*) ;; # other 2.11 versions
12653 *) supports_anon_versioning
=yes ;;
12656 # See if GNU ld supports shared libraries.
12659 # On AIX/PPC, the GNU linker is very broken
12660 if test "$host_cpu" != ia64
; then
12664 *** Warning: the GNU linker, at least up to release 2.19, is reported
12665 *** to be unable to reliably create shared libraries on AIX.
12666 *** Therefore, libtool is disabling shared libraries support. If you
12667 *** really care for shared libraries, you may want to install binutils
12668 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12669 *** You will then need to restart the configuration process.
12678 # see comment about AmigaOS4 .so support
12679 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12680 archive_expsym_cmds_GO
=''
12683 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)'
12684 hardcode_libdir_flag_spec_GO
='-L$libdir'
12685 hardcode_minus_L_GO
=yes
12691 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12692 allow_undefined_flag_GO
=unsupported
12693 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12694 # support --undefined. This deserves some investigation. FIXME
12695 archive_cmds_GO
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12701 cygwin
* | mingw
* | pw32
* | cegcc
*)
12702 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12703 # as there is no search path for DLLs.
12704 hardcode_libdir_flag_spec_GO
='-L$libdir'
12705 export_dynamic_flag_spec_GO
='${wl}--export-all-symbols'
12706 allow_undefined_flag_GO
=unsupported
12707 always_export_symbols_GO
=no
12708 enable_shared_with_static_runtimes_GO
=yes
12709 export_symbols_cmds_GO
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12711 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12712 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12713 # If the export-symbols file already is a .def file (1st line
12714 # is EXPORTS), use it as is; otherwise, prepend...
12715 archive_expsym_cmds_GO
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12716 cp $export_symbols $output_objdir/$soname.def;
12718 echo EXPORTS > $output_objdir/$soname.def;
12719 cat $export_symbols >> $output_objdir/$soname.def;
12721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12728 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12729 link_all_deplibs_GO
=yes
12733 hardcode_direct_GO
=no
12734 hardcode_shlibpath_var_GO
=no
12735 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
12736 export_dynamic_flag_spec_GO
='${wl}-E'
12737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12738 # Instead, shared libraries are loaded at an image base (0x10000000 by
12739 # default) and relocated if they conflict, which is a slow very memory
12740 # consuming and fragmenting process. To avoid this, we pick a random,
12741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12743 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'
12744 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'
12747 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12749 if test "$host_os" = linux-dietlibc
; then
12750 case $cc_basename in
12751 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12754 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12755 && test "$tmp_diet" = no
12758 tmp_sharedflag
='-shared'
12759 case $cc_basename,$host_cpu in
12760 pgcc
*) # Portland Group C compiler
12761 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'
12762 tmp_addflag
=' $pic_flag'
12764 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12765 # Portland Group f77 and f90 compilers
12766 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'
12767 tmp_addflag
=' $pic_flag -Mnomain' ;;
12768 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12769 tmp_addflag
=' -i_dynamic' ;;
12770 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12771 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12772 ifc
* | ifort
*) # Intel Fortran compiler
12773 tmp_addflag
=' -nofor_main' ;;
12774 lf95
*) # Lahey Fortran 8.1
12775 whole_archive_flag_spec_GO
=
12776 tmp_sharedflag
='--shared' ;;
12777 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12778 tmp_sharedflag
='-qmkshrobj'
12780 nvcc
*) # Cuda Compiler Driver 2.2
12781 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'
12782 compiler_needs_object_GO
=yes
12785 case `$CC -V 2>&1 | sed 5q` in
12786 *Sun\ C
*) # Sun C 5.9
12787 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'
12788 compiler_needs_object_GO
=yes
12789 tmp_sharedflag
='-G' ;;
12790 *Sun\ F
*) # Sun Fortran 8.3
12791 tmp_sharedflag
='-G' ;;
12793 archive_cmds_GO
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12795 if test "x$supports_anon_versioning" = xyes
; then
12796 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12798 echo "local: *; };" >> $output_objdir/$libname.ver~
12799 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12802 case $cc_basename in
12803 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12805 whole_archive_flag_spec_GO
='--whole-archive$convenience --no-whole-archive'
12806 hardcode_libdir_flag_spec_GO
=
12807 hardcode_libdir_flag_spec_ld_GO
='-rpath $libdir'
12808 archive_cmds_GO
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12809 if test "x$supports_anon_versioning" = xyes
; then
12810 archive_expsym_cmds_GO
='echo "{ global:" > $output_objdir/$libname.ver~
12811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12812 echo "local: *; };" >> $output_objdir/$libname.ver~
12813 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12823 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12824 archive_cmds_GO
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12827 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12828 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12833 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12837 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12838 *** create shared libraries on Solaris systems. Therefore, libtool
12839 *** is disabling shared libraries support. We urge you to upgrade GNU
12840 *** binutils to release 2.9.1 or newer. Another option is to modify
12841 *** your PATH or compiler configuration so that the native linker is
12842 *** used, and then restart.
12845 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12846 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12853 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12854 case `$LD -v 2>&1` in
12855 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12859 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12860 *** reliably create shared libraries on SCO systems. Therefore, libtool
12861 *** is disabling shared libraries support. We urge you to upgrade GNU
12862 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12863 *** your PATH or compiler configuration so that the native linker is
12864 *** used, and then restart.
12869 # For security reasons, it is highly recommended that you always
12870 # use absolute paths for naming shared libraries, and exclude the
12871 # DT_RUNPATH tag from executables and libraries. But doing so
12872 # requires that you compile everything twice, which is a pain.
12873 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12874 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
12875 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12876 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12885 archive_cmds_GO
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12887 hardcode_direct_GO
=yes
12888 hardcode_shlibpath_var_GO
=no
12892 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12893 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12894 archive_expsym_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12901 if test "$ld_shlibs_GO" = no
; then
12903 hardcode_libdir_flag_spec_GO
=
12904 export_dynamic_flag_spec_GO
=
12905 whole_archive_flag_spec_GO
=
12908 # PORTME fill in a description of your system's linker (not GNU ld)
12911 allow_undefined_flag_GO
=unsupported
12912 always_export_symbols_GO
=yes
12913 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'
12914 # Note: this linker hardcodes the directories in LIBPATH if there
12915 # are no directories specified by -L.
12916 hardcode_minus_L_GO
=yes
12917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12918 # Neither direct hardcoding nor static linking is supported with a
12920 hardcode_direct_GO
=unsupported
12925 if test "$host_cpu" = ia64
; then
12926 # On IA64, the linker does run time linking by default, so we don't
12927 # have to do anything special.
12928 aix_use_runtimelinking
=no
12929 exp_sym_flag
='-Bexport'
12932 # If we're using GNU nm, then we don't want the "-C" option.
12933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12934 # Also, AIX nm treats weak defined symbols like other global
12935 # defined symbols, whereas GNU nm marks them as "W".
12936 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
12937 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'
12939 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'
12941 aix_use_runtimelinking
=no
12943 # Test if we are trying to use run time linking or normal
12944 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12945 # need to do runtime linking.
12946 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12947 for ld_flag
in $LDFLAGS; do
12948 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12949 aix_use_runtimelinking
=yes
12956 exp_sym_flag
='-bexport'
12957 no_entry_flag
='-bnoentry'
12960 # When large executables or shared objects are built, AIX ld can
12961 # have problems creating the table of contents. If linking a library
12962 # or program results in "error TOC overflow" add -mminimal-toc to
12963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12967 hardcode_direct_GO
=yes
12968 hardcode_direct_absolute_GO
=yes
12969 hardcode_libdir_separator_GO
=':'
12970 link_all_deplibs_GO
=yes
12971 file_list_spec_GO
='${wl}-f,'
12973 if test "$GCC" = yes; then
12974 case $host_os in aix4.
[012]|aix4.
[012].
*)
12975 # We only want to do this on AIX 4.2 and lower, the check
12976 # below for broken collect2 doesn't work under 4.3+
12977 collect2name
=`${CC} -print-prog-name=collect2`
12978 if test -f "$collect2name" &&
12979 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12981 # We have reworked collect2
12984 # We have old collect2
12985 hardcode_direct_GO
=unsupported
12986 # It fails to find uninstalled libraries when the uninstalled
12987 # path is not listed in the libpath. Setting hardcode_minus_L
12988 # to unsupported forces relinking
12989 hardcode_minus_L_GO
=yes
12990 hardcode_libdir_flag_spec_GO
='-L$libdir'
12991 hardcode_libdir_separator_GO
=
12995 shared_flag
='-shared'
12996 if test "$aix_use_runtimelinking" = yes; then
12997 shared_flag
="$shared_flag "'${wl}-G'
13001 if test "$host_cpu" = ia64
; then
13002 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13003 # chokes on -Wl,-G. The following line is correct:
13006 if test "$aix_use_runtimelinking" = yes; then
13007 shared_flag
='${wl}-G'
13009 shared_flag
='${wl}-bM:SRE'
13014 export_dynamic_flag_spec_GO
='${wl}-bexpall'
13015 # It seems that -bexpall does not export symbols beginning with
13016 # underscore (_), so it is better to generate a list of symbols to export.
13017 always_export_symbols_GO
=yes
13018 if test "$aix_use_runtimelinking" = yes; then
13019 # Warning - without using the other runtime loading flags (-brtl),
13020 # -berok will link without error, but may produce a broken library.
13021 allow_undefined_flag_GO
='-berok'
13022 # Determine the default libpath from the value encoded in an
13023 # empty executable.
13024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13035 if ac_fn_c_try_link
"$LINENO"; then :
13037 lt_aix_libpath_sed
='
13038 /Import File Strings/,/^$/ {
13044 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 # Check for a 64-bit object if we didn't find anything.
13046 if test -z "$aix_libpath"; then
13047 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13050 rm -f core conftest.err conftest.
$ac_objext \
13051 conftest
$ac_exeext conftest.
$ac_ext
13052 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13054 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
13055 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"
13057 if test "$host_cpu" = ia64
; then
13058 hardcode_libdir_flag_spec_GO
='${wl}-R $libdir:/usr/lib:/lib'
13059 allow_undefined_flag_GO
="-z nodefs"
13060 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"
13062 # Determine the default libpath from the value encoded in an
13063 # empty executable.
13064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13075 if ac_fn_c_try_link
"$LINENO"; then :
13077 lt_aix_libpath_sed
='
13078 /Import File Strings/,/^$/ {
13084 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085 # Check for a 64-bit object if we didn't find anything.
13086 if test -z "$aix_libpath"; then
13087 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13090 rm -f core conftest.err conftest.
$ac_objext \
13091 conftest
$ac_exeext conftest.
$ac_ext
13092 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13094 hardcode_libdir_flag_spec_GO
='${wl}-blibpath:$libdir:'"$aix_libpath"
13095 # Warning - without using the other run time loading flags,
13096 # -berok will link without error, but may produce a broken library.
13097 no_undefined_flag_GO
=' ${wl}-bernotok'
13098 allow_undefined_flag_GO
=' ${wl}-berok'
13099 if test "$with_gnu_ld" = yes; then
13100 # We only use this code for GNU lds that support --whole-archive.
13101 whole_archive_flag_spec_GO
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13103 # Exported symbols can be pulled into shared objects from archives
13104 whole_archive_flag_spec_GO
='$convenience'
13106 archive_cmds_need_lc_GO
=yes
13107 # This is similar to how AIX traditionally builds its shared libraries.
13108 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'
13116 # see comment about AmigaOS4 .so support
13117 archive_cmds_GO
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 archive_expsym_cmds_GO
=''
13121 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)'
13122 hardcode_libdir_flag_spec_GO
='-L$libdir'
13123 hardcode_minus_L_GO
=yes
13129 export_dynamic_flag_spec_GO
=-rdynamic
13132 cygwin
* | mingw
* | pw32
* | cegcc
*)
13133 # When not using gcc, we currently assume that we are using
13134 # Microsoft Visual C++.
13135 # hardcode_libdir_flag_spec is actually meaningless, as there is
13136 # no search path for DLLs.
13137 hardcode_libdir_flag_spec_GO
=' '
13138 allow_undefined_flag_GO
=unsupported
13139 # Tell ltmain to make .lib files, not .a files.
13141 # Tell ltmain to make .dll files, not .so files.
13143 # FIXME: Setting linknames here is a bad hack.
13144 archive_cmds_GO
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13145 # The linker will automatically build a .lib file if we build a DLL.
13146 old_archive_from_new_cmds_GO
='true'
13147 # FIXME: Should let the user specify the lib program.
13148 old_archive_cmds_GO
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13149 fix_srcfile_path_GO
='`cygpath -w "$srcfile"`'
13150 enable_shared_with_static_runtimes_GO
=yes
13153 darwin
* | rhapsody
*)
13156 archive_cmds_need_lc_GO
=no
13157 hardcode_direct_GO
=no
13158 hardcode_automatic_GO
=yes
13159 hardcode_shlibpath_var_GO
=unsupported
13160 if test "$lt_cv_ld_force_load" = "yes"; then
13161 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\"`'
13163 whole_archive_flag_spec_GO
=''
13165 link_all_deplibs_GO
=yes
13166 allow_undefined_flag_GO
="$_lt_dar_allow_undefined"
13167 case $cc_basename in
13168 ifort
*) _lt_dar_can_shared
=yes ;;
13169 *) _lt_dar_can_shared
=$GCC ;;
13171 if test "$_lt_dar_can_shared" = "yes"; then
13172 output_verbose_link_cmd
=func_echo_all
13173 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}"
13174 module_cmds_GO
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13175 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}"
13176 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}"
13185 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13186 hardcode_libdir_flag_spec_GO
='-L$libdir'
13187 hardcode_shlibpath_var_GO
=no
13190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13191 # support. Future versions do this automatically, but an explicit c++rt0.o
13192 # does not break anything, and helps significantly (at the cost of a little
13195 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13196 hardcode_libdir_flag_spec_GO
='-R$libdir'
13197 hardcode_direct_GO
=yes
13198 hardcode_shlibpath_var_GO
=no
13201 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13203 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13204 hardcode_direct_GO
=yes
13205 hardcode_minus_L_GO
=yes
13206 hardcode_shlibpath_var_GO
=no
13209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13210 freebsd
* | dragonfly
*)
13211 archive_cmds_GO
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13212 hardcode_libdir_flag_spec_GO
='-R$libdir'
13213 hardcode_direct_GO
=yes
13214 hardcode_shlibpath_var_GO
=no
13218 if test "$GCC" = yes; then
13219 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'
13221 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'
13223 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_separator_GO
=:
13225 hardcode_direct_GO
=yes
13227 # hardcode_minus_L: Not really in the search PATH,
13228 # but as the default location of the library.
13229 hardcode_minus_L_GO
=yes
13230 export_dynamic_flag_spec_GO
='${wl}-E'
13234 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13235 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13237 archive_cmds_GO
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13239 if test "$with_gnu_ld" = no
; then
13240 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13241 hardcode_libdir_flag_spec_ld_GO
='+b $libdir'
13242 hardcode_libdir_separator_GO
=:
13243 hardcode_direct_GO
=yes
13244 hardcode_direct_absolute_GO
=yes
13245 export_dynamic_flag_spec_GO
='${wl}-E'
13246 # hardcode_minus_L: Not really in the search PATH,
13247 # but as the default location of the library.
13248 hardcode_minus_L_GO
=yes
13253 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13256 archive_cmds_GO
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13259 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13262 archive_cmds_GO
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13268 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13271 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13274 archive_cmds_GO
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13278 if test "$with_gnu_ld" = no
; then
13279 hardcode_libdir_flag_spec_GO
='${wl}+b ${wl}$libdir'
13280 hardcode_libdir_separator_GO
=:
13284 hardcode_direct_GO
=no
13285 hardcode_shlibpath_var_GO
=no
13288 hardcode_direct_GO
=yes
13289 hardcode_direct_absolute_GO
=yes
13290 export_dynamic_flag_spec_GO
='${wl}-E'
13292 # hardcode_minus_L: Not really in the search PATH,
13293 # but as the default location of the library.
13294 hardcode_minus_L_GO
=yes
13300 irix5
* | irix6
* | nonstopux
*)
13301 if test "$GCC" = yes; then
13302 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'
13303 # Try to use the -exported_symbol ld option, if it does not
13304 # work, assume that -exports_file does not work either and
13305 # implicitly export all symbols.
13306 save_LDFLAGS
="$LDFLAGS"
13307 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13312 if ac_fn_c_try_link
"$LINENO"; then :
13313 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'
13316 rm -f core conftest.err conftest.
$ac_objext \
13317 conftest
$ac_exeext conftest.
$ac_ext
13318 LDFLAGS
="$save_LDFLAGS"
13320 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'
13321 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'
13323 archive_cmds_need_lc_GO
='no'
13324 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13325 hardcode_libdir_separator_GO
=:
13326 inherit_rpath_GO
=yes
13327 link_all_deplibs_GO
=yes
13331 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13332 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13334 archive_cmds_GO
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13336 hardcode_libdir_flag_spec_GO
='-R$libdir'
13337 hardcode_direct_GO
=yes
13338 hardcode_shlibpath_var_GO
=no
13342 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13343 hardcode_direct_GO
=yes
13344 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13345 hardcode_libdir_separator_GO
=:
13346 hardcode_shlibpath_var_GO
=no
13353 if test -f /usr
/libexec
/ld.so
; then
13354 hardcode_direct_GO
=yes
13355 hardcode_shlibpath_var_GO
=no
13356 hardcode_direct_absolute_GO
=yes
13357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13358 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13359 archive_expsym_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13360 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
13361 export_dynamic_flag_spec_GO
='${wl}-E'
13364 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13365 archive_cmds_GO
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13366 hardcode_libdir_flag_spec_GO
='-R$libdir'
13369 archive_cmds_GO
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13370 hardcode_libdir_flag_spec_GO
='${wl}-rpath,$libdir'
13380 hardcode_libdir_flag_spec_GO
='-L$libdir'
13381 hardcode_minus_L_GO
=yes
13382 allow_undefined_flag_GO
=unsupported
13383 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'
13384 old_archive_from_new_cmds_GO
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13388 if test "$GCC" = yes; then
13389 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
13390 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'
13392 allow_undefined_flag_GO
=' -expect_unresolved \*'
13393 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'
13395 archive_cmds_need_lc_GO
='no'
13396 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13397 hardcode_libdir_separator_GO
=:
13400 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13401 if test "$GCC" = yes; then
13402 allow_undefined_flag_GO
=' ${wl}-expect_unresolved ${wl}\*'
13403 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'
13404 hardcode_libdir_flag_spec_GO
='${wl}-rpath ${wl}$libdir'
13406 allow_undefined_flag_GO
=' -expect_unresolved \*'
13407 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'
13408 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~
13409 $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'
13411 # Both c and cxx compiler support -rpath directly
13412 hardcode_libdir_flag_spec_GO
='-rpath $libdir'
13414 archive_cmds_need_lc_GO
='no'
13415 hardcode_libdir_separator_GO
=:
13419 no_undefined_flag_GO
=' -z defs'
13420 if test "$GCC" = yes; then
13422 archive_cmds_GO
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13423 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13424 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13426 case `$CC -V 2>&1` in
13429 archive_cmds_GO
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13430 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13435 archive_cmds_GO
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13436 archive_expsym_cmds_GO
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13437 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13441 hardcode_libdir_flag_spec_GO
='-R$libdir'
13442 hardcode_shlibpath_var_GO
=no
13444 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13446 # The compiler driver will combine and reorder linker options,
13447 # but understands `-z linker_flag'. GCC discards it without `$wl',
13448 # but is careful enough not to reorder.
13449 # Supported since Solaris 2.6 (maybe 2.5.1?)
13450 if test "$GCC" = yes; then
13451 whole_archive_flag_spec_GO
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13453 whole_archive_flag_spec_GO
='-z allextract$convenience -z defaultextract'
13457 link_all_deplibs_GO
=yes
13461 if test "x$host_vendor" = xsequent
; then
13462 # Use $CC to link under sequent, because it throws in some extra .o
13463 # files that make .init and .fini sections work.
13464 archive_cmds_GO
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_cmds_GO
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13468 hardcode_libdir_flag_spec_GO
='-L$libdir'
13469 hardcode_direct_GO
=yes
13470 hardcode_minus_L_GO
=yes
13471 hardcode_shlibpath_var_GO
=no
13475 case $host_vendor in
13477 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13478 hardcode_direct_GO
=yes # is this really true???
13481 ## LD is ld it makes a PLAMLIB
13482 ## CC just makes a GrossModule.
13483 archive_cmds_GO
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13484 reload_cmds_GO
='$CC -r -o $output$reload_objs'
13485 hardcode_direct_GO
=no
13488 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_direct_GO
=no
#Motorola manual says yes, but my tests say they lie
13492 runpath_var
='LD_RUN_PATH'
13493 hardcode_shlibpath_var_GO
=no
13497 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_shlibpath_var_GO
=no
13499 export_dynamic_flag_spec_GO
='-Bexport'
13503 if test -d /usr
/nec
; then
13504 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_shlibpath_var_GO
=no
13506 runpath_var
=LD_RUN_PATH
13507 hardcode_runpath_var
=yes
13512 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13513 no_undefined_flag_GO
='${wl}-z,text'
13514 archive_cmds_need_lc_GO
=no
13515 hardcode_shlibpath_var_GO
=no
13516 runpath_var
='LD_RUN_PATH'
13518 if test "$GCC" = yes; then
13519 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13522 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 sysv5
* | sco3.2v5
* | sco5v6
*)
13528 # Note: We can NOT use -z defs as we might desire, because we do not
13529 # link with -lc, and that would cause any symbols used from libc to
13530 # always be unresolved, which means just about no library would
13531 # ever link correctly. If we're not using GNU ld we use -z text
13532 # though, which does catch some bad symbols but isn't as heavy-handed
13534 no_undefined_flag_GO
='${wl}-z,text'
13535 allow_undefined_flag_GO
='${wl}-z,nodefs'
13536 archive_cmds_need_lc_GO
=no
13537 hardcode_shlibpath_var_GO
=no
13538 hardcode_libdir_flag_spec_GO
='${wl}-R,$libdir'
13539 hardcode_libdir_separator_GO
=':'
13540 link_all_deplibs_GO
=yes
13541 export_dynamic_flag_spec_GO
='${wl}-Bexport'
13542 runpath_var
='LD_RUN_PATH'
13544 if test "$GCC" = yes; then
13545 archive_cmds_GO
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_expsym_cmds_GO
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_cmds_GO
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_expsym_cmds_GO
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_cmds_GO
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13555 hardcode_libdir_flag_spec_GO
='-L$libdir'
13556 hardcode_shlibpath_var_GO
=no
13564 if test x
$host_vendor = xsni
; then
13566 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13567 export_dynamic_flag_spec_GO
='${wl}-Blargedynsym'
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13574 $as_echo "$ld_shlibs_GO" >&6; }
13575 test "$ld_shlibs_GO" = no
&& can_build_shared
=no
13577 with_gnu_ld_GO
=$with_gnu_ld
13585 # Do we need to explicitly link libc?
13587 case "x$archive_cmds_need_lc_GO" in
13589 # Assume -lc should be added
13590 archive_cmds_need_lc_GO
=yes
13592 if test "$enable_shared" = yes && test "$GCC" = yes; then
13593 case $archive_cmds_GO in
13595 # FIXME: we may have to deal with multi-command sequences.
13598 # Test whether the compiler implicitly links with -lc since on some
13599 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13600 # to ld, don't add -lc before -lgcc.
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13602 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13603 if ${lt_cv_archive_cmds_need_lc_GO+:} false
; then :
13604 $as_echo_n "(cached) " >&6
13607 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13610 (eval $ac_compile) 2>&5
13612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613 test $ac_status = 0; } 2>conftest.err
; then
13616 libobjs
=conftest.
$ac_objext
13618 wl
=$lt_prog_compiler_wl_GO
13619 pic_flag
=$lt_prog_compiler_pic_GO
13625 lt_save_allow_undefined_flag
=$allow_undefined_flag_GO
13626 allow_undefined_flag_GO
=
13627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13628 (eval $archive_cmds_GO 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13631 test $ac_status = 0; }
13633 lt_cv_archive_cmds_need_lc_GO
=no
13635 lt_cv_archive_cmds_need_lc_GO
=yes
13637 allow_undefined_flag_GO
=$lt_save_allow_undefined_flag
13639 cat conftest.err
1>&5
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13645 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13646 archive_cmds_need_lc_GO
=$lt_cv_archive_cmds_need_lc_GO
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13717 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13718 hardcode_action_GO
=
13719 if test -n "$hardcode_libdir_flag_spec_GO" ||
13720 test -n "$runpath_var_GO" ||
13721 test "X$hardcode_automatic_GO" = "Xyes" ; then
13723 # We can hardcode non-existent directories.
13724 if test "$hardcode_direct_GO" != no
&&
13725 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13726 # have to relink, otherwise we might link with an installed library
13727 # when we should be linking with a yet-to-be-installed one
13728 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13729 test "$hardcode_minus_L_GO" != no
; then
13730 # Linking always hardcodes the temporary library directory.
13731 hardcode_action_GO
=relink
13733 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13734 hardcode_action_GO
=immediate
13737 # We cannot hardcode anything, or else we can only hardcode existing
13739 hardcode_action_GO
=unsupported
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13742 $as_echo "$hardcode_action_GO" >&6; }
13744 if test "$hardcode_action_GO" = relink ||
13745 test "$inherit_rpath_GO" = yes; then
13746 # Fast installation is not supported
13747 enable_fast_install
=no
13748 elif test "$shlibpath_overrides_runpath" = yes ||
13749 test "$enable_shared" = no
; then
13750 # Fast installation is not necessary
13751 enable_fast_install
=needless
13763 ac_cpp
='$CPP $CPPFLAGS'
13764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13775 ac_config_commands
="$ac_config_commands libtool"
13780 # Only expand once:
13785 if test x
$enable_darwin_at_rpath = xyes
; then
13786 ENABLE_DARWIN_AT_RPATH_TRUE
=
13787 ENABLE_DARWIN_AT_RPATH_FALSE
='#'
13789 ENABLE_DARWIN_AT_RPATH_TRUE
='#'
13790 ENABLE_DARWIN_AT_RPATH_FALSE
=
13794 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
13797 for ac_prog
in gawk mawk nawk
awk
13799 # Extract the first word of "$ac_prog", so it can be a program name with args.
13800 set dummy
$ac_prog; ac_word
=$2
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13802 $as_echo_n "checking for $ac_word... " >&6; }
13803 if ${ac_cv_prog_AWK+:} false
; then :
13804 $as_echo_n "(cached) " >&6
13806 if test -n "$AWK"; then
13807 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
13809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13810 for as_dir
in $PATH
13813 test -z "$as_dir" && as_dir
=.
13814 for ac_exec_ext
in '' $ac_executable_extensions; do
13815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13816 ac_cv_prog_AWK
="$ac_prog"
13817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13826 AWK
=$ac_cv_prog_AWK
13827 if test -n "$AWK"; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13829 $as_echo "$AWK" >&6; }
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13836 test -n "$AWK" && break
13840 WARN_FLAGS
='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13843 # Check whether --enable-werror was given.
13844 if test "${enable_werror+set}" = set; then :
13845 enableval
=$enable_werror;
13848 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
13853 glibgo_toolexecdir
=no
13854 glibgo_toolexeclibdir
=no
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13857 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13858 # Check whether --enable-version-specific-runtime-libs was given.
13859 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13860 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
13861 yes) version_specific_libs
=yes ;;
13862 no
) version_specific_libs
=no
;;
13863 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13866 version_specific_libs
=no
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13870 $as_echo "$version_specific_libs" >&6; }
13873 # Check whether --with-toolexeclibdir was given.
13874 if test "${with_toolexeclibdir+set}" = set; then :
13875 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13879 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
13883 with_toolexeclibdir
=no
13888 # Version-specific runtime libs processing.
13889 if test $version_specific_libs = yes; then
13890 glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13891 glibgo_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13894 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13895 # Install a library built with a cross compiler in tooldir, not libdir.
13896 if test -n "$with_cross_host" &&
13897 test x
"$with_cross_host" != x
"no"; then
13898 nover_glibgo_toolexecdir
='${exec_prefix}/${host_alias}'
13899 case ${with_toolexeclibdir} in
13901 nover_glibgo_toolexeclibdir
='${toolexecdir}/lib'
13904 nover_glibgo_toolexeclibdir
=${with_toolexeclibdir}
13908 nover_glibgo_toolexecdir
='${libdir}/gcc/${host_alias}'
13909 nover_glibgo_toolexeclibdir
='${libdir}'
13911 multi_os_directory
=`$GOC -print-multi-os-directory`
13912 case $multi_os_directory in
13913 .
) ;; # Avoid trailing /.
13914 *) nover_glibgo_toolexeclibdir
=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13917 if test x
"$glibgo_toolexecdir" = x
"no"; then
13918 glibgo_toolexecdir
="${nover_glibgo_toolexecdir}"
13919 glibgo_toolexeclibdir
="${nover_glibgo_toolexeclibdir}"
13926 # See if the user wants to configure without libffi. Some
13927 # architectures don't support it. FIXME: We should set a default
13928 # based on the host.
13930 # Check whether --with-libffi was given.
13931 if test "${with_libffi+set}" = set; then :
13932 withval
=$with_libffi; :
13934 with_libffi
=${with_libffi_default-yes}
13940 if test "$with_libffi" != no
; then
13942 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13944 LIBFFI
=..
/libffi
/libffi_convenience.la
13945 LIBFFIINCS
='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13949 if test "$with_libffi" != "no"; then
13951 USE_LIBFFI_FALSE
='#'
13953 USE_LIBFFI_TRUE
='#'
13958 # See if the user wants to configure without libatomic. This is useful if we are
13959 # on an architecture for which libgo does not need an atomic support library and
13960 # libatomic does not support our C compiler.
13962 # Check whether --with-libatomic was given.
13963 if test "${with_libatomic+set}" = set; then :
13964 withval
=$with_libatomic; :
13966 with_libatomic
=${with_libatomic_default-yes}
13971 if test "$with_libatomic" != no
; then
13972 LIBATOMIC
=..
/libatomic
/libatomic_convenience.la
13976 # Used to tell GNU make to include a file without telling automake to
13978 go_include
="-include"
13981 # All known GOOS values. This is the union of all operating systems
13982 # supported by the gofrontend and all operating systems supported by
13983 # the gc toolchain.
13984 ALLGOOS
="aix android darwin dragonfly freebsd hurd illumos ios irix js linux netbsd openbsd plan9 rtems solaris windows zos"
13999 *-*-darwin*) is_darwin
=yes; GOOS
=darwin
;;
14000 *-*-freebsd*) is_freebsd
=yes; GOOS
=freebsd
;;
14001 *-*-irix6*) is_irix
=yes; GOOS
=irix
;;
14002 *-*-linux*) is_linux
=yes; GOOS
=linux
;;
14003 *-*-netbsd*) is_netbsd
=yes; GOOS
=netbsd
;;
14004 *-*-openbsd*) is_openbsd
=yes; GOOS
=openbsd
;;
14005 *-*-dragonfly*) is_dragonfly
=yes; GOOS
=dragonfly
;;
14006 *-*-rtems*) is_rtems
=yes; GOOS
=rtems
;;
14007 *-*-solaris2*) is_solaris
=yes; GOOS
=solaris
;;
14008 *-*-aix*) is_aix
=yes; GOOS
=aix
;;
14009 *-*-gnu*) is_hurd
=yes; GOOS
=hurd
;;
14011 if test $is_darwin = yes; then
14012 LIBGO_IS_DARWIN_TRUE
=
14013 LIBGO_IS_DARWIN_FALSE
='#'
14015 LIBGO_IS_DARWIN_TRUE
='#'
14016 LIBGO_IS_DARWIN_FALSE
=
14019 if test $is_freebsd = yes; then
14020 LIBGO_IS_FREEBSD_TRUE
=
14021 LIBGO_IS_FREEBSD_FALSE
='#'
14023 LIBGO_IS_FREEBSD_TRUE
='#'
14024 LIBGO_IS_FREEBSD_FALSE
=
14027 if test $is_irix = yes; then
14028 LIBGO_IS_IRIX_TRUE
=
14029 LIBGO_IS_IRIX_FALSE
='#'
14031 LIBGO_IS_IRIX_TRUE
='#'
14032 LIBGO_IS_IRIX_FALSE
=
14035 if test $is_linux = yes; then
14036 LIBGO_IS_LINUX_TRUE
=
14037 LIBGO_IS_LINUX_FALSE
='#'
14039 LIBGO_IS_LINUX_TRUE
='#'
14040 LIBGO_IS_LINUX_FALSE
=
14043 if test $is_netbsd = yes; then
14044 LIBGO_IS_NETBSD_TRUE
=
14045 LIBGO_IS_NETBSD_FALSE
='#'
14047 LIBGO_IS_NETBSD_TRUE
='#'
14048 LIBGO_IS_NETBSD_FALSE
=
14051 if test $is_openbsd = yes; then
14052 LIBGO_IS_OPENBSD_TRUE
=
14053 LIBGO_IS_OPENBSD_FALSE
='#'
14055 LIBGO_IS_OPENBSD_TRUE
='#'
14056 LIBGO_IS_OPENBSD_FALSE
=
14059 if test $is_dragonfly = yes; then
14060 LIBGO_IS_DRAGONFLY_TRUE
=
14061 LIBGO_IS_DRAGONFLY_FALSE
='#'
14063 LIBGO_IS_DRAGONFLY_TRUE
='#'
14064 LIBGO_IS_DRAGONFLY_FALSE
=
14067 if test $is_rtems = yes; then
14068 LIBGO_IS_RTEMS_TRUE
=
14069 LIBGO_IS_RTEMS_FALSE
='#'
14071 LIBGO_IS_RTEMS_TRUE
='#'
14072 LIBGO_IS_RTEMS_FALSE
=
14075 if test $is_solaris = yes; then
14076 LIBGO_IS_SOLARIS_TRUE
=
14077 LIBGO_IS_SOLARIS_FALSE
='#'
14079 LIBGO_IS_SOLARIS_TRUE
='#'
14080 LIBGO_IS_SOLARIS_FALSE
=
14083 if test $is_aix = yes; then
14085 LIBGO_IS_AIX_FALSE
='#'
14087 LIBGO_IS_AIX_TRUE
='#'
14088 LIBGO_IS_AIX_FALSE
=
14091 if test $is_hurd = yes; then
14092 LIBGO_IS_HURD_TRUE
=
14093 LIBGO_IS_HURD_FALSE
='#'
14095 LIBGO_IS_HURD_TRUE
='#'
14096 LIBGO_IS_HURD_FALSE
=
14099 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14101 LIBGO_IS_BSD_FALSE
='#'
14103 LIBGO_IS_BSD_TRUE
='#'
14104 LIBGO_IS_BSD_FALSE
=
14112 *-*-rtems*) USE_DEJAGNU
=yes ;;
14114 *) USE_DEJAGNU
=yes ;;
14118 # All known GOARCH values. This is the union of all architectures
14119 # supported by the gofrontend and all architectures supported by the
14121 # To add a new architecture:
14122 # - add it to this list
14123 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14124 # - add an entry to the case on ${host} below to set GOARCH
14125 # - update goarchList in libgo/go/go/build/syslist.go
14126 # - update goarch.sh to report the values for this architecture
14127 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14128 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14129 # - update arch lists in libgo/match.sh
14130 # - update arch lists in libgo/testsuite/gotest
14131 # - update +build lines in several places
14132 # - libgo/go/runtime/lfstack_NNbit.go
14133 # - libgo/go/runtime/hashNN.go
14134 # - libgo/go/runtime/unalignedN.go
14135 # - libgo/go/syscall/endian_XX.go
14136 # - possibly others
14137 # - possibly update files in libgo/go/internal/syscall/unix
14138 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"
14140 # All known GOARCH family values.
14141 ALLGOARCHFAMILY
="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14154 arm
*-*-* | strongarm
*-*-* | ep9312
*-*-* | xscale-
*-*)
14162 i
[34567]86-*-* | x86_64-
*-*)
14163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14171 if ac_fn_c_try_compile
"$LINENO"; then :
14174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14182 if ac_fn_c_try_compile
"$LINENO"; then :
14187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14201 #if _MIPS_SIM != _ABIO32
14206 if ac_fn_c_try_compile
"$LINENO"; then :
14209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14212 #if _MIPS_SIM != _ABIN32
14217 if ac_fn_c_try_compile
"$LINENO"; then :
14220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14223 #if _MIPS_SIM != _ABI64
14228 if ac_fn_c_try_compile
"$LINENO"; then :
14231 as_fn_error $?
"unknown MIPS ABI" "$LINENO" 5
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14239 case "$mips_abi" in
14240 "o32") GOARCH
=mips
;;
14241 "n32") GOARCH
=mips64p32
;;
14242 "n64") GOARCH
=mips64
;;
14246 GOARCH
="${GOARCH}le"
14253 rs6000
*-*-* | powerpc
*-*-*)
14254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14262 if ac_fn_c_try_compile
"$LINENO"; then :
14266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14269 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14274 if ac_fn_c_try_compile
"$LINENO"; then :
14279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14287 #if __riscv_xlen == 64
14292 if ac_fn_c_try_compile
"$LINENO"; then :
14297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14303 #if defined(__s390x__)
14308 if ac_fn_c_try_compile
"$LINENO"; then :
14313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14315 sh3eb
*-*-* | sh4eb
*-*-*)
14318 sh3
*-*-* | sh4
*-*-*)
14322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14325 #if defined(__sparcv9) || defined(__arch64__)
14330 if ac_fn_c_try_compile
"$LINENO"; then :
14335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14342 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14344 LIBGO_IS_X86_FALSE
='#'
14346 LIBGO_IS_X86_TRUE
='#'
14347 LIBGO_IS_X86_FALSE
=
14351 FUNCTION_DESCRIPTORS
=false
14353 rs6000
*-*-* | powerpc
*-*-*)
14354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14362 if ac_fn_c_try_compile
"$LINENO"; then :
14363 FUNCTION_DESCRIPTORS
=false
14365 FUNCTION_DESCRIPTORS
=true
14367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14372 GO_LIBCALL_OS_FILE
=
14373 GO_LIBCALL_OS_ARCH_FILE
=
14374 GO_SYSCALL_OS_FILE
=
14375 GO_SYSCALL_OS_ARCH_FILE
=
14376 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14377 GO_LIBCALL_OS_FILE
="go/syscall/libcall_${GOOS}.go"
14379 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14380 GO_LIBCALL_OS_ARCH_FILE
="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14382 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14383 GO_SYSCALL_OS_FILE
="go/syscall/syscall_${GOOS}.go"
14385 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14386 GO_SYSCALL_OS_ARCH_FILE
="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14393 OSCFLAGS
="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14396 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14397 # msghdr in <sys/socket.h>.
14398 OSCFLAGS
="$OSCFLAGS -D_XOPEN_SOURCE=500"
14401 # Solaris 10+ needs this so struct msghdr gets the msg_control
14402 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14403 # above doesn't work with C99.
14404 OSCFLAGS
="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14410 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS
=''
14413 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14414 # with a different meaning.
14415 case ${target_os} in
14417 ac_save_CFLAGS
="$CFLAGS"
14418 CFLAGS
="$CFLAGS -Wa,-nH"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14421 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14433 if ac_fn_c_try_compile
"$LINENO"; then :
14438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14439 if test "$ac_hwcap_flags" = "yes"; then
14440 HWCAP_CFLAGS
="-Wa,-nH $HWCAP_CFLAGS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14443 $as_echo "$ac_hwcap_flags" >&6; }
14445 CFLAGS
="$ac_save_CFLAGS"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14453 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14454 if ${libgo_cv_c_split_stack_supported+:} false
; then :
14455 $as_echo_n "(cached) " >&6
14457 CFLAGS_hold
=$CFLAGS
14458 CFLAGS
="$CFLAGS -fsplit-stack"
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14463 if ac_fn_c_try_compile
"$LINENO"; then :
14464 libgo_cv_c_split_stack_supported
=yes
14466 libgo_cv_c_split_stack_supported
=no
14468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14469 CFLAGS
=$CFLAGS_hold
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14472 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14475 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14476 if ${libgo_cv_c_linker_split_non_split+:} false
; then :
14477 $as_echo_n "(cached) " >&6
14479 cat > conftest1.c
<< EOF
14481 int main() { f(); return 0; }
14483 cat > conftest2.c
<< EOF
14486 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c
>/dev
/null
2>&1
14487 $CC -c $CFLAGS $CPPFLAGS conftest2.c
> /dev
/null
2>&1
14488 if $CC -o conftest conftest1.
$ac_objext conftest2.
$ac_objext > /dev
/null
2>&1; then
14489 libgo_cv_c_linker_split_non_split
=yes
14491 libgo_cv_c_linker_split_non_split
=no
14493 rm -f conftest1.
* conftest2.
* conftest
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14496 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14498 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14499 SPLIT_STACK
=-fsplit-stack
14501 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14507 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14508 USING_SPLIT_STACK_TRUE
=
14509 USING_SPLIT_STACK_FALSE
='#'
14511 USING_SPLIT_STACK_TRUE
='#'
14512 USING_SPLIT_STACK_FALSE
=
14516 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no
; then
14517 GO_SPLIT_STACK
=-fno-split-stack
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14524 $as_echo_n "checking whether linker supports split stack... " >&6; }
14525 if ${libgo_cv_c_linker_supports_split_stack+:} false
; then :
14526 $as_echo_n "(cached) " >&6
14528 libgo_cv_c_linker_supports_split_stack
=no
14529 if $GOC -Wl,--help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
14530 libgo_cv_c_linker_supports_split_stack
=yes
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14534 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14535 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14537 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14542 $as_echo_n "checking whether compiler is llgo... " >&6; }
14543 if ${libgo_cv_c_goc_is_llgo+:} false
; then :
14544 $as_echo_n "(cached) " >&6
14546 libgo_cv_c_goc_is_llgo
=no
14547 if $GOC -dumpversion 2>/dev
/null |
grep llgo
>/dev
/null
2>&1; then
14548 libgo_cv_c_goc_is_llgo
=yes
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14552 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14553 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14555 GOC_IS_LLGO_FALSE
='#'
14557 GOC_IS_LLGO_TRUE
='#'
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14564 $as_echo_n "checking for sqrt in -lm... " >&6; }
14565 if ${ac_cv_lib_m_sqrt+:} false
; then :
14566 $as_echo_n "(cached) " >&6
14568 ac_check_lib_save_LIBS
=$LIBS
14570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14588 if ac_fn_c_try_link
"$LINENO"; then :
14589 ac_cv_lib_m_sqrt
=yes
14591 ac_cv_lib_m_sqrt
=no
14593 rm -f core conftest.err conftest.
$ac_objext \
14594 conftest
$ac_exeext conftest.
$ac_ext
14595 LIBS
=$ac_check_lib_save_LIBS
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14598 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14599 if test "x$ac_cv_lib_m_sqrt" = xyes
; then :
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14606 $as_echo_n "checking for socket libraries... " >&6; }
14607 if ${libgo_cv_lib_sockets+:} false
; then :
14608 $as_echo_n "(cached) " >&6
14610 libgo_cv_lib_sockets
=
14611 libgo_check_both
=no
14612 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
14613 if test "x$ac_cv_func_connect" = xyes
; then :
14614 libgo_check_socket
=no
14616 libgo_check_socket
=yes
14619 if test "$libgo_check_socket" = "yes"; then
14620 unset ac_cv_func_connect
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14622 $as_echo_n "checking for main in -lsocket... " >&6; }
14623 if ${ac_cv_lib_socket_main+:} false
; then :
14624 $as_echo_n "(cached) " >&6
14626 ac_check_lib_save_LIBS
=$LIBS
14627 LIBS
="-lsocket $LIBS"
14628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14640 if ac_fn_c_try_link
"$LINENO"; then :
14641 ac_cv_lib_socket_main
=yes
14643 ac_cv_lib_socket_main
=no
14645 rm -f core conftest.err conftest.
$ac_objext \
14646 conftest
$ac_exeext conftest.
$ac_ext
14647 LIBS
=$ac_check_lib_save_LIBS
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14650 $as_echo "$ac_cv_lib_socket_main" >&6; }
14651 if test "x$ac_cv_lib_socket_main" = xyes
; then :
14652 libgo_cv_lib_sockets
="-lsocket"
14654 libgo_check_both
=yes
14658 if test "$libgo_check_both" = "yes"; then
14659 libgo_old_libs
=$LIBS
14660 LIBS
="$LIBS -lsocket -lnsl"
14661 unset ac_cv_func_accept
14662 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
14663 if test "x$ac_cv_func_accept" = xyes
; then :
14665 libgo_cv_lib_sockets
="-lsocket -lnsl"
14668 unset ac_cv_func_accept
14669 LIBS
=$libgo_old_libs
14671 unset ac_cv_func_gethostbyname
14672 libgo_old_libs
="$LIBS"
14673 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14674 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14678 $as_echo_n "checking for main in -lnsl... " >&6; }
14679 if ${ac_cv_lib_nsl_main+:} false
; then :
14680 $as_echo_n "(cached) " >&6
14682 ac_check_lib_save_LIBS
=$LIBS
14684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14696 if ac_fn_c_try_link
"$LINENO"; then :
14697 ac_cv_lib_nsl_main
=yes
14699 ac_cv_lib_nsl_main
=no
14701 rm -f core conftest.err conftest.
$ac_objext \
14702 conftest
$ac_exeext conftest.
$ac_ext
14703 LIBS
=$ac_check_lib_save_LIBS
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14706 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14707 if test "x$ac_cv_lib_nsl_main" = xyes
; then :
14708 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lnsl"
14713 unset ac_cv_func_gethostbyname
14714 ac_fn_c_check_func
"$LINENO" "sendfile" "ac_cv_func_sendfile"
14715 if test "x$ac_cv_func_sendfile" = xyes
; then :
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14719 $as_echo_n "checking for main in -lsendfile... " >&6; }
14720 if ${ac_cv_lib_sendfile_main+:} false
; then :
14721 $as_echo_n "(cached) " >&6
14723 ac_check_lib_save_LIBS
=$LIBS
14724 LIBS
="-lsendfile $LIBS"
14725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14737 if ac_fn_c_try_link
"$LINENO"; then :
14738 ac_cv_lib_sendfile_main
=yes
14740 ac_cv_lib_sendfile_main
=no
14742 rm -f core conftest.err conftest.
$ac_objext \
14743 conftest
$ac_exeext conftest.
$ac_ext
14744 LIBS
=$ac_check_lib_save_LIBS
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14747 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14748 if test "x$ac_cv_lib_sendfile_main" = xyes
; then :
14749 libgo_cv_lib_sockets
="$libgo_cv_lib_sockets -lsendfile"
14754 LIBS
=$libgo_old_libs
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14758 $as_echo "$libgo_cv_lib_sockets" >&6; }
14759 NET_LIBS
="$libgo_cv_lib_sockets"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14763 $as_echo_n "checking whether -pthread is supported... " >&6; }
14764 if ${libgo_cv_lib_pthread+:} false
; then :
14765 $as_echo_n "(cached) " >&6
14767 CFLAGS_hold
=$CFLAGS
14768 CFLAGS
="$CFLAGS -pthread -L../libatomic/.libs"
14769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14773 if ac_fn_c_try_compile
"$LINENO"; then :
14774 libgo_cv_lib_pthread
=yes
14776 libgo_cv_lib_pthread
=no
14778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14779 CFLAGS
=$CFLAGS_hold
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14782 $as_echo "$libgo_cv_lib_pthread" >&6; }
14784 if test "$libgo_cv_lib_pthread" = yes; then
14785 # RISC-V apparently adds -latomic when using -pthread.
14786 PTHREAD_CFLAGS
="-pthread -L../libatomic/.libs"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14792 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14793 if ${ac_cv_lib_pthread_pthread_create+:} false
; then :
14794 $as_echo_n "(cached) " >&6
14796 ac_check_lib_save_LIBS
=$LIBS
14797 LIBS
="-lpthread $LIBS"
14798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14801 /* Override any GCC internal prototype to avoid an error.
14802 Use char because int might match the return type of a GCC
14803 builtin and then its argument prototype would still apply. */
14807 char pthread_create ();
14811 return pthread_create ();
14816 if ac_fn_c_try_link
"$LINENO"; then :
14817 ac_cv_lib_pthread_pthread_create
=yes
14819 ac_cv_lib_pthread_pthread_create
=no
14821 rm -f core conftest.err conftest.
$ac_objext \
14822 conftest
$ac_exeext conftest.
$ac_ext
14823 LIBS
=$ac_check_lib_save_LIBS
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14826 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14827 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
; then :
14828 PTHREAD_LIBS
=-lpthread
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing makecontext" >&5
14834 $as_echo_n "checking for library containing makecontext... " >&6; }
14835 if ${ac_cv_search_makecontext+:} false
; then :
14836 $as_echo_n "(cached) " >&6
14838 ac_func_search_save_LIBS
=$LIBS
14839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14842 /* Override any GCC internal prototype to avoid an error.
14843 Use char because int might match the return type of a GCC
14844 builtin and then its argument prototype would still apply. */
14848 char makecontext ();
14852 return makecontext ();
14857 for ac_lib
in '' ucontext
; do
14858 if test -z "$ac_lib"; then
14859 ac_res
="none required"
14862 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14864 if ac_fn_c_try_link
"$LINENO"; then :
14865 ac_cv_search_makecontext
=$ac_res
14867 rm -f core conftest.err conftest.
$ac_objext \
14869 if ${ac_cv_search_makecontext+:} false
; then :
14873 if ${ac_cv_search_makecontext+:} false
; then :
14876 ac_cv_search_makecontext
=no
14878 rm conftest.
$ac_ext
14879 LIBS
=$ac_func_search_save_LIBS
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_makecontext" >&5
14882 $as_echo "$ac_cv_search_makecontext" >&6; }
14883 ac_res
=$ac_cv_search_makecontext
14884 if test "$ac_res" != no
; then :
14885 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14891 $as_echo_n "checking for library containing sched_yield... " >&6; }
14892 if ${ac_cv_search_sched_yield+:} false
; then :
14893 $as_echo_n "(cached) " >&6
14895 ac_func_search_save_LIBS
=$LIBS
14896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14905 char sched_yield ();
14909 return sched_yield ();
14914 for ac_lib
in '' rt
; do
14915 if test -z "$ac_lib"; then
14916 ac_res
="none required"
14919 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14921 if ac_fn_c_try_link
"$LINENO"; then :
14922 ac_cv_search_sched_yield
=$ac_res
14924 rm -f core conftest.err conftest.
$ac_objext \
14926 if ${ac_cv_search_sched_yield+:} false
; then :
14930 if ${ac_cv_search_sched_yield+:} false
; then :
14933 ac_cv_search_sched_yield
=no
14935 rm conftest.
$ac_ext
14936 LIBS
=$ac_func_search_save_LIBS
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14939 $as_echo "$ac_cv_search_sched_yield" >&6; }
14940 ac_res
=$ac_cv_search_sched_yield
14941 if test "$ac_res" != no
; then :
14942 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14947 $as_echo_n "checking for library containing nanosleep... " >&6; }
14948 if ${ac_cv_search_nanosleep+:} false
; then :
14949 $as_echo_n "(cached) " >&6
14951 ac_func_search_save_LIBS
=$LIBS
14952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14965 return nanosleep ();
14970 for ac_lib
in '' rt
; do
14971 if test -z "$ac_lib"; then
14972 ac_res
="none required"
14975 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14977 if ac_fn_c_try_link
"$LINENO"; then :
14978 ac_cv_search_nanosleep
=$ac_res
14980 rm -f core conftest.err conftest.
$ac_objext \
14982 if ${ac_cv_search_nanosleep+:} false
; then :
14986 if ${ac_cv_search_nanosleep+:} false
; then :
14989 ac_cv_search_nanosleep
=no
14991 rm conftest.
$ac_ext
14992 LIBS
=$ac_func_search_save_LIBS
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14995 $as_echo "$ac_cv_search_nanosleep" >&6; }
14996 ac_res
=$ac_cv_search_nanosleep
14997 if test "$ac_res" != no
; then :
14998 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15003 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15004 if ${ac_cv_search_clock_gettime+:} false
; then :
15005 $as_echo_n "(cached) " >&6
15007 ac_func_search_save_LIBS
=$LIBS
15008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15011 /* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15017 char clock_gettime ();
15021 return clock_gettime ();
15026 for ac_lib
in '' rt
; do
15027 if test -z "$ac_lib"; then
15028 ac_res
="none required"
15031 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15033 if ac_fn_c_try_link
"$LINENO"; then :
15034 ac_cv_search_clock_gettime
=$ac_res
15036 rm -f core conftest.err conftest.
$ac_objext \
15038 if ${ac_cv_search_clock_gettime+:} false
; then :
15042 if ${ac_cv_search_clock_gettime+:} false
; then :
15045 ac_cv_search_clock_gettime
=no
15047 rm conftest.
$ac_ext
15048 LIBS
=$ac_func_search_save_LIBS
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15051 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15052 ac_res
=$ac_cv_search_clock_gettime
15053 if test "$ac_res" != no
; then :
15054 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15060 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15061 if ${ac_cv_c_bigendian+:} false
; then :
15062 $as_echo_n "(cached) " >&6
15064 ac_cv_c_bigendian
=unknown
15065 # See if we're dealing with a universal compiler.
15066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068 #ifndef __APPLE_CC__
15069 not a universal capable compiler
15074 if ac_fn_c_try_compile
"$LINENO"; then :
15076 # Check for potential -arch flags. It is not universal unless
15077 # there are at least two -arch flags with different values.
15080 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15081 if test -n "$ac_prev"; then
15083 i?
86 | x86_64 | ppc | ppc64
)
15084 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
15087 ac_cv_c_bigendian
=universal
15093 elif test "x$ac_word" = "x-arch"; then
15098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15099 if test $ac_cv_c_bigendian = unknown
; then
15100 # See if sys/param.h defines the BYTE_ORDER macro.
15101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15103 #include <sys/types.h>
15104 #include <sys/param.h>
15109 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15110 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15112 bogus endian macros
15119 if ac_fn_c_try_compile
"$LINENO"; then :
15120 # It does; now see whether it defined to BIG_ENDIAN or not.
15121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15122 /* end confdefs.h. */
15123 #include <sys/types.h>
15124 #include <sys/param.h>
15129 #if BYTE_ORDER != BIG_ENDIAN
15137 if ac_fn_c_try_compile
"$LINENO"; then :
15138 ac_cv_c_bigendian
=yes
15140 ac_cv_c_bigendian
=no
15142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15146 if test $ac_cv_c_bigendian = unknown
; then
15147 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15150 #include <limits.h>
15155 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15156 bogus endian macros
15163 if ac_fn_c_try_compile
"$LINENO"; then :
15164 # It does; now see whether it defined to _BIG_ENDIAN or not.
15165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 #include <limits.h>
15172 #ifndef _BIG_ENDIAN
15180 if ac_fn_c_try_compile
"$LINENO"; then :
15181 ac_cv_c_bigendian
=yes
15183 ac_cv_c_bigendian
=no
15185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15189 if test $ac_cv_c_bigendian = unknown
; then
15190 # Compile a test program.
15191 if test "$cross_compiling" = yes; then :
15192 # Try to guess by grepping values from an object file.
15193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195 short int ascii_mm[] =
15196 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15197 short int ascii_ii[] =
15198 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15199 int use_ascii (int i) {
15200 return ascii_mm[i] + ascii_ii[i];
15202 short int ebcdic_ii[] =
15203 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15204 short int ebcdic_mm[] =
15205 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15206 int use_ebcdic (int i) {
15207 return ebcdic_mm[i] + ebcdic_ii[i];
15214 return use_ascii (foo) == use_ebcdic (foo);
15219 if ac_fn_c_try_compile
"$LINENO"; then :
15220 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
15221 ac_cv_c_bigendian
=yes
15223 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
15224 if test "$ac_cv_c_bigendian" = unknown
; then
15225 ac_cv_c_bigendian
=no
15227 # finding both strings is unlikely to happen, but who knows?
15228 ac_cv_c_bigendian
=unknown
15232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15236 $ac_includes_default
15241 /* Are we little or big endian? From Harbison&Steele. */
15245 char c[sizeof (long int)];
15248 return u.c[sizeof (long int) - 1] == 1;
15254 if ac_fn_c_try_run
"$LINENO"; then :
15255 ac_cv_c_bigendian
=no
15257 ac_cv_c_bigendian
=yes
15259 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15260 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15266 $as_echo "$ac_cv_c_bigendian" >&6; }
15267 case $ac_cv_c_bigendian in #(
15269 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15275 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15279 as_fn_error $?
"unknown endianness
15280 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15286 # Check whether --with-system-libunwind was given.
15287 if test "${with_system_libunwind+set}" = set; then :
15288 withval
=$with_system_libunwind;
15291 # If system-libunwind was not specifically set, pick a default setting.
15292 if test x
$with_system_libunwind = x
; then
15294 ia64-
*-hpux*) with_system_libunwind
=yes ;;
15295 *) with_system_libunwind
=no
;;
15298 # Based on system-libunwind and target, do we have ipinfo?
15299 if test x
$with_system_libunwind = xyes
; then
15301 ia64-
*-*) have_unwind_getipinfo
=no
;;
15302 *) have_unwind_getipinfo
=yes ;;
15305 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15308 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
15309 *) have_unwind_getipinfo
=yes ;;
15314 if test x
$have_unwind_getipinfo = xyes
; then
15316 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15321 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
15323 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15324 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15325 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15326 cat >>confdefs.h
<<_ACEOF
15327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15335 for ac_header
in netinet
/icmp6.h
15337 ac_fn_c_check_header_compile
"$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15340 if test "x$ac_cv_header_netinet_icmp6_h" = xyes
; then :
15341 cat >>confdefs.h
<<_ACEOF
15342 #define HAVE_NETINET_ICMP6_H 1
15350 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
15352 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15353 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15354 #include <sys/socket.h>
15358 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15359 cat >>confdefs.h
<<_ACEOF
15360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15368 if test "$ac_cv_header_sys_mman_h" = yes; then
15369 HAVE_SYS_MMAN_H_TRUE
=
15370 HAVE_SYS_MMAN_H_FALSE
='#'
15372 HAVE_SYS_MMAN_H_TRUE
='#'
15373 HAVE_SYS_MMAN_H_FALSE
=
15377 for ac_func
in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15379 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15380 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15381 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15382 cat >>confdefs.h
<<_ACEOF
15383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15389 if test "$ac_cv_func_strerror_r" = yes; then
15390 HAVE_STRERROR_R_TRUE
=
15391 HAVE_STRERROR_R_FALSE
='#'
15393 HAVE_STRERROR_R_TRUE
='#'
15394 HAVE_STRERROR_R_FALSE
=
15397 if test "$ac_cv_func_wait4" = yes; then
15399 HAVE_WAIT4_FALSE
='#'
15401 HAVE_WAIT4_TRUE
='#'
15406 ac_header_dirent
=no
15407 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
15408 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15410 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15411 if eval \
${$as_ac_Header+:} false
; then :
15412 $as_echo_n "(cached) " >&6
15414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416 #include <sys/types.h>
15428 if ac_fn_c_try_compile
"$LINENO"; then :
15429 eval "$as_ac_Header=yes"
15431 eval "$as_ac_Header=no"
15433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15435 eval ac_res
=\$
$as_ac_Header
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15437 $as_echo "$ac_res" >&6; }
15438 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15439 cat >>confdefs.h
<<_ACEOF
15440 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15443 ac_header_dirent
=$ac_hdr; break
15447 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15448 if test $ac_header_dirent = dirent.h
; then
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15450 $as_echo_n "checking for library containing opendir... " >&6; }
15451 if ${ac_cv_search_opendir+:} false
; then :
15452 $as_echo_n "(cached) " >&6
15454 ac_func_search_save_LIBS
=$LIBS
15455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply. */
15473 for ac_lib
in '' dir
; do
15474 if test -z "$ac_lib"; then
15475 ac_res
="none required"
15478 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15480 if ac_fn_c_try_link
"$LINENO"; then :
15481 ac_cv_search_opendir
=$ac_res
15483 rm -f core conftest.err conftest.
$ac_objext \
15485 if ${ac_cv_search_opendir+:} false
; then :
15489 if ${ac_cv_search_opendir+:} false
; then :
15492 ac_cv_search_opendir
=no
15494 rm conftest.
$ac_ext
15495 LIBS
=$ac_func_search_save_LIBS
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15498 $as_echo "$ac_cv_search_opendir" >&6; }
15499 ac_res
=$ac_cv_search_opendir
15500 if test "$ac_res" != no
; then :
15501 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15507 $as_echo_n "checking for library containing opendir... " >&6; }
15508 if ${ac_cv_search_opendir+:} false
; then :
15509 $as_echo_n "(cached) " >&6
15511 ac_func_search_save_LIBS
=$LIBS
15512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15515 /* Override any GCC internal prototype to avoid an error.
15516 Use char because int might match the return type of a GCC
15517 builtin and then its argument prototype would still apply. */
15530 for ac_lib
in '' x
; do
15531 if test -z "$ac_lib"; then
15532 ac_res
="none required"
15535 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15537 if ac_fn_c_try_link
"$LINENO"; then :
15538 ac_cv_search_opendir
=$ac_res
15540 rm -f core conftest.err conftest.
$ac_objext \
15542 if ${ac_cv_search_opendir+:} false
; then :
15546 if ${ac_cv_search_opendir+:} false
; then :
15549 ac_cv_search_opendir
=no
15551 rm conftest.
$ac_ext
15552 LIBS
=$ac_func_search_save_LIBS
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15555 $as_echo "$ac_cv_search_opendir" >&6; }
15556 ac_res
=$ac_cv_search_opendir
15557 if test "$ac_res" != no
; then :
15558 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15566 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
15567 #include <sys/types.h>
15568 #ifdef HAVE_DIRENT_H
15569 # include <dirent.h>
15571 # define dirent direct
15572 # ifdef HAVE_SYS_NDIR_H
15573 # include <sys/ndir.h>
15575 # ifdef HAVE_SYS_DIR_H
15576 # include <sys/dir.h>
15578 # ifdef HAVE_NDIR_H
15584 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
; then :
15586 cat >>confdefs.h
<<_ACEOF
15587 #define HAVE_STRUCT_DIRENT_D_TYPE 1
15595 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
15597 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15598 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15599 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15600 cat >>confdefs.h
<<_ACEOF
15601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15607 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15608 if test "x$ac_cv_type_off_t" = xyes
; then :
15612 cat >>confdefs.h
<<_ACEOF
15613 #define off_t long int
15619 CFLAGS_hold
="$CFLAGS"
15620 CFLAGS
="$OSCFLAGS $CFLAGS"
15621 ac_fn_c_check_type
"$LINENO" "loff_t" "ac_cv_type_loff_t" "
15622 #include <sys/types.h>
15626 if test "x$ac_cv_type_loff_t" = xyes
; then :
15628 cat >>confdefs.h
<<_ACEOF
15629 #define HAVE_LOFF_T 1
15635 CFLAGS
="$CFLAGS_hold"
15639 for ac_func
in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15641 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15642 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15643 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15644 cat >>confdefs.h
<<_ACEOF
15645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15653 CFLAGS_hold
="$CFLAGS"
15654 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15656 LIBS
="$LIBS $PTHREAD_LIBS"
15657 for ac_func
in sem_timedwait
15659 ac_fn_c_check_func
"$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15660 if test "x$ac_cv_func_sem_timedwait" = xyes
; then :
15661 cat >>confdefs.h
<<_ACEOF
15662 #define HAVE_SEM_TIMEDWAIT 1
15668 CFLAGS
="$CFLAGS_hold"
15672 LIBS
="$LIBS $MATH_LIBS"
15673 for ac_func
in matherr
15675 ac_fn_c_check_func
"$LINENO" "matherr" "ac_cv_func_matherr"
15676 if test "x$ac_cv_func_matherr" = xyes
; then :
15677 cat >>confdefs.h
<<_ACEOF
15678 #define HAVE_MATHERR 1
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15687 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15688 if ${libgo_cv_c_stringops+:} false
; then :
15689 $as_echo_n "(cached) " >&6
15691 CFLAGS_hold
=$CFLAGS
15692 CFLAGS
="$CFLAGS -minline-all-stringops"
15693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15697 if ac_fn_c_try_compile
"$LINENO"; then :
15698 libgo_cv_c_stringops
=yes
15700 libgo_cv_c_stringops
=no
15702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15703 CFLAGS
=$CFLAGS_hold
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15706 $as_echo "$libgo_cv_c_stringops" >&6; }
15708 if test "$libgo_cv_c_stringops" = yes; then
15709 STRINGOPS_FLAG
=-minline-all-stringops
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15714 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15715 if ${libgo_cv_c_fancymath+:} false
; then :
15716 $as_echo_n "(cached) " >&6
15718 CFLAGS_hold
=$CFLAGS
15719 CFLAGS
="$CFLAGS -mfancy-math-387"
15720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15724 if ac_fn_c_try_compile
"$LINENO"; then :
15725 libgo_cv_c_fancymath
=yes
15727 libgo_cv_c_fancymath
=no
15729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15730 CFLAGS
=$CFLAGS_hold
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15733 $as_echo "$libgo_cv_c_fancymath" >&6; }
15735 if test "$libgo_cv_c_fancymath" = yes; then
15736 MATH_FLAG
="-mfancy-math-387"
15738 MATH_FLAG
="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15741 CFLAGS_hold
=$CFLAGS
15742 CFLAGS
="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15743 ac_fn_c_check_type
"$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15744 if test "x$ac_cv_type_off64_t" = xyes
; then :
15746 cat >>confdefs.h
<<_ACEOF
15747 #define HAVE_OFF64_T 1
15753 CFLAGS
=$CFLAGS_hold
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15756 $as_echo_n "checking epoll_event size... " >&6; }
15757 if ${libgo_cv_c_epoll_event_size+:} false
; then :
15758 $as_echo_n "(cached) " >&6
15760 if ac_fn_c_compute_int
"$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15763 libgo_cv_c_epoll_event_size
=0
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15768 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15769 SIZEOF_STRUCT_EPOLL_EVENT
=${libgo_cv_c_epoll_event_size}
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15773 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15774 if ${libgo_cv_c_epoll_event_fd_offset+:} false
; then :
15775 $as_echo_n "(cached) " >&6
15777 if ac_fn_c_compute_int
"$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15778 #include <sys/epoll.h>"; then :
15781 libgo_cv_c_epoll_event_fd_offset
=0
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15786 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15787 STRUCT_EPOLL_EVENT_FD_OFFSET
=${libgo_cv_c_epoll_event_fd_offset}
15790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 #include <sys/stat.h>
15795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15796 $EGREP "timespec_t.*st_atim" >/dev
/null
2>&1; then :
15797 have_stat_timespec
=yes
15799 have_stat_timespec
=no
15803 if test $have_stat_timespec = yes; then
15804 HAVE_STAT_TIMESPEC_TRUE
=
15805 HAVE_STAT_TIMESPEC_FALSE
='#'
15807 HAVE_STAT_TIMESPEC_TRUE
='#'
15808 HAVE_STAT_TIMESPEC_FALSE
=
15812 ac_fn_c_check_type
"$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15814 if test "x$ac_cv_type_struct_exception" = xyes
; then :
15815 libgo_has_struct_exception
=yes
15817 libgo_has_struct_exception
=no
15820 if test "$libgo_has_struct_exception" = "yes"; then
15822 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15827 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15828 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false
; then :
15829 $as_echo_n "(cached) " >&6
15831 CFLAGS_hold
="$CFLAGS"
15832 CFLAGS
="$PTHREAD_CFLAGS"
15834 LIBS
="$LIBS $PTHREAD_LIBS"
15835 # The cast to long int works around a bug in the HP C Compiler
15836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15838 # This bug is HP SR number 8606223364.
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15840 $as_echo_n "checking size of void *... " >&6; }
15841 if ${ac_cv_sizeof_void_p+:} false
; then :
15842 $as_echo_n "(cached) " >&6
15844 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15847 if test "$ac_cv_type_void_p" = yes; then
15848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15850 as_fn_error
77 "cannot compute sizeof (void *)
15851 See \`config.log' for more details" "$LINENO" 5; }
15853 ac_cv_sizeof_void_p
=0
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15859 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15863 cat >>confdefs.h
<<_ACEOF
15864 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15868 as_fn_arith
$ac_cv_sizeof_void_p \
* 8 && ptr_type_size
=$as_val
15869 if test "$cross_compiling" = yes; then :
15870 case "$target:$ptr_type_size" in
15871 i?
86-*-solaris2.1
[01]:64 | x86_64
*-*-solaris2.1
[01]:64)
15872 libgo_cv_lib_setcontext_clobbers_tls
=yes ;;
15874 libgo_cv_lib_setcontext_clobbers_tls
=no
;;
15878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15881 #include <pthread.h>
15882 #include <stdlib.h>
15883 #include <ucontext.h>
15884 #include <unistd.h>
15888 static char stack[10 * 1024 * 1024];
15889 static ucontext_t c;
15891 /* Called via makecontext/setcontext. */
15899 /* Called via pthread_create. */
15904 /* The thread should still see this value after calling
15910 /* The call to setcontext should not return. */
15919 /* The thread should not see this value. */
15922 if (getcontext (&c) < 0)
15925 c.uc_stack.ss_sp = stack;
15926 #ifdef MAKECONTEXT_STACK_TOP
15927 c.uc_stack.ss_sp += sizeof stack;
15929 c.uc_stack.ss_flags = 0;
15930 c.uc_stack.ss_size = sizeof stack;
15932 makecontext (&c, cfn, 0);
15934 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15937 if (pthread_join (tid, NULL) != 0)
15940 /* The thread should have called exit. */
15945 if ac_fn_c_try_run
"$LINENO"; then :
15946 libgo_cv_lib_setcontext_clobbers_tls
=no
15948 libgo_cv_lib_setcontext_clobbers_tls
=yes
15950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15954 CFLAGS
="$CFLAGS_hold"
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15959 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15960 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15962 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15967 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15968 if ${libgo_cv_ro_eh_frame+:} false
; then :
15969 $as_echo_n "(cached) " >&6
15972 libgo_cv_ro_eh_frame
=no
15973 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15974 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
15975 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
15976 libgo_cv_ro_eh_frame
=yes
15977 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15978 |
grep -v '#write' > /dev
/null
; then
15979 libgo_cv_ro_eh_frame
=yes
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15986 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15987 if test "x$libgo_cv_ro_eh_frame" = xyes
; then
15989 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15993 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15998 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15999 if ${libgo_cv_c_unused_arguments+:} false
; then :
16000 $as_echo_n "(cached) " >&6
16002 CFLAGS_hold
=$CFLAGS
16003 CFLAGS
="$CFLAGS -Qunused-arguments"
16004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16008 if ac_fn_c_try_compile
"$LINENO"; then :
16009 libgo_cv_c_unused_arguments
=yes
16011 libgo_cv_c_unused_arguments
=no
16013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16014 CFLAGS
=$CFLAGS_hold
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
16017 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
16020 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
16021 if ${libgo_cv_as_comdat_gnu+:} false
; then :
16022 $as_echo_n "(cached) " >&6
16025 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
16026 CFLAGS_hold
=$CFLAGS
16027 if test "$libgo_cv_c_unused_arguments" = yes; then
16028 CFLAGS
="$CFLAGS -Qunused-arguments"
16030 if $CC $CFLAGS -c conftest.s
> /dev
/null
2>&1; then
16031 libgo_cv_as_comdat_gnu
=yes
16033 libgo_cv_as_comdat_gnu
=no
16035 CFLAGS
=$CFLAGS_hold
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
16039 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
16040 if test "x$libgo_cv_as_comdat_gnu" = xyes
; then
16042 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
16047 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
16048 if ${libgo_cv_as_x86_pcrel+:} false
; then :
16049 $as_echo_n "(cached) " >&6
16052 libgo_cv_as_x86_pcrel
=yes
16053 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
16054 CFLAGS_hold
=$CFLAGS
16055 if test "$libgo_cv_c_unused_arguments" = yes; then
16056 CFLAGS
="$CFLAGS -Qunused-arguments"
16058 if $CC $CFLAGS -c conftest.s
2>&1 |
$EGREP -i 'illegal|warning' > /dev
/null
; then
16059 libgo_cv_as_x86_pcrel
=no
16061 CFLAGS
=$CFLAGS_hold
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
16065 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
16066 if test "x$libgo_cv_as_x86_pcrel" = xyes
; then
16068 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
16073 $as_echo_n "checking assembler supports unwind section type... " >&6; }
16074 if ${libgo_cv_as_x86_64_unwind_section_type+:} false
; then :
16075 $as_echo_n "(cached) " >&6
16078 libgo_cv_as_x86_64_unwind_section_type
=yes
16079 echo '.section .eh_frame,"a",@unwind' > conftest.s
16080 CFLAGS_hold
=$CFLAGS
16081 if test "$libgo_cv_c_unused_arguments" = yes; then
16082 CFLAGS
="$CFLAGS -Qunused-arguments"
16084 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i warning
> /dev
/null
; then
16085 libgo_cv_as_x86_64_unwind_section_type
=no
16087 CFLAGS
=$CFLAGS_hold
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
16091 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
16092 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes
; then
16094 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
16099 $as_echo_n "checking assembler supports AES instructions... " >&6; }
16100 if ${libgo_cv_as_x86_aes+:} false
; then :
16101 $as_echo_n "(cached) " >&6
16104 libgo_cv_as_x86_aes
=yes
16105 echo 'aesenc %xmm0, %xmm1' > conftest.s
16106 CFLAGS_hold
=$CFLAGS
16107 if test "$libgo_cv_c_unused_arguments" = yes; then
16108 CFLAGS
="$CFLAGS -Qunused-arguments"
16110 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i error
> /dev
/null
; then
16111 libgo_cv_as_x86_aes
=no
16113 CFLAGS
=$CFLAGS_hold
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
16117 $as_echo "$libgo_cv_as_x86_aes" >&6; }
16118 if test "x$libgo_cv_as_x86_aes" = xyes
; then
16120 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
16125 $as_echo_n "checking whether -static is supported... " >&6; }
16126 if ${libgo_cv_ld_static+:} false
; then :
16127 $as_echo_n "(cached) " >&6
16129 LDFLAGS_hold
=$LDFLAGS
16130 LDFLAGS
="$LDFLAGS -static"
16131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16132 /* end confdefs.h. */
16142 if ac_fn_c_try_link
"$LINENO"; then :
16143 libgo_cv_ld_static
=yes
16145 libgo_cv_ld_static
=no
16147 rm -f core conftest.err conftest.
$ac_objext \
16148 conftest
$ac_exeext conftest.
$ac_ext
16149 LDFLAGS
=$LDFLAGS_hold
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
16152 $as_echo "$libgo_cv_ld_static" >&6; }
16153 if test "$libgo_cv_ld_static" = yes; then
16154 HAVE_STATIC_LINK_TRUE
=
16155 HAVE_STATIC_LINK_FALSE
='#'
16157 HAVE_STATIC_LINK_TRUE
='#'
16158 HAVE_STATIC_LINK_FALSE
=
16164 cat >confcache
<<\_ACEOF
16165 # This file is a shell script that caches the results of configure
16166 # tests run on this system so they can be shared between configure
16167 # scripts and configure runs, see configure's option --config-cache.
16168 # It is not useful on other systems. If it contains results you don't
16169 # want to keep, you may remove or edit it.
16171 # config.status only pays attention to the cache file if you give it
16172 # the --recheck option to rerun configure.
16174 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16175 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16176 # following values.
16180 # The following way of writing the cache mishandles newlines in values,
16181 # but we know of no workaround that is simple, portable, and efficient.
16182 # So, we kill variables containing newlines.
16183 # Ultrix sh set writes to stderr and can't be redirected directly,
16184 # and sets the high bit in the cache file unless we assign to the vars.
16186 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16187 eval ac_val
=\$
$ac_var
16191 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16195 _ | IFS | as_nl
) ;; #(
16196 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16197 *) { eval $ac_var=; unset $ac_var;} ;;
16203 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16204 *${as_nl}ac_space
=\
*)
16205 # `set' does not quote correctly, so add quotes: double-quote
16206 # substitution turns \\\\ into \\, and sed turns \\ into \.
16209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16212 # `set' quotes correctly as required by POSIX, so do not add quotes.
16213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16222 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16224 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16226 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16227 if test -w "$cache_file"; then
16228 if test "x$cache_file" != "x/dev/null"; then
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16230 $as_echo "$as_me: updating cache $cache_file" >&6;}
16231 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16232 cat confcache
>"$cache_file"
16234 case $cache_file in #(
16236 mv -f confcache
"$cache_file"$$
&&
16237 mv -f "$cache_file"$$
"$cache_file" ;; #(
16239 mv -f confcache
"$cache_file" ;;
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16245 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16250 if test ${multilib} = yes; then
16251 multilib_arg
="--enable-multilib"
16256 ac_config_files
="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
16259 ac_config_commands
="$ac_config_commands default"
16262 cat >confcache
<<\_ACEOF
16263 # This file is a shell script that caches the results of configure
16264 # tests run on this system so they can be shared between configure
16265 # scripts and configure runs, see configure's option --config-cache.
16266 # It is not useful on other systems. If it contains results you don't
16267 # want to keep, you may remove or edit it.
16269 # config.status only pays attention to the cache file if you give it
16270 # the --recheck option to rerun configure.
16272 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16273 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16274 # following values.
16278 # The following way of writing the cache mishandles newlines in values,
16279 # but we know of no workaround that is simple, portable, and efficient.
16280 # So, we kill variables containing newlines.
16281 # Ultrix sh set writes to stderr and can't be redirected directly,
16282 # and sets the high bit in the cache file unless we assign to the vars.
16284 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16285 eval ac_val
=\$
$ac_var
16289 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16290 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16293 _ | IFS | as_nl
) ;; #(
16294 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16295 *) { eval $ac_var=; unset $ac_var;} ;;
16301 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16302 *${as_nl}ac_space
=\
*)
16303 # `set' does not quote correctly, so add quotes: double-quote
16304 # substitution turns \\\\ into \\, and sed turns \\ into \.
16307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16310 # `set' quotes correctly as required by POSIX, so do not add quotes.
16311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16320 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16322 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16324 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16325 if test -w "$cache_file"; then
16326 if test "x$cache_file" != "x/dev/null"; then
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16328 $as_echo "$as_me: updating cache $cache_file" >&6;}
16329 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16330 cat confcache
>"$cache_file"
16332 case $cache_file in #(
16334 mv -f confcache
"$cache_file"$$
&&
16335 mv -f "$cache_file"$$
"$cache_file" ;; #(
16337 mv -f confcache
"$cache_file" ;;
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16343 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16348 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16349 # Let make expand exec_prefix.
16350 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16352 DEFS
=-DHAVE_CONFIG_H
16357 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16358 # 1. Remove the extension, and $U if already installed.
16359 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16360 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16361 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16362 # will be set to the directory where LIBOBJS objects are built.
16363 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16364 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16366 LIBOBJS
=$ac_libobjs
16368 LTLIBOBJS
=$ac_ltlibobjs
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16372 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16373 if test -n "$am_sleep_pid"; then
16374 # Hide warnings about reused PIDs.
16375 wait $am_sleep_pid 2>/dev
/null
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16378 $as_echo "done" >&6; }
16379 if test -n "$EXEEXT"; then
16381 am__EXEEXT_FALSE
='#'
16383 am__EXEEXT_TRUE
='#'
16387 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16388 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16392 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16395 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16396 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
16397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16399 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16400 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16403 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
16404 as_fn_error $?
"conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
16405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16407 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16408 as_fn_error $?
"conditional \"USE_LIBFFI\" was never defined.
16409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16411 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16412 as_fn_error $?
"conditional \"LIBGO_IS_DARWIN\" was never defined.
16413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16416 as_fn_error $?
"conditional \"LIBGO_IS_FREEBSD\" was never defined.
16417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16419 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16420 as_fn_error $?
"conditional \"LIBGO_IS_IRIX\" was never defined.
16421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16423 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16424 as_fn_error $?
"conditional \"LIBGO_IS_LINUX\" was never defined.
16425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16427 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16428 as_fn_error $?
"conditional \"LIBGO_IS_NETBSD\" was never defined.
16429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16431 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16432 as_fn_error $?
"conditional \"LIBGO_IS_OPENBSD\" was never defined.
16433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16435 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16436 as_fn_error $?
"conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16439 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16440 as_fn_error $?
"conditional \"LIBGO_IS_RTEMS\" was never defined.
16441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16443 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16444 as_fn_error $?
"conditional \"LIBGO_IS_SOLARIS\" was never defined.
16445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16448 as_fn_error $?
"conditional \"LIBGO_IS_AIX\" was never defined.
16449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16452 as_fn_error $?
"conditional \"LIBGO_IS_HURD\" was never defined.
16453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16455 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16456 as_fn_error $?
"conditional \"LIBGO_IS_BSD\" was never defined.
16457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16459 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16460 as_fn_error $?
"conditional \"LIBGO_IS_X86\" was never defined.
16461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16463 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16464 as_fn_error $?
"conditional \"USING_SPLIT_STACK\" was never defined.
16465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16467 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16468 as_fn_error $?
"conditional \"GOC_IS_LLGO\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16473 as_fn_error $?
"conditional \"HAVE_SYS_MMAN_H\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16477 as_fn_error $?
"conditional \"HAVE_STRERROR_R\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16481 as_fn_error $?
"conditional \"HAVE_WAIT4\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16484 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16485 as_fn_error $?
"conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16489 as_fn_error $?
"conditional \"HAVE_STATIC_LINK\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16493 : "${CONFIG_STATUS=./config.status}"
16495 ac_clean_files_save
=$ac_clean_files
16496 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16502 # Generated by $as_me.
16503 # Run this file to recreate the current configuration.
16504 # Compiler output produced by configure, useful for debugging
16505 # configure, is in config.log if it exists.
16508 ac_cs_recheck=false
16511 SHELL=\${CONFIG_SHELL-$SHELL}
16514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16515 ## -------------------- ##
16516 ## M4sh Initialization. ##
16517 ## -------------------- ##
16519 # Be more Bourne compatible
16520 DUALCASE
=1; export DUALCASE
# for MKS sh
16521 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16525 # is contrary to our usage. Disable this feature.
16526 alias -g '${1+"$@"}'='"$@"'
16527 setopt NO_GLOB_SUBST
16529 case `(set -o) 2>/dev/null` in #(
16541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16542 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16545 # Prefer a ksh shell builtin over an external printf program on Solaris,
16546 # but without wasting forks for bash or zsh.
16547 if test -z "$BASH_VERSION$ZSH_VERSION" \
16548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16549 as_echo='print
-r --'
16550 as_echo_n='print
-rn --'
16551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16552 as_echo='printf %s
\n'
16553 as_echo_n='printf %s
'
16555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16556 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16557 as_echo_n='/usr
/ucb
/echo -n'
16559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16560 as_echo_n_body='eval
16564 expr "X$arg" : "X\\(.*\\)$as_nl";
16565 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16567 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16569 export as_echo_n_body
16570 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16572 export as_echo_body
16573 as_echo='sh
-c $as_echo_body as_echo
'
16576 # The user is always right.
16577 if test "${PATH_SEPARATOR+set}" != set; then
16579 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16580 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16587 # We need space, tab and new line, in precisely that order. Quoting is
16588 # there to prevent editors from complaining about space-tab.
16589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16590 # splitting by setting IFS to empty value.)
16593 # Find who we are. Look in the path if we contain no directory separator.
16596 *[\\/]* ) as_myself=$0 ;;
16597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16598 for as_dir in $PATH
16601 test -z "$as_dir" && as_dir=.
16602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16608 # We did not find ourselves, most probably we were run as `sh COMMAND'
16609 # in which case we are not to be found in the path.
16610 if test "x$as_myself" = x
; then
16613 if test ! -f "$as_myself"; then
16614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16618 # Unset variables that we do not need and which cause bugs (e.g. in
16619 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16620 # suppresses any "Segmentation fault" message there. '((' could
16621 # trigger a bug in pdksh 5.2.14.
16622 for as_var
in BASH_ENV ENV MAIL MAILPATH
16623 do eval test x\
${$as_var+set} = xset \
16624 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16637 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16640 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16641 # ----------------------------------------
16642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16644 # script with STATUS, using 1 if that was 0.
16647 as_status
=$1; test $as_status -eq 0 && as_status
=1
16649 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16652 $as_echo "$as_me: error: $2" >&2
16653 as_fn_exit
$as_status
16657 # as_fn_set_status STATUS
16658 # -----------------------
16659 # Set $? to STATUS, without forking.
16660 as_fn_set_status
()
16663 } # as_fn_set_status
16665 # as_fn_exit STATUS
16666 # -----------------
16667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16671 as_fn_set_status
$1
16677 # Portably unset VAR.
16680 { eval $1=; unset $1;}
16682 as_unset
=as_fn_unset
16683 # as_fn_append VAR VALUE
16684 # ----------------------
16685 # Append the text in VALUE to the end of the definition contained in VAR. Take
16686 # advantage of any shell optimizations that allow amortized linear growth over
16687 # repeated appends, instead of the typical quadratic growth present in naive
16689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16690 eval 'as_fn_append ()
16701 # as_fn_arith ARG...
16702 # ------------------
16703 # Perform arithmetic evaluation on the ARGs, and store the result in the
16704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16705 # must be portable across $(()) and expr.
16706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16707 eval 'as_fn_arith ()
16714 as_val
=`expr "$@" || test $? -eq 1`
16719 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16720 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16726 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16727 as_basename
=basename
16732 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16738 as_me
=`$as_basename -- "$0" ||
16739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16740 X"$0" : 'X\(//\)$' \| \
16741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16743 sed '/^.*\/\([^/][^/]*\)\/*$/{
16757 # Avoid depending upon Character Ranges.
16758 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16759 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16760 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16761 as_cr_digits
='0123456789'
16762 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16764 ECHO_C
= ECHO_N
= ECHO_T
=
16765 case `echo -n x` in #(((((
16767 case `echo 'xy\c'` in
16768 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16770 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16777 rm -f conf$$ conf$$.exe conf$$.
file
16778 if test -d conf$$.dir
; then
16779 rm -f conf$$.dir
/conf$$.
file
16782 mkdir conf$$.dir
2>/dev
/null
16784 if (echo >conf$$.
file) 2>/dev
/null
; then
16785 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16787 # ... but there are two gotchas:
16788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16790 # In both cases, we have to default to `cp -pR'.
16791 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16793 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16801 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16802 rmdir conf$$.dir
2>/dev
/null
16807 # Create "$as_dir" as a directory, including parents if necessary.
16812 -*) as_dir
=.
/$as_dir;;
16814 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16818 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16819 *) as_qdir
=$as_dir;;
16821 as_dirs
="'$as_qdir' $as_dirs"
16822 as_dir
=`$as_dirname -- "$as_dir" ||
16823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16824 X"$as_dir" : 'X\(//\)[^/]' \| \
16825 X"$as_dir" : 'X\(//\)$' \| \
16826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16827 $as_echo X"$as_dir" |
16828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16832 /^X\(\/\/\)[^/].*/{
16845 test -d "$as_dir" && break
16847 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16848 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16852 if mkdir
-p .
2>/dev
/null
; then
16853 as_mkdir_p
='mkdir -p "$as_dir"'
16855 test -d .
/-p && rmdir .
/-p
16860 # as_fn_executable_p FILE
16861 # -----------------------
16862 # Test if FILE is an executable regular file.
16863 as_fn_executable_p
()
16865 test -f "$1" && test -x "$1"
16866 } # as_fn_executable_p
16867 as_test_x
='test -x'
16868 as_executable_p
=as_fn_executable_p
16870 # Sed expression to map a string onto a valid CPP name.
16871 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16873 # Sed expression to map a string onto a valid variable name.
16874 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16878 ## ----------------------------------- ##
16879 ## Main body of $CONFIG_STATUS script. ##
16880 ## ----------------------------------- ##
16882 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16885 # Save the log message, to keep $0 and so on meaningful, and to
16886 # report actual input values of CONFIG_FILES etc. instead of their
16887 # values after options handling.
16889 This file was extended by package-unused $as_me version-unused, which was
16890 generated by GNU Autoconf 2.69. Invocation command line was
16892 CONFIG_FILES = $CONFIG_FILES
16893 CONFIG_HEADERS = $CONFIG_HEADERS
16894 CONFIG_LINKS = $CONFIG_LINKS
16895 CONFIG_COMMANDS = $CONFIG_COMMANDS
16898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16903 case $ac_config_files in *"
16904 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16907 case $ac_config_headers in *"
16908 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16913 # Files that config.status was made for.
16914 config_files="$ac_config_files"
16915 config_headers="$ac_config_headers"
16916 config_commands="$ac_config_commands"
16920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16922 \`$as_me' instantiates files and other configuration actions
16923 from templates according to the current configuration. Unless the files
16924 and actions are specified as TAGs, all are instantiated by default.
16926 Usage: $0 [OPTION]... [TAG]...
16928 -h, --help print this help, then exit
16929 -V, --version print version number and configuration settings, then exit
16930 --config print configuration, then exit
16931 -q, --quiet, --silent
16932 do not print progress messages
16933 -d, --debug don't remove temporary files
16934 --recheck update $as_me by reconfiguring in the same conditions
16935 --file=FILE[:TEMPLATE]
16936 instantiate the configuration file FILE
16937 --header=FILE[:TEMPLATE]
16938 instantiate the configuration header FILE
16940 Configuration files:
16943 Configuration headers:
16946 Configuration commands:
16949 Report bugs to the package provider."
16952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16953 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16955 package-unused config.status version-unused
16956 configured by $0, generated by GNU Autoconf 2.69,
16957 with options \\"\$ac_cs_config\\"
16959 Copyright (C) 2012 Free Software Foundation, Inc.
16960 This config.status script is free software; the Free Software Foundation
16961 gives unlimited permission to copy, distribute and modify it."
16968 test -n "\$AWK" || AWK=awk
16971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16972 # The default lists apply if the user does not specify any file.
16978 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16979 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16983 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16995 # Handling of the options.
16996 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16998 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16999 $as_echo "$ac_cs_version"; exit ;;
17000 --config |
--confi |
--conf |
--con |
--co |
--c )
17001 $as_echo "$ac_cs_config"; exit ;;
17002 --debug |
--debu |
--deb |
--de |
--d |
-d )
17004 --file |
--fil |
--fi |
--f )
17007 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17008 '') as_fn_error $?
"missing file argument" ;;
17010 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17011 ac_need_defaults
=false
;;
17012 --header |
--heade |
--head |
--hea )
17015 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17017 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17018 ac_need_defaults
=false
;;
17020 # Conflict between --help and --header
17021 as_fn_error $?
"ambiguous option: \`$1'
17022 Try \`$0 --help' for more information.";;
17023 --help |
--hel |
-h )
17024 $as_echo "$ac_cs_usage"; exit ;;
17025 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17026 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17029 # This is an error.
17030 -*) as_fn_error $?
"unrecognized option: \`$1'
17031 Try \`$0 --help' for more information." ;;
17033 *) as_fn_append ac_config_targets
" $1"
17034 ac_need_defaults
=false
;;
17040 ac_configure_extra_args
=
17042 if $ac_cs_silent; then
17044 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049 if \$ac_cs_recheck; then
17050 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17052 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17053 CONFIG_SHELL='$SHELL'
17054 export CONFIG_SHELL
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17063 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17064 ## Running $as_me. ##
17070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17078 with_multisubdir="$with_multisubdir"
17079 with_multisrctop="$with_multisrctop"
17080 with_target_subdir="$with_target_subdir"
17081 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17082 multi_basedir="$multi_basedir"
17083 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17086 GFORTRAN="$GFORTRAN"
17088 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17091 # The HP-UX ksh and POSIX shell print the target directory to stdout
17092 # if CDPATH is set.
17093 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17095 sed_quote_subst='$sed_quote_subst'
17096 double_quote_subst='$double_quote_subst'
17097 delay_variable_subst='$delay_variable_subst'
17098 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17099 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17100 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17101 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17102 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17103 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17104 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17105 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17106 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17107 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17108 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17109 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17110 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17111 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17112 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17113 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17114 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17115 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17116 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17117 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17118 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17119 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17120 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17121 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17122 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17123 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17124 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17125 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17126 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17127 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17128 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17129 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17130 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17131 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17132 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17133 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17134 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17135 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17136 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17137 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17138 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17139 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17140 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17141 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17142 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17143 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17144 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17145 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17146 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"`'
17147 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17148 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17149 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17150 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17151 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17152 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17153 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17154 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17155 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17156 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17157 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17158 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17159 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17160 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17161 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17162 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17163 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17164 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17165 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17166 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17167 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17168 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17169 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17170 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17171 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17172 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17173 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17174 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17175 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17176 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17177 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17178 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17179 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17180 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17181 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17182 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17183 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17184 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17185 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17186 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17187 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17188 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17189 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17190 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17191 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17192 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17193 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17194 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17195 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17196 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17197 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17198 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17199 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17200 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17201 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17202 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17203 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17204 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17205 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17206 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17207 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17208 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17209 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17210 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17211 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17212 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17213 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17214 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17215 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17216 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17217 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17218 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
17219 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
17220 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
17221 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17222 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
17223 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
17224 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
17225 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
17226 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
17227 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
17228 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
17229 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
17230 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
17231 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17232 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17233 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
17234 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
17235 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
17236 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17237 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17238 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
17239 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17240 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
17241 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17242 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17243 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17244 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
17245 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
17246 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
17247 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
17248 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
17249 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
17250 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
17251 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
17252 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
17253 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
17254 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
17255 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
17256 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17257 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17258 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
17259 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
17260 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
17263 LTCFLAGS='$LTCFLAGS'
17264 compiler='$compiler_DEFAULT'
17266 # A function that is used when there is no print builtin or printf.
17267 func_fallback_echo ()
17269 eval 'cat <<_LTECHO_EOF
17274 # Quote evaled strings.
17288 deplibs_check_method \
17297 lt_cv_sys_global_symbol_pipe \
17298 lt_cv_sys_global_symbol_to_cdecl \
17299 lt_cv_sys_global_symbol_to_c_name_address \
17300 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17301 lt_prog_compiler_no_builtin_flag \
17302 lt_prog_compiler_wl \
17303 lt_prog_compiler_pic \
17304 lt_prog_compiler_static \
17305 lt_cv_prog_compiler_c_o \
17313 export_dynamic_flag_spec \
17314 whole_archive_flag_spec \
17315 compiler_needs_object \
17317 allow_undefined_flag \
17318 no_undefined_flag \
17319 hardcode_libdir_flag_spec \
17320 hardcode_libdir_flag_spec_ld \
17321 hardcode_libdir_separator \
17326 variables_saved_for_relink \
17328 library_names_spec \
17330 install_override_mode \
17337 lt_prog_compiler_no_builtin_flag_GO \
17338 lt_prog_compiler_wl_GO \
17339 lt_prog_compiler_pic_GO \
17340 lt_prog_compiler_static_GO \
17341 lt_cv_prog_compiler_c_o_GO \
17342 export_dynamic_flag_spec_GO \
17343 whole_archive_flag_spec_GO \
17344 compiler_needs_object_GO \
17346 allow_undefined_flag_GO \
17347 no_undefined_flag_GO \
17348 hardcode_libdir_flag_spec_GO \
17349 hardcode_libdir_flag_spec_ld_GO \
17350 hardcode_libdir_separator_GO \
17351 fix_srcfile_path_GO \
17352 exclude_expsyms_GO \
17353 include_expsyms_GO \
17354 file_list_spec_GO; do
17355 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17356 *[\\\\\\\`\\"\\\$]*)
17357 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17360 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17365 # Double-quote double-evaled strings.
17366 for var in reload_cmds \
17367 old_postinstall_cmds \
17368 old_postuninstall_cmds \
17370 extract_expsyms_cmds \
17371 old_archive_from_new_cmds \
17372 old_archive_from_expsyms_cmds \
17374 archive_expsym_cmds \
17376 module_expsym_cmds \
17377 export_symbols_cmds \
17380 postuninstall_cmds \
17382 sys_lib_search_path_spec \
17383 sys_lib_dlsearch_path_spec \
17385 old_archive_cmds_GO \
17386 old_archive_from_new_cmds_GO \
17387 old_archive_from_expsyms_cmds_GO \
17389 archive_expsym_cmds_GO \
17391 module_expsym_cmds_GO \
17392 export_symbols_cmds_GO \
17393 prelink_cmds_GO; do
17394 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17395 *[\\\\\\\`\\"\\\$]*)
17396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17404 ac_aux_dir='$ac_aux_dir'
17405 xsi_shell='$xsi_shell'
17406 lt_shell_append='$lt_shell_append'
17408 # See if we are running on zsh, and set the options which allow our
17409 # commands through without removal of \ escapes INIT.
17410 if test -n "\${ZSH_VERSION+set}" ; then
17411 setopt NO_GLOB_SUBST
17417 TIMESTAMP='$TIMESTAMP'
17426 # Variables needed in config.status (file generation) which aren't already
17427 # passed by autoconf.
17433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17435 # Handling of arguments.
17436 for ac_config_target
in $ac_config_targets
17438 case $ac_config_target in
17439 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17440 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17441 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17442 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17443 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17444 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
17445 "testsuite/libgo-test-support.exp") CONFIG_FILES
="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17446 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17448 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17453 # If the user did not use the arguments to specify the items to instantiate,
17454 # then the envvar interface is used. Set only those that are not.
17455 # We use the long form for the default assignment because of an extremely
17456 # bizarre bug on SunOS 4.1.3.
17457 if $ac_need_defaults; then
17458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17460 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17463 # Have a temporary directory for convenience. Make it in the build tree
17464 # simply because there is no reason against having it here, and in addition,
17465 # creating and moving files from /tmp can sometimes cause problems.
17466 # Hook for its removal unless debugging.
17467 # Note that there is a small window in which the directory will not be cleaned:
17468 # after its creation but before its name has been assigned to `$tmp'.
17472 trap 'exit_status=$?
17473 : "${ac_tmp:=$tmp}"
17474 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17476 trap 'as_fn_exit 1' 1 2 13 15
17478 # Create a (secure) tmp directory for tmp files.
17481 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17485 tmp
=.
/conf$$
-$RANDOM
17486 (umask 077 && mkdir
"$tmp")
17487 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17490 # Set up the scripts for CONFIG_FILES section.
17491 # No need to generate them if there are no CONFIG_FILES.
17492 # This happens for instance with `./config.status config.h'.
17493 if test -n "$CONFIG_FILES"; then
17496 ac_cr
=`echo X | tr X '\015'`
17497 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17498 # But we know of no other shell where ac_cr would be empty at this
17499 # point, so we can use a bashism as a fallback.
17500 if test "x$ac_cr" = x
; then
17501 eval ac_cr
=\$
\'\\r
\'
17503 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17504 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17507 ac_cs_awk_cr
=$ac_cr
17510 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17515 echo "cat >conf$$subs.awk <<_ACEOF" &&
17516 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17518 } >conf$$subs.sh ||
17519 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17520 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17522 for ac_last_try in false false false false false :; do
17523 . ./conf$$subs.sh ||
17524 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17526 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17527 if test $ac_delim_n = $ac_delim_num; then
17529 elif $ac_last_try; then
17530 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17532 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17535 rm -f conf$$subs.sh
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17542 s/^/S["/; s
/!.
*/"]=/
17552 s/\(.\{148\}\)..*/\1/
17554 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17559 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17566 s/\(.\{148\}\)..*/\1/
17568 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17572 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17577 ' <conf$$subs.awk | sed '
17582 ' >>$CONFIG_STATUS || ac_write_fail=1
17583 rm -f conf$$subs.awk
17584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17587 for (key in S) S_is_set[key] = 1
17593 nfields = split(line, field, "@
")
17595 len = length(field[1])
17596 for (i = 2; i < nfields; i++) {
17598 keylen = length(key)
17599 if (S_is_set[key]) {
17601 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17602 len += length(value) + length(field[++i])
17613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17614 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17615 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17618 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17619 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17622 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17623 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17624 # trailing colons and then remove the whole line if VPATH becomes empty
17625 # (actually we leave an empty line to preserve line numbers).
17626 if test "x
$srcdir" = x.; then
17627 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17646 fi # test -n "$CONFIG_FILES"
17648 # Set up the scripts for CONFIG_HEADERS section.
17649 # No need to generate them if there are no CONFIG_HEADERS.
17650 # This happens for instance with `./config.status Makefile'.
17651 if test -n "$CONFIG_HEADERS"; then
17652 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17656 # Transform confdefs.h into an awk script `defines.awk', embedded as
17657 # here-document in config.status, that substitutes the proper values into
17658 # config.h.in to produce config.h.
17660 # Create a delimiter string that does not exist in confdefs.h, to ease
17661 # handling of long lines.
17663 for ac_last_try in false false :; do
17664 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17665 if test -z "$ac_tt"; then
17667 elif $ac_last_try; then
17668 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17670 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17674 # For the awk script, D is an array of macro values keyed by name,
17675 # likewise P contains macro parameters if any. Preserve backslash
17676 # newline sequences.
17678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17680 s/.\{148\}/&'"$ac_delim"'/g
17683 s/^[ ]*#[ ]*define[ ][ ]*/ /
17690 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17692 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17697 D["\
1"]=" \
3\\\\\\n
"\\/p
17699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17704 s/.\{148\}/&'"$ac_delim"'/g
17709 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17712 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17714 ' <confdefs.h | sed '
17715 s/'"$ac_delim"'/"\\\
17716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719 for (key in D) D_is_set[key] = 1
17722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17724 split(line, arg, " ")
17725 if (arg[1] == "#") {
17729 defundef
= substr
(arg
[1], 2)
17732 split(mac1
, mac2
, "(") #)
17734 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17735 if (D_is_set
[macro
]) {
17736 # Preserve the white space surrounding the "#".
17737 print prefix
"define", macro P
[macro
] D
[macro
]
17740 # Replace #undef with comments. This is necessary, for example,
17741 # in the case of _POSIX_SOURCE, which is predefined and required
17742 # on some systems where configure will not decide to define it.
17743 if (defundef
== "undef") {
17744 print
"/*", prefix defundef
, macro
, "*/"
17752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17753 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17754 fi # test -n "$CONFIG_HEADERS"
17757 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17762 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17764 case $ac_mode$ac_tag in
17766 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17767 :[FH
]-) ac_tag
=-:-;;
17768 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17785 -) ac_f
="$ac_tmp/stdin";;
17786 *) # Look for the file first in the build tree, then in the source tree
17787 # (if the path is not absolute). The absolute path cannot be DOS-style,
17788 # because $ac_f cannot contain `:'.
17792 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17794 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17796 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17797 as_fn_append ac_file_inputs
" '$ac_f'"
17800 # Let's still pretend it is `configure' which instantiates (i.e., don't
17801 # use $as_me), people would be surprised to read:
17802 # /* config.h. Generated by config.status. */
17803 configure_input
='Generated from '`
17804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17806 if test x
"$ac_file" != x-
; then
17807 configure_input
="$ac_file. $configure_input"
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17809 $as_echo "$as_me: creating $ac_file" >&6;}
17811 # Neutralize special characters interpreted by sed in replacement strings.
17812 case $configure_input in #(
17813 *\
&* |
*\|
* |
*\\* )
17814 ac_sed_conf_input
=`$as_echo "$configure_input" |
17815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17816 *) ac_sed_conf_input
=$configure_input;;
17820 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17821 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17826 ac_dir
=`$as_dirname -- "$ac_file" ||
17827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17828 X"$ac_file" : 'X\(//\)[^/]' \| \
17829 X"$ac_file" : 'X\(//\)$' \| \
17830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17831 $as_echo X"$ac_file" |
17832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17836 /^X\(\/\/\)[^/].*/{
17849 as_dir
="$ac_dir"; as_fn_mkdir_p
17853 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17855 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17856 # A ".." for each directory in $ac_dir_suffix.
17857 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17858 case $ac_top_builddir_sub in
17859 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17860 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17863 ac_abs_top_builddir
=$ac_pwd
17864 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17865 # for backward compatibility:
17866 ac_top_builddir
=$ac_top_build_prefix
17869 .
) # We are building in place.
17871 ac_top_srcdir
=$ac_top_builddir_sub
17872 ac_abs_top_srcdir
=$ac_pwd ;;
17873 [\\/]* | ?
:[\\/]* ) # Absolute name.
17874 ac_srcdir
=$srcdir$ac_dir_suffix;
17875 ac_top_srcdir
=$srcdir
17876 ac_abs_top_srcdir
=$srcdir ;;
17877 *) # Relative name.
17878 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17879 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17880 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17882 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17892 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17893 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17895 ac_MKDIR_P
=$MKDIR_P
17897 [\\/$
]* | ?
:[\\/]* ) ;;
17898 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17903 # If the template does not know about datarootdir, expand it.
17904 # FIXME: This hack should be removed a few years after 2.60.
17905 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17917 *datarootdir
*) ac_datarootdir_seen
=yes;;
17918 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923 ac_datarootdir_hack='
17924 s&@datadir@&$datadir&g
17925 s&@docdir@&$docdir&g
17926 s&@infodir@&$infodir&g
17927 s&@localedir@&$localedir&g
17928 s&@mandir@&$mandir&g
17929 s&\\\${datarootdir}&$datarootdir&g' ;;
17933 # Neutralize VPATH when `$srcdir' = `.'.
17934 # Shell code in configure.ac might set extrasub.
17935 # FIXME: do we really want to maintain this feature?
17936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17937 ac_sed_extra="$ac_vpsub
17940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17942 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17943 s|@configure_input@|
$ac_sed_conf_input|
;t t
17944 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17945 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17946 s
&@srcdir@
&$ac_srcdir&;t t
17947 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17948 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17949 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17950 s
&@builddir@
&$ac_builddir&;t t
17951 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17952 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17953 s
&@INSTALL@
&$ac_INSTALL&;t t
17954 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17955 $ac_datarootdir_hack
17957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17958 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17963 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17965 which seems to be undefined. Please make sure it is defined" >&5
17966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17967 which seems to be undefined. Please make sure it is defined" >&2;}
17969 rm -f "$ac_tmp/stdin"
17971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17980 if test x"$ac_file" != x-; then
17982 $as_echo "/* $configure_input */" \
17983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17984 } >"$ac_tmp/config.h" \
17985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17991 mv "$ac_tmp/config.h" "$ac_file" \
17992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17995 $as_echo "/* $configure_input */" \
17996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17997 || as_fn_error $? "could not create -" "$LINENO" 5
17999 # Compute "$ac_file"'s index
in $config_headers.
18002 for _am_header
in $config_headers :; do
18003 case $_am_header in
18004 $_am_arg |
$_am_arg:* )
18007 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18010 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18011 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18012 X"$_am_arg" : 'X\(//\)[^/]' \| \
18013 X"$_am_arg" : 'X\(//\)$' \| \
18014 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18015 $as_echo X"$_am_arg" |
18016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18020 /^X\(\/\/\)[^/].*/{
18032 s/.*/./; q'`/stamp-h
$_am_stamp_count
18035 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18036 $as_echo "$as_me: executing $ac_file commands" >&6;}
18041 case $ac_file$ac_mode in
18043 # Only add multilib support code if we just rebuilt the top-level
18045 case " $CONFIG_FILES " in
18047 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
18050 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18051 # Older Autoconf quotes --file arguments for eval, but not when files
18052 # are listed without --file. Let's play safe and only enable the eval
18053 # if we detect the quoting.
18054 case $CONFIG_FILES in
18055 *\'*) eval set x
"$CONFIG_FILES" ;;
18056 *) set x
$CONFIG_FILES ;;
18061 # Strip MF so we end up with the name of the file.
18062 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18063 # Check whether this is an Automake generated Makefile or not.
18064 # We used to match only the files named 'Makefile.in', but
18065 # some people rename them; so instead we look at the file content.
18066 # Grep'ing the first line is not enough: some people post-process
18067 # each Makefile.in and add a new line on top of each file to say so.
18068 # Grep'ing the whole file is not good either: AIX grep has a line
18069 # limit of 2048, but all sed's we know have understand at least 4000.
18070 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18071 dirpart
=`$as_dirname -- "$mf" ||
18072 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18073 X"$mf" : 'X\(//\)[^/]' \| \
18074 X"$mf" : 'X\(//\)$' \| \
18075 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18081 /^X\(\/\/\)[^/].*/{
18097 # Extract the definition of DEPDIR, am__include, and am__quote
18098 # from the Makefile without running 'make'.
18099 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18100 test -z "$DEPDIR" && continue
18101 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18102 test -z "$am__include" && continue
18103 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18104 # Find all dependency output files, they are included files with
18105 # $(DEPDIR) in their names. We invoke sed twice because it is the
18106 # simplest approach to changing $(DEPDIR) to its actual value in the
18108 for file in `sed -n "
18109 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18110 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18111 # Make sure the directory exists.
18112 test -f "$dirpart/$file" && continue
18113 fdir
=`$as_dirname -- "$file" ||
18114 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18115 X"$file" : 'X\(//\)[^/]' \| \
18116 X"$file" : 'X\(//\)$' \| \
18117 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18118 $as_echo X"$file" |
18119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18123 /^X\(\/\/\)[^/].*/{
18136 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18137 # echo "creating $dirpart/$file"
18138 echo '# dummy' > "$dirpart/$file"
18145 # See if we are running on zsh, and set the options which allow our
18146 # commands through without removal of \ escapes.
18147 if test -n "${ZSH_VERSION+set}" ; then
18148 setopt NO_GLOB_SUBST
18151 cfgfile
="${ofile}T"
18152 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18155 cat <<_LT_EOF >> "$cfgfile"
18158 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18159 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18161 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18163 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18164 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18165 # Written by Gordon Matzigkeit, 1996
18167 # This file is part of GNU Libtool.
18169 # GNU Libtool is free software; you can redistribute it and/or
18170 # modify it under the terms of the GNU General Public License as
18171 # published by the Free Software Foundation; either version 2 of
18172 # the License, or (at your option) any later version.
18174 # As a special exception to the GNU General Public License,
18175 # if you distribute this file as part of a program or library that
18176 # is built using GNU Libtool, you may include this file under the
18177 # same distribution terms that you use for the rest of that program.
18179 # GNU Libtool is distributed in the hope that it will be useful,
18180 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18181 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18182 # GNU General Public License for more details.
18184 # You should have received a copy of the GNU General Public License
18185 # along with GNU Libtool; see the file COPYING. If not, a copy
18186 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18187 # obtained by writing to the Free Software Foundation, Inc.,
18188 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18191 # The names of the tagged configurations supported by this script.
18192 available_tags="GO "
18194 # ### BEGIN LIBTOOL CONFIG
18196 # A sed program that does not truncate output.
18199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18200 Xsed="\$SED -e 1s/^X//"
18202 # A grep program that handles long lines.
18208 # A literal string matcher.
18211 # Shell to use when invoking shell scripts.
18214 # An echo program that protects backslashes.
18217 # Which release of libtool.m4 was used?
18218 macro_version=$macro_version
18219 macro_revision=$macro_revision
18221 # Whether or not to build shared libraries.
18222 build_libtool_libs=$enable_shared
18224 # Whether or not to build static libraries.
18225 build_old_libs=$enable_static
18227 # What type of objects to build.
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18234 host_alias=$host_alias
18238 # The build system.
18239 build_alias=$build_alias
18243 # A BSD- or MS-compatible name lister.
18246 # Whether we need soft or hard links.
18249 # What is the maximum length of a command?
18250 max_cmd_len=$max_cmd_len
18252 # Object file suffix (normally "o").
18255 # Executable file suffix (normally "").
18258 # whether the shell understands "unset".
18261 # turn spaces into newlines.
18264 # turn newlines into spaces.
18267 # An object symbol dumper.
18268 OBJDUMP=$lt_OBJDUMP
18270 # Method to check whether dependent libraries are shared objects.
18271 deplibs_check_method=$lt_deplibs_check_method
18273 # Command to use when deplibs_check_method == "file_magic".
18274 file_magic_cmd=$lt_file_magic_cmd
18278 AR_FLAGS=$lt_AR_FLAGS
18280 # A symbol stripping program.
18283 # Commands used to install an old-style archive.
18285 old_postinstall_cmds=$lt_old_postinstall_cmds
18286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18288 # Whether to use a lock for old archive extraction.
18289 lock_old_archive_extraction=$lock_old_archive_extraction
18294 # LTCC compiler flags.
18295 LTCFLAGS=$lt_CFLAGS
18297 # Take the output of nm and produce a listing of raw symbols and C names.
18298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18300 # Transform the output of nm in a proper C declaration.
18301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18303 # Transform the output of nm in a C name address pair.
18304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18306 # Transform the output of nm in a C name address pair when lib prefix is needed.
18307 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18309 # The name of the directory that contains temporary libtool files.
18312 # Used to examine libraries when file_magic_cmd begins with "file".
18313 MAGIC_CMD=$MAGIC_CMD
18315 # Must we lock files when doing compilation?
18316 need_locks=$lt_need_locks
18318 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18319 DSYMUTIL=$lt_DSYMUTIL
18321 # Tool to change global to local symbols on Mac OS X.
18324 # Tool to manipulate fat objects and archives on Mac OS X.
18327 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18330 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18331 OTOOL64=$lt_OTOOL64
18333 # Old archive suffix (normally "a").
18336 # Shared library suffix (normally ".so").
18337 shrext_cmds=$lt_shrext_cmds
18339 # The commands to extract the exported symbol list from a shared archive.
18340 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18342 # Variables whose values should be saved in libtool wrapper scripts and
18343 # restored at link time.
18344 variables_saved_for_relink=$lt_variables_saved_for_relink
18346 # Do we need the "lib" prefix for modules?
18347 need_lib_prefix=$need_lib_prefix
18349 # Do we need a version for libraries?
18350 need_version=$need_version
18352 # Library versioning type.
18353 version_type=$version_type
18355 # Shared library runtime path variable.
18356 runpath_var=$runpath_var
18358 # Shared library path variable.
18359 shlibpath_var=$shlibpath_var
18361 # Is shlibpath searched before the hard-coded library search path?
18362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18364 # Format of library name prefix.
18365 libname_spec=$lt_libname_spec
18367 # List of archive names. First name is the real one, the rest are links.
18368 # The last name is the one that the linker finds with -lNAME
18369 library_names_spec=$lt_library_names_spec
18371 # The coded name of the library, if different from the real name.
18372 soname_spec=$lt_soname_spec
18374 # Permission mode override for installation of shared libraries.
18375 install_override_mode=$lt_install_override_mode
18377 # Command to use after installation of a shared archive.
18378 postinstall_cmds=$lt_postinstall_cmds
18380 # Command to use after uninstallation of a shared archive.
18381 postuninstall_cmds=$lt_postuninstall_cmds
18383 # Commands used to finish a libtool library installation in a directory.
18384 finish_cmds=$lt_finish_cmds
18386 # As "finish_cmds", except a single script fragment to be evaled but
18388 finish_eval=$lt_finish_eval
18390 # Whether we should hardcode library paths into libraries.
18391 hardcode_into_libs=$hardcode_into_libs
18393 # Compile-time system search path for libraries.
18394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18396 # Run-time system search path for libraries.
18397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18399 # Whether dlopen is supported.
18400 dlopen_support=$enable_dlopen
18402 # Whether dlopen of programs is supported.
18403 dlopen_self=$enable_dlopen_self
18405 # Whether dlopen of statically linked programs is supported.
18406 dlopen_self_static=$enable_dlopen_self_static
18408 # Commands to strip libraries.
18409 old_striplib=$lt_old_striplib
18410 striplib=$lt_striplib
18413 # The linker used to build libraries.
18416 # How to create reloadable object files.
18417 reload_flag=$lt_reload_flag
18418 reload_cmds=$lt_reload_cmds
18420 # Commands used to build an old-style archive.
18421 old_archive_cmds=$lt_old_archive_cmds
18423 # A language specific compiler.
18426 # Is the compiler the GNU compiler?
18429 # Compiler flag to turn off builtin functions.
18430 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18432 # How to pass a linker flag through the compiler.
18433 wl=$lt_lt_prog_compiler_wl
18435 # Additional compiler flags for building library objects.
18436 pic_flag=$lt_lt_prog_compiler_pic
18438 # Compiler flag to prevent dynamic linking.
18439 link_static_flag=$lt_lt_prog_compiler_static
18441 # Does compiler simultaneously support -c and -o options?
18442 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18444 # Whether or not to add -lc for building shared libraries.
18445 build_libtool_need_lc=$archive_cmds_need_lc
18447 # Whether or not to disallow shared libs when runtime libs are static.
18448 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18450 # Compiler flag to allow reflexive dlopens.
18451 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18453 # Compiler flag to generate shared objects directly from archives.
18454 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18456 # Whether the compiler copes with passing no objects directly.
18457 compiler_needs_object=$lt_compiler_needs_object
18459 # Create an old-style archive from a shared archive.
18460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18462 # Create a temporary old-style archive to link instead of a shared archive.
18463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18465 # Commands used to build a shared archive.
18466 archive_cmds=$lt_archive_cmds
18467 archive_expsym_cmds=$lt_archive_expsym_cmds
18469 # Commands used to build a loadable module if different from building
18470 # a shared archive.
18471 module_cmds=$lt_module_cmds
18472 module_expsym_cmds=$lt_module_expsym_cmds
18474 # Whether we are building with GNU ld or not.
18475 with_gnu_ld=$lt_with_gnu_ld
18477 # Flag that allows shared libraries with undefined symbols to be built.
18478 allow_undefined_flag=$lt_allow_undefined_flag
18480 # Flag that enforces no undefined symbols.
18481 no_undefined_flag=$lt_no_undefined_flag
18483 # Flag to hardcode \$libdir into a binary during linking.
18484 # This must work even if \$libdir does not exist
18485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18487 # If ld is used when linking, flag to hardcode \$libdir into a binary
18488 # during linking. This must work even if \$libdir does not exist.
18489 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18491 # Whether we need a single "-rpath" flag with a separated argument.
18492 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18494 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18495 # DIR into the resulting binary.
18496 hardcode_direct=$hardcode_direct
18498 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18499 # DIR into the resulting binary and the resulting library dependency is
18500 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18501 # library is relocated.
18502 hardcode_direct_absolute=$hardcode_direct_absolute
18504 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18505 # into the resulting binary.
18506 hardcode_minus_L=$hardcode_minus_L
18508 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18509 # into the resulting binary.
18510 hardcode_shlibpath_var=$hardcode_shlibpath_var
18512 # Set to "yes" if building a shared library automatically hardcodes DIR
18513 # into the library and all subsequent libraries and executables linked
18515 hardcode_automatic=$hardcode_automatic
18517 # Set to yes if linker adds runtime paths of dependent libraries
18518 # to runtime path list.
18519 inherit_rpath=$inherit_rpath
18521 # Whether libtool must link a program against all its dependency libraries.
18522 link_all_deplibs=$link_all_deplibs
18524 # Fix the shell variable \$srcfile for the compiler.
18525 fix_srcfile_path=$lt_fix_srcfile_path
18527 # Set to "yes" if exported symbols are required.
18528 always_export_symbols=$always_export_symbols
18530 # The commands to list exported symbols.
18531 export_symbols_cmds=$lt_export_symbols_cmds
18533 # Symbols that should not be listed in the preloaded symbols.
18534 exclude_expsyms=$lt_exclude_expsyms
18536 # Symbols that must always be exported.
18537 include_expsyms=$lt_include_expsyms
18539 # Commands necessary for linking programs (against libraries) with templates.
18540 prelink_cmds=$lt_prelink_cmds
18542 # Specify filename containing input files.
18543 file_list_spec=$lt_file_list_spec
18545 # How to hardcode a shared library path into an executable.
18546 hardcode_action=$hardcode_action
18548 # ### END LIBTOOL CONFIG
18554 cat <<\_LT_EOF
>> "$cfgfile"
18555 # AIX sometimes has problems with the GCC collect2 program. For some
18556 # reason, if we set the COLLECT_NAMES environment variable, the problems
18557 # vanish in a puff of smoke.
18558 if test "X${COLLECT_NAMES+set}" != Xset
; then
18560 export COLLECT_NAMES
18567 ltmain
="$ac_aux_dir/ltmain.sh"
18570 # We use sed instead of cat because bash on DJGPP gets confused if
18571 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18572 # text mode, it properly converts lines to CR/LF. This bash problem
18573 # is reportedly fixed, but why not run on old versions too?
18574 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18575 ||
(rm -f "$cfgfile"; exit 1)
18579 cat << \_LT_EOF
>> "$cfgfile"
18581 # func_dirname file append nondir_replacement
18582 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18583 # otherwise set result to NONDIR_REPLACEMENT.
18587 */*) func_dirname_result
="${1%/*}${2}" ;;
18588 * ) func_dirname_result
="${3}" ;;
18592 # func_basename file
18595 func_basename_result
="${1##*/}"
18598 # func_dirname_and_basename file append nondir_replacement
18599 # perform func_basename and func_dirname in a single function
18601 # dirname: Compute the dirname of FILE. If nonempty,
18602 # add APPEND to the result, otherwise set result
18603 # to NONDIR_REPLACEMENT.
18604 # value returned in "$func_dirname_result"
18605 # basename: Compute filename of FILE.
18606 # value retuned in "$func_basename_result"
18607 # Implementation must be kept synchronized with func_dirname
18608 # and func_basename. For efficiency, we do not delegate to
18609 # those functions but instead duplicate the functionality here.
18610 func_dirname_and_basename
()
18613 */*) func_dirname_result
="${1%/*}${2}" ;;
18614 * ) func_dirname_result
="${3}" ;;
18616 func_basename_result
="${1##*/}"
18619 # func_stripname prefix suffix name
18620 # strip PREFIX and SUFFIX off of NAME.
18621 # PREFIX and SUFFIX must not contain globbing or regex special
18622 # characters, hashes, percent signs, but SUFFIX may contain a leading
18623 # dot (in which case that matches only a dot).
18626 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18627 # positional parameters, so assign one to ordinary parameter first.
18628 func_stripname_result
=${3}
18629 func_stripname_result
=${func_stripname_result#"${1}"}
18630 func_stripname_result
=${func_stripname_result%"${2}"}
18636 func_opt_split_opt
=${1%%=*}
18637 func_opt_split_arg
=${1#*=}
18644 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
18645 *) func_lo2o_result
=${1} ;;
18649 # func_xform libobj-or-source
18652 func_xform_result
=${1%.*}.lo
18655 # func_arith arithmetic-term...
18658 func_arith_result
=$
(( $
* ))
18662 # STRING may not start with a hyphen.
18665 func_len_result
=${#1}
18670 *) # Bourne compatible functions.
18671 cat << \_LT_EOF
>> "$cfgfile"
18673 # func_dirname file append nondir_replacement
18674 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18675 # otherwise set result to NONDIR_REPLACEMENT.
18678 # Extract subdirectory from the argument.
18679 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
18680 if test "X$func_dirname_result" = "X${1}"; then
18681 func_dirname_result
="${3}"
18683 func_dirname_result
="$func_dirname_result${2}"
18687 # func_basename file
18690 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
18694 # func_stripname prefix suffix name
18695 # strip PREFIX and SUFFIX off of NAME.
18696 # PREFIX and SUFFIX must not contain globbing or regex special
18697 # characters, hashes, percent signs, but SUFFIX may contain a leading
18698 # dot (in which case that matches only a dot).
18699 # func_strip_suffix prefix name
18703 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18704 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18709 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
18710 my_sed_long_arg
='1s/^-[^=]*=//'
18715 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18716 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18722 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
18725 # func_xform libobj-or-source
18728 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18731 # func_arith arithmetic-term...
18734 func_arith_result
=`expr "$@"`
18738 # STRING may not start with a hyphen.
18741 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18747 case $lt_shell_append in
18749 cat << \_LT_EOF
>> "$cfgfile"
18751 # func_append var value
18752 # Append VALUE to the end of shell variable VAR.
18760 cat << \_LT_EOF
>> "$cfgfile"
18762 # func_append var value
18763 # Append VALUE to the end of shell variable VAR.
18774 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18775 ||
(rm -f "$cfgfile"; exit 1)
18777 mv -f "$cfgfile" "$ofile" ||
18778 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18782 cat <<_LT_EOF >> "$ofile"
18784 # ### BEGIN LIBTOOL TAG CONFIG: GO
18786 # The linker used to build libraries.
18789 # How to create reloadable object files.
18790 reload_flag=$lt_reload_flag_GO
18791 reload_cmds=$lt_reload_cmds_GO
18793 # Commands used to build an old-style archive.
18794 old_archive_cmds=$lt_old_archive_cmds_GO
18796 # A language specific compiler.
18799 # Is the compiler the GNU compiler?
18802 # Compiler flag to turn off builtin functions.
18803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18805 # How to pass a linker flag through the compiler.
18806 wl=$lt_lt_prog_compiler_wl_GO
18808 # Additional compiler flags for building library objects.
18809 pic_flag=$lt_lt_prog_compiler_pic_GO
18811 # Compiler flag to prevent dynamic linking.
18812 link_static_flag=$lt_lt_prog_compiler_static_GO
18814 # Does compiler simultaneously support -c and -o options?
18815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18817 # Whether or not to add -lc for building shared libraries.
18818 build_libtool_need_lc=$archive_cmds_need_lc_GO
18820 # Whether or not to disallow shared libs when runtime libs are static.
18821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18823 # Compiler flag to allow reflexive dlopens.
18824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18826 # Compiler flag to generate shared objects directly from archives.
18827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18829 # Whether the compiler copes with passing no objects directly.
18830 compiler_needs_object=$lt_compiler_needs_object_GO
18832 # Create an old-style archive from a shared archive.
18833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18835 # Create a temporary old-style archive to link instead of a shared archive.
18836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18838 # Commands used to build a shared archive.
18839 archive_cmds=$lt_archive_cmds_GO
18840 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18842 # Commands used to build a loadable module if different from building
18843 # a shared archive.
18844 module_cmds=$lt_module_cmds_GO
18845 module_expsym_cmds=$lt_module_expsym_cmds_GO
18847 # Whether we are building with GNU ld or not.
18848 with_gnu_ld=$lt_with_gnu_ld_GO
18850 # Flag that allows shared libraries with undefined symbols to be built.
18851 allow_undefined_flag=$lt_allow_undefined_flag_GO
18853 # Flag that enforces no undefined symbols.
18854 no_undefined_flag=$lt_no_undefined_flag_GO
18856 # Flag to hardcode \$libdir into a binary during linking.
18857 # This must work even if \$libdir does not exist
18858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18860 # If ld is used when linking, flag to hardcode \$libdir into a binary
18861 # during linking. This must work even if \$libdir does not exist.
18862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18864 # Whether we need a single "-rpath" flag with a separated argument.
18865 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18868 # DIR into the resulting binary.
18869 hardcode_direct=$hardcode_direct_GO
18871 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18872 # DIR into the resulting binary and the resulting library dependency is
18873 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18874 # library is relocated.
18875 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18878 # into the resulting binary.
18879 hardcode_minus_L=$hardcode_minus_L_GO
18881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18882 # into the resulting binary.
18883 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18885 # Set to "yes" if building a shared library automatically hardcodes DIR
18886 # into the library and all subsequent libraries and executables linked
18888 hardcode_automatic=$hardcode_automatic_GO
18890 # Set to yes if linker adds runtime paths of dependent libraries
18891 # to runtime path list.
18892 inherit_rpath=$inherit_rpath_GO
18894 # Whether libtool must link a program against all its dependency libraries.
18895 link_all_deplibs=$link_all_deplibs_GO
18897 # Fix the shell variable \$srcfile for the compiler.
18898 fix_srcfile_path=$lt_fix_srcfile_path_GO
18900 # Set to "yes" if exported symbols are required.
18901 always_export_symbols=$always_export_symbols_GO
18903 # The commands to list exported symbols.
18904 export_symbols_cmds=$lt_export_symbols_cmds_GO
18906 # Symbols that should not be listed in the preloaded symbols.
18907 exclude_expsyms=$lt_exclude_expsyms_GO
18909 # Symbols that must always be exported.
18910 include_expsyms=$lt_include_expsyms_GO
18912 # Commands necessary for linking programs (against libraries) with templates.
18913 prelink_cmds=$lt_prelink_cmds_GO
18915 # Specify filename containing input files.
18916 file_list_spec=$lt_file_list_spec_GO
18918 # How to hardcode a shared library path into an executable.
18919 hardcode_action=$hardcode_action_GO
18921 # ### END LIBTOOL TAG CONFIG: GO
18925 "default":C
) if test -n "$CONFIG_FILES"; then
18926 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18927 # that multilib installs will end up installed in the correct place.
18928 # The testsuite needs it for multilib-aware ABI baseline files.
18929 # To work around this not being passed down from config-ml.in ->
18930 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18931 # append it here. Only modify Makefiles that have just been created.
18933 # Also, get rid of this simulated-VPATH thing that automake does.
18934 cat > vpsed
<< \_EOF
18935 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18937 for i
in $SUBDIRS; do
18938 case $CONFIG_FILES in
18940 #echo "Adding MULTISUBDIR to $i/Makefile"
18941 sed -f vpsed
$i/Makefile
> tmp
18942 grep '^MULTISUBDIR =' Makefile
>> tmp
18957 ac_clean_files
=$ac_clean_files_save
18959 test $ac_write_fail = 0 ||
18960 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18963 # configure is writing to config.log, and then calls config.status.
18964 # config.status does its own redirection, appending to config.log.
18965 # Unfortunately, on DOS this fails, as config.log is still kept open
18966 # by configure, so config.status won't be able to write to it; its
18967 # output is simply discarded. So we exec the FD to /dev/null,
18968 # effectively closing config.log, so it can be properly (re)opened and
18969 # appended to by config.status. When coming back to configure, we
18970 # need to make the FD available again.
18971 if test "$no_create" != yes; then
18973 ac_config_status_args
=
18974 test "$silent" = yes &&
18975 ac_config_status_args
="$ac_config_status_args --quiet"
18977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18980 # would make configure fail if this is the last instruction.
18981 $ac_cs_success || as_fn_exit
1
18983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}