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
='libphobos'
590 PACKAGE_VERSION
='version-unused'
591 PACKAGE_STRING
='package-unused version-unused'
595 ac_unique_file
="libdruntime/gcc/attribute.d"
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
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
730 MAINTAINER_MODE_FALSE
748 INSTALL_STRIP_PROGRAM
813 program_transform_name
824 ac_subst_files
='DRTSTUFF_SPEC'
826 enable_option_checking
829 enable_maintainer_mode
837 with_gcc_major_version_only
841 with_target_system_zlib
843 enable_version_specific_runtime_libs
846 with_libphobos_druntime_only
847 enable_libphobos_checking
849 ac_precious_vars
='build_alias
860 # Initialize some variables set by options.
862 ac_init_version
=false
863 ac_unrecognized_opts
=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name
=s
,x
,x
,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir
='${exec_prefix}/bin'
889 sbindir
='${exec_prefix}/sbin'
890 libexecdir
='${exec_prefix}/libexec'
891 datarootdir
='${prefix}/share'
892 datadir
='${datarootdir}'
893 sysconfdir
='${prefix}/etc'
894 sharedstatedir
='${prefix}/com'
895 localstatedir
='${prefix}/var'
896 includedir
='${prefix}/include'
897 oldincludedir
='/usr/include'
898 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir
='${datarootdir}/info'
904 libdir
='${exec_prefix}/lib'
905 localedir
='${datarootdir}/locale'
906 mandir
='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\
$ac_option
920 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
933 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
936 -build |
--build |
--buil |
--bui |
--bu)
937 ac_prev
=build_alias
;;
938 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
939 build_alias
=$ac_optarg ;;
941 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
942 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
943 ac_prev
=cache_file
;;
944 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
945 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
946 cache_file
=$ac_optarg ;;
949 cache_file
=config.cache
;;
951 -datadir |
--datadir |
--datadi |
--datad)
953 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
954 datadir
=$ac_optarg ;;
956 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
957 |
--dataroo |
--dataro |
--datar)
958 ac_prev
=datarootdir
;;
959 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
960 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
961 datarootdir
=$ac_optarg ;;
963 -disable-* |
--disable-*)
964 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
967 as_fn_error $?
"invalid feature name: $ac_useropt"
968 ac_useropt_orig
=$ac_useropt
969 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep
=', ';;
977 eval enable_
$ac_useropt=no
;;
979 -docdir |
--docdir |
--docdi |
--doc |
--do)
981 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
984 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
986 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
989 -enable-* |
--enable-*)
990 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
993 as_fn_error $?
"invalid feature name: $ac_useropt"
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval enable_
$ac_useropt=\
$ac_optarg ;;
1005 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1006 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1007 |
--exec |
--exe |
--ex)
1008 ac_prev
=exec_prefix
;;
1009 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1010 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1011 |
--exec=* |
--exe=* |
--ex=*)
1012 exec_prefix
=$ac_optarg ;;
1014 -gas |
--gas |
--ga |
--g)
1015 # Obsolete; use --with-gas.
1018 -help |
--help |
--hel |
--he |
-h)
1019 ac_init_help
=long
;;
1020 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1021 ac_init_help
=recursive
;;
1022 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1023 ac_init_help
=short
;;
1025 -host |
--host |
--hos |
--ho)
1026 ac_prev
=host_alias
;;
1027 -host=* |
--host=* |
--hos=* |
--ho=*)
1028 host_alias
=$ac_optarg ;;
1030 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1032 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1034 htmldir
=$ac_optarg ;;
1036 -includedir |
--includedir |
--includedi |
--included |
--include \
1037 |
--includ |
--inclu |
--incl |
--inc)
1038 ac_prev
=includedir
;;
1039 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1040 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1041 includedir
=$ac_optarg ;;
1043 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1045 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1046 infodir
=$ac_optarg ;;
1048 -libdir |
--libdir |
--libdi |
--libd)
1050 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1051 libdir
=$ac_optarg ;;
1053 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1054 |
--libexe |
--libex |
--libe)
1055 ac_prev
=libexecdir
;;
1056 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1057 |
--libexe=* |
--libex=* |
--libe=*)
1058 libexecdir
=$ac_optarg ;;
1060 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1061 ac_prev
=localedir
;;
1062 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1063 localedir
=$ac_optarg ;;
1065 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1066 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1067 ac_prev
=localstatedir
;;
1068 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1069 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1070 localstatedir
=$ac_optarg ;;
1072 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1074 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1075 mandir
=$ac_optarg ;;
1077 -nfp |
--nfp |
--nf)
1078 # Obsolete; use --without-fp.
1081 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1082 |
--no-cr |
--no-c |
-n)
1085 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1086 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1089 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1090 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1091 |
--oldin |
--oldi |
--old |
--ol |
--o)
1092 ac_prev
=oldincludedir
;;
1093 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1094 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1095 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1096 oldincludedir
=$ac_optarg ;;
1098 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1100 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1101 prefix
=$ac_optarg ;;
1103 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1104 |
--program-pre |
--program-pr |
--program-p)
1105 ac_prev
=program_prefix
;;
1106 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1107 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1108 program_prefix
=$ac_optarg ;;
1110 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1111 |
--program-suf |
--program-su |
--program-s)
1112 ac_prev
=program_suffix
;;
1113 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1114 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1115 program_suffix
=$ac_optarg ;;
1117 -program-transform-name |
--program-transform-name \
1118 |
--program-transform-nam |
--program-transform-na \
1119 |
--program-transform-n |
--program-transform- \
1120 |
--program-transform |
--program-transfor \
1121 |
--program-transfo |
--program-transf \
1122 |
--program-trans |
--program-tran \
1123 |
--progr-tra |
--program-tr |
--program-t)
1124 ac_prev
=program_transform_name
;;
1125 -program-transform-name=* |
--program-transform-name=* \
1126 |
--program-transform-nam=* |
--program-transform-na=* \
1127 |
--program-transform-n=* |
--program-transform-=* \
1128 |
--program-transform=* |
--program-transfor=* \
1129 |
--program-transfo=* |
--program-transf=* \
1130 |
--program-trans=* |
--program-tran=* \
1131 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1132 program_transform_name
=$ac_optarg ;;
1134 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1136 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1137 pdfdir
=$ac_optarg ;;
1139 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1141 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1144 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1145 |
-silent |
--silent |
--silen |
--sile |
--sil)
1148 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1150 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1152 sbindir
=$ac_optarg ;;
1154 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1155 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1156 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1158 ac_prev
=sharedstatedir
;;
1159 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1160 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1161 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1163 sharedstatedir
=$ac_optarg ;;
1165 -site |
--site |
--sit)
1167 -site=* |
--site=* |
--sit=*)
1170 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1172 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1173 srcdir
=$ac_optarg ;;
1175 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1176 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1177 ac_prev
=sysconfdir
;;
1178 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1179 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1180 sysconfdir
=$ac_optarg ;;
1182 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1183 ac_prev
=target_alias
;;
1184 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1185 target_alias
=$ac_optarg ;;
1187 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1190 -version |
--version |
--versio |
--versi |
--vers |
-V)
1191 ac_init_version
=: ;;
1194 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 as_fn_error $?
"invalid package name: $ac_useropt"
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=\
$ac_optarg ;;
1209 -without-* |
--without-*)
1210 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1213 as_fn_error $?
"invalid package name: $ac_useropt"
1214 ac_useropt_orig
=$ac_useropt
1215 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep
=', ';;
1223 eval with_
$ac_useropt=no
;;
1226 # Obsolete; use --with-x.
1229 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1230 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1231 ac_prev
=x_includes
;;
1232 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1233 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1234 x_includes
=$ac_optarg ;;
1236 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1237 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1238 ac_prev
=x_libraries
;;
1239 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1240 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1241 x_libraries
=$ac_optarg ;;
1243 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1252 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\
$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $?
"missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val
=\$
$ac_var
1288 # Remove trailing slashes.
1291 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\
$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$
]* | ?
:[\\/]* ) continue;;
1297 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1299 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target
=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x
; then
1311 if test "x$build_alias" = x
; then
1312 cross_compiling
=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1321 test "$silent" = yes && exec 6>/dev
/null
1324 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di
=`ls -di .` &&
1326 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $?
"working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $?
"pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted
=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir
=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted
=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1368 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var
in $ac_precious_vars; do
1385 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1387 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1461 --build=BUILD configure
for building on BUILD
[guessed
]
1462 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1463 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive
) echo "Configuration of package-unused version-unused:";;
1474 --disable-option-checking ignore unrecognized
--enable/--with options
1475 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1476 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1477 --enable-multilib build many library versions
(default
)
1478 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1479 --disable-silent-rules verbose build output
(undo
: "make V=0")
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful
(and
1482 sometimes confusing
) to the casual installer
1483 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1484 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1485 --enable-static[=PKGS
] build static libraries
[default
=yes]
1486 --enable-fast-install[=PKGS
]
1487 optimize
for fast installation
[default
=yes]
1488 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1489 --enable-werror turns on
-Werror [default
=no
]
1490 --enable-version-specific-runtime-libs
1491 Specify that runtime libraries should be installed
1492 in a compiler-specific directory
1493 --enable-libphobos Enable libphobos
1494 --enable-libphobos-checking[=LIST
]
1495 enable expensive run-time checks. With LIST
, enable
1496 only specific categories of checks. Categories are
:
1497 yes,no
,all
,none
,release. Flags are
: assert or other
1501 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1502 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1503 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1505 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1506 --with-gcc-major-version-only
1507 use only GCC major number
in filesystem paths
1508 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1509 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1511 --with-target-system-zlib={yes,no
,auto
}
1512 use installed libz
(default
: no
)
1513 --with-cross-host=HOST configuring with a cross compiler
1514 --with-toolexeclibdir=DIR
1515 install libraries built with a cross compiler within
1517 --with-libphobos-druntime-only={yes,no
,auto
}
1518 build only the druntime library
(default
: auto
)
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
>
1529 CCAS assembler compiler
command (defaults to CC
)
1530 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1531 GDC D compiler
command
1532 GDCFLAGS D compiler flags
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_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1658 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } > conftest.i && {
1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1689 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1690 # -------------------------------------------------------
1691 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1692 # the include files in INCLUDES and setting the cache variable VAR
1694 ac_fn_c_check_header_mongrel ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if eval \${$3+:} false; then :
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if eval \${$3+:} false; then :
1701 $as_echo_n "(cached) " >&6
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1707 # Is the header compilable?
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1709 $as_echo_n "checking $2 usability... " >&6; }
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716 ac_header_compiler=yes
1718 ac_header_compiler=no
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1722 $as_echo "$ac_header_compiler" >&6; }
1724 # Is the header present?
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1726 $as_echo_n "checking $2 presence... " >&6; }
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1731 if ac_fn_c_try_cpp "$LINENO"; then :
1732 ac_header_preproc=yes
1734 ac_header_preproc=no
1736 rm -f conftest.err conftest.i conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1738 $as_echo "$ac_header_preproc" >&6; }
1740 # So? What about this header?
1741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1744 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1750 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1752 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1754 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1756 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1766 eval "$3=\$ac_header_compiler"
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_header_mongrel
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
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_link") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1835 if ac_fn_c_try_compile "$LINENO"; then :
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_header_compile
1849 # ac_fn_d_try_compile LINENO
1850 # --------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_d_try_compile ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1865 if test -s conftest.err
; then
1866 grep -v '^ *+' conftest.err
>conftest.er1
1867 cat conftest.er1
>&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_d_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.
$ac_objext; then :
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status
$ac_retval
1885 } # ac_fn_d_try_compile
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 rm -f conftest.
$ac_objext conftest
$ac_exeext
1894 if { { ac_try
="$ac_link"
1896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 test -x conftest$ac_exeext
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1931 } # ac_fn_c_try_link
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1956 # include <limits.h>
1958 # include <assert.h>
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1985 if ac_fn_c_try_link "$LINENO"; then :
1990 rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_func
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ----------------------------------------------------
2002 # Tries to find if the field MEMBER exists in type AGGR, after including
2003 # INCLUDES, setting cache variable VAR accordingly.
2004 ac_fn_c_check_member ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval \${$4+:} false; then :
2010 $as_echo_n "(cached) " >&6
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2025 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2035 if (sizeof ac_aggr.$3)
2041 if ac_fn_c_try_compile "$LINENO"; then :
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_member
2057 # ac_fn_d_try_link LINENO
2058 # -----------------------
2059 # Try to link conftest.$ac_ext, and return whether this succeeded.
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext conftest$ac_exeext
2064 if { { ac_try="$ac_link"
2066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2067 *) ac_try_echo
=$ac_try;;
2069 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_link") 2>conftest.err
2073 if test -s conftest.err
; then
2074 grep -v '^ *+' conftest.err
>conftest.er1
2075 cat conftest.er1
>&5
2076 mv -f conftest.er1 conftest.err
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_d_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest
$ac_exeext && {
2083 test "$cross_compiling" = yes ||
2084 test -x conftest
$ac_exeext
2088 $as_echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.
$ac_ext >&5
2093 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2094 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2095 # interfere with the next link command; also delete a directory that is
2096 # left behind by Apple's compiler. We do this before executing the actions.
2097 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status
$ac_retval
2101 } # ac_fn_d_try_link
2102 cat >config.log
<<_ACEOF
2103 This file contains any messages produced by compilers while
2104 running configure, to aid debugging if configure makes a mistake.
2106 It was created by package-unused $as_me version-unused, which was
2107 generated by GNU Autoconf 2.69. Invocation command line was
2119 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2128 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2129 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2130 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2132 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2133 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2134 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2142 test -z "$as_dir" && as_dir
=.
2143 $as_echo "PATH: $as_dir"
2159 # Keep a trace of the command line.
2160 # Strip out --no-create and --no-recursion so they do not pile up.
2161 # Strip out --silent because we don't want to record it for future runs.
2162 # Also quote any args containing shell meta-characters.
2163 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_must_keep_next
=false
2173 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2174 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2175 |
-silent |
--silent |
--silen |
--sile |
--sil)
2178 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2183 as_fn_append ac_configure_args1
" '$ac_arg'"
2184 if test $ac_must_keep_next = true
; then
2185 ac_must_keep_next
=false
# Got value, back to normal.
2188 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2189 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2190 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2191 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2192 case "$ac_configure_args0 " in
2193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 -* ) ac_must_keep_next
=true
;;
2199 as_fn_append ac_configure_args
" '$ac_arg'"
2204 { ac_configure_args0
=; unset ac_configure_args0
;}
2205 { ac_configure_args1
=; unset ac_configure_args1
;}
2207 # When interrupted or exit'd, cleanup temporary files, and complete
2208 # config.log. We remove comments because anyway the quotes in there
2209 # would cause problems or look ugly.
2210 # WARNING: Use '\'' to represent an apostrophe within the trap.
2211 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212 trap 'exit_status=$?
2213 # Save into config.log some information that might help in debugging.
2217 $as_echo "## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##"
2221 # The following way of writing the cache mishandles newlines in values,
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) { eval $ac_var=; unset $ac_var;} ;;
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253 $as_echo "## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##"
2257 for ac_var in $ac_subst_vars
2259 eval ac_val=\$$ac_var
2261 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 $as_echo "$ac_var='\''$ac_val'\''"
2267 if test -n "$ac_subst_files"; then
2268 $as_echo "## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##"
2272 for ac_var
in $ac_subst_files
2274 eval ac_val
=\$
$ac_var
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 $as_echo "$ac_var='\''$ac_val'\''"
2283 if test -s confdefs.h; then
2284 $as_echo "## ----------- ##
2291 test "$ac_signal" != 0 &&
2292 $as_echo "$as_me: caught signal $ac_signal"
2293 $as_echo "$as_me: exit $exit_status"
2295 rm -f core *.core core.conftest.* &&
2296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299 for ac_signal
in 1 2 13 15; do
2300 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2305 rm -f -r conftest
* confdefs.h
2307 $as_echo "/* confdefs.h */" > confdefs.h
2309 # Predefined preprocessor variables.
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 cat >>confdefs.h
<<_ACEOF
2324 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 cat >>confdefs.h
<<_ACEOF
2328 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 cat >>confdefs.h
<<_ACEOF
2332 #define PACKAGE_URL "$PACKAGE_URL"
2336 # Let the site file select an alternate cache file if it wants to.
2337 # Prefer an explicitly selected file to automatically selected ones.
2340 if test -n "$CONFIG_SITE"; then
2341 # We do not want a PATH search for config.site.
2342 case $CONFIG_SITE in #((
2343 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2344 */*) ac_site_file1
=$CONFIG_SITE;;
2345 *) ac_site_file1
=.
/$CONFIG_SITE;;
2347 elif test "x$prefix" != xNONE
; then
2348 ac_site_file1
=$prefix/share
/config.site
2349 ac_site_file2
=$prefix/etc
/config.site
2351 ac_site_file1
=$ac_default_prefix/share
/config.site
2352 ac_site_file2
=$ac_default_prefix/etc
/config.site
2354 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2356 test "x$ac_site_file" = xNONE
&& continue
2357 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2362 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364 as_fn_error $?
"failed to load site script $ac_site_file
2365 See \`config.log' for more details" "$LINENO" 5; }
2369 if test -r "$cache_file"; then
2370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2377 *) .
"./$cache_file";;
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 # Check that the precious variables saved in the cache have kept the same
2388 ac_cache_corrupted
=false
2389 for ac_var
in $ac_precious_vars; do
2390 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2391 eval ac_new_set
=\
$ac_env_${ac_var}_set
2392 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2393 eval ac_new_val
=\
$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted
=: ;;
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted
=: ;;
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w
=`echo x $ac_old_val`
2408 ac_new_val_w
=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted
=:
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\
$ac_old_val
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2427 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg
=$ac_var=$ac_new_val ;;
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2436 if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2448 ac_cpp
='$CPP $CPPFLAGS'
2449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2458 ac_config_headers
="$ac_config_headers config.h"
2461 # Default to --enable-multilib
2462 # Check whether --enable-multilib was given.
2463 if test "${enable_multilib+set}" = set; then :
2464 enableval
=$enable_multilib; case "$enableval" in
2465 yes) multilib
=yes ;;
2467 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2474 # We may get other options which we leave undocumented:
2475 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2476 # See config-ml.in if you want the gory details.
2478 if test "$srcdir" = "."; then
2479 if test "$with_target_subdir" != "."; then
2480 multi_basedir
="$srcdir/$with_multisrctop../.."
2482 multi_basedir
="$srcdir/$with_multisrctop.."
2485 multi_basedir
="$srcdir/.."
2489 # Even if the default multilib is not a cross compilation,
2490 # it may be that some of the other multilibs are.
2491 if test $cross_compiling = no
&& test $multilib = yes \
2492 && test "x${with_multisubdir}" != x
; then
2493 cross_compiling
=maybe
2496 ac_config_commands
="$ac_config_commands default-1"
2499 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2500 if test -f "$ac_dir/install-sh"; then
2502 ac_install_sh
="$ac_aux_dir/install-sh -c"
2504 elif test -f "$ac_dir/install.sh"; then
2506 ac_install_sh
="$ac_aux_dir/install.sh -c"
2508 elif test -f "$ac_dir/shtool"; then
2510 ac_install_sh
="$ac_aux_dir/shtool install -c"
2514 if test -z "$ac_aux_dir"; then
2515 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2518 # These three variables are undocumented and unsupported,
2519 # and are intended to be withdrawn in a future Autoconf release.
2520 # They can cause serious problems if a builder's source tree is in a directory
2521 # whose full name contains unusual characters.
2522 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2523 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2524 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2527 # Make sure we can run config.sub.
2528 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2529 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2532 $as_echo_n "checking build system type... " >&6; }
2533 if ${ac_cv_build+:} false
; then :
2534 $as_echo_n "(cached) " >&6
2536 ac_build_alias
=$build_alias
2537 test "x$ac_build_alias" = x
&&
2538 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2539 test "x$ac_build_alias" = x
&&
2540 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2541 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2542 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2546 $as_echo "$ac_cv_build" >&6; }
2547 case $ac_cv_build in
2549 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2552 ac_save_IFS
=$IFS; IFS
='-'
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2562 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2566 $as_echo_n "checking host system type... " >&6; }
2567 if ${ac_cv_host+:} false
; then :
2568 $as_echo_n "(cached) " >&6
2570 if test "x$host_alias" = x
; then
2571 ac_cv_host
=$ac_cv_build
2573 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2574 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2579 $as_echo "$ac_cv_host" >&6; }
2582 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2585 ac_save_IFS
=$IFS; IFS
='-'
2591 # Remember, the first character of IFS is used to create $*,
2592 # except with old shells:
2595 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2599 $as_echo_n "checking target system type... " >&6; }
2600 if ${ac_cv_target+:} false
; then :
2601 $as_echo_n "(cached) " >&6
2603 if test "x$target_alias" = x
; then
2604 ac_cv_target
=$ac_cv_host
2606 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2607 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2612 $as_echo "$ac_cv_target" >&6; }
2613 case $ac_cv_target in
2615 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2617 target
=$ac_cv_target
2618 ac_save_IFS
=$IFS; IFS
='-'
2624 # Remember, the first character of IFS is used to create $*,
2625 # except with old shells:
2628 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2631 # The aliases save the names the user supplied, while $host etc.
2632 # will get canonicalized.
2633 test -n "$target_alias" &&
2634 test "$program_prefix$program_suffix$program_transform_name" = \
2636 program_prefix
=${target_alias}-
2638 # Expand $ac_aux_dir to an absolute path.
2639 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2642 ac_cpp
='$CPP $CPPFLAGS'
2643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2646 if test -n "$ac_tool_prefix"; then
2647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2648 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if ${ac_cv_prog_CC+:} false
; then :
2652 $as_echo_n "(cached) " >&6
2654 if test -n "$CC"; then
2655 ac_cv_prog_CC
="$CC" # Let the user override the test.
2657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir
=.
2662 for ac_exec_ext
in '' $ac_executable_extensions; do
2663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2664 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 if test -n "$CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2677 $as_echo "$CC" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2685 if test -z "$ac_cv_prog_CC"; then
2687 # Extract the first word of "gcc", so it can be a program name with args.
2688 set dummy gcc
; ac_word
=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$ac_ct_CC"; then
2695 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir
=.
2702 for ac_exec_ext
in '' $ac_executable_extensions; do
2703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_ac_ct_CC
="gcc"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2715 if test -n "$ac_ct_CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2717 $as_echo "$ac_ct_CC" >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2723 if test "x$ac_ct_CC" = x
; then
2726 case $cross_compiling:$ac_tool_warned in
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2730 ac_tool_warned
=yes ;;
2738 if test -z "$CC"; then
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2741 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_CC+:} false
; then :
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC
="$CC" # Let the user override the test.
2750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir
=.
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2770 $as_echo "$CC" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2779 if test -z "$CC"; then
2780 # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc
; ac_word
=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if ${ac_cv_prog_CC+:} false
; then :
2785 $as_echo_n "(cached) " >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC
="$CC" # Let the user override the test.
2791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir
=.
2796 for ac_exec_ext
in '' $ac_executable_extensions; do
2797 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2799 ac_prog_rejected
=yes
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test $ac_prog_rejected = yes; then
2811 # We found a bogon in the path, so make sure we never use it.
2812 set dummy
$ac_cv_prog_CC
2814 if test $# != 0; then
2815 # We chose a different compiler from the bogus one.
2816 # However, it has the same basename, so the bogon will be chosen
2817 # first if we set CC to just the basename; use the full file name.
2819 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2825 if test -n "$CC"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2827 $as_echo "$CC" >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830 $as_echo "no" >&6; }
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 for ac_prog
in cl.exe
2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false
; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC
="$CC" # Let the user override the test.
2849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir
=.
2854 for ac_exec_ext
in '' $ac_executable_extensions; do
2855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$CC" && break
2879 if test -z "$CC"; then
2881 for ac_prog
in cl.exe
2883 # Extract the first word of "$ac_prog", so it can be a program name with args.
2884 set dummy
$ac_prog; ac_word
=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir
=.
2898 for ac_exec_ext
in '' $ac_executable_extensions; do
2899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_ac_ct_CC
="$ac_prog"
2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2913 $as_echo "$ac_ct_CC" >&6; }
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916 $as_echo "no" >&6; }
2920 test -n "$ac_ct_CC" && break
2923 if test "x$ac_ct_CC" = x
; then
2926 case $cross_compiling:$ac_tool_warned in
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930 ac_tool_warned
=yes ;;
2939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error $?
"no acceptable C compiler found in \$PATH
2942 See \`config.log' for more details" "$LINENO" 5; }
2944 # Provide some information about the compiler.
2945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2948 for ac_option
in --version -v -V -qversion; do
2949 { { ac_try
="$ac_compiler $ac_option >&5"
2951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2955 $as_echo "$ac_try_echo"; } >&5
2956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2958 if test -s conftest.err; then
2960 ... rest of stderr output deleted ...
2961 10q' conftest.err >conftest.er1
2962 cat conftest.er1 >&5
2964 rm -f conftest.er1 conftest.err
2965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2980 ac_clean_files_save=$ac_clean_files
2981 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2982 # Try to create an executable without -o first, disregard a.out.
2983 # It will help us diagnose broken compilers, and finding out an intuition
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2986 $as_echo_n "checking whether the C compiler works... " >&6; }
2987 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2989 # The possible output files:
2990 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2993 for ac_file in $ac_files
2996 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2997 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 if { { ac_try="$ac_link_default"
3004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3005 *) ac_try_echo
=$ac_try;;
3007 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3008 $as_echo "$ac_try_echo"; } >&5
3009 (eval "$ac_link_default") 2>&5
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; }; then :
3013 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3014 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3015 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3016 # so that the user can short-circuit this test for compilers unknown to
3018 for ac_file
in $ac_files ''
3020 test -f "$ac_file" ||
continue
3022 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3025 # We found the default executable, but exeext='' is most
3029 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3031 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3033 # We set ac_cv_exeext here because the later test for it is not
3034 # safe: cross compilers may not add the suffix if given an `-o'
3035 # argument, so we may need to know it at that point already.
3036 # Even if this section looks crufty: it has the advantage of
3043 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3048 if test -z "$ac_file"; then :
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3051 $as_echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.
$ac_ext >&5
3054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056 as_fn_error
77 "C compiler cannot create executables
3057 See \`config.log' for more details" "$LINENO" 5; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3060 $as_echo "yes" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3063 $as_echo_n "checking for C compiler default output file name... " >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3065 $as_echo "$ac_file" >&6; }
3066 ac_exeext
=$ac_cv_exeext
3068 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3069 ac_clean_files
=$ac_clean_files_save
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3071 $as_echo_n "checking for suffix of executables... " >&6; }
3072 if { { ac_try
="$ac_link"
3074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_link") 2>&5
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3084 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3085 # work properly (i.e., refer to `conftest.exe'), while it won't with
3087 for ac_file
in conftest.exe conftest conftest.
*; do
3088 test -f "$ac_file" ||
continue
3090 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3091 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3100 See \`config.log' for more details" "$LINENO" 5; }
3102 rm -f conftest conftest
$ac_cv_exeext
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3104 $as_echo "$ac_cv_exeext" >&6; }
3106 rm -f conftest.
$ac_ext
3107 EXEEXT
=$ac_cv_exeext
3109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3115 FILE *f = fopen ("conftest.out", "w");
3116 return ferror (f) || fclose (f) != 0;
3122 ac_clean_files
="$ac_clean_files conftest.out"
3123 # Check that the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3126 $as_echo_n "checking whether we are cross compiling... " >&6; }
3127 if test "$cross_compiling" != yes; then
3128 { { ac_try
="$ac_link"
3130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134 $as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_link") 2>&5
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }
3139 if { ac_try='./conftest$ac_cv_exeext'
3140 { { case "(($ac_try" in
3141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3142 *) ac_try_echo
=$ac_try;;
3144 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_try") 2>&5
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }; }; then
3152 if test "$cross_compiling" = maybe
; then
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $?
"cannot run C compiled programs.
3158 If you meant to cross compile, use \`--host'.
3159 See \`config.log' for more details" "$LINENO" 5; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3164 $as_echo "$cross_compiling" >&6; }
3166 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3167 ac_clean_files
=$ac_clean_files_save
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3169 $as_echo_n "checking for suffix of object files... " >&6; }
3170 if ${ac_cv_objext+:} false
; then :
3171 $as_echo_n "(cached) " >&6
3173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3184 rm -f conftest.o conftest.obj
3185 if { { ac_try
="$ac_compile"
3187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_compile") 2>&5
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
3196 for ac_file in conftest.o conftest.obj conftest.*; do
3197 test -f "$ac_file" || continue;
3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3200 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3211 See \
`config.log' for more details" "$LINENO" 5; }
3213 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3216 $as_echo "$ac_cv_objext" >&6; }
3217 OBJEXT=$ac_cv_objext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3220 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3221 if ${ac_cv_c_compiler_gnu+:} false; then :
3222 $as_echo_n "(cached) " >&6
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3238 if ac_fn_c_try_compile "$LINENO"; then :
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3248 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3249 if test $ac_compiler_gnu = yes; then
3254 ac_test_CFLAGS=${CFLAGS+set}
3255 ac_save_CFLAGS=$CFLAGS
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3257 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3258 if ${ac_cv_prog_cc_g+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 ac_save_c_werror_flag=$ac_c_werror_flag
3262 ac_c_werror_flag=yes
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3276 if ac_fn_c_try_compile "$LINENO"; then :
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3291 if ac_fn_c_try_compile "$LINENO"; then :
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 if ac_fn_c_try_compile "$LINENO"; then :
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3318 $as_echo "$ac_cv_prog_cc_g" >&6; }
3319 if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321 elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3328 if test "$GCC" = yes; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3335 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3336 if ${ac_cv_prog_cc_c89+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 ac_cv_prog_cc_c89=no
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3360 s = g (p, va_arg (v,int));
3365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3366 function prototypes and stuff, but not '\xHH' hex character constants.
3367 These don't provoke an error unfortunately, instead are silently treated
3368 as 'x'. The following induces an error, until -std is added to get
3369 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3370 array size at least. It's necessary to write '\x00'==0 to get something
3371 that's true only with -std. */
3372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3374 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3375 inside strings and character constants. */
3377 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3379 int test (int i, double x);
3380 struct s1 {int (*f) (int a);};
3381 struct s2 {int (*f) (double a);};
3382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3388 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3393 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3394 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3396 CC="$ac_save_CC $ac_arg"
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_cv_prog_cc_c89=$ac_arg
3400 rm -f core conftest.err conftest.$ac_objext
3401 test "x$ac_cv_prog_cc_c89" != "xno" && break
3403 rm -f conftest.$ac_ext
3408 case "x$ac_cv_prog_cc_c89" in
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3411 $as_echo "none needed" >&6; } ;;
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3414 $as_echo "unsupported" >&6; } ;;
3416 CC="$CC $ac_cv_prog_cc_c89"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3418 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3420 if test "x$ac_cv_prog_cc_c89" != xno; then :
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3436 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3437 if ${am_cv_prog_cc_c_o+:} false; then :
3438 $as_echo_n "(cached) " >&6
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3451 # Make sure it works both with $CC and with simple cc.
3452 # Following AC_PROG_CC_C_O, we do the test twice because some
3453 # compilers refuse to overwrite an existing .o file with -o,
3454 # though they will create one.
3455 am_cv_prog_cc_c_o=yes
3457 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3458 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } \
3462 && test -f conftest2.$ac_objext; then
3465 am_cv_prog_cc_c_o=no
3469 rm -f core conftest*
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3473 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3474 if test "$am_cv_prog_cc_c_o" != yes; then
3475 # Losing compiler, so override with the script.
3476 # FIXME: It is wrong to rewrite CC.
3477 # But if we don't then we get into trouble of one sort or another.
3478 # A longer-term fix would be to have automake use am__CC in this case,
3479 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3480 CC="$am_aux_dir/compile $CC"
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3496 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3497 # On Suns, sometimes $CPP names a directory.
3498 if test -n "$CPP" && test -d "$CPP"; then
3501 if test -z "$CPP"; then
3502 if ${ac_cv_prog_CPP+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 # Double quotes because CPP needs to be expanded
3506 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3509 for ac_c_preproc_warn_flag in '' yes
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error" is here to catch this case.
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3520 # include <limits.h>
3522 # include <assert.h>
3526 if ac_fn_c_try_cpp "$LINENO"; then :
3529 # Broken: fails on valid input.
3532 rm -f conftest.err conftest.i conftest.$ac_ext
3534 # OK, works on sane cases. Now check whether nonexistent headers
3535 # can be detected and how.
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 #include <ac_nonexistent.h>
3540 if ac_fn_c_try_cpp "$LINENO"; then :
3541 # Broken: success on invalid input.
3544 # Passes both tests.
3548 rm -f conftest.err conftest.i conftest.$ac_ext
3551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3552 rm -f conftest.i conftest.err conftest.
$ac_ext
3553 if $ac_preproc_ok; then :
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3566 $as_echo "$CPP" >&6; }
3568 for ac_c_preproc_warn_flag
in '' yes
3570 # Use a header file that comes with gcc, so configuring glibc
3571 # with a fresh cross-compiler works.
3572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3573 # <limits.h> exists even on freestanding compilers.
3574 # On the NeXT, cc -E runs the code through the compiler's parser,
3575 # not just through cpp. "Syntax error" is here to catch this case.
3576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3579 # include <limits.h>
3581 # include <assert.h>
3585 if ac_fn_c_try_cpp
"$LINENO"; then :
3588 # Broken: fails on valid input.
3591 rm -f conftest.err conftest.i conftest.
$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3597 #include <ac_nonexistent.h>
3599 if ac_fn_c_try_cpp
"$LINENO"; then :
3600 # Broken: success on invalid input.
3603 # Passes both tests.
3607 rm -f conftest.err conftest.i conftest.
$ac_ext
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.i conftest.err conftest.
$ac_ext
3612 if $ac_preproc_ok; then :
3615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3618 See \`config.log' for more details" "$LINENO" 5; }
3622 ac_cpp
='$CPP $CPPFLAGS'
3623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3629 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3630 if ${ac_cv_path_GREP+:} false
; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -z "$GREP"; then
3634 ac_path_GREP_found
=false
3635 # Loop through the user's path and test for each of PROGNAME-LIST
3636 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3637 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3640 test -z "$as_dir" && as_dir
=.
3641 for ac_prog
in grep ggrep
; do
3642 for ac_exec_ext
in '' $ac_executable_extensions; do
3643 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3644 as_fn_executable_p
"$ac_path_GREP" ||
continue
3645 # Check for GNU ac_path_GREP and select it if it is found.
3646 # Check for GNU $ac_path_GREP
3647 case `"$ac_path_GREP" --version 2>&1` in
3649 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3652 $as_echo_n 0123456789 >"conftest.in"
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 $as_echo 'GREP' >> "conftest.nl"
3659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3660 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3661 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3662 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_GREP
="$ac_path_GREP"
3665 ac_path_GREP_max
=$ac_count
3667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3670 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3673 $ac_path_GREP_found && break 3
3678 if test -z "$ac_cv_path_GREP"; then
3679 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3682 ac_cv_path_GREP
=$GREP
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3687 $as_echo "$ac_cv_path_GREP" >&6; }
3688 GREP
="$ac_cv_path_GREP"
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3692 $as_echo_n "checking for egrep... " >&6; }
3693 if ${ac_cv_path_EGREP+:} false
; then :
3694 $as_echo_n "(cached) " >&6
3696 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3697 then ac_cv_path_EGREP
="$GREP -E"
3699 if test -z "$EGREP"; then
3700 ac_path_EGREP_found
=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3703 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3706 test -z "$as_dir" && as_dir
=.
3707 for ac_prog
in egrep; do
3708 for ac_exec_ext
in '' $ac_executable_extensions; do
3709 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3710 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3711 # Check for GNU ac_path_EGREP and select it if it is found.
3712 # Check for GNU $ac_path_EGREP
3713 case `"$ac_path_EGREP" --version 2>&1` in
3715 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3718 $as_echo_n 0123456789 >"conftest.in"
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 $as_echo 'EGREP' >> "conftest.nl"
3725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3726 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3727 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_EGREP
="$ac_path_EGREP"
3731 ac_path_EGREP_max
=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3736 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3739 $ac_path_EGREP_found && break 3
3744 if test -z "$ac_cv_path_EGREP"; then
3745 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3748 ac_cv_path_EGREP
=$EGREP
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3754 $as_echo "$ac_cv_path_EGREP" >&6; }
3755 EGREP
="$ac_cv_path_EGREP"
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3759 $as_echo_n "checking for ANSI C header files... " >&6; }
3760 if ${ac_cv_header_stdc+:} false
; then :
3761 $as_echo_n "(cached) " >&6
3763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3778 if ac_fn_c_try_compile
"$LINENO"; then :
3779 ac_cv_header_stdc
=yes
3781 ac_cv_header_stdc
=no
3783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3785 if test $ac_cv_header_stdc = yes; then
3786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793 $EGREP "memchr" >/dev
/null
2>&1; then :
3796 ac_cv_header_stdc
=no
3802 if test $ac_cv_header_stdc = yes; then
3803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3810 $EGREP "free" >/dev
/null
2>&1; then :
3813 ac_cv_header_stdc
=no
3819 if test $ac_cv_header_stdc = yes; then
3820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3821 if test "$cross_compiling" = yes; then :
3824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3828 #if ((' ' & 0x0FF) == 0x020)
3829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3832 # define ISLOWER(c) \
3833 (('a' <= (c) && (c) <= 'i') \
3834 || ('j' <= (c) && (c) <= 'r') \
3835 || ('s' <= (c) && (c) <= 'z'))
3836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3844 for (i = 0; i < 256; i++)
3845 if (XOR (islower (i), ISLOWER (i))
3846 || toupper (i) != TOUPPER (i))
3851 if ac_fn_c_try_run
"$LINENO"; then :
3854 ac_cv_header_stdc
=no
3856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3863 $as_echo "$ac_cv_header_stdc" >&6; }
3864 if test $ac_cv_header_stdc = yes; then
3866 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3870 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3871 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3872 inttypes.h stdint.h unistd.h
3874 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3875 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3877 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3878 cat >>confdefs.h
<<_ACEOF
3879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3888 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3889 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3896 if test "$MINIX" = yes; then
3898 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3901 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3904 $as_echo "#define _MINIX 1" >>confdefs.h
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3910 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3911 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3912 $as_echo_n "(cached) " >&6
3914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3917 # define __EXTENSIONS__ 1
3918 $ac_includes_default
3927 if ac_fn_c_try_compile
"$LINENO"; then :
3928 ac_cv_safe_to_define___extensions__
=yes
3930 ac_cv_safe_to_define___extensions__
=no
3932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3935 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3936 test $ac_cv_safe_to_define___extensions__ = yes &&
3937 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3939 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3941 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3943 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3945 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3949 target_alias
=${target_alias-$target}
3952 # 1.11.1: Require that version of automake.
3953 # foreign: Don't require README, INSTALL, NEWS, etc.
3954 # no-define: Don't define PACKAGE and VERSION.
3955 # no-dependencies: Don't generate automatic dependencies.
3956 # (because it breaks when using bootstrap-lean, since some of the
3957 # headers are gone at "make install" time).
3958 # subdir-objects: Build objects in sub-directories.
3959 # -Wall: Issue all automake warnings.
3960 # -Wno-portability: Don't warn about constructs supported by GNU make.
3961 # (because GCC requires GNU make anyhow).
3962 # -Wno-override: Overrides used in testsuite.
3963 am__api_version
='1.15'
3965 # Find a good install program. We prefer a C program (faster),
3966 # so one script is as good as another. But avoid the broken or
3967 # incompatible versions:
3968 # SysV /etc/install, /usr/sbin/install
3969 # SunOS /usr/etc/install
3970 # IRIX /sbin/install
3972 # AmigaOS /C/install, which installs bootblocks on floppy discs
3973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3976 # OS/2's system install, which has a completely different semantic
3977 # ./install, which can be erroneously created by make from ./install.sh.
3978 # Reject install programs that cannot install multiple files.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3980 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3981 if test -z "$INSTALL"; then
3982 if ${ac_cv_path_install+:} false
; then :
3983 $as_echo_n "(cached) " >&6
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir
=.
3990 # Account for people who put trailing slashes in PATH elements.
3991 case $as_dir/ in #((
3992 .
/ | .
// |
/[cC
]/* | \
3993 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3994 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3997 # OSF1 and SCO ODT 3.0 have their own names for install.
3998 # Don't use installbsd from OSF since it installs stuff as root
4000 for ac_prog
in ginstall scoinst
install; do
4001 for ac_exec_ext
in '' $ac_executable_extensions; do
4002 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4003 if test $ac_prog = install &&
4004 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4005 # AIX install. It has an incompatible calling convention.
4007 elif test $ac_prog = install &&
4008 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4009 # program-specific install script used by HP pwplus--don't use.
4012 rm -rf conftest.one conftest.two conftest.dir
4013 echo one
> conftest.one
4014 echo two
> conftest.two
4016 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4017 test -s conftest.one
&& test -s conftest.two
&&
4018 test -s conftest.dir
/conftest.one
&&
4019 test -s conftest.dir
/conftest.two
4021 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4034 rm -rf conftest.one conftest.two conftest.dir
4037 if test "${ac_cv_path_install+set}" = set; then
4038 INSTALL
=$ac_cv_path_install
4040 # As a last resort, use the slow shell script. Don't cache a
4041 # value for INSTALL within a source directory, because that will
4042 # break other packages using the cache if that directory is
4043 # removed, or if the value is a relative name.
4044 INSTALL
=$ac_install_sh
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4048 $as_echo "$INSTALL" >&6; }
4050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4051 # It thinks the first close brace ends the variable substitution.
4052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4056 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4059 $as_echo_n "checking whether build environment is sane... " >&6; }
4060 # Reject unsafe characters in $srcdir or the absolute working directory
4061 # name. Accept space and tab only in the latter.
4065 *[\\\"\
#\$\&\'\`$am_lf]*)
4066 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4069 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4070 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4073 # Do 'set' in a subshell so we don't clobber the current shell's
4074 # arguments. Must try -L first in case configure is actually a
4075 # symlink; some systems play weird games with the mod time of symlinks
4076 # (eg FreeBSD returns the mod time of the symlink's containing
4080 for am_try
in 1 2; do
4081 echo "timestamp, slept: $am_has_slept" > conftest.
file
4082 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4083 if test "$*" = "X"; then
4085 set X
`ls -t "$srcdir/configure" conftest.file`
4087 if test "$*" != "X $srcdir/configure conftest.file" \
4088 && test "$*" != "X conftest.file $srcdir/configure"; then
4090 # If neither matched, then we have a broken ls. This can happen
4091 # if, for instance, CONFIG_SHELL is bash and it inherits a
4092 # broken ls alias from the environment. This has actually
4093 # happened. Such a system could not be considered "sane".
4094 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4095 alias in your environment" "$LINENO" 5
4097 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4104 test "$2" = conftest.
file
4110 as_fn_error $?
"newly created file is older than distributed files!
4111 Check your system clock" "$LINENO" 5
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114 $as_echo "yes" >&6; }
4115 # If we didn't sleep, we still need to ensure time stamps of config.status and
4116 # generated files are strictly newer.
4118 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4125 test "$program_prefix" != NONE
&&
4126 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4127 # Use a double $ so make ignores it.
4128 test "$program_suffix" != NONE
&&
4129 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4130 # Double any \ or $.
4131 # By default was `s,x,x', remove it if useless.
4132 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4133 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4135 if test x
"${MISSING+set}" != xset
; then
4138 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4140 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4143 # Use eval to expand $SHELL
4144 if eval "$MISSING --is-lightweight"; then
4145 am_missing_run
="$MISSING "
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4149 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4152 if test x
"${install_sh+set}" != xset
; then
4155 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4157 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4161 # Installed binaries are usually stripped using 'strip' when the user
4162 # run "make install-strip". However 'strip' might not be the right
4163 # tool to use in cross-compilation environments, therefore Automake
4164 # will honor the 'STRIP' environment variable to overrule this program.
4165 if test "$cross_compiling" != no
; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4168 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_STRIP+:} false
; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$STRIP"; then
4175 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 STRIP
=$ac_cv_prog_STRIP
4195 if test -n "$STRIP"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4197 $as_echo "$STRIP" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$ac_cv_prog_STRIP"; then
4207 # Extract the first word of "strip", so it can be a program name with args.
4208 set dummy strip
; ac_word
=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4212 $as_echo_n "(cached) " >&6
4214 if test -n "$ac_ct_STRIP"; then
4215 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir
=.
4222 for ac_exec_ext
in '' $ac_executable_extensions; do
4223 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_ac_ct_STRIP
="strip"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4235 if test -n "$ac_ct_STRIP"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4237 $as_echo "$ac_ct_STRIP" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4243 if test "x$ac_ct_STRIP" = x
; then
4246 case $cross_compiling:$ac_tool_warned in
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250 ac_tool_warned
=yes ;;
4255 STRIP
="$ac_cv_prog_STRIP"
4259 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4262 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4263 if test -z "$MKDIR_P"; then
4264 if ${ac_cv_path_mkdir+:} false
; then :
4265 $as_echo_n "(cached) " >&6
4267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4268 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4271 test -z "$as_dir" && as_dir
=.
4272 for ac_prog
in mkdir gmkdir
; do
4273 for ac_exec_ext
in '' $ac_executable_extensions; do
4274 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4275 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4276 'mkdir (GNU coreutils) '* | \
4277 'mkdir (coreutils) '* | \
4278 'mkdir (fileutils) '4.1*)
4279 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4289 test -d .
/--version && rmdir .
/--version
4290 if test "${ac_cv_path_mkdir+set}" = set; then
4291 MKDIR_P
="$ac_cv_path_mkdir -p"
4293 # As a last resort, use the slow shell script. Don't cache a
4294 # value for MKDIR_P within a source directory, because that will
4295 # break other packages using the cache if that directory is
4296 # removed, or if the value is a relative name.
4297 MKDIR_P
="$ac_install_sh -d"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4301 $as_echo "$MKDIR_P" >&6; }
4303 for ac_prog
in gawk mawk nawk
awk
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy
$ac_prog; ac_word
=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_AWK+:} false
; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$AWK"; then
4313 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir
=.
4320 for ac_exec_ext
in '' $ac_executable_extensions; do
4321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_AWK
="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 if test -n "$AWK"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4335 $as_echo "$AWK" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$AWK" && break
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4346 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4348 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4349 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4350 $as_echo_n "(cached) " >&6
4352 cat >conftest.
make <<\_ACEOF
4355 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4357 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4358 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4360 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4362 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4366 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 SET_MAKE
="MAKE=${MAKE-make}"
4376 rm -rf .tst
2>/dev
/null
4377 mkdir .tst
2>/dev
/null
4378 if test -d .tst
; then
4383 rmdir .tst
2>/dev
/null
4385 # Check whether --enable-silent-rules was given.
4386 if test "${enable_silent_rules+set}" = set; then :
4387 enableval
=$enable_silent_rules;
4390 case $enable_silent_rules in # (((
4391 yes) AM_DEFAULT_VERBOSITY
=0;;
4392 no
) AM_DEFAULT_VERBOSITY
=1;;
4393 *) AM_DEFAULT_VERBOSITY
=1;;
4395 am_make
=${MAKE-make}
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4397 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4398 if ${am_cv_make_support_nested_variables+:} false
; then :
4399 $as_echo_n "(cached) " >&6
4401 if $as_echo 'TRUE=$(BAR$(V))
4407 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4408 am_cv_make_support_nested_variables
=yes
4410 am_cv_make_support_nested_variables
=no
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4414 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4415 if test $am_cv_make_support_nested_variables = yes; then
4417 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4419 AM_V
=$AM_DEFAULT_VERBOSITY
4420 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4424 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4425 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4426 # is not polluted with repeated "-I."
4427 am__isrc
=' -I$(srcdir)'
4428 # test to see if srcdir already configured
4429 if test -f $srcdir/config.status
; then
4430 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4434 # test whether we have cygpath
4435 if test -z "$CYGPATH_W"; then
4436 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4437 CYGPATH_W
='cygpath -w'
4444 # Define the identity of the package.
4446 VERSION
='version-unused'
4449 # Some tools Automake needs.
4451 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4454 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4457 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4460 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4463 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4465 # For better backward compatibility. To be removed once Automake 1.9.x
4466 # dies out for good. For more background, see:
4467 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4468 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4469 mkdir_p
='$(MKDIR_P)'
4471 # We need awk for the "check" target (and possibly the TAP driver). The
4472 # system "awk" is bad on some platforms.
4473 # Always define AMTAR for backward compatibility. Yes, it's still used
4474 # in the wild :-( We should find a proper way to deprecate it ...
4478 # We'll loop over all known methods to create a tar archive until one works.
4479 _am_tools
='gnutar pax cpio none'
4481 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4488 # POSIX will say in a future version that running "rm -f" with no argument
4489 # is OK; and we want to be able to make that assumption in our Makefile
4490 # recipes. So use an aggressive probe to check that the usage we want is
4491 # actually supported "in the wild" to an acceptable degree.
4492 # See automake bug#10828.
4493 # To make any issue more visible, cause the running configure to be aborted
4494 # by default if the 'rm' program in use doesn't match our expectations; the
4495 # user can still override this though.
4496 if rm -f && rm -fr && rm -rf; then : OK
; else
4500 Your 'rm' program seems unable to run without file operands specified
4501 on the command line, even when the '-f' option is present. This is contrary
4502 to the behaviour of most rm programs out there, and not conforming with
4503 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4505 Please tell bug-automake@gnu.org about your system, including the value
4506 of your $PATH and any error possibly output before this message. This
4507 can help us improve future automake versions.
4510 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4511 echo 'Configuration will proceed anyway, since you have set the' >&2
4512 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4516 Aborting the configuration process, to ensure you take notice of the issue.
4518 You can download and install GNU coreutils to get an 'rm' implementation
4519 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4521 If you want to complete the configuration process using your problematic
4522 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4523 to "yes", and re-run configure.
4526 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4533 # By default we simply use the C compiler to build assembly code.
4535 test "${CCAS+set}" = set || CCAS
=$CC
4536 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4541 ac_cpp
='$CPP $CPPFLAGS'
4542 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_CC+:} false
; then :
4551 $as_echo_n "(cached) " >&6
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC
="$CC" # Let the user override the test.
4556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir
=.
4561 for ac_exec_ext
in '' $ac_executable_extensions; do
4562 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 if test -n "$CC"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4576 $as_echo "$CC" >&6; }
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4584 if test -z "$ac_cv_prog_CC"; then
4586 # Extract the first word of "gcc", so it can be a program name with args.
4587 set dummy gcc
; ac_word
=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4591 $as_echo_n "(cached) " >&6
4593 if test -n "$ac_ct_CC"; then
4594 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir
=.
4601 for ac_exec_ext
in '' $ac_executable_extensions; do
4602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_ac_ct_CC
="gcc"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4614 if test -n "$ac_ct_CC"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4616 $as_echo "$ac_ct_CC" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4622 if test "x$ac_ct_CC" = x
; then
4625 case $cross_compiling:$ac_tool_warned in
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned
=yes ;;
4637 if test -z "$CC"; then
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4640 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_CC+:} false
; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC
="$CC" # Let the user override the test.
4649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir
=.
4654 for ac_exec_ext
in '' $ac_executable_extensions; do
4655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4678 if test -z "$CC"; then
4679 # Extract the first word of "cc", so it can be a program name with args.
4680 set dummy cc
; ac_word
=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_CC+:} false
; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC
="$CC" # Let the user override the test.
4690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir
=.
4695 for ac_exec_ext
in '' $ac_executable_extensions; do
4696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4698 ac_prog_rejected
=yes
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 if test $ac_prog_rejected = yes; then
4710 # We found a bogon in the path, so make sure we never use it.
4711 set dummy
$ac_cv_prog_CC
4713 if test $# != 0; then
4714 # We chose a different compiler from the bogus one.
4715 # However, it has the same basename, so the bogon will be chosen
4716 # first if we set CC to just the basename; use the full file name.
4718 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4724 if test -n "$CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4726 $as_echo "$CC" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4734 if test -z "$CC"; then
4735 if test -n "$ac_tool_prefix"; then
4736 for ac_prog
in cl.exe
4738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4739 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_CC+:} false
; then :
4743 $as_echo_n "(cached) " >&6
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC
="$CC" # Let the user override the test.
4748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir
=.
4753 for ac_exec_ext
in '' $ac_executable_extensions; do
4754 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 if test -n "$CC"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4768 $as_echo "$CC" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771 $as_echo "no" >&6; }
4775 test -n "$CC" && break
4778 if test -z "$CC"; then
4780 for ac_prog
in cl.exe
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy
$ac_prog; ac_word
=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$ac_ct_CC"; then
4790 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_ac_ct_CC
="$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4810 if test -n "$ac_ct_CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4812 $as_echo "$ac_ct_CC" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4819 test -n "$ac_ct_CC" && break
4822 if test "x$ac_ct_CC" = x
; then
4825 case $cross_compiling:$ac_tool_warned in
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829 ac_tool_warned
=yes ;;
4838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840 as_fn_error $?
"no acceptable C compiler found in \$PATH
4841 See \`config.log' for more details" "$LINENO" 5; }
4843 # Provide some information about the compiler.
4844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4847 for ac_option
in --version -v -V -qversion; do
4848 { { ac_try
="$ac_compiler $ac_option >&5"
4850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4854 $as_echo "$ac_try_echo"; } >&5
4855 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4857 if test -s conftest.err; then
4859 ... rest of stderr output deleted ...
4860 10q' conftest.err >conftest.er1
4861 cat conftest.er1 >&5
4863 rm -f conftest.er1 conftest.err
4864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4865 test $ac_status = 0; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4870 if ${ac_cv_c_compiler_gnu+:} false; then :
4871 $as_echo_n "(cached) " >&6
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4887 if ac_fn_c_try_compile "$LINENO"; then :
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4898 if test $ac_compiler_gnu = yes; then
4903 ac_test_CFLAGS=${CFLAGS+set}
4904 ac_save_CFLAGS=$CFLAGS
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4907 if ${ac_cv_prog_cc_g+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 ac_save_c_werror_flag=$ac_c_werror_flag
4911 ac_c_werror_flag=yes
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4925 if ac_fn_c_try_compile "$LINENO"; then :
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4940 if ac_fn_c_try_compile "$LINENO"; then :
4943 ac_c_werror_flag=$ac_save_c_werror_flag
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4956 if ac_fn_c_try_compile "$LINENO"; then :
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_c_werror_flag=$ac_save_c_werror_flag
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4967 $as_echo "$ac_cv_prog_cc_g" >&6; }
4968 if test "$ac_test_CFLAGS" = set; then
4969 CFLAGS=$ac_save_CFLAGS
4970 elif test $ac_cv_prog_cc_g = yes; then
4971 if test "$GCC" = yes; then
4977 if test "$GCC" = yes; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4985 if ${ac_cv_prog_cc_c89+:} false; then :
4986 $as_echo_n "(cached) " >&6
4988 ac_cv_prog_cc_c89=no
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4995 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4996 struct buf { int x; };
4997 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4998 static char *e (p, i)
5004 static char *f (char * (*g) (char **, int), char **p, ...)
5009 s = g (p, va_arg (v,int));
5014 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5015 function prototypes and stuff, but not '\xHH' hex character constants.
5016 These don't provoke an error unfortunately, instead are silently treated
5017 as 'x'. The following induces an error, until -std is added to get
5018 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5019 array size at least. It's necessary to write '\x00'==0 to get something
5020 that's true only with -std. */
5021 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5023 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5024 inside strings and character constants. */
5026 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5028 int test (int i, double x);
5029 struct s1 {int (*f) (int a);};
5030 struct s2 {int (*f) (double a);};
5031 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5037 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5042 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5043 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5045 CC="$ac_save_CC $ac_arg"
5046 if ac_fn_c_try_compile "$LINENO"; then :
5047 ac_cv_prog_cc_c89=$ac_arg
5049 rm -f core conftest.err conftest.$ac_objext
5050 test "x$ac_cv_prog_cc_c89" != "xno" && break
5052 rm -f conftest.$ac_ext
5057 case "x$ac_cv_prog_cc_c89" in
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5060 $as_echo "none needed" >&6; } ;;
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5063 $as_echo "unsupported" >&6; } ;;
5065 CC="$CC $ac_cv_prog_cc_c89"
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5069 if test "x$ac_cv_prog_cc_c89" != xno; then :
5074 ac_cpp='$CPP $CPPFLAGS'
5075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5085 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5086 if ${am_cv_prog_cc_c_o+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5100 # Make sure it works both with $CC and with simple cc.
5101 # Following AC_PROG_CC_C_O, we do the test twice because some
5102 # compilers refuse to overwrite an existing .o file with -o,
5103 # though they will create one.
5104 am_cv_prog_cc_c_o=yes
5106 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5107 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } \
5111 && test -f conftest2.$ac_objext; then
5114 am_cv_prog_cc_c_o=no
5118 rm -f core conftest*
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5122 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5123 if test "$am_cv_prog_cc_c_o" != yes; then
5124 # Losing compiler, so override with the script.
5125 # FIXME: It is wrong to rewrite CC.
5126 # But if we don't then we get into trouble of one sort or another.
5127 # A longer-term fix would be to have automake use am__CC in this case,
5128 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5129 CC="$am_aux_dir/compile $CC"
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5140 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_GDC+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$GDC"; then
5151 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 if test -n "$GDC"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5173 $as_echo "$GDC" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_GDC"; then
5183 # Extract the first word of "gdc", so it can be a program name with args.
5184 set dummy gdc; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$ac_ct_GDC"; then
5191 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_GDC="gdc"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5211 if test -n "$ac_ct_GDC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5213 $as_echo "$ac_ct_GDC" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_GDC" = x; then
5222 case $cross_compiling:$ac_tool_warned in
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5231 GDC="$ac_cv_prog_GDC"
5234 if test -z "$GDC"; then
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_GDC+:} false; then :
5241 $as_echo_n "(cached) " >&6
5243 if test -n "$GDC"; then
5244 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 if test -n "$GDC"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5266 $as_echo "$GDC" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5275 if test -z "$GDC"; then
5276 # Extract the first word of "gdc", so it can be a program name with args.
5277 set dummy gdc; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_GDC+:} false; then :
5281 $as_echo_n "(cached) " >&6
5283 if test -n "$GDC"; then
5284 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5295 ac_prog_rejected=yes
5298 ac_cv_prog_GDC="gdc"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 if test $ac_prog_rejected = yes; then
5307 # We found a bogon in the path, so make sure we never use it.
5308 set dummy $ac_cv_prog_GDC
5310 if test $# != 0; then
5311 # We chose a different compiler from the bogus one.
5312 # However, it has the same basename, so the bogon will be chosen
5313 # first if we set GDC to just the basename; use the full file name.
5315 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5321 if test -n "$GDC"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5323 $as_echo "$GDC" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5333 # Provide some information about the compiler.
5334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5337 { { ac_try="$ac_compiler --version >&5"
5339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5340 *) ac_try_echo
=$ac_try;;
5342 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5343 $as_echo "$ac_try_echo"; } >&5
5344 (eval "$ac_compiler --version >&5") 2>conftest.err
5346 if test -s conftest.err
; then
5348 ... rest of stderr output deleted ...
5349 10q' conftest.err
>conftest.er1
5350 cat conftest.er1
>&5
5352 rm -f conftest.er1 conftest.err
5353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5354 test $ac_status = 0; }
5356 ac_cpp
='$CPP $CPPFLAGS'
5357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5363 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5364 if ${phobos_cv_abs_srcdir+:} false
; then :
5365 $as_echo_n "(cached) " >&6
5367 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5370 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5371 if test -d "$phobos_cv_abs_srcdir"; then :
5374 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5380 gdc_save_DFLAGS
=$GDCFLAGS
5381 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5384 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5385 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5389 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5390 cat > conftest.
$ac_ext <<_ACEOF
5394 extern(C) int main() {
5398 if ac_fn_d_try_compile
"$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400 $as_echo "yes" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5404 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 ac_cpp
='$CPP $CPPFLAGS'
5409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5414 GDCFLAGS
=$gdc_save_DFLAGS
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5423 # Check whether --enable-maintainer-mode was given.
5424 if test "${enable_maintainer_mode+set}" = set; then :
5425 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5427 USE_MAINTAINER_MODE
=no
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5432 if test $USE_MAINTAINER_MODE = yes; then
5433 MAINTAINER_MODE_TRUE
=
5434 MAINTAINER_MODE_FALSE
='#'
5436 MAINTAINER_MODE_TRUE
='#'
5437 MAINTAINER_MODE_FALSE
=
5440 MAINT
=$MAINTAINER_MODE_TRUE
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5445 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_RANLIB+:} false
; then :
5449 $as_echo_n "(cached) " >&6
5451 if test -n "$RANLIB"; then
5452 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir
=.
5459 for ac_exec_ext
in '' $ac_executable_extensions; do
5460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 RANLIB
=$ac_cv_prog_RANLIB
5472 if test -n "$RANLIB"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5474 $as_echo "$RANLIB" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5482 if test -z "$ac_cv_prog_RANLIB"; then
5483 ac_ct_RANLIB
=$RANLIB
5484 # Extract the first word of "ranlib", so it can be a program name with args.
5485 set dummy ranlib
; ac_word
=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 if test -n "$ac_ct_RANLIB"; then
5492 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir
=.
5499 for ac_exec_ext
in '' $ac_executable_extensions; do
5500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5512 if test -n "$ac_ct_RANLIB"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5514 $as_echo "$ac_ct_RANLIB" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_ct_RANLIB" = x
; then
5523 case $cross_compiling:$ac_tool_warned in
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned
=yes ;;
5529 RANLIB
=$ac_ct_RANLIB
5532 RANLIB
="$ac_cv_prog_RANLIB"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5537 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5539 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5540 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5541 $as_echo_n "(cached) " >&6
5543 cat >conftest.
make <<\_ACEOF
5546 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5548 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5549 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5551 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5553 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5557 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5559 $as_echo "yes" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 SET_MAKE
="MAKE=${MAKE-make}"
5568 # Add CET specific flags if CET is enabled
5569 # Check whether --enable-cet was given.
5570 if test "${enable_cet+set}" = set; then :
5571 enableval
=$enable_cet;
5572 case "$enableval" in
5574 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5583 $as_echo_n "checking for CET support... " >&6; }
5585 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5587 i
[34567]86-*-linux* | x86_64-
*-linux*)
5588 case "$enable_cet" in
5590 # Check if target supports multi-byte NOPs
5591 # and if compiler and assembler support CET insn.
5592 cet_save_CFLAGS
="$CFLAGS"
5593 CFLAGS
="$CFLAGS -fcf-protection"
5594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5601 #if !defined(__SSE2__)
5602 #error target does not support multi-byte NOPs
5611 if ac_fn_c_try_compile
"$LINENO"; then :
5616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5617 CFLAGS
="$cet_save_CFLAGS"
5620 # Check if assembler supports CET.
5621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5632 if ac_fn_c_try_compile
"$LINENO"; then :
5635 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
5637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5645 if test x
$enable_cet = xyes
; then
5646 CET_FLAGS
="-fcf-protection -mshstk"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648 $as_echo "yes" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 # To ensure that runtime code for CET is compiled in, add in D version flags.
5656 if test x
$enable_cet = xyes
; then :
5658 CET_DFLAGS
="$CET_FLAGS -fversion=CET"
5659 DCFG_ENABLE_CET
=true
5664 DCFG_ENABLE_CET
=false
5670 # This should be inherited in the recursive make, but ensure it is defined.
5674 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5682 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5687 macro_version
='2.2.7a'
5688 macro_revision
='1.3134'
5702 ltmain
="$ac_aux_dir/ltmain.sh"
5704 # Backslashify metacharacters that are still active within
5705 # double-quoted strings.
5706 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5708 # Same as above, but do not quote variable references.
5709 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5711 # Sed substitution to delay expansion of an escaped shell variable in a
5712 # double_quote_subst'ed string.
5713 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5715 # Sed substitution to delay expansion of an escaped single quote.
5716 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5718 # Sed substitution to avoid accidental globbing in evaled expressions
5719 no_glob_subst
='s/\*/\\\*/g'
5721 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5722 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5723 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5726 $as_echo_n "checking how to print strings... " >&6; }
5727 # Test print first, because it will be a builtin if present.
5728 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5729 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5731 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5734 # Use this function as a fallback that always works.
5735 func_fallback_echo ()
5737 eval 'cat <<_LTECHO_EOF
5741 ECHO='func_fallback_echo
'
5744 # func_echo_all arg...
5745 # Invoke $ECHO with all args, space-separated.
5752 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5753 $as_echo "printf" >&6; } ;;
5754 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5755 $as_echo "print -r" >&6; } ;;
5756 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5757 $as_echo "cat" >&6; } ;;
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5774 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5775 if ${ac_cv_path_SED+:} false; then :
5776 $as_echo_n "(cached) " >&6
5778 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5779 for ac_i in 1 2 3 4 5 6 7; do
5780 ac_script="$ac_script$as_nl$ac_script"
5782 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5783 { ac_script=; unset ac_script;}
5784 if test -z "$SED"; then
5785 ac_path_SED_found=false
5786 # Loop through the user's path and
test for each of PROGNAME-LIST
5787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5791 test -z "$as_dir" && as_dir
=.
5792 for ac_prog
in sed gsed
; do
5793 for ac_exec_ext
in '' $ac_executable_extensions; do
5794 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5795 as_fn_executable_p
"$ac_path_SED" ||
continue
5796 # Check for GNU ac_path_SED and select it if it is found.
5797 # Check for GNU $ac_path_SED
5798 case `"$ac_path_SED" --version 2>&1` in
5800 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5803 $as_echo_n 0123456789 >"conftest.in"
5806 cat "conftest.in" "conftest.in" >"conftest.tmp"
5807 mv "conftest.tmp" "conftest.in"
5808 cp "conftest.in" "conftest.nl"
5809 $as_echo '' >> "conftest.nl"
5810 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5811 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5812 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5813 if test $ac_count -gt ${ac_path_SED_max-0}; then
5814 # Best one so far, save it but keep looking for a better one
5815 ac_cv_path_SED
="$ac_path_SED"
5816 ac_path_SED_max
=$ac_count
5818 # 10*(2^10) chars as input seems more than enough
5819 test $ac_count -gt 10 && break
5821 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5824 $ac_path_SED_found && break 3
5829 if test -z "$ac_cv_path_SED"; then
5830 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5838 $as_echo "$ac_cv_path_SED" >&6; }
5839 SED
="$ac_cv_path_SED"
5842 test -z "$SED" && SED
=sed
5843 Xsed
="$SED -e 1s/^X//"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5856 $as_echo_n "checking for fgrep... " >&6; }
5857 if ${ac_cv_path_FGREP+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5860 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5861 then ac_cv_path_FGREP
="$GREP -F"
5863 if test -z "$FGREP"; then
5864 ac_path_FGREP_found
=false
5865 # Loop through the user's path and test for each of PROGNAME-LIST
5866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5870 test -z "$as_dir" && as_dir
=.
5871 for ac_prog
in fgrep
; do
5872 for ac_exec_ext
in '' $ac_executable_extensions; do
5873 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5874 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5875 # Check for GNU ac_path_FGREP and select it if it is found.
5876 # Check for GNU $ac_path_FGREP
5877 case `"$ac_path_FGREP" --version 2>&1` in
5879 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5882 $as_echo_n 0123456789 >"conftest.in"
5885 cat "conftest.in" "conftest.in" >"conftest.tmp"
5886 mv "conftest.tmp" "conftest.in"
5887 cp "conftest.in" "conftest.nl"
5888 $as_echo 'FGREP' >> "conftest.nl"
5889 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5890 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5891 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5892 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5893 # Best one so far, save it but keep looking for a better one
5894 ac_cv_path_FGREP
="$ac_path_FGREP"
5895 ac_path_FGREP_max
=$ac_count
5897 # 10*(2^10) chars as input seems more than enough
5898 test $ac_count -gt 10 && break
5900 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5903 $ac_path_FGREP_found && break 3
5908 if test -z "$ac_cv_path_FGREP"; then
5909 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912 ac_cv_path_FGREP
=$FGREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5918 $as_echo "$ac_cv_path_FGREP" >&6; }
5919 FGREP
="$ac_cv_path_FGREP"
5922 test -z "$GREP" && GREP
=grep
5942 # Check whether --with-gnu-ld was given.
5943 if test "${with_gnu_ld+set}" = set; then :
5944 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5950 if test "$GCC" = yes; then
5951 # Check if gcc -print-prog-name=ld gives a path.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5953 $as_echo_n "checking for ld used by $CC... " >&6; }
5956 # gcc leaves a trailing carriage return which upsets mingw
5957 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5959 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5962 # Accept absolute paths.
5964 re_direlt
='/[^/][^/]*/\.\./'
5965 # Canonicalize the pathname of ld
5966 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5967 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5968 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5970 test -z "$LD" && LD
="$ac_prog"
5973 # If it fails, then pretend we aren't using GCC.
5977 # If it is relative, then search for the first ld in PATH.
5981 elif test "$with_gnu_ld" = yes; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5983 $as_echo_n "checking for GNU ld... " >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5986 $as_echo_n "checking for non-GNU ld... " >&6; }
5988 if ${lt_cv_path_LD+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 if test -z "$LD"; then
5992 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5993 for ac_dir
in $PATH; do
5995 test -z "$ac_dir" && ac_dir
=.
5996 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5997 lt_cv_path_LD
="$ac_dir/$ac_prog"
5998 # Check to see if the program is GNU ld. I'd rather use --version,
5999 # but apparently some variants of GNU ld only accept -v.
6000 # Break only if it was the GNU/non-GNU ld that we prefer.
6001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6002 *GNU
* |
*'with BFD'*)
6003 test "$with_gnu_ld" != no
&& break
6006 test "$with_gnu_ld" != yes && break
6013 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6018 if test -n "$LD"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6020 $as_echo "$LD" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6025 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6028 if ${lt_cv_prog_gnu_ld+:} false
; then :
6029 $as_echo_n "(cached) " >&6
6031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6032 case `$LD -v 2>&1 </dev/null` in
6033 *GNU
* |
*'with BFD'*)
6034 lt_cv_prog_gnu_ld
=yes
6037 lt_cv_prog_gnu_ld
=no
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6042 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6043 with_gnu_ld
=$lt_cv_prog_gnu_ld
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6054 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6055 if ${lt_cv_path_NM+:} false
; then :
6056 $as_echo_n "(cached) " >&6
6058 if test -n "$NM"; then
6059 # Let the user override the test.
6062 lt_nm_to_check
="${ac_tool_prefix}nm"
6063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6064 lt_nm_to_check
="$lt_nm_to_check nm"
6066 for lt_tmp_nm
in $lt_nm_to_check; do
6067 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6068 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6070 test -z "$ac_dir" && ac_dir
=.
6071 tmp_nm
="$ac_dir/$lt_tmp_nm"
6072 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6073 # Check to see if the nm accepts a BSD-compat flag.
6074 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6075 # nm: unknown option "B" ignored
6076 # Tru64's nm complains that /dev/null is an invalid object file
6077 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6078 */dev
/null
* |
*'Invalid file or object type'*)
6079 lt_cv_path_NM
="$tmp_nm -B"
6083 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6085 lt_cv_path_NM
="$tmp_nm -p"
6089 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6090 continue # so that we can try to find one that supports BSD flags
6099 : ${lt_cv_path_NM=no}
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6103 $as_echo "$lt_cv_path_NM" >&6; }
6104 if test "$lt_cv_path_NM" != "no"; then
6107 # Didn't find any BSD compatible name lister, look for dumpbin.
6108 if test -n "$DUMPBIN"; then :
6109 # Let the user override the test.
6111 if test -n "$ac_tool_prefix"; then
6112 for ac_prog
in dumpbin
"link -dump"
6114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6115 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6119 $as_echo_n "(cached) " >&6
6121 if test -n "$DUMPBIN"; then
6122 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir
=.
6129 for ac_exec_ext
in '' $ac_executable_extensions; do
6130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 DUMPBIN
=$ac_cv_prog_DUMPBIN
6142 if test -n "$DUMPBIN"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6144 $as_echo "$DUMPBIN" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6151 test -n "$DUMPBIN" && break
6154 if test -z "$DUMPBIN"; then
6155 ac_ct_DUMPBIN
=$DUMPBIN
6156 for ac_prog
in dumpbin
"link -dump"
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy
$ac_prog; ac_word
=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$ac_ct_DUMPBIN"; then
6166 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir
=.
6173 for ac_exec_ext
in '' $ac_executable_extensions; do
6174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6186 if test -n "$ac_ct_DUMPBIN"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6188 $as_echo "$ac_ct_DUMPBIN" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6195 test -n "$ac_ct_DUMPBIN" && break
6198 if test "x$ac_ct_DUMPBIN" = x
; then
6201 case $cross_compiling:$ac_tool_warned in
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned
=yes ;;
6207 DUMPBIN
=$ac_ct_DUMPBIN
6211 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6213 DUMPBIN
="$DUMPBIN -symbols"
6221 if test "$DUMPBIN" != ":"; then
6225 test -z "$NM" && NM
=nm
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6233 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6234 if ${lt_cv_nm_interface+:} false
; then :
6235 $as_echo_n "(cached) " >&6
6237 lt_cv_nm_interface
="BSD nm"
6238 echo "int some_variable = 0;" > conftest.
$ac_ext
6239 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6240 (eval "$ac_compile" 2>conftest.err
)
6241 cat conftest.err
>&5
6242 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6243 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6244 cat conftest.err
>&5
6245 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6246 cat conftest.out
>&5
6247 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6248 lt_cv_nm_interface
="MS dumpbin"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6253 $as_echo "$lt_cv_nm_interface" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6256 $as_echo_n "checking whether ln -s works... " >&6; }
6258 if test "$LN_S" = "ln -s"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260 $as_echo "yes" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6263 $as_echo "no, using $LN_S" >&6; }
6266 # find the maximum length of command line arguments
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6269 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6270 $as_echo_n "(cached) " >&6
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6285 # Under GNU Hurd, this test is not required because there is
6286 # no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len
=-1;
6291 cygwin
* | mingw
* | cegcc
*)
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len
=8192;
6303 # On MiNT this can take a long time and run out of memory.
6304 lt_cv_sys_max_cmd_len
=8192;
6308 # On AmigaOS with pdksh, this test takes hours, literally.
6309 # So we just punt and use a minimum line length of 8192.
6310 lt_cv_sys_max_cmd_len
=8192;
6313 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6314 # This has been around since 386BSD, at least. Likely further.
6315 if test -x /sbin
/sysctl
; then
6316 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6317 elif test -x /usr
/sbin
/sysctl
; then
6318 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6320 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6322 # And add a safety zone
6323 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6329 lt_cv_sys_max_cmd_len
=196608
6333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6335 # nice to cause kernel panics so lets avoid the loop below.
6336 # First set a reasonable default.
6337 lt_cv_sys_max_cmd_len
=16384
6339 if test -x /sbin
/sysconfig
; then
6340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6341 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6346 lt_cv_sys_max_cmd_len
=102400
6348 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6349 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6350 if test -n "$kargmax"; then
6351 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6353 lt_cv_sys_max_cmd_len
=32768
6357 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6358 if test -n "$lt_cv_sys_max_cmd_len"; then
6359 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6360 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6362 # Make teststring a little bigger before we do anything with it.
6363 # a 1K string should be a reasonable start.
6364 for i
in 1 2 3 4 5 6 7 8 ; do
6365 teststring
=$teststring$teststring
6367 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368 # If test is not a shell built-in, we'll probably end up computing a
6369 # maximum length that is only half of the actual maximum length, but
6371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6372 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6373 test $i != 17 # 1/2 MB should be enough
6376 teststring
=$teststring$teststring
6378 # Only check the string length outside the loop.
6379 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6381 # Add a significant safety factor because C++ compilers can tack on
6382 # massive amounts of additional arguments before passing them to the
6383 # linker. It appears as though 1/2 is a usable value.
6384 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6391 if test -n $lt_cv_sys_max_cmd_len ; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6396 $as_echo "none" >&6; }
6398 max_cmd_len
=$lt_cv_sys_max_cmd_len
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6411 # Try some XSI features
6414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6416 && eval 'test $(( 1 + 1 )) -eq 2 \
6417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6420 $as_echo "$xsi_shell" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6424 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6426 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6428 && lt_shell_append=yes
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6430 $as_echo "$lt_shell_append" >&6; }
6433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6443 # test EBCDIC or ASCII
6444 case `echo X|tr X '\101'` in
6445 A) # ASCII based system
6446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6447 lt_SP2NL='tr \040 \012'
6448 lt_NL2SP='tr \015\012 \040\040'
6450 *) # EBCDIC based system
6451 lt_SP2NL='tr \100 \n'
6452 lt_NL2SP='tr \r\n \100\100'
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6465 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6466 if ${lt_cv_ld_reload_flag+:} false; then :
6467 $as_echo_n "(cached
) " >&6
6469 lt_cv_ld_reload_flag='-r'
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6473 reload_flag=$lt_cv_ld_reload_flag
6474 case $reload_flag in
6476 *) reload_flag=" $reload_flag" ;;
6478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6481 if test "$GCC" = yes; then
6482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6501 $as_echo_n "checking
for $ac_word...
" >&6; }
6502 if ${ac_cv_prog_OBJDUMP+:} false; then :
6503 $as_echo_n "(cached
) " >&6
6505 if test -n "$OBJDUMP"; then
6506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6525 OBJDUMP=$ac_cv_prog_OBJDUMP
6526 if test -n "$OBJDUMP"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6528 $as_echo "$OBJDUMP" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6531 $as_echo "no
" >&6; }
6536 if test -z "$ac_cv_prog_OBJDUMP"; then
6537 ac_ct_OBJDUMP=$OBJDUMP
6538 # Extract the first word of "objdump
", so it can be a program name with args.
6539 set dummy objdump; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6541 $as_echo_n "checking
for $ac_word...
" >&6; }
6542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6543 $as_echo_n "(cached
) " >&6
6545 if test -n "$ac_ct_OBJDUMP"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6566 if test -n "$ac_ct_OBJDUMP"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6568 $as_echo "$ac_ct_OBJDUMP" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6571 $as_echo "no
" >&6; }
6574 if test "x
$ac_ct_OBJDUMP" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6580 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6581 ac_tool_warned=yes ;;
6583 OBJDUMP=$ac_ct_OBJDUMP
6586 OBJDUMP="$ac_cv_prog_OBJDUMP"
6589 test -z "$OBJDUMP" && OBJDUMP=objdump
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6600 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6601 if ${lt_cv_deplibs_check_method+:} false; then :
6602 $as_echo_n "(cached
) " >&6
6604 lt_cv_file_magic_cmd='$MAGIC_CMD'
6605 lt_cv_file_magic_test_file=
6606 lt_cv_deplibs_check_method='unknown'
6607 # Need to set the preceding variable on all platforms that support
6608 # interlibrary dependencies.
6609 # 'none' -- dependencies not supported.
6610 # `unknown' -- same as none, but documents that we really don't know.
6611 # 'pass_all' -- all dependencies passed with no checks.
6612 # 'test_compile' -- check by making test program.
6613 # 'file_magic [[regex]]' -- check by looking for files in library path
6614 # which responds to the $file_magic_cmd with a given extended regex.
6615 # If you have `file' or equivalent on your system and you're not sure
6616 # whether `pass_all' will *always* work, you probably want this one.
6620 lt_cv_deplibs_check_method=pass_all
6624 lt_cv_deplibs_check_method=pass_all
6628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6629 lt_cv_file_magic_cmd='/usr/bin/file -L'
6630 lt_cv_file_magic_test_file=/shlib/libc.so
6634 # func_win32_libid is a shell function defined in ltmain.sh
6635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6636 lt_cv_file_magic_cmd='func_win32_libid'
6640 # Base MSYS/MinGW do not provide the 'file' command needed by
6641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6642 # unless we find 'file', for example because we are cross-compiling.
6643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6644 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6646 lt_cv_file_magic_cmd='func_win32_libid'
6648 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6649 lt_cv_file_magic_cmd='$OBJDUMP -f'
6654 # use the weaker test based on 'objdump'. See mingw*.
6655 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6659 darwin* | rhapsody*)
6660 lt_cv_deplibs_check_method=pass_all
6663 freebsd* | dragonfly*)
6664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6667 # Not sure whether the presence of OpenBSD here was a mistake.
6668 # Let's accept both of them until this is cleared up.
6669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6670 lt_cv_file_magic_cmd=/usr/bin/file
6671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6675 lt_cv_deplibs_check_method=pass_all
6680 lt_cv_deplibs_check_method=pass_all
6684 lt_cv_deplibs_check_method=pass_all
6687 hpux10.20* | hpux11*)
6688 lt_cv_file_magic_cmd=/usr/bin/file
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6695 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]'
6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6710 irix5* | irix6* | nonstopux*)
6712 *-32|*"-32 ") libmagic=32-bit;;
6713 *-n32|*"-n32 ") libmagic=N32;;
6714 *-64|*"-64 ") libmagic=64-bit;;
6715 *) libmagic=never-match;;
6717 lt_cv_deplibs_check_method=pass_all
6720 # This must be Linux ELF.
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6722 lt_cv_deplibs_check_method=pass_all
6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6735 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6740 lt_cv_deplibs_check_method=pass_all
6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751 osf3* | osf4* | osf5*)
6752 lt_cv_deplibs_check_method=pass_all
6756 lt_cv_deplibs_check_method=pass_all
6760 lt_cv_deplibs_check_method=pass_all
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6764 lt_cv_deplibs_check_method=pass_all
6768 case $host_vendor in
6770 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]'
6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6774 lt_cv_deplibs_check_method=pass_all
6777 lt_cv_file_magic_cmd='/bin/file'
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6781 lt_cv_file_magic_cmd='/bin/file'
6782 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6783 lt_cv_file_magic_test_file=/lib/libc.so
6786 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6795 lt_cv_deplibs_check_method=pass_all
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6801 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6802 file_magic_cmd=$lt_cv_file_magic_cmd
6803 deplibs_check_method=$lt_cv_deplibs_check_method
6804 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}ar; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6821 $as_echo_n "checking
for $ac_word...
" >&6; }
6822 if ${ac_cv_prog_AR+:} false; then :
6823 $as_echo_n "(cached
) " >&6
6825 if test -n "$AR"; then
6826 ac_cv_prog_AR="$AR" # Let the user override the test.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_AR="${ac_tool_prefix}ar"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6846 if test -n "$AR"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6848 $as_echo "$AR" >&6; }
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6851 $as_echo "no
" >&6; }
6856 if test -z "$ac_cv_prog_AR"; then
6858 # Extract the first word of "ar", so it can be a program name with args.
6859 set dummy ar; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6861 $as_echo_n "checking
for $ac_word...
" >&6; }
6862 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6863 $as_echo_n "(cached
) " >&6
6865 if test -n "$ac_ct_AR"; then
6866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_AR="ar"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6885 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6886 if test -n "$ac_ct_AR"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6888 $as_echo "$ac_ct_AR" >&6; }
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6891 $as_echo "no
" >&6; }
6894 if test "x
$ac_ct_AR" = x; then
6897 case $cross_compiling:$ac_tool_warned in
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6900 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6901 ac_tool_warned=yes ;;
6909 test -z "$AR" && AR=ar
6910 test -z "$AR_FLAGS" && AR_FLAGS=cru
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}strip; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6926 $as_echo_n "checking
for $ac_word...
" >&6; }
6927 if ${ac_cv_prog_STRIP+:} false; then :
6928 $as_echo_n "(cached
) " >&6
6930 if test -n "$STRIP"; then
6931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6950 STRIP=$ac_cv_prog_STRIP
6951 if test -n "$STRIP"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6953 $as_echo "$STRIP" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6956 $as_echo "no
" >&6; }
6961 if test -z "$ac_cv_prog_STRIP"; then
6963 # Extract the first word of "strip
", so it can be a program name with args.
6964 set dummy strip; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6966 $as_echo_n "checking
for $ac_word...
" >&6; }
6967 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6968 $as_echo_n "(cached
) " >&6
6970 if test -n "$ac_ct_STRIP"; then
6971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_ac_ct_STRIP="strip
"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6990 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6991 if test -n "$ac_ct_STRIP"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6993 $as_echo "$ac_ct_STRIP" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6996 $as_echo "no
" >&6; }
6999 if test "x
$ac_ct_STRIP" = x; then
7002 case $cross_compiling:$ac_tool_warned in
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7005 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7006 ac_tool_warned=yes ;;
7011 STRIP="$ac_cv_prog_STRIP"
7014 test -z "$STRIP" && STRIP=:
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7025 $as_echo_n "checking
for $ac_word...
" >&6; }
7026 if ${ac_cv_prog_RANLIB+:} false; then :
7027 $as_echo_n "(cached
) " >&6
7029 if test -n "$RANLIB"; then
7030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7049 RANLIB=$ac_cv_prog_RANLIB
7050 if test -n "$RANLIB"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7052 $as_echo "$RANLIB" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7055 $as_echo "no
" >&6; }
7060 if test -z "$ac_cv_prog_RANLIB"; then
7061 ac_ct_RANLIB=$RANLIB
7062 # Extract the first word of "ranlib
", so it can be a program name with args.
7063 set dummy ranlib; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7065 $as_echo_n "checking
for $ac_word...
" >&6; }
7066 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7067 $as_echo_n "(cached
) " >&6
7069 if test -n "$ac_ct_RANLIB"; then
7070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7089 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7090 if test -n "$ac_ct_RANLIB"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7092 $as_echo "$ac_ct_RANLIB" >&6; }
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7095 $as_echo "no
" >&6; }
7098 if test "x
$ac_ct_RANLIB" = x; then
7101 case $cross_compiling:$ac_tool_warned in
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7104 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7105 ac_tool_warned=yes ;;
7107 RANLIB=$ac_ct_RANLIB
7110 RANLIB="$ac_cv_prog_RANLIB"
7113 test -z "$RANLIB" && RANLIB=:
7120 # Determine commands to create old-style static archives.
7121 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7122 old_postinstall_cmds='chmod 644 $oldlib'
7123 old_postuninstall_cmds=
7125 if test -n "$RANLIB"; then
7128 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7131 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7134 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7139 lock_old_archive_extraction=yes ;;
7141 lock_old_archive_extraction=no ;;
7182 # If no C compiler was specified, use CC.
7185 # If no C compiler flags were specified, use CFLAGS.
7186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7188 # Allow CC to be a program name with arguments.
7192 # Check for command to grab the raw symbol name followed by C symbol from nm.
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7194 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7195 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7196 $as_echo_n "(cached
) " >&6
7199 # These are sane defaults that work on at least a few old systems.
7200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7202 # Character class describing NM global symbol codes.
7203 symcode='[BCDEGRST]'
7205 # Regexp to match symbols that can be accessed directly from C.
7206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7208 # Define system-specific variables.
7213 cygwin* | mingw* | pw32* | cegcc*)
7214 symcode='[ABCDGISTW]'
7217 if test "$host_cpu" = ia64; then
7218 symcode='[ABCDEGRST]'
7222 symcode='[BCDEGRST]'
7225 symcode='[BCDEGQRST]'
7236 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7244 # If we're using GNU nm, then use its standard symbol codes.
7245 case `$NM -V 2>&1` in
7246 *GNU* | *'with BFD'*)
7247 symcode='[ABCDGIRSTW]' ;;
7250 # Transform an extracted symbol line into a proper C declaration.
7251 # Some systems (esp. on ia64) link data and code symbols differently,
7252 # so use this general approach.
7253 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7255 # Transform an extracted symbol line into symbol name and symbol address
7256 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7257 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'"
7259 # Handle CRLF in mingw tool chain
7263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7267 # Try without a prefix underscore, then with it.
7268 for ac_symprfx in "" "_
"; do
7270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7271 symxfrm="\\1 $ac_symprfx\\2 \\2"
7273 # Write the raw and C identifiers.
7274 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7275 # Fake it for dumpbin and say T for any non-static function
7276 # and D for any global variable.
7277 # Also find C++ and __fastcall symbols from MSVC++,
7278 # which start with @ or ?.
7279 lt_cv_sys_global_symbol_pipe="$AWK '"\
7280 " {last_section=section; section=\$ 3};"\
7281 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7282 " \$ 0!~/External *\|/{next};"\
7283 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7284 " {if(hide[section]) next};"\
7285 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7286 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7287 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7288 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7289 " ' prfx
=^
$ac_symprfx"
7291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7294 # Check to see that the pipe works correctly.
7298 cat > conftest.$ac_ext <<_LT_EOF
7303 void nm_test_func(void);
7304 void nm_test_func(void){}
7308 int main(){nm_test_var='a';nm_test_func();return(0);}
7311 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7312 (eval $ac_compile) 2>&5
7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7315 test $ac_status = 0; }; then
7316 # Now try to grab the symbols.
7318 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7319 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7322 test $ac_status = 0; } && test -s "$nlist"; then
7323 # Try sorting and uniquifying the output.
7324 if sort "$nlist" | uniq > "$nlist"T; then
7325 mv -f "$nlist"T "$nlist"
7330 # Make sure that we snagged all the symbols we need.
7331 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7332 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7333 cat <<_LT_EOF > conftest.$ac_ext
7339 # Now generate the symbol file.
7340 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7342 cat <<_LT_EOF >> conftest.$ac_ext
7344 /* The mapping between symbol names and symbols. */
7349 lt__PROGRAM__LTX_preloaded_symbols[] =
7351 { "@PROGRAM@
", (void *) 0 },
7353 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7354 cat <<\_LT_EOF >> conftest.$ac_ext
7358 /* This works around a problem in FreeBSD linker */
7359 #ifdef FREEBSD_WORKAROUND
7360 static const void *lt_preloaded_setup() {
7361 return lt__PROGRAM__LTX_preloaded_symbols;
7369 # Now try linking the two files.
7370 mv conftest.$ac_objext conftstm.$ac_objext
7371 lt_save_LIBS="$LIBS"
7372 lt_save_CFLAGS="$CFLAGS"
7373 LIBS="conftstm.
$ac_objext"
7374 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7375 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7376 (eval $ac_link) 2>&5
7378 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7379 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7382 LIBS="$lt_save_LIBS"
7383 CFLAGS="$lt_save_CFLAGS"
7385 echo "cannot
find nm_test_func
in $nlist" >&5
7388 echo "cannot
find nm_test_var
in $nlist" >&5
7391 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7394 echo "$progname: failed program was
:" >&5
7395 cat conftest.$ac_ext >&5
7397 rm -rf conftest* conftst*
7399 # Do not use the global_symbol_pipe unless it works.
7400 if test "$pipe_works" = yes; then
7403 lt_cv_sys_global_symbol_pipe=
7409 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7410 lt_cv_sys_global_symbol_to_cdecl=
7412 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7414 $as_echo "failed
" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7417 $as_echo "ok
" >&6; }
7441 # Check whether --enable-libtool-lock was given.
7442 if test "${enable_libtool_lock+set}" = set; then :
7443 enableval=$enable_libtool_lock;
7446 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7448 # Some flags need to be propagated to the compiler or linker for good
7452 # Find out which ABI we are using.
7453 echo 'int i;' > conftest.$ac_ext
7454 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7455 (eval $ac_compile) 2>&5
7457 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7458 test $ac_status = 0; }; then
7459 case `/usr/bin/file conftest.$ac_objext` in
7471 # Find out which ABI we are using.
7472 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7473 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474 (eval $ac_compile) 2>&5
7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7477 test $ac_status = 0; }; then
7478 if test "$lt_cv_prog_gnu_ld" = yes; then
7479 case `/usr/bin/file conftest.$ac_objext` in
7481 LD="${LD-ld} -melf32bsmip"
7484 LD="${LD-ld} -melf32bmipn32"
7487 LD="${LD-ld} -melf64bmip"
7491 case `/usr/bin/file conftest.$ac_objext` in
7507 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7508 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7509 # Find out which ABI we are using.
7510 echo 'int i;' > conftest.$ac_ext
7511 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 case `/usr/bin/file conftest.o` in
7519 x86_64-*kfreebsd*-gnu)
7520 LD="${LD-ld} -m elf_i386_fbsd
"
7523 case `/usr/bin/file conftest.o` in
7525 LD="${LD-ld} -m elf32_x86_64
"
7528 LD="${LD-ld} -m elf_i386
"
7532 powerpc64le-*linux*)
7533 LD="${LD-ld} -m elf32lppclinux
"
7536 LD="${LD-ld} -m elf32ppclinux
"
7539 LD="${LD-ld} -m elf_s390
"
7542 LD="${LD-ld} -m elf32_sparc
"
7548 x86_64-*kfreebsd*-gnu)
7549 LD="${LD-ld} -m elf_x86_64_fbsd
"
7552 LD="${LD-ld} -m elf_x86_64
"
7555 LD="${LD-ld} -m elf64lppc
"
7558 LD="${LD-ld} -m elf64ppc
"
7560 s390*-*linux*|s390*-*tpf*)
7561 LD="${LD-ld} -m elf64_s390
"
7564 LD="${LD-ld} -m elf64_sparc
"
7574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7575 SAVE_CFLAGS="$CFLAGS"
7576 CFLAGS="$CFLAGS -belf"
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7578 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7579 if ${lt_cv_cc_needs_belf+:} false; then :
7580 $as_echo_n "(cached
) " >&6
7583 ac_cpp='$CPP $CPPFLAGS'
7584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7599 if ac_fn_c_try_link "$LINENO"; then :
7600 lt_cv_cc_needs_belf=yes
7602 lt_cv_cc_needs_belf=no
7604 rm -f core conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7607 ac_cpp='$CPP $CPPFLAGS'
7608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7614 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7617 CFLAGS="$SAVE_CFLAGS"
7621 # Find out which ABI we are using.
7622 echo 'int i;' > conftest.$ac_ext
7623 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7624 (eval $ac_compile) 2>&5
7626 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7627 test $ac_status = 0; }; then
7628 case `/usr/bin/file conftest.o` in
7630 case $lt_cv_prog_gnu_ld in
7631 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7633 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7645 need_locks="$enable_libtool_lock"
7649 rhapsody* | darwin*)
7650 if test -n "$ac_tool_prefix"; then
7651 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7652 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7654 $as_echo_n "checking
for $ac_word...
" >&6; }
7655 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7656 $as_echo_n "(cached
) " >&6
7658 if test -n "$DSYMUTIL"; then
7659 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7678 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7679 if test -n "$DSYMUTIL"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7681 $as_echo "$DSYMUTIL" >&6; }
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7684 $as_echo "no
" >&6; }
7689 if test -z "$ac_cv_prog_DSYMUTIL"; then
7690 ac_ct_DSYMUTIL=$DSYMUTIL
7691 # Extract the first word of "dsymutil
", so it can be a program name with args.
7692 set dummy dsymutil; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7694 $as_echo_n "checking
for $ac_word...
" >&6; }
7695 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7696 $as_echo_n "(cached
) " >&6
7698 if test -n "$ac_ct_DSYMUTIL"; then
7699 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7718 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7719 if test -n "$ac_ct_DSYMUTIL"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7721 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7724 $as_echo "no
" >&6; }
7727 if test "x
$ac_ct_DSYMUTIL" = x; then
7730 case $cross_compiling:$ac_tool_warned in
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7733 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7734 ac_tool_warned=yes ;;
7736 DSYMUTIL=$ac_ct_DSYMUTIL
7739 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7742 if test -n "$ac_tool_prefix"; then
7743 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7744 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7746 $as_echo_n "checking
for $ac_word...
" >&6; }
7747 if ${ac_cv_prog_NMEDIT+:} false; then :
7748 $as_echo_n "(cached
) " >&6
7750 if test -n "$NMEDIT"; then
7751 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7770 NMEDIT=$ac_cv_prog_NMEDIT
7771 if test -n "$NMEDIT"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7773 $as_echo "$NMEDIT" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7776 $as_echo "no
" >&6; }
7781 if test -z "$ac_cv_prog_NMEDIT"; then
7782 ac_ct_NMEDIT=$NMEDIT
7783 # Extract the first word of "nmedit
", so it can be a program name with args.
7784 set dummy nmedit; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7786 $as_echo_n "checking
for $ac_word...
" >&6; }
7787 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7788 $as_echo_n "(cached
) " >&6
7790 if test -n "$ac_ct_NMEDIT"; then
7791 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7810 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7811 if test -n "$ac_ct_NMEDIT"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7813 $as_echo "$ac_ct_NMEDIT" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7816 $as_echo "no
" >&6; }
7819 if test "x
$ac_ct_NMEDIT" = x; then
7822 case $cross_compiling:$ac_tool_warned in
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7825 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7826 ac_tool_warned=yes ;;
7828 NMEDIT=$ac_ct_NMEDIT
7831 NMEDIT="$ac_cv_prog_NMEDIT"
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7838 $as_echo_n "checking
for $ac_word...
" >&6; }
7839 if ${ac_cv_prog_LIPO+:} false; then :
7840 $as_echo_n "(cached
) " >&6
7842 if test -n "$LIPO"; then
7843 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7862 LIPO=$ac_cv_prog_LIPO
7863 if test -n "$LIPO"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7865 $as_echo "$LIPO" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7868 $as_echo "no
" >&6; }
7873 if test -z "$ac_cv_prog_LIPO"; then
7875 # Extract the first word of "lipo
", so it can be a program name with args.
7876 set dummy lipo; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7878 $as_echo_n "checking
for $ac_word...
" >&6; }
7879 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7880 $as_echo_n "(cached
) " >&6
7882 if test -n "$ac_ct_LIPO"; then
7883 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_ac_ct_LIPO="lipo
"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7902 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7903 if test -n "$ac_ct_LIPO"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7905 $as_echo "$ac_ct_LIPO" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7908 $as_echo "no
" >&6; }
7911 if test "x
$ac_ct_LIPO" = x; then
7914 case $cross_compiling:$ac_tool_warned in
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7917 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7918 ac_tool_warned=yes ;;
7923 LIPO="$ac_cv_prog_LIPO"
7926 if test -n "$ac_tool_prefix"; then
7927 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7928 set dummy ${ac_tool_prefix}otool; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7930 $as_echo_n "checking
for $ac_word...
" >&6; }
7931 if ${ac_cv_prog_OTOOL+:} false; then :
7932 $as_echo_n "(cached
) " >&6
7934 if test -n "$OTOOL"; then
7935 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7945 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7954 OTOOL=$ac_cv_prog_OTOOL
7955 if test -n "$OTOOL"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7957 $as_echo "$OTOOL" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7960 $as_echo "no
" >&6; }
7965 if test -z "$ac_cv_prog_OTOOL"; then
7967 # Extract the first word of "otool
", so it can be a program name with args.
7968 set dummy otool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7970 $as_echo_n "checking
for $ac_word...
" >&6; }
7971 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7972 $as_echo_n "(cached
) " >&6
7974 if test -n "$ac_ct_OTOOL"; then
7975 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_ac_ct_OTOOL="otool
"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7994 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7995 if test -n "$ac_ct_OTOOL"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7997 $as_echo "$ac_ct_OTOOL" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8000 $as_echo "no
" >&6; }
8003 if test "x
$ac_ct_OTOOL" = x; then
8006 case $cross_compiling:$ac_tool_warned in
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8009 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8010 ac_tool_warned=yes ;;
8015 OTOOL="$ac_cv_prog_OTOOL"
8018 if test -n "$ac_tool_prefix"; then
8019 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8022 $as_echo_n "checking
for $ac_word...
" >&6; }
8023 if ${ac_cv_prog_OTOOL64+:} false; then :
8024 $as_echo_n "(cached
) " >&6
8026 if test -n "$OTOOL64"; then
8027 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8037 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8046 OTOOL64=$ac_cv_prog_OTOOL64
8047 if test -n "$OTOOL64"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8049 $as_echo "$OTOOL64" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8052 $as_echo "no
" >&6; }
8057 if test -z "$ac_cv_prog_OTOOL64"; then
8058 ac_ct_OTOOL64=$OTOOL64
8059 # Extract the first word of "otool64
", so it can be a program name with args.
8060 set dummy otool64; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8062 $as_echo_n "checking
for $ac_word...
" >&6; }
8063 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8064 $as_echo_n "(cached
) " >&6
8066 if test -n "$ac_ct_OTOOL64"; then
8067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8086 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8087 if test -n "$ac_ct_OTOOL64"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8089 $as_echo "$ac_ct_OTOOL64" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8092 $as_echo "no
" >&6; }
8095 if test "x
$ac_ct_OTOOL64" = x; then
8098 case $cross_compiling:$ac_tool_warned in
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8101 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8102 ac_tool_warned=yes ;;
8104 OTOOL64=$ac_ct_OTOOL64
8107 OTOOL64="$ac_cv_prog_OTOOL64"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8137 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8138 if ${lt_cv_apple_cc_single_mod+:} false; then :
8139 $as_echo_n "(cached
) " >&6
8141 lt_cv_apple_cc_single_mod=no
8142 if test -z "${LT_MULTI_MODULE}"; then
8143 # By default we will add the -single_module flag. You can override
8144 # by either setting the environment variable LT_MULTI_MODULE
8145 # non-empty at configure time, or by adding -multi_module to the
8147 rm -rf libconftest.dylib*
8148 echo "int foo
(void
){return 1;}" > conftest.c
8149 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8150 -dynamiclib -Wl,-single_module conftest.c
" >&5
8151 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8152 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8154 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8155 lt_cv_apple_cc_single_mod=yes
8157 cat conftest.err >&5
8159 rm -rf libconftest.dylib*
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8164 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8166 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8167 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8168 $as_echo_n "(cached
) " >&6
8170 lt_cv_ld_exported_symbols_list=no
8171 save_LDFLAGS=$LDFLAGS
8172 echo "_main
" > conftest.sym
8173 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8185 if ac_fn_c_try_link "$LINENO"; then :
8186 lt_cv_ld_exported_symbols_list=yes
8188 lt_cv_ld_exported_symbols_list=no
8190 rm -f core conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
8192 LDFLAGS="$save_LDFLAGS"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8196 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8198 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8199 if ${lt_cv_ld_force_load+:} false; then :
8200 $as_echo_n "(cached
) " >&6
8202 lt_cv_ld_force_load=no
8203 cat > conftest.c << _LT_EOF
8204 int forced_loaded() { return 2;}
8206 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8207 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8208 echo "$AR cru libconftest.a conftest.o
" >&5
8209 $AR cru libconftest.a conftest.o 2>&5
8210 cat > conftest.c << _LT_EOF
8211 int main() { return 0;}
8213 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8214 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8216 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8217 lt_cv_ld_force_load=yes
8219 cat conftest.err >&5
8221 rm -f conftest.err libconftest.a conftest conftest.c
8222 rm -rf conftest.dSYM
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8226 $as_echo "$lt_cv_ld_force_load" >&6; }
8227 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8228 # build without first building modern cctools / linker.
8229 case $host_cpu-$host_os in
8230 *-rhapsody* | *-darwin1.[012])
8231 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8235 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8236 # deployment target is forced to an earlier version.
8237 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8238 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8241 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8248 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8249 _lt_dar_single_mod='$single_module'
8251 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8252 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8254 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8256 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8257 _lt_dsymutil='~$DSYMUTIL $lib || :'
8264 for ac_header in dlfcn.h
8266 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8268 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_DLFCN_H 1
8290 # Check whether --enable-shared was given.
8291 if test "${enable_shared+set}" = set; then :
8292 enableval=$enable_shared; p=${PACKAGE-default}
8294 yes) enable_shared=yes ;;
8295 no) enable_shared=no ;;
8298 # Look at the argument we got. We use all the common list separators.
8299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8300 for pkg in $enableval; do
8302 if test "X
$pkg" = "X
$p"; then
8321 # Check whether --enable-static was given.
8322 if test "${enable_static+set}" = set; then :
8323 enableval=$enable_static; p=${PACKAGE-default}
8325 yes) enable_static=yes ;;
8326 no) enable_static=no ;;
8329 # Look at the argument we got. We use all the common list separators.
8330 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8331 for pkg in $enableval; do
8333 if test "X
$pkg" = "X
$p"; then
8353 # Check whether --with-pic was given.
8354 if test "${with_pic+set}" = set; then :
8355 withval=$with_pic; pic_mode="$withval"
8361 test -z "$pic_mode" && pic_mode=default
8369 # Check whether --enable-fast-install was given.
8370 if test "${enable_fast_install+set}" = set; then :
8371 enableval=$enable_fast_install; p=${PACKAGE-default}
8373 yes) enable_fast_install=yes ;;
8374 no) enable_fast_install=no ;;
8376 enable_fast_install=no
8377 # Look at the argument we got. We use all the common list separators.
8378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8379 for pkg in $enableval; do
8381 if test "X
$pkg" = "X
$p"; then
8382 enable_fast_install=yes
8389 enable_fast_install=yes
8402 # This can be used to rebuild libtool when needed
8403 LIBTOOL_DEPS="$ltmain"
8405 # Always use our own libtool.
8406 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8433 test -z "$LN_S" && LN_S="ln -s"
8448 if test -n "${ZSH_VERSION+set}" ; then
8449 setopt NO_GLOB_SUBST
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8453 $as_echo_n "checking
for objdir...
" >&6; }
8454 if ${lt_cv_objdir+:} false; then :
8455 $as_echo_n "(cached
) " >&6
8457 rm -f .libs 2>/dev/null
8458 mkdir .libs 2>/dev/null
8459 if test -d .libs; then
8462 # MS-DOS does not allow filenames that begin with a dot.
8465 rmdir .libs 2>/dev/null
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8468 $as_echo "$lt_cv_objdir" >&6; }
8469 objdir=$lt_cv_objdir
8475 cat >>confdefs.h <<_ACEOF
8476 #define LT_OBJDIR "$lt_cv_objdir/"
8484 # AIX sometimes has problems with the GCC collect2 program. For some
8485 # reason, if we set the COLLECT_NAMES environment variable, the problems
8486 # vanish in a puff of smoke.
8487 if test "X
${COLLECT_NAMES+set}" != Xset; then
8489 export COLLECT_NAMES
8496 can_build_shared=yes
8498 # All known linkers require a `.a' archive for static linking (except MSVC,
8499 # which needs '.lib').
8502 with_gnu_ld="$lt_cv_prog_gnu_ld"
8505 old_CFLAGS="$CFLAGS"
8507 # Set sane defaults for various variables
8508 test -z "$CC" && CC=cc
8509 test -z "$LTCC" && LTCC=$CC
8510 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8511 test -z "$LD" && LD=ld
8512 test -z "$ac_objext" && ac_objext=o
8514 for cc_temp in $compiler""; do
8516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8522 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8525 # Only perform the check for file, if the check method requires it
8526 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8527 case $deplibs_check_method in
8529 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8531 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8532 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8533 $as_echo_n "(cached
) " >&6
8537 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8540 lt_save_MAGIC_CMD="$MAGIC_CMD"
8541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8542 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8543 for ac_dir in $ac_dummy; do
8545 test -z "$ac_dir" && ac_dir=.
8546 if test -f $ac_dir/${ac_tool_prefix}file; then
8547 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8548 if test -n "$file_magic_test_file"; then
8549 case $deplibs_check_method in
8551 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8553 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8554 $EGREP "$file_magic_regex" > /dev/null; then
8559 *** Warning: the command libtool uses to detect shared libraries,
8560 *** $file_magic_cmd, produces output that libtool cannot recognize.
8561 *** The result is that libtool may fail to recognize shared libraries
8562 *** as such. This will affect the creation of libtool libraries that
8563 *** depend on shared libraries, but programs linked with such libtool
8564 *** libraries will work regardless of this problem. Nevertheless, you
8565 *** may want to report the problem to your system manager and/or to
8566 *** bug-libtool@gnu.org
8576 MAGIC_CMD="$lt_save_MAGIC_CMD"
8581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8582 if test -n "$MAGIC_CMD"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8584 $as_echo "$MAGIC_CMD" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8587 $as_echo "no
" >&6; }
8594 if test -z "$lt_cv_path_MAGIC_CMD"; then
8595 if test -n "$ac_tool_prefix"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8597 $as_echo_n "checking
for file...
" >&6; }
8598 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8599 $as_echo_n "(cached
) " >&6
8603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8606 lt_save_MAGIC_CMD="$MAGIC_CMD"
8607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8608 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8609 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/file; then
8613 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8614 if test -n "$file_magic_test_file"; then
8615 case $deplibs_check_method in
8617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8620 $EGREP "$file_magic_regex" > /dev/null; then
8625 *** Warning: the command libtool uses to detect shared libraries,
8626 *** $file_magic_cmd, produces output that libtool cannot recognize.
8627 *** The result is that libtool may fail to recognize shared libraries
8628 *** as such. This will affect the creation of libtool libraries that
8629 *** depend on shared libraries, but programs linked with such libtool
8630 *** libraries will work regardless of this problem. Nevertheless, you
8631 *** may want to report the problem to your system manager and/or to
8632 *** bug-libtool@gnu.org
8642 MAGIC_CMD="$lt_save_MAGIC_CMD"
8647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8648 if test -n "$MAGIC_CMD"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8650 $as_echo "$MAGIC_CMD" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8653 $as_echo "no
" >&6; }
8666 # Use C for the default configuration in the libtool script
8670 ac_cpp='$CPP $CPPFLAGS'
8671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8676 # Source file extension for C test sources.
8679 # Object file extension for compiled C test sources.
8683 # Code to be used in simple compile tests
8684 lt_simple_compile_test_code="int some_variable
= 0;"
8686 # Code to be used in simple link tests
8687 lt_simple_link_test_code='int main(){return(0);}'
8695 # If no C compiler was specified, use CC.
8698 # If no C compiler flags were specified, use CFLAGS.
8699 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8701 # Allow CC to be a program name with arguments.
8704 # Save the default compiler, since it gets overwritten when the other
8705 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8706 compiler_DEFAULT=$CC
8708 # save warnings/boilerplate of simple test code
8709 ac_outfile=conftest.$ac_objext
8710 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8712 _lt_compiler_boilerplate=`cat conftest.err`
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8718 _lt_linker_boilerplate=`cat conftest.err`
8723 ## There is no encapsulation within the following macros, do not change
8724 ## the running order or otherwise move them around unless you know exactly
8725 ## what you are doing...
8726 if test -n "$compiler"; then
8728 lt_prog_compiler_no_builtin_flag=
8730 if test "$GCC" = yes; then
8731 case $cc_basename in
8733 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8735 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8739 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8740 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8741 $as_echo_n "(cached
) " >&6
8743 lt_cv_prog_compiler_rtti_exceptions=no
8744 ac_outfile=conftest.$ac_objext
8745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746 lt_compiler_flag="-fno-rtti -fno-exceptions"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.
", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 # The option is referenced via a variable to avoid confusing sed.
8752 lt_compile=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
8756 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8757 (eval "$lt_compile" 2>conftest.err)
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8761 if (exit $ac_status) && test -s "$ac_outfile"; then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings other than the usual output.
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_rtti_exceptions=yes
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8774 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8776 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8777 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8789 lt_prog_compiler_wl=
8790 lt_prog_compiler_pic=
8791 lt_prog_compiler_static=
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8794 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8796 if test "$GCC" = yes; then
8797 lt_prog_compiler_wl='-Wl,'
8798 lt_prog_compiler_static='-static'
8802 # All AIX code is PIC.
8803 if test "$host_cpu" = ia64; then
8804 # AIX 5 now supports IA64 processor
8805 lt_prog_compiler_static='-Bstatic'
8807 lt_prog_compiler_pic='-fPIC'
8813 # see comment about AmigaOS4 .so support
8814 lt_prog_compiler_pic='-fPIC'
8817 # FIXME: we need at least 68020 code to build shared libraries, but
8818 # adding the `-m68020' flag to GCC prevents building anything better,
8820 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8825 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8826 # PIC is the default for these OSes.
8829 mingw* | cygwin* | pw32* | os2* | cegcc*)
8830 # This hack is so that the source file can tell whether it is being
8831 # built for inclusion in a dll (and should export symbols for example).
8832 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8833 # (--disable-auto-import) libraries
8834 lt_prog_compiler_pic='-DDLL_EXPORT'
8837 darwin* | rhapsody*)
8838 # PIC is the default on this platform
8839 # Common symbols not allowed in MH_DYLIB files
8840 lt_prog_compiler_pic='-fno-common'
8844 # PIC is the default for Haiku.
8845 # The "-static" flag exists, but is broken.
8846 lt_prog_compiler_static=
8850 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8851 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8852 # sets the default TLS model and affects inlining.
8858 lt_prog_compiler_pic='-fPIC'
8864 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8865 # Instead, we relocate shared libraries at runtime.
8869 # Just because we use GCC doesn't mean we suddenly get shared libraries
8870 # on systems that don't support them.
8871 lt_prog_compiler_can_build_shared=no
8876 # QNX uses GNU C++, but need to define -shared option too, otherwise
8878 lt_prog_compiler_pic='-fPIC -shared'
8882 if test -d /usr/nec; then
8883 lt_prog_compiler_pic=-Kconform_pic
8888 lt_prog_compiler_pic='-fPIC'
8892 case $cc_basename in
8893 nvcc*) # Cuda Compiler Driver 2.2
8894 lt_prog_compiler_wl='-Xlinker '
8895 lt_prog_compiler_pic='-Xcompiler -fPIC'
8899 # PORTME Check for flag to pass linker flags through the system compiler.
8902 lt_prog_compiler_wl='-Wl,'
8903 if test "$host_cpu" = ia64; then
8904 # AIX 5 now supports IA64 processor
8905 lt_prog_compiler_static='-Bstatic'
8907 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8911 mingw* | cygwin* | pw32* | os2* | cegcc*)
8912 # This hack is so that the source file can tell whether it is being
8913 # built for inclusion in a dll (and should export symbols for example).
8914 lt_prog_compiler_pic='-DDLL_EXPORT'
8917 hpux9* | hpux10* | hpux11*)
8918 lt_prog_compiler_wl='-Wl,'
8919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8926 lt_prog_compiler_pic='+Z'
8929 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8930 lt_prog_compiler_static='${wl}-a ${wl}archive'
8933 irix5* | irix6* | nonstopux*)
8934 lt_prog_compiler_wl='-Wl,'
8935 # PIC (with -KPIC) is the default.
8936 lt_prog_compiler_static='-non_shared'
8939 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8940 case $cc_basename in
8941 # old Intel for x86_64 which still supported -KPIC.
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-static'
8947 # icc used to be incompatible with GCC.
8948 # ICC 10 doesn't accept -KPIC any more.
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-fPIC'
8952 lt_prog_compiler_static='-static'
8954 # Lahey Fortran 8.1.
8956 lt_prog_compiler_wl='-Wl,'
8957 lt_prog_compiler_pic='--shared'
8958 lt_prog_compiler_static='--static'
8960 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8961 # Portland Group compilers (*not* the Pentium gcc compiler,
8962 # which looks to be a dead project)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-fpic'
8965 lt_prog_compiler_static='-Bstatic'
8968 lt_prog_compiler_wl='-Wl,'
8969 # All Alpha code is PIC.
8970 lt_prog_compiler_static='-non_shared'
8972 xl* | bgxl* | bgf* | mpixl*)
8973 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='-qpic'
8976 lt_prog_compiler_static='-qstaticlink'
8979 case `$CC -V 2>&1 | sed 5q` in
8980 *Sun\ F* | *Sun*Fortran*)
8981 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8982 lt_prog_compiler_pic='-KPIC'
8983 lt_prog_compiler_static='-Bstatic'
8984 lt_prog_compiler_wl=''
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-Bstatic'
9003 # QNX uses GNU C++, but need to define -shared option too, otherwise
9005 lt_prog_compiler_pic='-fPIC -shared'
9008 osf3* | osf4* | osf5*)
9009 lt_prog_compiler_wl='-Wl,'
9010 # All OSF/1 code is PIC.
9011 lt_prog_compiler_static='-non_shared'
9015 lt_prog_compiler_static='-non_shared'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 case $cc_basename in
9023 lt_prog_compiler_wl='-Qoption ld ';;
9025 lt_prog_compiler_wl='-Wl,';;
9030 lt_prog_compiler_wl='-Qoption ld '
9031 lt_prog_compiler_pic='-PIC'
9032 lt_prog_compiler_static='-Bstatic'
9035 sysv4 | sysv4.2uw2* | sysv4.3*)
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9042 if test -d /usr/nec ;then
9043 lt_prog_compiler_pic='-Kconform_pic'
9044 lt_prog_compiler_static='-Bstatic'
9048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9049 lt_prog_compiler_wl='-Wl,'
9050 lt_prog_compiler_pic='-KPIC'
9051 lt_prog_compiler_static='-Bstatic'
9055 lt_prog_compiler_wl='-Wl,'
9056 lt_prog_compiler_can_build_shared=no
9060 lt_prog_compiler_pic='-pic'
9061 lt_prog_compiler_static='-Bstatic'
9065 lt_prog_compiler_can_build_shared=no
9071 # For platforms which do not support PIC, -DPIC is meaningless:
9073 lt_prog_compiler_pic=
9076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9080 $as_echo "$lt_prog_compiler_pic" >&6; }
9088 # Check to make sure the PIC flag actually works.
9090 if test -n "$lt_prog_compiler_pic"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9092 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9093 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9094 $as_echo_n "(cached
) " >&6
9096 lt_cv_prog_compiler_pic_works=no
9097 ac_outfile=conftest.$ac_objext
9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9100 # Insert the option either (1) after the last *FLAGS variable, or
9101 # (2) before a word containing "conftest.
", or (3) at the end.
9102 # Note that $ac_compile itself does not contain backslashes and begins
9103 # with a dollar sign (not a hyphen), so the echo should work correctly.
9104 # The option is referenced via a variable to avoid confusing sed.
9105 lt_compile=`echo "$ac_compile" | $SED \
9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108 -e 's:$: $lt_compiler_flag:'`
9109 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9110 (eval "$lt_compile" 2>conftest.err)
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9114 if (exit $ac_status) && test -s "$ac_outfile"; then
9115 # The compiler can only warn and ignore the option if not recognized
9116 # So say no if there are warnings other than the usual output.
9117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9120 lt_cv_prog_compiler_pic_works=yes
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9127 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9129 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9130 case $lt_prog_compiler_pic in
9132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9135 lt_prog_compiler_pic=
9136 lt_prog_compiler_can_build_shared=no
9147 # Check to make sure the static flag actually works.
9149 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9151 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9152 if ${lt_cv_prog_compiler_static_works+:} false; then :
9153 $as_echo_n "(cached
) " >&6
9155 lt_cv_prog_compiler_static_works=no
9156 save_LDFLAGS="$LDFLAGS"
9157 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9158 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9159 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9160 # The linker can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 if test -s conftest.err; then
9163 # Append any errors to the config.log.
9164 cat conftest.err 1>&5
9165 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler_static_works=yes
9171 lt_cv_prog_compiler_static_works=yes
9175 LDFLAGS="$save_LDFLAGS"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9179 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9181 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9184 lt_prog_compiler_static=
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9194 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9195 if ${lt_cv_prog_compiler_c_o+:} false; then :
9196 $as_echo_n "(cached
) " >&6
9198 lt_cv_prog_compiler_c_o=no
9199 $RM -r conftest 2>/dev/null
9203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9205 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9206 # Insert the option either (1) after the last *FLAGS variable, or
9207 # (2) before a word containing "conftest.
", or (3) at the end.
9208 # Note that $ac_compile itself does not contain backslashes and begins
9209 # with a dollar sign (not a hyphen), so the echo should work correctly.
9210 lt_compile=`echo "$ac_compile" | $SED \
9211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213 -e 's:$: $lt_compiler_flag:'`
9214 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9215 (eval "$lt_compile" 2>out/conftest.err)
9217 cat out/conftest.err >&5
9218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9221 # The compiler can only warn and ignore the option if not recognized
9222 # So say no if there are warnings
9223 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9224 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9225 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9226 lt_cv_prog_compiler_c_o=yes
9231 # SGI C++ compiler will create directory out/ii_files/ for
9232 # template instantiation
9233 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9234 $RM out/* && rmdir out
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9249 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9250 if ${lt_cv_prog_compiler_c_o+:} false; then :
9251 $as_echo_n "(cached
) " >&6
9253 lt_cv_prog_compiler_c_o=no
9254 $RM -r conftest 2>/dev/null
9258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9260 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9261 # Insert the option either (1) after the last *FLAGS variable, or
9262 # (2) before a word containing "conftest.
", or (3) at the end.
9263 # Note that $ac_compile itself does not contain backslashes and begins
9264 # with a dollar sign (not a hyphen), so the echo should work correctly.
9265 lt_compile=`echo "$ac_compile" | $SED \
9266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268 -e 's:$: $lt_compiler_flag:'`
9269 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9270 (eval "$lt_compile" 2>out/conftest.err)
9272 cat out/conftest.err >&5
9273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9276 # The compiler can only warn and ignore the option if not recognized
9277 # So say no if there are warnings
9278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281 lt_cv_prog_compiler_c_o=yes
9286 # SGI C++ compiler will create directory out/ii_files/ for
9287 # template instantiation
9288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289 $RM out/* && rmdir out
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9296 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9301 hard_links="nottested
"
9302 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9303 # do not overwrite the value of need_locks provided by the user
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9305 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9308 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9310 ln conftest.a conftest.b 2>&5 || hard_links=no
9311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9313 $as_echo "$hard_links" >&6; }
9314 if test "$hard_links" = no; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9316 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9329 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9332 allow_undefined_flag=
9333 always_export_symbols=no
9335 archive_expsym_cmds=
9336 compiler_needs_object=no
9337 enable_shared_with_static_runtimes=no
9338 export_dynamic_flag_spec=
9339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9340 hardcode_automatic=no
9342 hardcode_direct_absolute=no
9343 hardcode_libdir_flag_spec=
9344 hardcode_libdir_flag_spec_ld=
9345 hardcode_libdir_separator=
9347 hardcode_shlibpath_var=unsupported
9349 link_all_deplibs=unknown
9352 old_archive_from_new_cmds=
9353 old_archive_from_expsyms_cmds=
9354 thread_safe_flag_spec=
9355 whole_archive_flag_spec=
9356 # include_expsyms should be a list of space-separated symbols to be *always*
9357 # included in the symbol list
9359 # exclude_expsyms can be an extended regexp of symbols to exclude
9360 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9361 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9362 # as well as any symbol that contains `d'.
9363 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9364 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9365 # platforms (ab)use it in PIC code, but their linkers get confused if
9366 # the symbol is explicitly referenced. Since portable code cannot
9367 # rely on this symbol name, it's probably fine to never include it in
9368 # preloaded symbol tables.
9369 # Exclude shared library initialization/finalization symbols.
9370 extract_expsyms_cmds=
9373 cygwin* | mingw* | pw32* | cegcc*)
9374 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9375 # When not using gcc, we currently assume that we are using
9376 # Microsoft Visual C++.
9377 if test "$GCC" != yes; then
9382 # we just hope/assume this is gcc and not c89 (= MSVC++)
9392 # On some targets, GNU ld is compatible enough with the native linker
9393 # that we're better off using the native interface for both.
9394 lt_use_gnu_ld_interface=no
9395 if test "$with_gnu_ld" = yes; then
9398 # The AIX port of GNU ld has always aspired to compatibility
9399 # with the native linker. However, as the warning in the GNU ld
9400 # block says, versions before 2.19.5* couldn't really create working
9401 # shared libraries, regardless of the interface used.
9402 case `$LD -v 2>&1` in
9403 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9404 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9405 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9407 lt_use_gnu_ld_interface=yes
9412 lt_use_gnu_ld_interface=yes
9417 if test "$lt_use_gnu_ld_interface" = yes; then
9418 # If archive_cmds runs LD, not CC, wlarc should be empty
9421 # Set some defaults for GNU ld with shared library support. These
9422 # are reset later if shared libraries are not supported. Putting them
9423 # here allows them to be overridden if necessary.
9424 runpath_var=LD_RUN_PATH
9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426 export_dynamic_flag_spec='${wl}--export-dynamic'
9427 # ancient GNU ld didn't support --whole-archive et. al.
9428 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9429 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9431 whole_archive_flag_spec=
9433 supports_anon_versioning=no
9434 case `$LD -v 2>&1` in
9435 *GNU\ gold*) supports_anon_versioning=yes ;;
9436 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9439 *\ 2.11.*) ;; # other 2.11 versions
9440 *) supports_anon_versioning=yes ;;
9443 # See if GNU ld supports shared libraries.
9446 # On AIX/PPC, the GNU linker is very broken
9447 if test "$host_cpu" != ia64; then
9451 *** Warning: the GNU linker, at least up to release 2.19, is reported
9452 *** to be unable to reliably create shared libraries on AIX.
9453 *** Therefore, libtool is disabling shared libraries support. If you
9454 *** really care for shared libraries, you may want to install binutils
9455 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9456 *** You will then need to restart the configuration process.
9465 # see comment about AmigaOS4 .so support
9466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467 archive_expsym_cmds=''
9470 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)'
9471 hardcode_libdir_flag_spec
='-L$libdir'
9472 hardcode_minus_L
=yes
9478 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9479 allow_undefined_flag
=unsupported
9480 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9481 # support --undefined. This deserves some investigation. FIXME
9482 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 cygwin
* | mingw
* | pw32
* | cegcc
*)
9489 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9490 # as there is no search path for DLLs.
9491 hardcode_libdir_flag_spec
='-L$libdir'
9492 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9493 allow_undefined_flag
=unsupported
9494 always_export_symbols
=no
9495 enable_shared_with_static_runtimes
=yes
9496 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9498 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9499 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9500 # If the export-symbols file already is a .def file (1st line
9501 # is EXPORTS), use it as is; otherwise, prepend...
9502 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9503 cp $export_symbols $output_objdir/$soname.def;
9505 echo EXPORTS > $output_objdir/$soname.def;
9506 cat $export_symbols >> $output_objdir/$soname.def;
9508 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516 link_all_deplibs
=yes
9521 hardcode_shlibpath_var
=no
9522 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9523 export_dynamic_flag_spec
='${wl}-E'
9524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9525 # Instead, shared libraries are loaded at an image base (0x10000000 by
9526 # default) and relocated if they conflict, which is a slow very memory
9527 # consuming and fragmenting process. To avoid this, we pick a random,
9528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9530 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9531 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'
9534 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9536 if test "$host_os" = linux-dietlibc
; then
9537 case $cc_basename in
9538 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9541 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9542 && test "$tmp_diet" = no
9544 tmp_addflag
=' $pic_flag'
9545 tmp_sharedflag
='-shared'
9546 case $cc_basename,$host_cpu in
9547 pgcc
*) # Portland Group C compiler
9548 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'
9549 tmp_addflag
=' $pic_flag'
9551 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9552 # Portland Group f77 and f90 compilers
9553 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'
9554 tmp_addflag
=' $pic_flag -Mnomain' ;;
9555 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9556 tmp_addflag
=' -i_dynamic' ;;
9557 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9558 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9559 ifc
* | ifort
*) # Intel Fortran compiler
9560 tmp_addflag
=' -nofor_main' ;;
9561 lf95
*) # Lahey Fortran 8.1
9562 whole_archive_flag_spec
=
9563 tmp_sharedflag
='--shared' ;;
9564 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9565 tmp_sharedflag
='-qmkshrobj'
9567 nvcc
*) # Cuda Compiler Driver 2.2
9568 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'
9569 compiler_needs_object
=yes
9572 case `$CC -V 2>&1 | sed 5q` in
9573 *Sun\ C
*) # Sun C 5.9
9574 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'
9575 compiler_needs_object
=yes
9576 tmp_sharedflag
='-G' ;;
9577 *Sun\ F
*) # Sun Fortran 8.3
9578 tmp_sharedflag
='-G' ;;
9580 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582 if test "x$supports_anon_versioning" = xyes
; then
9583 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9585 echo "local: *; };" >> $output_objdir/$libname.ver~
9586 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9589 case $cc_basename in
9590 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9591 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9592 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9593 hardcode_libdir_flag_spec
=
9594 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9595 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9596 if test "x$supports_anon_versioning" = xyes
; then
9597 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9599 echo "local: *; };" >> $output_objdir/$libname.ver~
9600 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9610 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9611 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9614 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9615 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9620 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9624 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9625 *** create shared libraries on Solaris systems. Therefore, libtool
9626 *** is disabling shared libraries support. We urge you to upgrade GNU
9627 *** binutils to release 2.9.1 or newer. Another option is to modify
9628 *** your PATH or compiler configuration so that the native linker is
9629 *** used, and then restart.
9632 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9633 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9640 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9641 case `$LD -v 2>&1` in
9642 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9646 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9647 *** reliably create shared libraries on SCO systems. Therefore, libtool
9648 *** is disabling shared libraries support. We urge you to upgrade GNU
9649 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9650 *** your PATH or compiler configuration so that the native linker is
9651 *** used, and then restart.
9656 # For security reasons, it is highly recommended that you always
9657 # use absolute paths for naming shared libraries, and exclude the
9658 # DT_RUNPATH tag from executables and libraries. But doing so
9659 # requires that you compile everything twice, which is a pain.
9660 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9661 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9662 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9672 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_shlibpath_var
=no
9679 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9680 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9688 if test "$ld_shlibs" = no
; then
9690 hardcode_libdir_flag_spec
=
9691 export_dynamic_flag_spec
=
9692 whole_archive_flag_spec
=
9695 # PORTME fill in a description of your system's linker (not GNU ld)
9698 allow_undefined_flag
=unsupported
9699 always_export_symbols
=yes
9700 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'
9701 # Note: this linker hardcodes the directories in LIBPATH if there
9702 # are no directories specified by -L.
9703 hardcode_minus_L
=yes
9704 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9705 # Neither direct hardcoding nor static linking is supported with a
9707 hardcode_direct
=unsupported
9712 if test "$host_cpu" = ia64
; then
9713 # On IA64, the linker does run time linking by default, so we don't
9714 # have to do anything special.
9715 aix_use_runtimelinking
=no
9716 exp_sym_flag
='-Bexport'
9719 # If we're using GNU nm, then we don't want the "-C" option.
9720 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9721 # Also, AIX nm treats weak defined symbols like other global
9722 # defined symbols, whereas GNU nm marks them as "W".
9723 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9724 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'
9726 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9728 aix_use_runtimelinking
=no
9730 # Test if we are trying to use run time linking or normal
9731 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9732 # need to do runtime linking.
9733 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9734 for ld_flag
in $LDFLAGS; do
9735 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9736 aix_use_runtimelinking
=yes
9743 exp_sym_flag
='-bexport'
9744 no_entry_flag
='-bnoentry'
9747 # When large executables or shared objects are built, AIX ld can
9748 # have problems creating the table of contents. If linking a library
9749 # or program results in "error TOC overflow" add -mminimal-toc to
9750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9755 hardcode_direct_absolute
=yes
9756 hardcode_libdir_separator
=':'
9757 link_all_deplibs
=yes
9758 file_list_spec
='${wl}-f,'
9760 if test "$GCC" = yes; then
9761 case $host_os in aix4.
[012]|aix4.
[012].
*)
9762 # We only want to do this on AIX 4.2 and lower, the check
9763 # below for broken collect2 doesn't work under 4.3+
9764 collect2name
=`${CC} -print-prog-name=collect2`
9765 if test -f "$collect2name" &&
9766 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9768 # We have reworked collect2
9771 # We have old collect2
9772 hardcode_direct
=unsupported
9773 # It fails to find uninstalled libraries when the uninstalled
9774 # path is not listed in the libpath. Setting hardcode_minus_L
9775 # to unsupported forces relinking
9776 hardcode_minus_L
=yes
9777 hardcode_libdir_flag_spec
='-L$libdir'
9778 hardcode_libdir_separator
=
9782 shared_flag
='-shared'
9783 if test "$aix_use_runtimelinking" = yes; then
9784 shared_flag
="$shared_flag "'${wl}-G'
9788 if test "$host_cpu" = ia64
; then
9789 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9790 # chokes on -Wl,-G. The following line is correct:
9793 if test "$aix_use_runtimelinking" = yes; then
9794 shared_flag
='${wl}-G'
9796 shared_flag
='${wl}-bM:SRE'
9801 export_dynamic_flag_spec
='${wl}-bexpall'
9802 # It seems that -bexpall does not export symbols beginning with
9803 # underscore (_), so it is better to generate a list of symbols to export.
9804 always_export_symbols
=yes
9805 if test "$aix_use_runtimelinking" = yes; then
9806 # Warning - without using the other runtime loading flags (-brtl),
9807 # -berok will link without error, but may produce a broken library.
9808 allow_undefined_flag
='-berok'
9809 # Determine the default libpath from the value encoded in an
9811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9822 if ac_fn_c_try_link
"$LINENO"; then :
9824 lt_aix_libpath_sed
='
9825 /Import File Strings/,/^$/ {
9831 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9832 # Check for a 64-bit object if we didn't find anything.
9833 if test -z "$aix_libpath"; then
9834 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9837 rm -f core conftest.err conftest.
$ac_objext \
9838 conftest
$ac_exeext conftest.
$ac_ext
9839 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9841 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9842 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"
9844 if test "$host_cpu" = ia64
; then
9845 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9846 allow_undefined_flag
="-z nodefs"
9847 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"
9849 # Determine the default libpath from the value encoded in an
9851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9862 if ac_fn_c_try_link
"$LINENO"; then :
9864 lt_aix_libpath_sed
='
9865 /Import File Strings/,/^$/ {
9871 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872 # Check for a 64-bit object if we didn't find anything.
9873 if test -z "$aix_libpath"; then
9874 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 rm -f core conftest.err conftest.
$ac_objext \
9878 conftest
$ac_exeext conftest.
$ac_ext
9879 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9881 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9882 # Warning - without using the other run time loading flags,
9883 # -berok will link without error, but may produce a broken library.
9884 no_undefined_flag
=' ${wl}-bernotok'
9885 allow_undefined_flag
=' ${wl}-berok'
9886 if test "$with_gnu_ld" = yes; then
9887 # We only use this code for GNU lds that support --whole-archive.
9888 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9890 # Exported symbols can be pulled into shared objects from archives
9891 whole_archive_flag_spec
='$convenience'
9893 archive_cmds_need_lc
=yes
9894 # This is similar to how AIX traditionally builds its shared libraries.
9895 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'
9903 # see comment about AmigaOS4 .so support
9904 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9905 archive_expsym_cmds
=''
9908 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)'
9909 hardcode_libdir_flag_spec
='-L$libdir'
9910 hardcode_minus_L
=yes
9916 export_dynamic_flag_spec
=-rdynamic
9919 cygwin
* | mingw
* | pw32
* | cegcc
*)
9920 # When not using gcc, we currently assume that we are using
9921 # Microsoft Visual C++.
9922 # hardcode_libdir_flag_spec is actually meaningless, as there is
9923 # no search path for DLLs.
9924 hardcode_libdir_flag_spec
=' '
9925 allow_undefined_flag
=unsupported
9926 # Tell ltmain to make .lib files, not .a files.
9928 # Tell ltmain to make .dll files, not .so files.
9930 # FIXME: Setting linknames here is a bad hack.
9931 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9932 # The linker will automatically build a .lib file if we build a DLL.
9933 old_archive_from_new_cmds
='true'
9934 # FIXME: Should let the user specify the lib program.
9935 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9936 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9937 enable_shared_with_static_runtimes
=yes
9940 darwin
* | rhapsody
*)
9943 archive_cmds_need_lc
=no
9945 hardcode_automatic
=yes
9946 hardcode_shlibpath_var
=unsupported
9947 if test "$lt_cv_ld_force_load" = "yes"; then
9948 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\"`'
9950 whole_archive_flag_spec
=''
9952 link_all_deplibs
=yes
9953 allow_undefined_flag
="$_lt_dar_allow_undefined"
9954 case $cc_basename in
9955 ifort
*) _lt_dar_can_shared
=yes ;;
9956 *) _lt_dar_can_shared
=$GCC ;;
9958 if test "$_lt_dar_can_shared" = "yes"; then
9959 output_verbose_link_cmd
=func_echo_all
9960 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9961 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9962 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}"
9963 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}"
9972 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9973 hardcode_libdir_flag_spec
='-L$libdir'
9974 hardcode_shlibpath_var
=no
9977 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9978 # support. Future versions do this automatically, but an explicit c++rt0.o
9979 # does not break anything, and helps significantly (at the cost of a little
9982 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9983 hardcode_libdir_flag_spec
='-R$libdir'
9985 hardcode_shlibpath_var
=no
9988 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9990 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 hardcode_minus_L
=yes
9993 hardcode_shlibpath_var
=no
9996 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9997 freebsd
* | dragonfly
*)
9998 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9999 hardcode_libdir_flag_spec
='-R$libdir'
10000 hardcode_direct
=yes
10001 hardcode_shlibpath_var
=no
10005 if test "$GCC" = yes; then
10006 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'
10008 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'
10010 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10011 hardcode_libdir_separator
=:
10012 hardcode_direct
=yes
10014 # hardcode_minus_L: Not really in the search PATH,
10015 # but as the default location of the library.
10016 hardcode_minus_L
=yes
10017 export_dynamic_flag_spec
='${wl}-E'
10021 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10022 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10026 if test "$with_gnu_ld" = no
; then
10027 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10028 hardcode_libdir_flag_spec_ld
='+b $libdir'
10029 hardcode_libdir_separator
=:
10030 hardcode_direct
=yes
10031 hardcode_direct_absolute
=yes
10032 export_dynamic_flag_spec
='${wl}-E'
10033 # hardcode_minus_L: Not really in the search PATH,
10034 # but as the default location of the library.
10035 hardcode_minus_L
=yes
10040 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10043 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10062 # Older versions of the 11.00 compiler do not understand -b yet
10063 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10065 $as_echo_n "checking if $CC understands -b... " >&6; }
10066 if ${lt_cv_prog_compiler__b+:} false
; then :
10067 $as_echo_n "(cached) " >&6
10069 lt_cv_prog_compiler__b
=no
10070 save_LDFLAGS
="$LDFLAGS"
10071 LDFLAGS
="$LDFLAGS -b"
10072 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10073 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10074 # The linker can only warn and ignore the option if not recognized
10075 # So say no if there are warnings
10076 if test -s conftest.err
; then
10077 # Append any errors to the config.log.
10078 cat conftest.err
1>&5
10079 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10080 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10081 if diff conftest.exp conftest.er2
>/dev
/null
; then
10082 lt_cv_prog_compiler__b
=yes
10085 lt_cv_prog_compiler__b
=yes
10089 LDFLAGS
="$save_LDFLAGS"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10093 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10095 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10096 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10104 if test "$with_gnu_ld" = no
; then
10105 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10106 hardcode_libdir_separator
=:
10111 hardcode_shlibpath_var
=no
10114 hardcode_direct
=yes
10115 hardcode_direct_absolute
=yes
10116 export_dynamic_flag_spec
='${wl}-E'
10118 # hardcode_minus_L: Not really in the search PATH,
10119 # but as the default location of the library.
10120 hardcode_minus_L
=yes
10126 irix5
* | irix6
* | nonstopux
*)
10127 if test "$GCC" = yes; then
10128 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'
10129 # Try to use the -exported_symbol ld option, if it does not
10130 # work, assume that -exports_file does not work either and
10131 # implicitly export all symbols.
10132 save_LDFLAGS
="$LDFLAGS"
10133 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10138 if ac_fn_c_try_link
"$LINENO"; then :
10139 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'
10142 rm -f core conftest.err conftest.
$ac_objext \
10143 conftest
$ac_exeext conftest.
$ac_ext
10144 LDFLAGS
="$save_LDFLAGS"
10146 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'
10147 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'
10149 archive_cmds_need_lc
='no'
10150 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10151 hardcode_libdir_separator
=:
10153 link_all_deplibs
=yes
10157 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10158 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10160 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10162 hardcode_libdir_flag_spec
='-R$libdir'
10163 hardcode_direct
=yes
10164 hardcode_shlibpath_var
=no
10168 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_direct
=yes
10170 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10171 hardcode_libdir_separator
=:
10172 hardcode_shlibpath_var
=no
10179 if test -f /usr
/libexec
/ld.so
; then
10180 hardcode_direct
=yes
10181 hardcode_shlibpath_var
=no
10182 hardcode_direct_absolute
=yes
10183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10184 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10186 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10187 export_dynamic_flag_spec
='${wl}-E'
10190 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10191 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_libdir_flag_spec
='-R$libdir'
10195 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10206 hardcode_libdir_flag_spec
='-L$libdir'
10207 hardcode_minus_L
=yes
10208 allow_undefined_flag
=unsupported
10209 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'
10210 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10214 if test "$GCC" = yes; then
10215 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10216 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'
10218 allow_undefined_flag
=' -expect_unresolved \*'
10219 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'
10221 archive_cmds_need_lc
='no'
10222 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10223 hardcode_libdir_separator
=:
10226 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10227 if test "$GCC" = yes; then
10228 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10229 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'
10230 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10232 allow_undefined_flag
=' -expect_unresolved \*'
10233 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'
10234 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~
10235 $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'
10237 # Both c and cxx compiler support -rpath directly
10238 hardcode_libdir_flag_spec
='-rpath $libdir'
10240 archive_cmds_need_lc
='no'
10241 hardcode_libdir_separator
=:
10245 no_undefined_flag
=' -z defs'
10246 if test "$GCC" = yes; then
10248 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10249 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10250 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10252 case `$CC -V 2>&1` in
10255 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10261 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10263 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10267 hardcode_libdir_flag_spec
='-R$libdir'
10268 hardcode_shlibpath_var
=no
10270 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10272 # The compiler driver will combine and reorder linker options,
10273 # but understands `-z linker_flag'. GCC discards it without `$wl',
10274 # but is careful enough not to reorder.
10275 # Supported since Solaris 2.6 (maybe 2.5.1?)
10276 if test "$GCC" = yes; then
10277 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10279 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10283 link_all_deplibs
=yes
10287 if test "x$host_vendor" = xsequent
; then
10288 # Use $CC to link under sequent, because it throws in some extra .o
10289 # files that make .init and .fini sections work.
10290 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec
='-L$libdir'
10295 hardcode_direct
=yes
10296 hardcode_minus_L
=yes
10297 hardcode_shlibpath_var
=no
10301 case $host_vendor in
10303 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct
=yes # is this really true???
10307 ## LD is ld it makes a PLAMLIB
10308 ## CC just makes a GrossModule.
10309 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10310 reload_cmds
='$CC -r -o $output$reload_objs'
10314 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10318 runpath_var
='LD_RUN_PATH'
10319 hardcode_shlibpath_var
=no
10323 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10324 hardcode_shlibpath_var
=no
10325 export_dynamic_flag_spec
='-Bexport'
10329 if test -d /usr
/nec
; then
10330 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_shlibpath_var
=no
10332 runpath_var
=LD_RUN_PATH
10333 hardcode_runpath_var
=yes
10338 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10339 no_undefined_flag
='${wl}-z,text'
10340 archive_cmds_need_lc
=no
10341 hardcode_shlibpath_var
=no
10342 runpath_var
='LD_RUN_PATH'
10344 if test "$GCC" = yes; then
10345 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 sysv5
* | sco3.2v5
* | sco5v6
*)
10354 # Note: We can NOT use -z defs as we might desire, because we do not
10355 # link with -lc, and that would cause any symbols used from libc to
10356 # always be unresolved, which means just about no library would
10357 # ever link correctly. If we're not using GNU ld we use -z text
10358 # though, which does catch some bad symbols but isn't as heavy-handed
10360 no_undefined_flag
='${wl}-z,text'
10361 allow_undefined_flag
='${wl}-z,nodefs'
10362 archive_cmds_need_lc
=no
10363 hardcode_shlibpath_var
=no
10364 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10365 hardcode_libdir_separator
=':'
10366 link_all_deplibs
=yes
10367 export_dynamic_flag_spec
='${wl}-Bexport'
10368 runpath_var
='LD_RUN_PATH'
10370 if test "$GCC" = yes; then
10371 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_libdir_flag_spec
='-L$libdir'
10382 hardcode_shlibpath_var
=no
10390 if test x
$host_vendor = xsni
; then
10392 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10393 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10400 $as_echo "$ld_shlibs" >&6; }
10401 test "$ld_shlibs" = no
&& can_build_shared
=no
10403 with_gnu_ld
=$with_gnu_ld
10420 # Do we need to explicitly link libc?
10422 case "x$archive_cmds_need_lc" in
10424 # Assume -lc should be added
10425 archive_cmds_need_lc
=yes
10427 if test "$enable_shared" = yes && test "$GCC" = yes; then
10428 case $archive_cmds in
10430 # FIXME: we may have to deal with multi-command sequences.
10433 # Test whether the compiler implicitly links with -lc since on some
10434 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10435 # to ld, don't add -lc before -lgcc.
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10437 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10438 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10439 $as_echo_n "(cached) " >&6
10442 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10445 (eval $ac_compile) 2>&5
10447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; } 2>conftest.err
; then
10451 libobjs
=conftest.
$ac_objext
10453 wl
=$lt_prog_compiler_wl
10454 pic_flag
=$lt_prog_compiler_pic
10460 lt_save_allow_undefined_flag
=$allow_undefined_flag
10461 allow_undefined_flag
=
10462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10463 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10466 test $ac_status = 0; }
10468 lt_cv_archive_cmds_need_lc
=no
10470 lt_cv_archive_cmds_need_lc
=yes
10472 allow_undefined_flag
=$lt_save_allow_undefined_flag
10474 cat conftest.err
1>&5
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10480 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10481 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10645 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10647 if test "$GCC" = yes; then
10649 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10650 *) lt_awk_arg
="/^libraries:/" ;;
10653 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10654 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10656 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10657 case $lt_search_path_spec in
10659 # if the path contains ";" then we assume it to be the separator
10660 # otherwise default to the standard path separator (i.e. ":") - it is
10661 # assumed that no part of a normal pathname contains ";" but that should
10662 # okay in the real world where ";" in dirpaths is itself problematic.
10663 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10666 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10669 # Ok, now we have the path, separated by spaces, we can step through it
10670 # and add multilib dir if necessary.
10671 lt_tmp_lt_search_path_spec
=
10672 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10673 for lt_sys_path
in $lt_search_path_spec; do
10674 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10675 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10677 test -d "$lt_sys_path" && \
10678 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10681 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10682 BEGIN {RS=" "; FS="/|\n";} {
10685 for (lt_i = NF; lt_i > 0; lt_i--) {
10686 if ($lt_i != "" && $lt_i != ".") {
10687 if ($lt_i == "..") {
10690 if (lt_count == 0) {
10691 lt_foo="/" $lt_i lt_foo;
10698 if (lt_foo != "") { lt_freq[lt_foo]++; }
10699 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10701 # AWK program above erroneously prepends '/' to C:/dos/paths
10704 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10705 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10707 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10709 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10711 library_names_spec
=
10712 libname_spec
='lib$name'
10716 postuninstall_cmds
=
10720 shlibpath_overrides_runpath
=unknown
10722 dynamic_linker
="$host_os ld.so"
10723 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10724 need_lib_prefix
=unknown
10725 hardcode_into_libs
=no
10727 # when you set need_version to no, make sure it does not cause -set_version
10728 # flags to be left without arguments
10729 need_version
=unknown
10734 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10735 shlibpath_var
=LIBPATH
10737 # AIX 3 has no versioning support, so we append a major version to the name.
10738 soname_spec
='${libname}${release}${shared_ext}$major'
10745 hardcode_into_libs
=yes
10746 if test "$host_cpu" = ia64
; then
10747 # AIX 5 supports IA64
10748 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10749 shlibpath_var
=LD_LIBRARY_PATH
10751 # With GCC up to 2.95.x, collect2 would create an import file
10752 # for dependence libraries. The import file would start with
10753 # the line `#! .'. This would cause the generated library to
10754 # depend on `.', always an invalid library. This was fixed in
10755 # development snapshots of GCC prior to 3.0.
10757 aix4 | aix4.
[01] | aix4.
[01].
*)
10758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10760 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10763 can_build_shared
=no
10767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10768 # soname into executable. Probably we can add versioning support to
10769 # collect2, so additional links can be useful in future.
10770 if test "$aix_use_runtimelinking" = yes; then
10771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10772 # instead of lib<name>.a to let people know that these are not
10773 # typical AIX shared libraries.
10774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 # We preserve .a as extension for shared libraries through AIX4.2
10777 # and later when we are not doing run time linking.
10778 library_names_spec
='${libname}${release}.a $libname.a'
10779 soname_spec
='${libname}${release}${shared_ext}$major'
10781 shlibpath_var
=LIBPATH
10788 # Since July 2007 AmigaOS4 officially supports .so libraries.
10789 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 library_names_spec
='$libname.ixlibrary $libname.a'
10794 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10795 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'
10801 library_names_spec
='${libname}${shared_ext}'
10802 dynamic_linker
="$host_os ld.so"
10803 shlibpath_var
=LIBRARY_PATH
10809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec
='${libname}${release}${shared_ext}$major'
10811 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10812 shlibpath_var
=LD_LIBRARY_PATH
10813 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10814 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10815 # the default ld.so.conf also contains /usr/contrib/lib and
10816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10817 # libtool to hard-code these into programs
10820 cygwin
* | mingw
* | pw32
* | cegcc
*)
10821 version_type
=windows
10826 case $GCC,$host_os in
10827 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10828 library_names_spec
='$libname.dll.a'
10829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10830 postinstall_cmds
='base_file=`basename \${file}`~
10831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10832 dldir=$destdir/`dirname \$dlpath`~
10833 test -d \$dldir || mkdir -p \$dldir~
10834 $install_prog $dir/$dlname \$dldir/$dlname~
10835 chmod a+x \$dldir/$dlname~
10836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10839 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10840 dlpath=$dir/\$dldll~
10842 shlibpath_overrides_runpath
=yes
10846 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10847 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10849 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10852 # MinGW DLLs use traditional 'lib' prefix
10853 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10856 # pw32 DLLs use 'pw' prefix rather than 'lib'
10857 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10863 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10866 dynamic_linker
='Win32 ld.exe'
10867 # FIXME: first we should search . and the directory the executable is in
10871 darwin
* | rhapsody
*)
10872 dynamic_linker
="$host_os dyld"
10873 version_type
=darwin
10876 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10877 soname_spec
='${libname}${release}${major}$shared_ext'
10878 shlibpath_overrides_runpath
=yes
10879 shlibpath_var
=DYLD_LIBRARY_PATH
10880 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10882 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10883 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10891 soname_spec
='${libname}${release}${shared_ext}$major'
10892 shlibpath_var
=LD_LIBRARY_PATH
10895 freebsd
* | dragonfly
*)
10896 # DragonFly does not have aout. When/if they implement a new
10897 # versioning mechanism, adjust this.
10898 if test -x /usr
/bin
/objformat
; then
10899 objformat
=`/usr/bin/objformat`
10902 freebsd
[23].
*) objformat
=aout
;;
10903 *) objformat
=elf
;;
10906 version_type
=freebsd-
$objformat
10907 case $version_type in
10909 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10914 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10918 shlibpath_var
=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath
=yes
10923 freebsd3.
[01]* | freebsdelf3.
[01]*)
10924 shlibpath_overrides_runpath
=yes
10925 hardcode_into_libs
=yes
10927 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10928 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10929 shlibpath_overrides_runpath
=no
10930 hardcode_into_libs
=yes
10932 *) # from 4.6 on, and DragonFly
10933 shlibpath_overrides_runpath
=yes
10934 hardcode_into_libs
=yes
10943 dynamic_linker
="$host_os runtime_loader"
10944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10945 soname_spec
='${libname}${release}${shared_ext}$major'
10946 shlibpath_var
=LIBRARY_PATH
10947 shlibpath_overrides_runpath
=yes
10948 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10949 hardcode_into_libs
=yes
10952 hpux9
* | hpux10
* | hpux11
*)
10953 # Give a soname corresponding to the major version so that dld.sl refuses to
10954 # link against other versions.
10961 hardcode_into_libs
=yes
10962 dynamic_linker
="$host_os dld.so"
10963 shlibpath_var
=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10965 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec
='${libname}${release}${shared_ext}$major'
10967 if test "X$HPUX_IA64_MODE" = X32
; then
10968 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10970 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10972 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10976 hardcode_into_libs
=yes
10977 dynamic_linker
="$host_os dld.sl"
10978 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10979 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10980 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec
='${libname}${release}${shared_ext}$major'
10982 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10983 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10987 dynamic_linker
="$host_os dld.sl"
10988 shlibpath_var
=SHLIB_PATH
10989 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10990 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec
='${libname}${release}${shared_ext}$major'
10994 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10995 postinstall_cmds
='chmod 555 $lib'
10996 # or fails outright, so override atomically:
10997 install_override_mode
=555
11004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11005 soname_spec
='${libname}${release}${shared_ext}$major'
11006 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11007 shlibpath_var
=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath
=no
11009 hardcode_into_libs
=yes
11012 irix5
* | irix6
* | nonstopux
*)
11014 nonstopux
*) version_type
=nonstopux
;;
11016 if test "$lt_cv_prog_gnu_ld" = yes; then
11024 soname_spec
='${libname}${release}${shared_ext}$major'
11025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11027 irix5
* | nonstopux
*)
11028 libsuff
= shlibsuff
=
11031 case $LD in # libtool.m4 will add one of these switches to LD
11032 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11033 libsuff
= shlibsuff
= libmagic
=32-bit;;
11034 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11035 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11036 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11037 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11038 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11042 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11043 shlibpath_overrides_runpath
=no
11044 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11045 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11046 hardcode_into_libs
=yes
11049 # No shared lib support for Linux oldld, aout, or coff.
11050 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11054 # This must be Linux ELF.
11056 # uclinux* changes (here and below) have been submitted to the libtool
11057 # project, but have not yet been accepted: they are GCC-local changes
11058 # for the time being. (See
11059 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11060 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
11064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 soname_spec
='${libname}${release}${shared_ext}$major'
11066 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11067 shlibpath_var
=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath
=no
11070 # Some binutils ld are patched to set DT_RUNPATH
11071 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11072 $as_echo_n "(cached) " >&6
11074 lt_cv_shlibpath_overrides_runpath
=no
11075 save_LDFLAGS
=$LDFLAGS
11076 save_libdir
=$libdir
11077 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11078 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11090 if ac_fn_c_try_link
"$LINENO"; then :
11091 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11092 lt_cv_shlibpath_overrides_runpath
=yes
11095 rm -f core conftest.err conftest.
$ac_objext \
11096 conftest
$ac_exeext conftest.
$ac_ext
11097 LDFLAGS
=$save_LDFLAGS
11098 libdir
=$save_libdir
11102 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11104 # This implies no fast_install, which is unacceptable.
11105 # Some rework will be needed to allow for fast_install
11106 # before this can be enabled.
11107 hardcode_into_libs
=yes
11109 # Append ld.so.conf contents to the search path
11110 if test -f /etc
/ld.so.conf
; then
11111 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' ' '`
11112 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11115 # We used to test for /lib/ld.so.1 and disable shared libraries on
11116 # powerpc, because MkLinux only supported shared libraries with the
11117 # GNU dynamic linker. Since this was broken with cross compilers,
11118 # most powerpc-linux boxes support dynamic linking these days and
11119 # people can always --disable-shared, the test was removed, and we
11120 # assume the GNU/Linux dynamic linker is in use.
11121 dynamic_linker
='GNU/Linux ld.so'
11128 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11130 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11131 dynamic_linker
='NetBSD (a.out) ld.so'
11133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11134 soname_spec
='${libname}${release}${shared_ext}$major'
11135 dynamic_linker
='NetBSD ld.elf_so'
11137 shlibpath_var
=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath
=yes
11139 hardcode_into_libs
=yes
11144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145 shlibpath_var
=LD_LIBRARY_PATH
11146 shlibpath_overrides_runpath
=yes
11153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 soname_spec
='${libname}${release}${shared_ext}$major'
11155 shlibpath_var
=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath
=no
11157 hardcode_into_libs
=yes
11158 dynamic_linker
='ldqnx.so'
11163 sys_lib_dlsearch_path_spec
="/usr/lib"
11165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11167 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11168 *) need_version
=no
;;
11170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11171 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11172 shlibpath_var
=LD_LIBRARY_PATH
11173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11175 openbsd2.
[89] | openbsd2.
[89].
*)
11176 shlibpath_overrides_runpath
=no
11179 shlibpath_overrides_runpath
=yes
11183 shlibpath_overrides_runpath
=yes
11188 libname_spec
='$name'
11191 library_names_spec
='$libname${shared_ext} $libname.a'
11192 dynamic_linker
='OS/2 ld.exe'
11193 shlibpath_var
=LIBPATH
11196 osf3
* | osf4
* | osf5
*)
11200 soname_spec
='${libname}${release}${shared_ext}$major'
11201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 shlibpath_var
=LD_LIBRARY_PATH
11203 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11204 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 soname_spec
='${libname}${release}${shared_ext}$major'
11217 shlibpath_var
=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath
=yes
11219 hardcode_into_libs
=yes
11220 # ldd complains unless libraries are executable
11221 postinstall_cmds
='chmod +x $lib'
11226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11227 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11228 shlibpath_var
=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath
=yes
11230 if test "$with_gnu_ld" = yes; then
11238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239 soname_spec
='${libname}${release}${shared_ext}$major'
11240 shlibpath_var
=LD_LIBRARY_PATH
11241 case $host_vendor in
11243 shlibpath_overrides_runpath
=no
11245 runpath_var
=LD_RUN_PATH
11253 shlibpath_overrides_runpath
=no
11254 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11260 if test -d /usr
/nec
;then
11262 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11263 soname_spec
='$libname${shared_ext}.$major'
11264 shlibpath_var
=LD_LIBRARY_PATH
11268 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11269 version_type
=freebsd-elf
11272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11273 soname_spec
='${libname}${release}${shared_ext}$major'
11274 shlibpath_var
=LD_LIBRARY_PATH
11275 shlibpath_overrides_runpath
=yes
11276 hardcode_into_libs
=yes
11277 if test "$with_gnu_ld" = yes; then
11278 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11280 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11283 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11287 sys_lib_dlsearch_path_spec
='/usr/lib'
11291 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 shlibpath_var
=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath
=no
11298 hardcode_into_libs
=yes
11303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec
='${libname}${release}${shared_ext}$major'
11305 shlibpath_var
=LD_LIBRARY_PATH
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11313 $as_echo "$dynamic_linker" >&6; }
11314 test "$dynamic_linker" = no
&& can_build_shared
=no
11316 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11317 if test "$GCC" = yes; then
11318 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11321 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11322 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11324 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11325 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11422 if test -n "$hardcode_libdir_flag_spec" ||
11423 test -n "$runpath_var" ||
11424 test "X$hardcode_automatic" = "Xyes" ; then
11426 # We can hardcode non-existent directories.
11427 if test "$hardcode_direct" != no
&&
11428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11429 # have to relink, otherwise we might link with an installed library
11430 # when we should be linking with a yet-to-be-installed one
11431 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11432 test "$hardcode_minus_L" != no
; then
11433 # Linking always hardcodes the temporary library directory.
11434 hardcode_action
=relink
11436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11437 hardcode_action
=immediate
11440 # We cannot hardcode anything, or else we can only hardcode existing
11442 hardcode_action
=unsupported
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11445 $as_echo "$hardcode_action" >&6; }
11447 if test "$hardcode_action" = relink ||
11448 test "$inherit_rpath" = yes; then
11449 # Fast installation is not supported
11450 enable_fast_install
=no
11451 elif test "$shlibpath_overrides_runpath" = yes ||
11452 test "$enable_shared" = no
; then
11453 # Fast installation is not necessary
11454 enable_fast_install
=needless
11462 if test "x$enable_dlopen" != xyes
; then
11463 enable_dlopen
=unknown
11464 enable_dlopen_self
=unknown
11465 enable_dlopen_self_static
=unknown
11472 lt_cv_dlopen
="load_add_on"
11474 lt_cv_dlopen_self
=yes
11477 mingw
* | pw32
* | cegcc
*)
11478 lt_cv_dlopen
="LoadLibrary"
11483 lt_cv_dlopen
="dlopen"
11488 # if libdl is installed we need to link against it
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11491 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11492 $as_echo_n "(cached) " >&6
11494 ac_check_lib_save_LIBS
=$LIBS
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11514 if ac_fn_c_try_link
"$LINENO"; then :
11515 ac_cv_lib_dl_dlopen
=yes
11517 ac_cv_lib_dl_dlopen
=no
11519 rm -f core conftest.err conftest.
$ac_objext \
11520 conftest
$ac_exeext conftest.
$ac_ext
11521 LIBS
=$ac_check_lib_save_LIBS
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11525 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11526 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11529 lt_cv_dlopen
="dyld"
11531 lt_cv_dlopen_self
=yes
11538 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11539 if test "x$ac_cv_func_shl_load" = xyes
; then :
11540 lt_cv_dlopen
="shl_load"
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11543 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11544 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11545 $as_echo_n "(cached) " >&6
11547 ac_check_lib_save_LIBS
=$LIBS
11549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11562 return shl_load ();
11567 if ac_fn_c_try_link
"$LINENO"; then :
11568 ac_cv_lib_dld_shl_load
=yes
11570 ac_cv_lib_dld_shl_load
=no
11572 rm -f core conftest.err conftest.
$ac_objext \
11573 conftest
$ac_exeext conftest.
$ac_ext
11574 LIBS
=$ac_check_lib_save_LIBS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11577 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11578 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11579 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11581 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11582 if test "x$ac_cv_func_dlopen" = xyes
; then :
11583 lt_cv_dlopen
="dlopen"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11586 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11587 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11588 $as_echo_n "(cached) " >&6
11590 ac_check_lib_save_LIBS
=$LIBS
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11610 if ac_fn_c_try_link
"$LINENO"; then :
11611 ac_cv_lib_dl_dlopen
=yes
11613 ac_cv_lib_dl_dlopen
=no
11615 rm -f core conftest.err conftest.
$ac_objext \
11616 conftest
$ac_exeext conftest.
$ac_ext
11617 LIBS
=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11621 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11622 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11625 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11626 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11627 $as_echo_n "(cached) " >&6
11629 ac_check_lib_save_LIBS
=$LIBS
11630 LIBS
="-lsvld $LIBS"
11631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11649 if ac_fn_c_try_link
"$LINENO"; then :
11650 ac_cv_lib_svld_dlopen
=yes
11652 ac_cv_lib_svld_dlopen
=no
11654 rm -f core conftest.err conftest.
$ac_objext \
11655 conftest
$ac_exeext conftest.
$ac_ext
11656 LIBS
=$ac_check_lib_save_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11659 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11660 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11661 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11664 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11665 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11666 $as_echo_n "(cached) " >&6
11668 ac_check_lib_save_LIBS
=$LIBS
11670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 /* Override any GCC internal prototype to avoid an error.
11674 Use char because int might match the return type of a GCC
11675 builtin and then its argument prototype would still apply. */
11683 return dld_link ();
11688 if ac_fn_c_try_link
"$LINENO"; then :
11689 ac_cv_lib_dld_dld_link
=yes
11691 ac_cv_lib_dld_dld_link
=no
11693 rm -f core conftest.err conftest.
$ac_objext \
11694 conftest
$ac_exeext conftest.
$ac_ext
11695 LIBS
=$ac_check_lib_save_LIBS
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11698 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11699 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11700 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11721 if test "x$lt_cv_dlopen" != xno
; then
11727 case $lt_cv_dlopen in
11729 save_CPPFLAGS
="$CPPFLAGS"
11730 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11732 save_LDFLAGS
="$LDFLAGS"
11733 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11736 LIBS
="$lt_cv_dlopen_libs $LIBS"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11739 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11740 if ${lt_cv_dlopen_self+:} false
; then :
11741 $as_echo_n "(cached) " >&6
11743 if test "$cross_compiling" = yes; then :
11744 lt_cv_dlopen_self
=cross
11746 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11747 lt_status
=$lt_dlunknown
11748 cat > conftest.
$ac_ext <<_LT_EOF
11749 #line 11759 "configure"
11750 #include "confdefs.h"
11759 # define LT_DLGLOBAL RTLD_GLOBAL
11762 # define LT_DLGLOBAL DL_GLOBAL
11764 # define LT_DLGLOBAL 0
11768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11769 find out it does not work in some platform. */
11770 #ifndef LT_DLLAZY_OR_NOW
11772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11775 # define LT_DLLAZY_OR_NOW DL_LAZY
11778 # define LT_DLLAZY_OR_NOW RTLD_NOW
11781 # define LT_DLLAZY_OR_NOW DL_NOW
11783 # define LT_DLLAZY_OR_NOW 0
11790 /* When -fvisbility=hidden is used, assume the code has been annotated
11791 correspondingly for the symbols needed. */
11792 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11793 void fnord () __attribute__((visibility("default")));
11796 void fnord () { int i=42; }
11799 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11800 int status = $lt_dlunknown;
11804 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11807 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11808 else puts (dlerror ());
11810 /* dlclose (self); */
11818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11819 (eval $ac_link) 2>&5
11821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11822 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11823 (.
/conftest
; exit; ) >&5 2>/dev
/null
11825 case x
$lt_status in
11826 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11827 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11828 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11831 # compilation failed
11832 lt_cv_dlopen_self
=no
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11840 $as_echo "$lt_cv_dlopen_self" >&6; }
11842 if test "x$lt_cv_dlopen_self" = xyes
; then
11843 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11845 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11846 if ${lt_cv_dlopen_self_static+:} false
; then :
11847 $as_echo_n "(cached) " >&6
11849 if test "$cross_compiling" = yes; then :
11850 lt_cv_dlopen_self_static
=cross
11852 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11853 lt_status
=$lt_dlunknown
11854 cat > conftest.
$ac_ext <<_LT_EOF
11855 #line 11865 "configure"
11856 #include "confdefs.h"
11865 # define LT_DLGLOBAL RTLD_GLOBAL
11868 # define LT_DLGLOBAL DL_GLOBAL
11870 # define LT_DLGLOBAL 0
11874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11875 find out it does not work in some platform. */
11876 #ifndef LT_DLLAZY_OR_NOW
11878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11881 # define LT_DLLAZY_OR_NOW DL_LAZY
11884 # define LT_DLLAZY_OR_NOW RTLD_NOW
11887 # define LT_DLLAZY_OR_NOW DL_NOW
11889 # define LT_DLLAZY_OR_NOW 0
11896 /* When -fvisbility=hidden is used, assume the code has been annotated
11897 correspondingly for the symbols needed. */
11898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11899 void fnord () __attribute__((visibility("default")));
11902 void fnord () { int i=42; }
11905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11906 int status = $lt_dlunknown;
11910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11914 else puts (dlerror ());
11916 /* dlclose (self); */
11924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11925 (eval $ac_link) 2>&5
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11929 (.
/conftest
; exit; ) >&5 2>/dev
/null
11931 case x
$lt_status in
11932 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11933 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11934 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11937 # compilation failed
11938 lt_cv_dlopen_self_static
=no
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11946 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11949 CPPFLAGS
="$save_CPPFLAGS"
11950 LDFLAGS
="$save_LDFLAGS"
11955 case $lt_cv_dlopen_self in
11956 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11957 *) enable_dlopen_self
=unknown
;;
11960 case $lt_cv_dlopen_self_static in
11961 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11962 *) enable_dlopen_self_static
=unknown
;;
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11985 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11986 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11987 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11988 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990 $as_echo "yes" >&6; }
11992 # FIXME - insert some real tests, host_os isn't really good enough
11995 if test -n "$STRIP" ; then
11996 striplib
="$STRIP -x"
11997 old_striplib
="$STRIP -S"
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999 $as_echo "yes" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007 $as_echo "no" >&6; }
12023 # Report which library types will actually be built
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12025 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12027 $as_echo "$can_build_shared" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12030 $as_echo_n "checking whether to build shared libraries... " >&6; }
12031 test "$can_build_shared" = "no" && enable_shared
=no
12033 # On AIX, shared libraries and static libraries use the same namespace, and
12034 # are all built from PIC.
12037 test "$enable_shared" = yes && enable_static
=no
12038 if test -n "$RANLIB"; then
12039 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12040 postinstall_cmds
='$RANLIB $lib'
12045 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12046 test "$enable_shared" = yes && enable_static
=no
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12051 $as_echo "$enable_shared" >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12054 $as_echo_n "checking whether to build static libraries... " >&6; }
12055 # Make sure either enable_shared or enable_static is yes.
12056 test "$enable_shared" = yes || enable_static
=yes
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12058 $as_echo "$enable_static" >&6; }
12065 ac_cpp
='$CPP $CPPFLAGS'
12066 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12067 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12068 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12084 ac_config_commands
="$ac_config_commands libtool"
12089 # Only expand once:
12095 gdc_save_DFLAGS
=$GDCFLAGS
12096 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12099 # Source file extension for D test sources.
12102 # Object file extension for compiled D test sources.
12106 # Code to be used in simple compile tests
12107 lt_simple_compile_test_code
="\
12109 shared int some_variable = 0;
12112 # Code to be used in simple link tests
12113 lt_simple_link_test_code
="\
12115 extern(C) int main() { return 0; }
12118 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12125 # If no C compiler was specified, use CC.
12128 # If no C compiler flags were specified, use CFLAGS.
12129 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12131 # Allow CC to be a program name with arguments.
12135 # save warnings/boilerplate of simple test code
12136 ac_outfile
=conftest.
$ac_objext
12137 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12138 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12139 _lt_compiler_boilerplate
=`cat conftest.err`
12142 ac_outfile
=conftest.
$ac_objext
12143 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12144 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12145 _lt_linker_boilerplate
=`cat conftest.err`
12149 # Allow CC to be a program name with arguments.
12151 lt_save_CFLAGS
=$CFLAGS
12159 for cc_temp
in $compiler""; do
12161 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12162 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12167 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12170 # GDC did not exist at the time GCC didn't implicitly link libc in.
12171 archive_cmds_need_lc_D
=no
12173 old_archive_cmds_D
=$old_archive_cmds
12174 reload_flag_D
=$reload_flag
12175 reload_cmds_D
=$reload_cmds
12178 ## There is no encapsulation within the following macros, do not change
12179 ## the running order or otherwise move them around unless you know exactly
12180 ## what you are doing...
12181 if test -n "$compiler"; then
12183 lt_prog_compiler_no_builtin_flag_D
=
12185 if test "$GCC" = yes; then
12186 case $cc_basename in
12188 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12190 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12195 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12196 $as_echo_n "(cached) " >&6
12198 lt_cv_prog_compiler_rtti_exceptions
=no
12199 ac_outfile
=conftest.
$ac_objext
12200 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12201 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12202 # Insert the option either (1) after the last *FLAGS variable, or
12203 # (2) before a word containing "conftest.", or (3) at the end.
12204 # Note that $ac_compile itself does not contain backslashes and begins
12205 # with a dollar sign (not a hyphen), so the echo should work correctly.
12206 # The option is referenced via a variable to avoid confusing sed.
12207 lt_compile
=`echo "$ac_compile" | $SED \
12208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12210 -e 's:$: $lt_compiler_flag:'`
12211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12212 (eval "$lt_compile" 2>conftest.err
)
12214 cat conftest.err
>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 if (exit $ac_status) && test -s "$ac_outfile"; then
12217 # The compiler can only warn and ignore the option if not recognized
12218 # So say no if there are warnings other than the usual output.
12219 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12220 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12221 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12222 lt_cv_prog_compiler_rtti_exceptions
=yes
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12231 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12232 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12241 lt_prog_compiler_wl_D
=
12242 lt_prog_compiler_pic_D
=
12243 lt_prog_compiler_static_D
=
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12246 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12248 if test "$GCC" = yes; then
12249 lt_prog_compiler_wl_D
='-Wl,'
12250 lt_prog_compiler_static_D
='-static'
12254 # All AIX code is PIC.
12255 if test "$host_cpu" = ia64
; then
12256 # AIX 5 now supports IA64 processor
12257 lt_prog_compiler_static_D
='-Bstatic'
12259 lt_prog_compiler_pic_D
='-fPIC'
12265 # see comment about AmigaOS4 .so support
12266 lt_prog_compiler_pic_D
='-fPIC'
12269 # FIXME: we need at least 68020 code to build shared libraries, but
12270 # adding the `-m68020' flag to GCC prevents building anything better,
12272 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12277 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12278 # PIC is the default for these OSes.
12281 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12282 # This hack is so that the source file can tell whether it is being
12283 # built for inclusion in a dll (and should export symbols for example).
12284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12285 # (--disable-auto-import) libraries
12286 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12289 darwin
* | rhapsody
*)
12290 # PIC is the default on this platform
12291 # Common symbols not allowed in MH_DYLIB files
12292 lt_prog_compiler_pic_D
='-fno-common'
12296 # PIC is the default for Haiku.
12297 # The "-static" flag exists, but is broken.
12298 lt_prog_compiler_static_D
=
12302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12304 # sets the default TLS model and affects inlining.
12310 lt_prog_compiler_pic_D
='-fPIC'
12316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12317 # Instead, we relocate shared libraries at runtime.
12321 # Just because we use GCC doesn't mean we suddenly get shared libraries
12322 # on systems that don't support them.
12323 lt_prog_compiler_can_build_shared_D
=no
12328 # QNX uses GNU C++, but need to define -shared option too, otherwise
12329 # it will coredump.
12330 lt_prog_compiler_pic_D
='-fPIC -shared'
12334 if test -d /usr
/nec
; then
12335 lt_prog_compiler_pic_D
=-Kconform_pic
12340 lt_prog_compiler_pic_D
='-fPIC'
12344 case $cc_basename in
12345 nvcc
*) # Cuda Compiler Driver 2.2
12346 lt_prog_compiler_wl_D
='-Xlinker '
12347 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12351 # PORTME Check for flag to pass linker flags through the system compiler.
12354 lt_prog_compiler_wl_D
='-Wl,'
12355 if test "$host_cpu" = ia64
; then
12356 # AIX 5 now supports IA64 processor
12357 lt_prog_compiler_static_D
='-Bstatic'
12359 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12363 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12364 # This hack is so that the source file can tell whether it is being
12365 # built for inclusion in a dll (and should export symbols for example).
12366 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12369 hpux9
* | hpux10
* | hpux11
*)
12370 lt_prog_compiler_wl_D
='-Wl,'
12371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12372 # not for PA HP-UX.
12378 lt_prog_compiler_pic_D
='+Z'
12381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12382 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12385 irix5
* | irix6
* | nonstopux
*)
12386 lt_prog_compiler_wl_D
='-Wl,'
12387 # PIC (with -KPIC) is the default.
12388 lt_prog_compiler_static_D
='-non_shared'
12391 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12392 case $cc_basename in
12393 # old Intel for x86_64 which still supported -KPIC.
12395 lt_prog_compiler_wl_D
='-Wl,'
12396 lt_prog_compiler_pic_D
='-KPIC'
12397 lt_prog_compiler_static_D
='-static'
12399 # icc used to be incompatible with GCC.
12400 # ICC 10 doesn't accept -KPIC any more.
12402 lt_prog_compiler_wl_D
='-Wl,'
12403 lt_prog_compiler_pic_D
='-fPIC'
12404 lt_prog_compiler_static_D
='-static'
12406 # Lahey Fortran 8.1.
12408 lt_prog_compiler_wl_D
='-Wl,'
12409 lt_prog_compiler_pic_D
='--shared'
12410 lt_prog_compiler_static_D
='--static'
12412 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12413 # Portland Group compilers (*not* the Pentium gcc compiler,
12414 # which looks to be a dead project)
12415 lt_prog_compiler_wl_D
='-Wl,'
12416 lt_prog_compiler_pic_D
='-fpic'
12417 lt_prog_compiler_static_D
='-Bstatic'
12420 lt_prog_compiler_wl_D
='-Wl,'
12421 # All Alpha code is PIC.
12422 lt_prog_compiler_static_D
='-non_shared'
12424 xl
* | bgxl
* | bgf
* | mpixl
*)
12425 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12426 lt_prog_compiler_wl_D
='-Wl,'
12427 lt_prog_compiler_pic_D
='-qpic'
12428 lt_prog_compiler_static_D
='-qstaticlink'
12431 case `$CC -V 2>&1 | sed 5q` in
12432 *Sun\ F
* |
*Sun
*Fortran
*)
12433 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12434 lt_prog_compiler_pic_D
='-KPIC'
12435 lt_prog_compiler_static_D
='-Bstatic'
12436 lt_prog_compiler_wl_D
=''
12440 lt_prog_compiler_pic_D
='-KPIC'
12441 lt_prog_compiler_static_D
='-Bstatic'
12442 lt_prog_compiler_wl_D
='-Wl,'
12450 lt_prog_compiler_pic_D
='-KPIC'
12451 lt_prog_compiler_static_D
='-Bstatic'
12455 # QNX uses GNU C++, but need to define -shared option too, otherwise
12456 # it will coredump.
12457 lt_prog_compiler_pic_D
='-fPIC -shared'
12460 osf3
* | osf4
* | osf5
*)
12461 lt_prog_compiler_wl_D
='-Wl,'
12462 # All OSF/1 code is PIC.
12463 lt_prog_compiler_static_D
='-non_shared'
12467 lt_prog_compiler_static_D
='-non_shared'
12471 lt_prog_compiler_pic_D
='-KPIC'
12472 lt_prog_compiler_static_D
='-Bstatic'
12473 case $cc_basename in
12474 f77
* | f90
* | f95
*)
12475 lt_prog_compiler_wl_D
='-Qoption ld ';;
12477 lt_prog_compiler_wl_D
='-Wl,';;
12482 lt_prog_compiler_wl_D
='-Qoption ld '
12483 lt_prog_compiler_pic_D
='-PIC'
12484 lt_prog_compiler_static_D
='-Bstatic'
12487 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12488 lt_prog_compiler_wl_D
='-Wl,'
12489 lt_prog_compiler_pic_D
='-KPIC'
12490 lt_prog_compiler_static_D
='-Bstatic'
12494 if test -d /usr
/nec
;then
12495 lt_prog_compiler_pic_D
='-Kconform_pic'
12496 lt_prog_compiler_static_D
='-Bstatic'
12500 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12501 lt_prog_compiler_wl_D
='-Wl,'
12502 lt_prog_compiler_pic_D
='-KPIC'
12503 lt_prog_compiler_static_D
='-Bstatic'
12507 lt_prog_compiler_wl_D
='-Wl,'
12508 lt_prog_compiler_can_build_shared_D
=no
12512 lt_prog_compiler_pic_D
='-pic'
12513 lt_prog_compiler_static_D
='-Bstatic'
12517 lt_prog_compiler_can_build_shared_D
=no
12523 # For platforms which do not support PIC, -DPIC is meaningless:
12525 lt_prog_compiler_pic_D
=
12528 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12532 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12537 # Check to make sure the PIC flag actually works.
12539 if test -n "$lt_prog_compiler_pic_D"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12542 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12543 $as_echo_n "(cached) " >&6
12545 lt_cv_prog_compiler_pic_works_D
=no
12546 ac_outfile
=conftest.
$ac_objext
12547 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12548 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12549 # Insert the option either (1) after the last *FLAGS variable, or
12550 # (2) before a word containing "conftest.", or (3) at the end.
12551 # Note that $ac_compile itself does not contain backslashes and begins
12552 # with a dollar sign (not a hyphen), so the echo should work correctly.
12553 # The option is referenced via a variable to avoid confusing sed.
12554 lt_compile
=`echo "$ac_compile" | $SED \
12555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12557 -e 's:$: $lt_compiler_flag:'`
12558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12559 (eval "$lt_compile" 2>conftest.err
)
12561 cat conftest.err
>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 if (exit $ac_status) && test -s "$ac_outfile"; then
12564 # The compiler can only warn and ignore the option if not recognized
12565 # So say no if there are warnings other than the usual output.
12566 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12567 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12568 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12569 lt_cv_prog_compiler_pic_works_D
=yes
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12576 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12578 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12579 case $lt_prog_compiler_pic_D in
12581 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12584 lt_prog_compiler_pic_D
=
12585 lt_prog_compiler_can_build_shared_D
=no
12593 # Check to make sure the static flag actually works.
12595 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12598 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12599 $as_echo_n "(cached) " >&6
12601 lt_cv_prog_compiler_static_works_D
=no
12602 save_LDFLAGS
="$LDFLAGS"
12603 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12604 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12605 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12606 # The linker can only warn and ignore the option if not recognized
12607 # So say no if there are warnings
12608 if test -s conftest.err
; then
12609 # Append any errors to the config.log.
12610 cat conftest.err
1>&5
12611 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12612 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12613 if diff conftest.exp conftest.er2
>/dev
/null
; then
12614 lt_cv_prog_compiler_static_works_D
=yes
12617 lt_cv_prog_compiler_static_works_D
=yes
12621 LDFLAGS
="$save_LDFLAGS"
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12625 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12627 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12630 lt_prog_compiler_static_D
=
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12638 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12639 $as_echo_n "(cached) " >&6
12641 lt_cv_prog_compiler_c_o_D
=no
12642 $RM -r conftest
2>/dev
/null
12646 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12648 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12649 # Insert the option either (1) after the last *FLAGS variable, or
12650 # (2) before a word containing "conftest.", or (3) at the end.
12651 # Note that $ac_compile itself does not contain backslashes and begins
12652 # with a dollar sign (not a hyphen), so the echo should work correctly.
12653 lt_compile
=`echo "$ac_compile" | $SED \
12654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12656 -e 's:$: $lt_compiler_flag:'`
12657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12658 (eval "$lt_compile" 2>out
/conftest.err
)
12660 cat out
/conftest.err
>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12664 # The compiler can only warn and ignore the option if not recognized
12665 # So say no if there are warnings
12666 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12667 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12668 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12669 lt_cv_prog_compiler_c_o_D
=yes
12674 # SGI C++ compiler will create directory out/ii_files/ for
12675 # template instantiation
12676 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12677 $RM out
/* && rmdir out
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12684 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12690 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12691 $as_echo_n "(cached) " >&6
12693 lt_cv_prog_compiler_c_o_D
=no
12694 $RM -r conftest
2>/dev
/null
12698 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12700 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12701 # Insert the option either (1) after the last *FLAGS variable, or
12702 # (2) before a word containing "conftest.", or (3) at the end.
12703 # Note that $ac_compile itself does not contain backslashes and begins
12704 # with a dollar sign (not a hyphen), so the echo should work correctly.
12705 lt_compile
=`echo "$ac_compile" | $SED \
12706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12708 -e 's:$: $lt_compiler_flag:'`
12709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12710 (eval "$lt_compile" 2>out
/conftest.err
)
12712 cat out
/conftest.err
>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12716 # The compiler can only warn and ignore the option if not recognized
12717 # So say no if there are warnings
12718 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12719 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12720 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12721 lt_cv_prog_compiler_c_o_D
=yes
12726 # SGI C++ compiler will create directory out/ii_files/ for
12727 # template instantiation
12728 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12729 $RM out
/* && rmdir out
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12736 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12741 hard_links
="nottested"
12742 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12743 # do not overwrite the value of need_locks provided by the user
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12745 $as_echo_n "checking if we can lock with hard links... " >&6; }
12748 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12750 ln conftest.a conftest.b
2>&5 || hard_links
=no
12751 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12753 $as_echo "$hard_links" >&6; }
12754 if test "$hard_links" = no
; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12756 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12769 allow_undefined_flag_D
=
12770 always_export_symbols_D
=no
12772 archive_expsym_cmds_D
=
12773 compiler_needs_object_D
=no
12774 enable_shared_with_static_runtimes_D
=no
12775 export_dynamic_flag_spec_D
=
12776 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12777 hardcode_automatic_D
=no
12778 hardcode_direct_D
=no
12779 hardcode_direct_absolute_D
=no
12780 hardcode_libdir_flag_spec_D
=
12781 hardcode_libdir_flag_spec_ld_D
=
12782 hardcode_libdir_separator_D
=
12783 hardcode_minus_L_D
=no
12784 hardcode_shlibpath_var_D
=unsupported
12786 link_all_deplibs_D
=unknown
12788 module_expsym_cmds_D
=
12789 old_archive_from_new_cmds_D
=
12790 old_archive_from_expsyms_cmds_D
=
12791 thread_safe_flag_spec_D
=
12792 whole_archive_flag_spec_D
=
12793 # include_expsyms should be a list of space-separated symbols to be *always*
12794 # included in the symbol list
12796 # exclude_expsyms can be an extended regexp of symbols to exclude
12797 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12798 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12799 # as well as any symbol that contains `d'.
12800 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12802 # platforms (ab)use it in PIC code, but their linkers get confused if
12803 # the symbol is explicitly referenced. Since portable code cannot
12804 # rely on this symbol name, it's probably fine to never include it in
12805 # preloaded symbol tables.
12806 # Exclude shared library initialization/finalization symbols.
12807 extract_expsyms_cmds
=
12810 cygwin
* | mingw
* | pw32
* | cegcc
*)
12811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12812 # When not using gcc, we currently assume that we are using
12813 # Microsoft Visual C++.
12814 if test "$GCC" != yes; then
12819 # we just hope/assume this is gcc and not c89 (= MSVC++)
12829 # On some targets, GNU ld is compatible enough with the native linker
12830 # that we're better off using the native interface for both.
12831 lt_use_gnu_ld_interface
=no
12832 if test "$with_gnu_ld" = yes; then
12835 # The AIX port of GNU ld has always aspired to compatibility
12836 # with the native linker. However, as the warning in the GNU ld
12837 # block says, versions before 2.19.5* couldn't really create working
12838 # shared libraries, regardless of the interface used.
12839 case `$LD -v 2>&1` in
12840 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12841 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12842 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12844 lt_use_gnu_ld_interface
=yes
12849 lt_use_gnu_ld_interface
=yes
12854 if test "$lt_use_gnu_ld_interface" = yes; then
12855 # If archive_cmds runs LD, not CC, wlarc should be empty
12858 # Set some defaults for GNU ld with shared library support. These
12859 # are reset later if shared libraries are not supported. Putting them
12860 # here allows them to be overridden if necessary.
12861 runpath_var
=LD_RUN_PATH
12862 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12863 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12864 # ancient GNU ld didn't support --whole-archive et. al.
12865 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12866 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12868 whole_archive_flag_spec_D
=
12870 supports_anon_versioning
=no
12871 case `$LD -v 2>&1` in
12872 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12873 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12874 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12875 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12876 *\
2.11.
*) ;; # other 2.11 versions
12877 *) supports_anon_versioning
=yes ;;
12880 # See if GNU ld supports shared libraries.
12883 # On AIX/PPC, the GNU linker is very broken
12884 if test "$host_cpu" != ia64
; then
12888 *** Warning: the GNU linker, at least up to release 2.19, is reported
12889 *** to be unable to reliably create shared libraries on AIX.
12890 *** Therefore, libtool is disabling shared libraries support. If you
12891 *** really care for shared libraries, you may want to install binutils
12892 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12893 *** You will then need to restart the configuration process.
12902 # see comment about AmigaOS4 .so support
12903 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 archive_expsym_cmds_D
=''
12907 archive_cmds_D
='$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)'
12908 hardcode_libdir_flag_spec_D
='-L$libdir'
12909 hardcode_minus_L_D
=yes
12915 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12916 allow_undefined_flag_D
=unsupported
12917 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12918 # support --undefined. This deserves some investigation. FIXME
12919 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12925 cygwin
* | mingw
* | pw32
* | cegcc
*)
12926 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12927 # as there is no search path for DLLs.
12928 hardcode_libdir_flag_spec_D
='-L$libdir'
12929 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12930 allow_undefined_flag_D
=unsupported
12931 always_export_symbols_D
=no
12932 enable_shared_with_static_runtimes_D
=yes
12933 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12935 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12936 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12937 # If the export-symbols file already is a .def file (1st line
12938 # is EXPORTS), use it as is; otherwise, prepend...
12939 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12940 cp $export_symbols $output_objdir/$soname.def;
12942 echo EXPORTS > $output_objdir/$soname.def;
12943 cat $export_symbols >> $output_objdir/$soname.def;
12945 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12952 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12953 link_all_deplibs_D
=yes
12957 hardcode_direct_D
=no
12958 hardcode_shlibpath_var_D
=no
12959 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12960 export_dynamic_flag_spec_D
='${wl}-E'
12961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12962 # Instead, shared libraries are loaded at an image base (0x10000000 by
12963 # default) and relocated if they conflict, which is a slow very memory
12964 # consuming and fragmenting process. To avoid this, we pick a random,
12965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12967 archive_cmds_D
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12968 archive_expsym_cmds_D
='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'
12971 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
12973 if test "$host_os" = linux-dietlibc
; then
12974 case $cc_basename in
12975 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12978 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12979 && test "$tmp_diet" = no
12981 tmp_addflag
=' $pic_flag'
12982 tmp_sharedflag
='-shared'
12983 case $cc_basename,$host_cpu in
12984 pgcc
*) # Portland Group C compiler
12985 whole_archive_flag_spec_D
='${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'
12986 tmp_addflag
=' $pic_flag'
12988 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12989 # Portland Group f77 and f90 compilers
12990 whole_archive_flag_spec_D
='${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'
12991 tmp_addflag
=' $pic_flag -Mnomain' ;;
12992 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12993 tmp_addflag
=' -i_dynamic' ;;
12994 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12995 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12996 ifc
* | ifort
*) # Intel Fortran compiler
12997 tmp_addflag
=' -nofor_main' ;;
12998 lf95
*) # Lahey Fortran 8.1
12999 whole_archive_flag_spec_D
=
13000 tmp_sharedflag
='--shared' ;;
13001 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13002 tmp_sharedflag
='-qmkshrobj'
13004 nvcc
*) # Cuda Compiler Driver 2.2
13005 whole_archive_flag_spec_D
='${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'
13006 compiler_needs_object_D
=yes
13009 case `$CC -V 2>&1 | sed 5q` in
13010 *Sun\ C
*) # Sun C 5.9
13011 whole_archive_flag_spec_D
='${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'
13012 compiler_needs_object_D
=yes
13013 tmp_sharedflag
='-G' ;;
13014 *Sun\ F
*) # Sun Fortran 8.3
13015 tmp_sharedflag
='-G' ;;
13017 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 if test "x$supports_anon_versioning" = xyes
; then
13020 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13022 echo "local: *; };" >> $output_objdir/$libname.ver~
13023 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13026 case $cc_basename in
13027 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13028 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13029 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
13030 hardcode_libdir_flag_spec_D
=
13031 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
13032 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13033 if test "x$supports_anon_versioning" = xyes
; then
13034 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13036 echo "local: *; };" >> $output_objdir/$libname.ver~
13037 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13047 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13048 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13051 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13052 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13057 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13062 *** create shared libraries on Solaris systems. Therefore, libtool
13063 *** is disabling shared libraries support. We urge you to upgrade GNU
13064 *** binutils to release 2.9.1 or newer. Another option is to modify
13065 *** your PATH or compiler configuration so that the native linker is
13066 *** used, and then restart.
13069 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13070 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13071 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13077 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13078 case `$LD -v 2>&1` in
13079 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13083 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13084 *** reliably create shared libraries on SCO systems. Therefore, libtool
13085 *** is disabling shared libraries support. We urge you to upgrade GNU
13086 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13087 *** your PATH or compiler configuration so that the native linker is
13088 *** used, and then restart.
13093 # For security reasons, it is highly recommended that you always
13094 # use absolute paths for naming shared libraries, and exclude the
13095 # DT_RUNPATH tag from executables and libraries. But doing so
13096 # requires that you compile everything twice, which is a pain.
13097 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13098 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13099 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13100 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13109 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13111 hardcode_direct_D
=yes
13112 hardcode_shlibpath_var_D
=no
13116 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13117 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13125 if test "$ld_shlibs_D" = no
; then
13127 hardcode_libdir_flag_spec_D
=
13128 export_dynamic_flag_spec_D
=
13129 whole_archive_flag_spec_D
=
13132 # PORTME fill in a description of your system's linker (not GNU ld)
13135 allow_undefined_flag_D
=unsupported
13136 always_export_symbols_D
=yes
13137 archive_expsym_cmds_D
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13138 # Note: this linker hardcodes the directories in LIBPATH if there
13139 # are no directories specified by -L.
13140 hardcode_minus_L_D
=yes
13141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13142 # Neither direct hardcoding nor static linking is supported with a
13144 hardcode_direct_D
=unsupported
13149 if test "$host_cpu" = ia64
; then
13150 # On IA64, the linker does run time linking by default, so we don't
13151 # have to do anything special.
13152 aix_use_runtimelinking
=no
13153 exp_sym_flag
='-Bexport'
13156 # If we're using GNU nm, then we don't want the "-C" option.
13157 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13158 # Also, AIX nm treats weak defined symbols like other global
13159 # defined symbols, whereas GNU nm marks them as "W".
13160 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13161 export_symbols_cmds_D
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13163 export_symbols_cmds_D
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13165 aix_use_runtimelinking
=no
13167 # Test if we are trying to use run time linking or normal
13168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13169 # need to do runtime linking.
13170 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13171 for ld_flag
in $LDFLAGS; do
13172 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13173 aix_use_runtimelinking
=yes
13180 exp_sym_flag
='-bexport'
13181 no_entry_flag
='-bnoentry'
13184 # When large executables or shared objects are built, AIX ld can
13185 # have problems creating the table of contents. If linking a library
13186 # or program results in "error TOC overflow" add -mminimal-toc to
13187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13191 hardcode_direct_D
=yes
13192 hardcode_direct_absolute_D
=yes
13193 hardcode_libdir_separator_D
=':'
13194 link_all_deplibs_D
=yes
13195 file_list_spec_D
='${wl}-f,'
13197 if test "$GCC" = yes; then
13198 case $host_os in aix4.
[012]|aix4.
[012].
*)
13199 # We only want to do this on AIX 4.2 and lower, the check
13200 # below for broken collect2 doesn't work under 4.3+
13201 collect2name
=`${CC} -print-prog-name=collect2`
13202 if test -f "$collect2name" &&
13203 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13205 # We have reworked collect2
13208 # We have old collect2
13209 hardcode_direct_D
=unsupported
13210 # It fails to find uninstalled libraries when the uninstalled
13211 # path is not listed in the libpath. Setting hardcode_minus_L
13212 # to unsupported forces relinking
13213 hardcode_minus_L_D
=yes
13214 hardcode_libdir_flag_spec_D
='-L$libdir'
13215 hardcode_libdir_separator_D
=
13219 shared_flag
='-shared'
13220 if test "$aix_use_runtimelinking" = yes; then
13221 shared_flag
="$shared_flag "'${wl}-G'
13225 if test "$host_cpu" = ia64
; then
13226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13227 # chokes on -Wl,-G. The following line is correct:
13230 if test "$aix_use_runtimelinking" = yes; then
13231 shared_flag
='${wl}-G'
13233 shared_flag
='${wl}-bM:SRE'
13238 export_dynamic_flag_spec_D
='${wl}-bexpall'
13239 # It seems that -bexpall does not export symbols beginning with
13240 # underscore (_), so it is better to generate a list of symbols to export.
13241 always_export_symbols_D
=yes
13242 if test "$aix_use_runtimelinking" = yes; then
13243 # Warning - without using the other runtime loading flags (-brtl),
13244 # -berok will link without error, but may produce a broken library.
13245 allow_undefined_flag_D
='-berok'
13246 # Determine the default libpath from the value encoded in an
13247 # empty executable.
13248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13259 if ac_fn_c_try_link
"$LINENO"; then :
13261 lt_aix_libpath_sed
='
13262 /Import File Strings/,/^$/ {
13268 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13269 # Check for a 64-bit object if we didn't find anything.
13270 if test -z "$aix_libpath"; then
13271 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13274 rm -f core conftest.err conftest.
$ac_objext \
13275 conftest
$ac_exeext conftest.
$ac_ext
13276 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13278 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13279 archive_expsym_cmds_D
='$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"
13281 if test "$host_cpu" = ia64
; then
13282 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13283 allow_undefined_flag_D
="-z nodefs"
13284 archive_expsym_cmds_D
="\$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"
13286 # Determine the default libpath from the value encoded in an
13287 # empty executable.
13288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13299 if ac_fn_c_try_link
"$LINENO"; then :
13301 lt_aix_libpath_sed
='
13302 /Import File Strings/,/^$/ {
13308 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13309 # Check for a 64-bit object if we didn't find anything.
13310 if test -z "$aix_libpath"; then
13311 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13314 rm -f core conftest.err conftest.
$ac_objext \
13315 conftest
$ac_exeext conftest.
$ac_ext
13316 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13318 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13319 # Warning - without using the other run time loading flags,
13320 # -berok will link without error, but may produce a broken library.
13321 no_undefined_flag_D
=' ${wl}-bernotok'
13322 allow_undefined_flag_D
=' ${wl}-berok'
13323 if test "$with_gnu_ld" = yes; then
13324 # We only use this code for GNU lds that support --whole-archive.
13325 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13327 # Exported symbols can be pulled into shared objects from archives
13328 whole_archive_flag_spec_D
='$convenience'
13330 archive_cmds_need_lc_D
=yes
13331 # This is similar to how AIX traditionally builds its shared libraries.
13332 archive_expsym_cmds_D
="\$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'
13340 # see comment about AmigaOS4 .so support
13341 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 archive_expsym_cmds_D
=''
13345 archive_cmds_D
='$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)'
13346 hardcode_libdir_flag_spec_D
='-L$libdir'
13347 hardcode_minus_L_D
=yes
13353 export_dynamic_flag_spec_D
=-rdynamic
13356 cygwin
* | mingw
* | pw32
* | cegcc
*)
13357 # When not using gcc, we currently assume that we are using
13358 # Microsoft Visual C++.
13359 # hardcode_libdir_flag_spec is actually meaningless, as there is
13360 # no search path for DLLs.
13361 hardcode_libdir_flag_spec_D
=' '
13362 allow_undefined_flag_D
=unsupported
13363 # Tell ltmain to make .lib files, not .a files.
13365 # Tell ltmain to make .dll files, not .so files.
13367 # FIXME: Setting linknames here is a bad hack.
13368 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13369 # The linker will automatically build a .lib file if we build a DLL.
13370 old_archive_from_new_cmds_D
='true'
13371 # FIXME: Should let the user specify the lib program.
13372 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13373 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13374 enable_shared_with_static_runtimes_D
=yes
13377 darwin
* | rhapsody
*)
13380 archive_cmds_need_lc_D
=no
13381 hardcode_direct_D
=no
13382 hardcode_automatic_D
=yes
13383 hardcode_shlibpath_var_D
=unsupported
13384 if test "$lt_cv_ld_force_load" = "yes"; then
13385 whole_archive_flag_spec_D
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13387 whole_archive_flag_spec_D
=''
13389 link_all_deplibs_D
=yes
13390 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13391 case $cc_basename in
13392 ifort
*) _lt_dar_can_shared
=yes ;;
13393 *) _lt_dar_can_shared
=$GCC ;;
13395 if test "$_lt_dar_can_shared" = "yes"; then
13396 output_verbose_link_cmd
=func_echo_all
13397 archive_cmds_D
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13398 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13399 archive_expsym_cmds_D
="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}"
13400 module_expsym_cmds_D
="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}"
13409 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13410 hardcode_libdir_flag_spec_D
='-L$libdir'
13411 hardcode_shlibpath_var_D
=no
13414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13415 # support. Future versions do this automatically, but an explicit c++rt0.o
13416 # does not break anything, and helps significantly (at the cost of a little
13419 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13420 hardcode_libdir_flag_spec_D
='-R$libdir'
13421 hardcode_direct_D
=yes
13422 hardcode_shlibpath_var_D
=no
13425 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13427 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13428 hardcode_direct_D
=yes
13429 hardcode_minus_L_D
=yes
13430 hardcode_shlibpath_var_D
=no
13433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13434 freebsd
* | dragonfly
*)
13435 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13436 hardcode_libdir_flag_spec_D
='-R$libdir'
13437 hardcode_direct_D
=yes
13438 hardcode_shlibpath_var_D
=no
13442 if test "$GCC" = yes; then
13443 archive_cmds_D
='$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'
13445 archive_cmds_D
='$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'
13447 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13448 hardcode_libdir_separator_D
=:
13449 hardcode_direct_D
=yes
13451 # hardcode_minus_L: Not really in the search PATH,
13452 # but as the default location of the library.
13453 hardcode_minus_L_D
=yes
13454 export_dynamic_flag_spec_D
='${wl}-E'
13458 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13459 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13461 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13463 if test "$with_gnu_ld" = no
; then
13464 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13465 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13466 hardcode_libdir_separator_D
=:
13467 hardcode_direct_D
=yes
13468 hardcode_direct_absolute_D
=yes
13469 export_dynamic_flag_spec_D
='${wl}-E'
13470 # hardcode_minus_L: Not really in the search PATH,
13471 # but as the default location of the library.
13472 hardcode_minus_L_D
=yes
13477 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13480 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13483 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13486 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13495 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13498 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13502 if test "$with_gnu_ld" = no
; then
13503 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13504 hardcode_libdir_separator_D
=:
13508 hardcode_direct_D
=no
13509 hardcode_shlibpath_var_D
=no
13512 hardcode_direct_D
=yes
13513 hardcode_direct_absolute_D
=yes
13514 export_dynamic_flag_spec_D
='${wl}-E'
13516 # hardcode_minus_L: Not really in the search PATH,
13517 # but as the default location of the library.
13518 hardcode_minus_L_D
=yes
13524 irix5
* | irix6
* | nonstopux
*)
13525 if test "$GCC" = yes; then
13526 archive_cmds_D
='$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'
13527 # Try to use the -exported_symbol ld option, if it does not
13528 # work, assume that -exports_file does not work either and
13529 # implicitly export all symbols.
13530 save_LDFLAGS
="$LDFLAGS"
13531 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13536 if ac_fn_c_try_link
"$LINENO"; then :
13537 archive_expsym_cmds_D
='$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'
13540 rm -f core conftest.err conftest.
$ac_objext \
13541 conftest
$ac_exeext conftest.
$ac_ext
13542 LDFLAGS
="$save_LDFLAGS"
13544 archive_cmds_D
='$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'
13545 archive_expsym_cmds_D
='$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'
13547 archive_cmds_need_lc_D
='no'
13548 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13549 hardcode_libdir_separator_D
=:
13550 inherit_rpath_D
=yes
13551 link_all_deplibs_D
=yes
13555 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13556 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13558 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13560 hardcode_libdir_flag_spec_D
='-R$libdir'
13561 hardcode_direct_D
=yes
13562 hardcode_shlibpath_var_D
=no
13566 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13567 hardcode_direct_D
=yes
13568 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13569 hardcode_libdir_separator_D
=:
13570 hardcode_shlibpath_var_D
=no
13577 if test -f /usr
/libexec
/ld.so
; then
13578 hardcode_direct_D
=yes
13579 hardcode_shlibpath_var_D
=no
13580 hardcode_direct_absolute_D
=yes
13581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13582 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13583 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13584 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13585 export_dynamic_flag_spec_D
='${wl}-E'
13588 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13589 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_libdir_flag_spec_D
='-R$libdir'
13593 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13594 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13604 hardcode_libdir_flag_spec_D
='-L$libdir'
13605 hardcode_minus_L_D
=yes
13606 allow_undefined_flag_D
=unsupported
13607 archive_cmds_D
='$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'
13608 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13612 if test "$GCC" = yes; then
13613 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13614 archive_cmds_D
='$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'
13616 allow_undefined_flag_D
=' -expect_unresolved \*'
13617 archive_cmds_D
='$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'
13619 archive_cmds_need_lc_D
='no'
13620 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13621 hardcode_libdir_separator_D
=:
13624 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13625 if test "$GCC" = yes; then
13626 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13627 archive_cmds_D
='$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'
13628 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13630 allow_undefined_flag_D
=' -expect_unresolved \*'
13631 archive_cmds_D
='$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'
13632 archive_expsym_cmds_D
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13633 $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'
13635 # Both c and cxx compiler support -rpath directly
13636 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13638 archive_cmds_need_lc_D
='no'
13639 hardcode_libdir_separator_D
=:
13643 no_undefined_flag_D
=' -z defs'
13644 if test "$GCC" = yes; then
13646 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13648 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13650 case `$CC -V 2>&1` in
13653 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13654 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13659 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13660 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13661 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13665 hardcode_libdir_flag_spec_D
='-R$libdir'
13666 hardcode_shlibpath_var_D
=no
13668 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13670 # The compiler driver will combine and reorder linker options,
13671 # but understands `-z linker_flag'. GCC discards it without `$wl',
13672 # but is careful enough not to reorder.
13673 # Supported since Solaris 2.6 (maybe 2.5.1?)
13674 if test "$GCC" = yes; then
13675 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13677 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13681 link_all_deplibs_D
=yes
13685 if test "x$host_vendor" = xsequent
; then
13686 # Use $CC to link under sequent, because it throws in some extra .o
13687 # files that make .init and .fini sections work.
13688 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13690 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13692 hardcode_libdir_flag_spec_D
='-L$libdir'
13693 hardcode_direct_D
=yes
13694 hardcode_minus_L_D
=yes
13695 hardcode_shlibpath_var_D
=no
13699 case $host_vendor in
13701 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13702 hardcode_direct_D
=yes # is this really true???
13705 ## LD is ld it makes a PLAMLIB
13706 ## CC just makes a GrossModule.
13707 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13708 reload_cmds_D
='$CC -r -o $output$reload_objs'
13709 hardcode_direct_D
=no
13712 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13713 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13716 runpath_var
='LD_RUN_PATH'
13717 hardcode_shlibpath_var_D
=no
13721 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13722 hardcode_shlibpath_var_D
=no
13723 export_dynamic_flag_spec_D
='-Bexport'
13727 if test -d /usr
/nec
; then
13728 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13729 hardcode_shlibpath_var_D
=no
13730 runpath_var
=LD_RUN_PATH
13731 hardcode_runpath_var
=yes
13736 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13737 no_undefined_flag_D
='${wl}-z,text'
13738 archive_cmds_need_lc_D
=no
13739 hardcode_shlibpath_var_D
=no
13740 runpath_var
='LD_RUN_PATH'
13742 if test "$GCC" = yes; then
13743 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 sysv5
* | sco3.2v5
* | sco5v6
*)
13752 # Note: We can NOT use -z defs as we might desire, because we do not
13753 # link with -lc, and that would cause any symbols used from libc to
13754 # always be unresolved, which means just about no library would
13755 # ever link correctly. If we're not using GNU ld we use -z text
13756 # though, which does catch some bad symbols but isn't as heavy-handed
13758 no_undefined_flag_D
='${wl}-z,text'
13759 allow_undefined_flag_D
='${wl}-z,nodefs'
13760 archive_cmds_need_lc_D
=no
13761 hardcode_shlibpath_var_D
=no
13762 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13763 hardcode_libdir_separator_D
=':'
13764 link_all_deplibs_D
=yes
13765 export_dynamic_flag_spec_D
='${wl}-Bexport'
13766 runpath_var
='LD_RUN_PATH'
13768 if test "$GCC" = yes; then
13769 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13778 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13779 hardcode_libdir_flag_spec_D
='-L$libdir'
13780 hardcode_shlibpath_var_D
=no
13788 if test x
$host_vendor = xsni
; then
13790 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13791 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13798 $as_echo "$ld_shlibs_D" >&6; }
13799 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13801 with_gnu_ld_D
=$with_gnu_ld
13809 # Do we need to explicitly link libc?
13811 case "x$archive_cmds_need_lc_D" in
13813 # Assume -lc should be added
13814 archive_cmds_need_lc_D
=yes
13816 if test "$enable_shared" = yes && test "$GCC" = yes; then
13817 case $archive_cmds_D in
13819 # FIXME: we may have to deal with multi-command sequences.
13822 # Test whether the compiler implicitly links with -lc since on some
13823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13824 # to ld, don't add -lc before -lgcc.
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13826 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13827 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13828 $as_echo_n "(cached) " >&6
13831 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13834 (eval $ac_compile) 2>&5
13836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13837 test $ac_status = 0; } 2>conftest.err
; then
13840 libobjs
=conftest.
$ac_objext
13842 wl
=$lt_prog_compiler_wl_D
13843 pic_flag
=$lt_prog_compiler_pic_D
13849 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13850 allow_undefined_flag_D
=
13851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13852 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13855 test $ac_status = 0; }
13857 lt_cv_archive_cmds_need_lc_D
=no
13859 lt_cv_archive_cmds_need_lc_D
=yes
13861 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13863 cat conftest.err
1>&5
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13869 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13870 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13943 if test -n "$hardcode_libdir_flag_spec_D" ||
13944 test -n "$runpath_var_D" ||
13945 test "X$hardcode_automatic_D" = "Xyes" ; then
13947 # We can hardcode non-existent directories.
13948 if test "$hardcode_direct_D" != no
&&
13949 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13950 # have to relink, otherwise we might link with an installed library
13951 # when we should be linking with a yet-to-be-installed one
13952 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13953 test "$hardcode_minus_L_D" != no
; then
13954 # Linking always hardcodes the temporary library directory.
13955 hardcode_action_D
=relink
13957 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13958 hardcode_action_D
=immediate
13961 # We cannot hardcode anything, or else we can only hardcode existing
13963 hardcode_action_D
=unsupported
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13966 $as_echo "$hardcode_action_D" >&6; }
13968 if test "$hardcode_action_D" = relink ||
13969 test "$inherit_rpath_D" = yes; then
13970 # Fast installation is not supported
13971 enable_fast_install
=no
13972 elif test "$shlibpath_overrides_runpath" = yes ||
13973 test "$enable_shared" = no
; then
13974 # Fast installation is not necessary
13975 enable_fast_install
=needless
13987 ac_cpp
='$CPP $CPPFLAGS'
13988 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13989 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13990 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13995 CFLAGS
=$lt_save_CFLAGS
13997 GDCFLAGS
=$gdc_save_DFLAGS
14000 # libtool variables for Phobos shared and position-independent compiles.
14002 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14003 # creating shared objects. Default: -fversion=Shared.
14005 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14006 # creating position-independent objects. This varies with the target
14007 # hardware and operating system, but is often: -fPIC.
14009 # The distinction between pic and shared compilation flags is not present in
14010 # libtool, and so we make it here. How it is handled is that in shared
14011 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14012 # ensure that conditional compilation of shared runtime code is compiled in.
14013 # The original PIC flags are then used in the compilation of every object.
14015 # Why are objects destined for libgphobos.a compiled with -fPIC?
14016 # Because -fPIC is not harmful to use for objects destined for static
14017 # libraries. In addition, using -fPIC will allow the use of static
14018 # libgphobos.a in the creation of other D shared libraries.
14019 if test "$enable_shared" = yes; then
14020 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
14021 phobos_compiler_shared_flag
="-fversion=Shared"
14023 phobos_compiler_pic_flag
=
14024 phobos_compiler_shared_flag
=
14029 # Override the libtool's pic_flag and pic_mode.
14030 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14031 # NB: this impacts --with-pic and --without-pic.
14032 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
14035 # Determine what GCC version number to use in filesystem paths.
14037 get_gcc_base_ver
="cat"
14039 # Check whether --with-gcc-major-version-only was given.
14040 if test "${with_gcc_major_version_only+set}" = set; then :
14041 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
14042 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
14050 # libphobos/libdruntime specific options and feature detection
14052 # These need to be absolute paths, yet at the same time need to
14053 # canonicalize only relative paths, because then amd will not unmount
14054 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14055 libphobos_builddir
=`${PWDCMD-pwd}`
14057 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
14058 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14064 if test ${multilib} = yes; then
14065 multilib_arg
="--enable-multilib"
14071 # Check whether --enable-werror was given.
14072 if test "${enable_werror+set}" = set; then :
14073 enableval
=$enable_werror;
14077 if test "x$enable_werror" = "xyes"; then
14078 WERROR_FLAG
="-Werror"
14082 druntime_target_cpu_parsed
=""
14083 case "$target_cpu" in
14085 druntime_target_cpu_parsed
="aarch64"
14087 arm
*) druntime_target_cpu_parsed
="arm"
14089 mips
*) druntime_target_cpu_parsed
="mips"
14092 druntime_target_cpu_parsed
="powerpc"
14095 druntime_target_cpu_parsed
="x86"
14098 druntime_target_cpu_parsed
="s390x"
14101 druntime_target_cpu_parsed
="s390"
14104 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14105 DRUNTIME_CPU_AARCH64_TRUE
=
14106 DRUNTIME_CPU_AARCH64_FALSE
='#'
14108 DRUNTIME_CPU_AARCH64_TRUE
='#'
14109 DRUNTIME_CPU_AARCH64_FALSE
=
14112 if test "$druntime_target_cpu_parsed" = "arm"; then
14113 DRUNTIME_CPU_ARM_TRUE
=
14114 DRUNTIME_CPU_ARM_FALSE
='#'
14116 DRUNTIME_CPU_ARM_TRUE
='#'
14117 DRUNTIME_CPU_ARM_FALSE
=
14120 if test "$druntime_target_cpu_parsed" = "mips"; then
14121 DRUNTIME_CPU_MIPS_TRUE
=
14122 DRUNTIME_CPU_MIPS_FALSE
='#'
14124 DRUNTIME_CPU_MIPS_TRUE
='#'
14125 DRUNTIME_CPU_MIPS_FALSE
=
14128 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14129 DRUNTIME_CPU_POWERPC_TRUE
=
14130 DRUNTIME_CPU_POWERPC_FALSE
='#'
14132 DRUNTIME_CPU_POWERPC_TRUE
='#'
14133 DRUNTIME_CPU_POWERPC_FALSE
=
14136 if test "$druntime_target_cpu_parsed" = "x86"; then
14137 DRUNTIME_CPU_X86_TRUE
=
14138 DRUNTIME_CPU_X86_FALSE
='#'
14140 DRUNTIME_CPU_X86_TRUE
='#'
14141 DRUNTIME_CPU_X86_FALSE
=
14144 if test "$druntime_target_cpu_parsed" = "s390x"; then
14145 DRUNTIME_CPU_SYSTEMZ_TRUE
=
14146 DRUNTIME_CPU_SYSTEMZ_FALSE
='#'
14148 DRUNTIME_CPU_SYSTEMZ_TRUE
='#'
14149 DRUNTIME_CPU_SYSTEMZ_FALSE
=
14152 if test "$druntime_target_cpu_parsed" = "s390"; then
14153 DRUNTIME_CPU_S390_TRUE
=
14154 DRUNTIME_CPU_S390_FALSE
='#'
14156 DRUNTIME_CPU_S390_TRUE
='#'
14157 DRUNTIME_CPU_S390_FALSE
=
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14163 $as_echo_n "checking for target OS... " >&6; }
14164 if ${druntime_cv_target_os+:} false
; then :
14165 $as_echo_n "(cached) " >&6
14167 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14170 $as_echo "$druntime_cv_target_os" >&6; }
14171 if test -z "$druntime_cv_target_os"; then :
14172 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14178 druntime_target_os_parsed
=""
14179 case "$druntime_cv_target_os" in
14180 aix
*) druntime_target_os_parsed
="aix"
14183 druntime_target_os_parsed
="android"
14185 darwin
*) druntime_target_os_parsed
="darwin"
14188 druntime_target_os_parsed
="dragonflybsd"
14190 freebsd
*|k
*bsd
*-gnu)
14191 druntime_target_os_parsed
="freebsd"
14194 druntime_target_os_parsed
="openbsd"
14197 druntime_target_os_parsed
="netbsd"
14199 linux
*) druntime_target_os_parsed
="linux"
14201 mingw
*) druntime_target_os_parsed
="mingw"
14203 *solaris
*) druntime_target_os_parsed
="solaris"
14205 if test "$druntime_target_os_parsed" = "aix"; then
14206 DRUNTIME_OS_AIX_TRUE
=
14207 DRUNTIME_OS_AIX_FALSE
='#'
14209 DRUNTIME_OS_AIX_TRUE
='#'
14210 DRUNTIME_OS_AIX_FALSE
=
14213 if test "$druntime_target_os_parsed" = "android"; then
14214 DRUNTIME_OS_ANDROID_TRUE
=
14215 DRUNTIME_OS_ANDROID_FALSE
='#'
14217 DRUNTIME_OS_ANDROID_TRUE
='#'
14218 DRUNTIME_OS_ANDROID_FALSE
=
14221 if test "$druntime_target_os_parsed" = "darwin"; then
14222 DRUNTIME_OS_DARWIN_TRUE
=
14223 DRUNTIME_OS_DARWIN_FALSE
='#'
14225 DRUNTIME_OS_DARWIN_TRUE
='#'
14226 DRUNTIME_OS_DARWIN_FALSE
=
14229 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14230 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14231 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14233 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14234 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14237 if test "$druntime_target_os_parsed" = "freebsd"; then
14238 DRUNTIME_OS_FREEBSD_TRUE
=
14239 DRUNTIME_OS_FREEBSD_FALSE
='#'
14241 DRUNTIME_OS_FREEBSD_TRUE
='#'
14242 DRUNTIME_OS_FREEBSD_FALSE
=
14245 if test "$druntime_target_os_parsed" = "netbsd"; then
14246 DRUNTIME_OS_NETBSD_TRUE
=
14247 DRUNTIME_OS_NETBSD_FALSE
='#'
14249 DRUNTIME_OS_NETBSD_TRUE
='#'
14250 DRUNTIME_OS_NETBSD_FALSE
=
14253 if test "$druntime_target_os_parsed" = "openbsd"; then
14254 DRUNTIME_OS_OPENBSD_TRUE
=
14255 DRUNTIME_OS_OPENBSD_FALSE
='#'
14257 DRUNTIME_OS_OPENBSD_TRUE
='#'
14258 DRUNTIME_OS_OPENBSD_FALSE
=
14261 if test "$druntime_target_os_parsed" = "linux"; then
14262 DRUNTIME_OS_LINUX_TRUE
=
14263 DRUNTIME_OS_LINUX_FALSE
='#'
14265 DRUNTIME_OS_LINUX_TRUE
='#'
14266 DRUNTIME_OS_LINUX_FALSE
=
14269 if test "$druntime_target_os_parsed" = "mingw"; then
14270 DRUNTIME_OS_MINGW_TRUE
=
14271 DRUNTIME_OS_MINGW_FALSE
='#'
14273 DRUNTIME_OS_MINGW_TRUE
='#'
14274 DRUNTIME_OS_MINGW_FALSE
=
14277 if test "$druntime_target_os_parsed" = "solaris"; then
14278 DRUNTIME_OS_SOLARIS_TRUE
=
14279 DRUNTIME_OS_SOLARIS_FALSE
='#'
14281 DRUNTIME_OS_SOLARIS_TRUE
='#'
14282 DRUNTIME_OS_SOLARIS_FALSE
=
14286 druntime_target_posix
="no"
14287 case "$druntime_cv_target_os" in
14288 aix
*|
*bsd
*|cygwin
*|darwin
*|dragonfly
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*)
14289 druntime_target_posix
="yes"
14292 if test "$druntime_target_posix" = "yes"; then
14293 DRUNTIME_OS_POSIX_TRUE
=
14294 DRUNTIME_OS_POSIX_FALSE
='#'
14296 DRUNTIME_OS_POSIX_TRUE
='#'
14297 DRUNTIME_OS_POSIX_FALSE
=
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14304 $as_echo_n "checking for thread model used by GDC... " >&6; }
14305 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14307 $as_echo "$d_thread_model" >&6; }
14309 # Map from thread model to thread interface.
14311 case $d_thread_model in
14312 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14313 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14314 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14315 single
) DCFG_THREAD_MODEL
="Single" ;;
14316 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14317 # TODO: These targets need porting.
14318 dce|mipssde|rtems|tpf|vxworks
)
14319 DCFG_THREAD_MODEL
="Single" ;;
14320 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14327 ac_cpp
='$CPP $CPPFLAGS'
14328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14333 $as_echo_n "checking for ARM unwinder... " >&6; }
14334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 #include <unwind.h>
14341 #if __ARM_EABI_UNWINDER__
14349 if ac_fn_c_try_compile
"$LINENO"; then :
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 DCFG_ARM_EABI_UNWINDER
=false
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14355 $as_echo "yes" >&6; }
14356 DCFG_ARM_EABI_UNWINDER
=true
14358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14360 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14361 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14362 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14364 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14365 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14369 ac_cpp
='$CPP $CPPFLAGS'
14370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14377 ac_cpp
='$CPP $CPPFLAGS'
14378 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14383 $as_echo_n "checking for minfo section bracketing... " >&6; }
14384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14387 void* module_info_ptr __attribute__((section ("minfo")));
14388 extern void* __start_minfo __attribute__((visibility ("hidden")));
14389 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14393 // Never run, just to prevent compiler from optimizing access
14394 return &__start_minfo == &__stop_minfo;
14398 if ac_fn_c_try_link
"$LINENO"; then :
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14400 $as_echo "yes" >&6; }
14401 DCFG_MINFO_BRACKETING
=true
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 DCFG_MINFO_BRACKETING
=false
14407 rm -f core conftest.err conftest.
$ac_objext \
14408 conftest
$ac_exeext conftest.
$ac_ext
14410 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14411 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14412 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14414 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14415 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14419 ac_cpp
='$CPP $CPPFLAGS'
14420 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14421 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14427 ac_cpp
='$CPP $CPPFLAGS'
14428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14432 ac_fn_c_check_member
"$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14434 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14435 DCFG_DLPI_TLS_MODID
=true
14437 DCFG_DLPI_TLS_MODID
=false
14442 ac_cpp
='$CPP $CPPFLAGS'
14443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14450 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14451 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14452 # relocs. Work around by disabling TLS transitions. Not necessary
14453 # on 32-bit x86, but cannot be distinguished reliably in specs.
14454 druntime_ld_prog
=`$CC -print-prog-name=ld`
14456 druntime_ld_relax_transtls
=no
14457 if test -n "$druntime_ld_prog" \
14458 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14459 druntime_ld_gld
=yes
14461 echo 'int main (void) { return 0; }' > conftest.c
14462 save_LDFLAGS
="$LDFLAGS"
14463 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14464 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14465 druntime_ld_relax_transtls
=yes
14467 LDFLAGS
="$save_LDFLAGS"
14468 rm -f conftest.c conftest
14470 if test "$druntime_ld_relax_transtls" = "yes"; then
14471 OS_LINK_SPEC
='-z relax=transtls'
14479 ac_cpp
='$CPP $CPPFLAGS'
14480 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14481 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14482 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14484 DCFG_HAVE_QSORT_R
=false
14485 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14486 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14487 DCFG_HAVE_QSORT_R
=true
14492 ac_cpp
='$CPP $CPPFLAGS'
14493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14501 gdc_save_DFLAGS
=$GDCFLAGS
14502 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14505 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14506 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu
=yes
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14510 $as_echo_n "checking for library containing malloc... " >&6; }
14511 if ${ac_cv_search_malloc+:} false
; then :
14512 $as_echo_n "(cached) " >&6
14514 ac_func_search_save_LIBS
=$LIBS
14515 cat > conftest.
$ac_ext <<_ACEOF
14517 extern(C) int malloc();
14519 extern(C) int main() {
14520 malloc(); return 0;
14523 for ac_lib
in '' c
; do
14524 if test -z "$ac_lib"; then
14525 ac_res
="none required"
14528 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14530 if ac_fn_d_try_link
"$LINENO"; then :
14531 ac_cv_search_malloc
=$ac_res
14533 rm -f core conftest.err conftest.
$ac_objext \
14535 if ${ac_cv_search_malloc+:} false
; then :
14539 if ${ac_cv_search_malloc+:} false
; then :
14542 ac_cv_search_malloc
=no
14544 rm conftest.
$ac_ext
14545 LIBS
=$ac_func_search_save_LIBS
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14548 $as_echo "$ac_cv_search_malloc" >&6; }
14549 ac_res
=$ac_cv_search_malloc
14550 if test "$ac_res" != no
; then :
14551 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14556 $as_echo_n "checking for library containing pthread_create... " >&6; }
14557 if ${ac_cv_search_pthread_create+:} false
; then :
14558 $as_echo_n "(cached) " >&6
14560 ac_func_search_save_LIBS
=$LIBS
14561 cat > conftest.
$ac_ext <<_ACEOF
14563 extern(C) int pthread_create();
14565 extern(C) int main() {
14566 pthread_create(); return 0;
14569 for ac_lib
in '' pthread
; do
14570 if test -z "$ac_lib"; then
14571 ac_res
="none required"
14574 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14576 if ac_fn_d_try_link
"$LINENO"; then :
14577 ac_cv_search_pthread_create
=$ac_res
14579 rm -f core conftest.err conftest.
$ac_objext \
14581 if ${ac_cv_search_pthread_create+:} false
; then :
14585 if ${ac_cv_search_pthread_create+:} false
; then :
14588 ac_cv_search_pthread_create
=no
14590 rm conftest.
$ac_ext
14591 LIBS
=$ac_func_search_save_LIBS
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14594 $as_echo "$ac_cv_search_pthread_create" >&6; }
14595 ac_res
=$ac_cv_search_pthread_create
14596 if test "$ac_res" != no
; then :
14597 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14602 $as_echo_n "checking for library containing cosf... " >&6; }
14603 if ${ac_cv_search_cosf+:} false
; then :
14604 $as_echo_n "(cached) " >&6
14606 ac_func_search_save_LIBS
=$LIBS
14607 cat > conftest.
$ac_ext <<_ACEOF
14609 extern(C) int cosf();
14611 extern(C) int main() {
14615 for ac_lib
in '' m
; do
14616 if test -z "$ac_lib"; then
14617 ac_res
="none required"
14620 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14622 if ac_fn_d_try_link
"$LINENO"; then :
14623 ac_cv_search_cosf
=$ac_res
14625 rm -f core conftest.err conftest.
$ac_objext \
14627 if ${ac_cv_search_cosf+:} false
; then :
14631 if ${ac_cv_search_cosf+:} false
; then :
14634 ac_cv_search_cosf
=no
14636 rm conftest.
$ac_ext
14637 LIBS
=$ac_func_search_save_LIBS
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14640 $as_echo "$ac_cv_search_cosf" >&6; }
14641 ac_res
=$ac_cv_search_cosf
14642 if test "$ac_res" != no
; then :
14643 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14648 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14649 if ${ac_cv_search_clock_gettime+:} false
; then :
14650 $as_echo_n "(cached) " >&6
14652 ac_func_search_save_LIBS
=$LIBS
14653 cat > conftest.
$ac_ext <<_ACEOF
14655 extern(C) int clock_gettime();
14657 extern(C) int main() {
14658 clock_gettime(); return 0;
14661 for ac_lib
in '' rt
; do
14662 if test -z "$ac_lib"; then
14663 ac_res
="none required"
14666 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14668 if ac_fn_d_try_link
"$LINENO"; then :
14669 ac_cv_search_clock_gettime
=$ac_res
14671 rm -f core conftest.err conftest.
$ac_objext \
14673 if ${ac_cv_search_clock_gettime+:} false
; then :
14677 if ${ac_cv_search_clock_gettime+:} false
; then :
14680 ac_cv_search_clock_gettime
=no
14682 rm conftest.
$ac_ext
14683 LIBS
=$ac_func_search_save_LIBS
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14686 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14687 ac_res
=$ac_cv_search_clock_gettime
14688 if test "$ac_res" != no
; then :
14689 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14694 # This checks to see if the host supports the compiler-generated builtins
14695 # for atomic operations for various integral sizes. Note, this is intended
14696 # to be an all-or-nothing switch, so all the atomic operations that are
14697 # used should be checked.
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14699 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14700 if ${druntime_cv_atomic_byte+:} false
; then :
14701 $as_echo_n "(cached) " >&6
14704 cat > conftest.
$ac_ext <<_ACEOF
14706 import gcc.builtins;
14708 extern(C) int main() {
14712 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14713 __atomic_load_1(&c1, 5);
14714 __atomic_store_1(&c1, c2, 5);
14719 if ac_fn_d_try_link
"$LINENO"; then :
14720 druntime_cv_atomic_byte
=yes
14722 druntime_cv_atomic_byte
=no
14724 rm -f core conftest.err conftest.
$ac_objext \
14725 conftest
$ac_exeext conftest.
$ac_ext
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14730 $as_echo "$druntime_cv_atomic_byte" >&6; }
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14733 $as_echo_n "checking for atomic builtins for short... " >&6; }
14734 if ${druntime_cv_atomic_short+:} false
; then :
14735 $as_echo_n "(cached) " >&6
14738 cat > conftest.
$ac_ext <<_ACEOF
14740 import gcc.builtins;
14742 extern(C) int main() {
14746 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14747 __atomic_load_2(&c1, 5);
14748 __atomic_store_2(&c1, c2, 5);
14753 if ac_fn_d_try_link
"$LINENO"; then :
14754 druntime_cv_atomic_short
=yes
14756 druntime_cv_atomic_short
=no
14758 rm -f core conftest.err conftest.
$ac_objext \
14759 conftest
$ac_exeext conftest.
$ac_ext
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14764 $as_echo "$druntime_cv_atomic_short" >&6; }
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14767 $as_echo_n "checking for atomic builtins for int... " >&6; }
14768 if ${druntime_cv_atomic_int+:} false
; then :
14769 $as_echo_n "(cached) " >&6
14772 cat > conftest.
$ac_ext <<_ACEOF
14774 import gcc.builtins;
14776 extern(C) int main() {
14780 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14781 __atomic_load_4(&c1, 5);
14782 __atomic_store_4(&c1, c2, 5);
14787 if ac_fn_d_try_link
"$LINENO"; then :
14788 druntime_cv_atomic_int
=yes
14790 druntime_cv_atomic_int
=no
14792 rm -f core conftest.err conftest.
$ac_objext \
14793 conftest
$ac_exeext conftest.
$ac_ext
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14798 $as_echo "$druntime_cv_atomic_int" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14801 $as_echo_n "checking for atomic builtins for long... " >&6; }
14802 if ${druntime_cv_atomic_long+:} false
; then :
14803 $as_echo_n "(cached) " >&6
14806 cat > conftest.
$ac_ext <<_ACEOF
14808 import gcc.builtins;
14810 extern(C) int main() {
14814 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14815 __atomic_load_8(&c1, 5);
14816 __atomic_store_8(&c1, c2, 5);
14821 if ac_fn_d_try_link
"$LINENO"; then :
14822 druntime_cv_atomic_long
=yes
14824 druntime_cv_atomic_long
=no
14826 rm -f core conftest.err conftest.
$ac_objext \
14827 conftest
$ac_exeext conftest.
$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14832 $as_echo "$druntime_cv_atomic_long" >&6; }
14834 # Have atomic builtin support if all but the long test above passes.
14835 DCFG_HAVE_ATOMIC_BUILTINS
=false
14836 if test "$druntime_cv_atomic_byte" = yes \
14837 && test "$druntime_cv_atomic_short" = yes \
14838 && test "$druntime_cv_atomic_int" = yes; then \
14839 DCFG_HAVE_ATOMIC_BUILTINS
=true
14842 # Have 64-bit atomic support if the long test above passes.
14843 DCFG_HAVE_64BIT_ATOMICS
=false
14844 if test "$druntime_cv_atomic_long" = yes; then
14845 DCFG_HAVE_64BIT_ATOMICS
=true
14852 ac_cpp
='$CPP $CPPFLAGS'
14853 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14854 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14855 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14858 GDCFLAGS
=$gdc_save_DFLAGS
14863 # Check whether --with-libatomic was given.
14864 if test "${with_libatomic+set}" = set; then :
14865 withval
=$with_libatomic;
14869 DCFG_HAVE_LIBATOMIC
=false
14871 if test "x$with_libatomic" != "xno"; then :
14873 DCFG_HAVE_LIBATOMIC
=true
14874 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14879 $as_echo_n "checking for libatomic... " >&6; }
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14881 $as_echo "disabled" >&6; }
14890 ac_cpp
='$CPP $CPPFLAGS'
14891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14895 BACKTRACE_SUPPORTED
=false
14896 BACKTRACE_USES_MALLOC
=false
14897 BACKTRACE_SUPPORTS_THREADS
=false
14901 # Check whether --with-libbacktrace was given.
14902 if test "${with_libbacktrace+set}" = set; then :
14903 withval
=$with_libbacktrace;
14907 if test "x$with_libbacktrace" != "xno"; then :
14909 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14911 gdc_save_CPPFLAGS
=$CPPFLAGS
14912 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
14914 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14915 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14916 have_libbacktrace_h
=true
14918 have_libbacktrace_h
=false
14923 if $have_libbacktrace_h; then
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14925 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14929 #include <backtrace-supported.h>
14930 #if BACKTRACE_SUPPORTED
14931 FOUND_LIBBACKTRACE_RESULT_GDC
14935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14936 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14937 BACKTRACE_SUPPORTED
=true
14939 BACKTRACE_SUPPORTED
=false
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14944 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14947 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14949 /* end confdefs.h. */
14951 #include <backtrace-supported.h>
14952 #if BACKTRACE_USES_MALLOC
14953 FOUND_LIBBACKTRACE_RESULT_GDC
14957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14958 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14959 BACKTRACE_USES_MALLOC
=true
14961 BACKTRACE_USES_MALLOC
=false
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14966 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14969 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14973 #include <backtrace-supported.h>
14974 #if BACKTRACE_SUPPORTS_THREADS
14975 FOUND_LIBBACKTRACE_RESULT_GDC
14979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14980 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14981 BACKTRACE_SUPPORTS_THREADS
=true
14983 BACKTRACE_SUPPORTS_THREADS
=false
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14988 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14990 CPPFLAGS
=$gdc_save_CPPFLAGS
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14995 $as_echo_n "checking for libbacktrace... " >&6; }
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14997 $as_echo "disabled" >&6; }
15006 ac_cpp
='$CPP $CPPFLAGS'
15007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15013 # Libtool has already checked this, so re-use the inferred dlopen lib.
15014 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15016 LIBS
="$LIBS $lt_cv_dlopen_libs"
15021 druntime_check_both
=no
15022 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15023 if test "x$ac_cv_func_connect" = xyes
; then :
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15027 $as_echo_n "checking for connect in -lsocket... " >&6; }
15028 if ${ac_cv_lib_socket_connect+:} false
; then :
15029 $as_echo_n "(cached) " >&6
15031 ac_check_lib_save_LIBS
=$LIBS
15032 LIBS
="-lsocket $LIBS"
15033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15036 /* Override any GCC internal prototype to avoid an error.
15037 Use char because int might match the return type of a GCC
15038 builtin and then its argument prototype would still apply. */
15051 if ac_fn_c_try_link
"$LINENO"; then :
15052 ac_cv_lib_socket_connect
=yes
15054 ac_cv_lib_socket_connect
=no
15056 rm -f core conftest.err conftest.
$ac_objext \
15057 conftest
$ac_exeext conftest.
$ac_ext
15058 LIBS
=$ac_check_lib_save_LIBS
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15061 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15062 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
15063 LIBS
="$LIBS -lsocket"
15065 druntime_check_both
=yes
15070 if test "$druntime_check_both" = "yes"; then
15071 druntime_old_libs
=$LIBS
15072 LIBS
="$LIBS -lsocket -lnsl"
15073 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15074 if test "x$ac_cv_func_accept" = xyes
; then :
15077 LIBS
=$druntime_old_libs
15081 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15082 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15086 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15087 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
15088 $as_echo_n "(cached) " >&6
15090 ac_check_lib_save_LIBS
=$LIBS
15092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char gethostbyname ();
15105 return gethostbyname ();
15110 if ac_fn_c_try_link
"$LINENO"; then :
15111 ac_cv_lib_nsl_gethostbyname
=yes
15113 ac_cv_lib_nsl_gethostbyname
=no
15115 rm -f core conftest.err conftest.
$ac_objext \
15116 conftest
$ac_exeext conftest.
$ac_ext
15117 LIBS
=$ac_check_lib_save_LIBS
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15120 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15121 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
15129 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15130 # "yes" for targets that have 'version = AsmExternal'.
15131 druntime_fiber_asm_external
=no
15132 case "$target_cpu" in
15135 i
[34567]86|x86_64 | \
15137 druntime_fiber_asm_external
=yes
15140 if test "$druntime_fiber_asm_external" = no
; then
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15142 $as_echo_n "checking for library containing swapcontext... " >&6; }
15143 if ${ac_cv_search_swapcontext+:} false
; then :
15144 $as_echo_n "(cached) " >&6
15146 ac_func_search_save_LIBS
=$LIBS
15147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15148 /* end confdefs.h. */
15150 /* Override any GCC internal prototype to avoid an error.
15151 Use char because int might match the return type of a GCC
15152 builtin and then its argument prototype would still apply. */
15156 char swapcontext ();
15160 return swapcontext ();
15165 for ac_lib
in '' c ucontext
; do
15166 if test -z "$ac_lib"; then
15167 ac_res
="none required"
15170 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15172 if ac_fn_c_try_link
"$LINENO"; then :
15173 ac_cv_search_swapcontext
=$ac_res
15175 rm -f core conftest.err conftest.
$ac_objext \
15177 if ${ac_cv_search_swapcontext+:} false
; then :
15181 if ${ac_cv_search_swapcontext+:} false
; then :
15184 ac_cv_search_swapcontext
=no
15186 rm conftest.
$ac_ext
15187 LIBS
=$ac_func_search_save_LIBS
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15190 $as_echo "$ac_cv_search_swapcontext" >&6; }
15191 ac_res
=$ac_cv_search_swapcontext
15192 if test "$ac_res" != no
; then :
15193 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15196 as_fn_error $?
"swapcontext required but not found" "$LINENO" 5
15203 ac_cpp
='$CPP $CPPFLAGS'
15204 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15211 # Check whether --with-target-system-zlib was given.
15212 if test "${with_target_system_zlib+set}" = set; then :
15213 withval
=$with_target_system_zlib;
15215 with_target_system_zlib
=no
15219 case "$with_target_system_zlib" in
15221 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15225 $as_echo_n "checking for system zlib... " >&6; }
15228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15234 gzopen("none", "rb")
15239 if ac_fn_c_try_link
"$LINENO"; then :
15241 if test "$cross_compiling" = yes; then :
15242 system_zlib_found
=no
15245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15250 gzFile file = gzopen("none", "rb");
15255 if ac_fn_c_try_run
"$LINENO"; then :
15256 system_zlib_found
=yes
15258 system_zlib_found
=no
15260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15266 system_zlib_found
=no
15268 rm -f core conftest.err conftest.
$ac_objext \
15269 conftest
$ac_exeext conftest.
$ac_ext
15272 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15274 $as_echo "found" >&6; }
15276 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15277 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15280 $as_echo "just compiled" >&6; }
15281 LIBZ
=..
/..
/zlib
/libz_convenience.la
15286 ac_cpp
='$CPP $CPPFLAGS'
15287 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15296 $as_echo_n "checking D GCC version... " >&6; }
15297 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15299 $as_echo "$gcc_version" >&6; }
15303 # Check whether --with-cross-host was given.
15304 if test "${with_cross_host+set}" = set; then :
15305 withval
=$with_cross_host;
15309 libphobos_toolexecdir
=no
15310 libphobos_toolexeclibdir
=no
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15313 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15314 # Check whether --enable-version-specific-runtime-libs was given.
15315 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15316 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15317 yes) version_specific_libs
=yes ;;
15318 no
) version_specific_libs
=no
;;
15319 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15322 version_specific_libs
=no
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15326 $as_echo "$version_specific_libs" >&6; }
15329 # Check whether --with-toolexeclibdir was given.
15330 if test "${with_toolexeclibdir+set}" = set; then :
15331 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15335 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
15339 with_toolexeclibdir
=no
15344 # Version-specific runtime libs processing.
15345 if test $version_specific_libs = yes; then
15346 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15347 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15349 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15350 # Install a library built with a cross compiler in tooldir, not libdir.
15351 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15352 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15353 case ${with_toolexeclibdir} in
15355 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15358 libphobos_toolexeclibdir
=${with_toolexeclibdir}
15362 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15363 libphobos_toolexeclibdir
='${libdir}'
15365 multi_os_directory
=`$GDC -print-multi-os-directory`
15366 case $multi_os_directory in
15367 .
) ;; # Avoid trailing /.
15368 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15374 # Default case for install directory for D sources files.
15375 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15380 $as_echo_n "checking for --enable-libphobos... " >&6; }
15381 # Check whether --enable-libphobos was given.
15382 if test "${enable_libphobos+set}" = set; then :
15383 enableval
=$enable_libphobos;
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15387 $as_echo "$enable_libphobos" >&6; }
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15390 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15392 # Check whether --with-libphobos-druntime-only was given.
15393 if test "${with_libphobos_druntime_only+set}" = set; then :
15394 withval
=$with_libphobos_druntime_only;
15396 with_libphobos_druntime_only
=auto
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15400 $as_echo "$with_libphobos_druntime_only" >&6; }
15402 case "$with_libphobos_druntime_only" in
15404 *) as_fn_error $?
"Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15407 # See if supported.
15408 unset LIBPHOBOS_SUPPORTED
15409 unset LIBDRUNTIME_ONLY
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15411 $as_echo_n "checking for host support for libphobos... " >&6; }
15412 .
${srcdir}/configure.tgt
15414 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15415 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15416 # relatively low linelength limit.
15417 as_prog
=`$CC -print-prog-name=as`
15418 if test -n "$as_prog" && $as_prog -v /dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
15419 druntime_cv_use_gas
=yes;
15421 druntime_cv_use_gas
=no
;
15424 if test x
$druntime_cv_use_gas = xno
; then
15425 LIBPHOBOS_SUPPORTED
=no
15427 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15428 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15429 LIBPHOBOS_SUPPORTED
=no
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15434 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15436 # Decide if it's usable.
15437 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15438 *:no
) use_libphobos
=no
;;
15439 *:yes) use_libphobos
=yes ;;
15440 yes:*) use_libphobos
=yes ;;
15441 *:*) use_libphobos
=no
;;
15443 if test x
$use_libphobos = xyes
; then
15444 ENABLE_LIBPHOBOS_TRUE
=
15445 ENABLE_LIBPHOBOS_FALSE
='#'
15447 ENABLE_LIBPHOBOS_TRUE
='#'
15448 ENABLE_LIBPHOBOS_FALSE
=
15452 # Decide if only libdruntime should be built.
15453 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15454 *:no
) only_libdruntime
=no
;;
15455 *:yes) only_libdruntime
=yes ;;
15456 yes:*) only_libdruntime
=yes ;;
15457 *:*) only_libdruntime
=no
;;
15459 if test x
$only_libdruntime = xyes
; then
15460 ENABLE_LIBDRUNTIME_ONLY_TRUE
=
15461 ENABLE_LIBDRUNTIME_ONLY_FALSE
='#'
15463 ENABLE_LIBDRUNTIME_ONLY_TRUE
='#'
15464 ENABLE_LIBDRUNTIME_ONLY_FALSE
=
15468 # Enable expensive internal checks
15469 # Check whether --enable-libphobos-checking was given.
15470 if test "${enable_libphobos_checking+set}" = set; then :
15471 enableval
=$enable_libphobos_checking; ac_checking_flags
="${enableval}"
15473 ac_checking_flags
=release
15476 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
15477 for check
in release
$ac_checking_flags
15480 # These set all the flags to specific states
15481 yes|all
) RELEASE_FLAG
="-fno-release" ; ASSERT_FLAG
= ;;
15482 no|none|release
) RELEASE_FLAG
="-frelease" ; ASSERT_FLAG
= ;;
15483 # These enable particular checks
15484 assert
) ASSERT_FLAG
="-fassert" ;;
15490 CHECKING_DFLAGS
="$RELEASE_FLAG $ASSERT_FLAG"
15493 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15494 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15495 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15497 DRTSTUFF_SPEC
=/dev
/null
15501 # Add dependencies for libgphobos.spec file
15502 SPEC_PHOBOS_DEPS
="$LIBS"
15505 # Libdruntime / phobos soname version
15506 libtool_VERSION
=2:0:0
15509 # Set default flags (after DRUNTIME_WERROR!)
15510 if test -z "$GDCFLAGS"; then
15515 WARN_DFLAGS
="-Wall $WERROR_FLAG"
15518 # Sanity check for the cross-compilation case:
15519 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15520 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15523 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15528 ac_config_files
="$ac_config_files Makefile"
15531 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15533 ac_config_files
="$ac_config_files src/libgphobos.spec"
15535 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15538 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15539 # that multilib installs will end up installed in the correct place.
15540 # The testsuite needs it for multilib-aware ABI baseline files.
15541 # To work around this not being passed down from config-ml.in ->
15542 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15543 # append it here. Only modify Makefiles that have just been created.
15545 # Also, get rid of this simulated-VPATH thing that automake does.
15546 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15549 cat >confcache
<<\_ACEOF
15550 # This file is a shell script that caches the results of configure
15551 # tests run on this system so they can be shared between configure
15552 # scripts and configure runs, see configure's option --config-cache.
15553 # It is not useful on other systems. If it contains results you don't
15554 # want to keep, you may remove or edit it.
15556 # config.status only pays attention to the cache file if you give it
15557 # the --recheck option to rerun configure.
15559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15561 # following values.
15565 # The following way of writing the cache mishandles newlines in values,
15566 # but we know of no workaround that is simple, portable, and efficient.
15567 # So, we kill variables containing newlines.
15568 # Ultrix sh set writes to stderr and can't be redirected directly,
15569 # and sets the high bit in the cache file unless we assign to the vars.
15571 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15572 eval ac_val
=\$
$ac_var
15576 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15580 _ | IFS | as_nl
) ;; #(
15581 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15582 *) { eval $ac_var=; unset $ac_var;} ;;
15588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15589 *${as_nl}ac_space
=\
*)
15590 # `set' does not quote correctly, so add quotes: double-quote
15591 # substitution turns \\\\ into \\, and sed turns \\ into \.
15594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15597 # `set' quotes correctly as required by POSIX, so do not add quotes.
15598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15611 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15612 if test -w "$cache_file"; then
15613 if test "x$cache_file" != "x/dev/null"; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15615 $as_echo "$as_me: updating cache $cache_file" >&6;}
15616 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15617 cat confcache
>"$cache_file"
15619 case $cache_file in #(
15621 mv -f confcache
"$cache_file"$$
&&
15622 mv -f "$cache_file"$$
"$cache_file" ;; #(
15624 mv -f confcache
"$cache_file" ;;
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15635 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15636 # Let make expand exec_prefix.
15637 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15639 DEFS
=-DHAVE_CONFIG_H
15644 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15645 # 1. Remove the extension, and $U if already installed.
15646 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15647 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15648 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15649 # will be set to the directory where LIBOBJS objects are built.
15650 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15651 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15653 LIBOBJS
=$ac_libobjs
15655 LTLIBOBJS
=$ac_ltlibobjs
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15659 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15660 if test -n "$am_sleep_pid"; then
15661 # Hide warnings about reused PIDs.
15662 wait $am_sleep_pid 2>/dev
/null
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15665 $as_echo "done" >&6; }
15666 if test -n "$EXEEXT"; then
15668 am__EXEEXT_FALSE
='#'
15670 am__EXEEXT_TRUE
='#'
15674 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15675 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15679 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15683 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15687 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15691 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15695 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15699 as_fn_error $?
"conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15703 as_fn_error $?
"conditional \"DRUNTIME_CPU_S390\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15706 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15707 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15710 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15711 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15714 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15715 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15719 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15723 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15727 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15731 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15735 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15739 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15743 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15747 as_fn_error $?
"conditional \"DRUNTIME_OS_POSIX\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15751 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15755 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15758 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15759 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
15760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15762 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15763 as_fn_error $?
"conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 : "${CONFIG_STATUS=./config.status}"
15769 ac_clean_files_save
=$ac_clean_files
15770 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15776 # Generated by $as_me.
15777 # Run this file to recreate the current configuration.
15778 # Compiler output produced by configure, useful for debugging
15779 # configure, is in config.log if it exists.
15782 ac_cs_recheck=false
15785 SHELL=\${CONFIG_SHELL-$SHELL}
15788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15789 ## -------------------- ##
15790 ## M4sh Initialization. ##
15791 ## -------------------- ##
15793 # Be more Bourne compatible
15794 DUALCASE
=1; export DUALCASE
# for MKS sh
15795 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15798 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15799 # is contrary to our usage. Disable this feature.
15800 alias -g '${1+"$@"}'='"$@"'
15801 setopt NO_GLOB_SUBST
15803 case `(set -o) 2>/dev/null` in #(
15815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15816 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15819 # Prefer a ksh shell builtin over an external printf program on Solaris,
15820 # but without wasting forks for bash or zsh.
15821 if test -z "$BASH_VERSION$ZSH_VERSION" \
15822 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15823 as_echo='print
-r --'
15824 as_echo_n='print
-rn --'
15825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15826 as_echo='printf %s
\n'
15827 as_echo_n='printf %s
'
15829 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15830 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15831 as_echo_n='/usr
/ucb
/echo -n'
15833 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15834 as_echo_n_body='eval
15838 expr "X$arg" : "X\\(.*\\)$as_nl";
15839 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15841 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15843 export as_echo_n_body
15844 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15846 export as_echo_body
15847 as_echo='sh
-c $as_echo_body as_echo
'
15850 # The user is always right.
15851 if test "${PATH_SEPARATOR+set}" != set; then
15853 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15854 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15861 # We need space, tab and new line, in precisely that order. Quoting is
15862 # there to prevent editors from complaining about space-tab.
15863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15864 # splitting by setting IFS to empty value.)
15867 # Find who we are. Look in the path if we contain no directory separator.
15870 *[\\/]* ) as_myself=$0 ;;
15871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15875 test -z "$as_dir" && as_dir=.
15876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15882 # We did not find ourselves, most probably we were run as `sh COMMAND'
15883 # in which case we are not to be found in the path.
15884 if test "x$as_myself" = x
; then
15887 if test ! -f "$as_myself"; then
15888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15892 # Unset variables that we do not need and which cause bugs (e.g. in
15893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15894 # suppresses any "Segmentation fault" message there. '((' could
15895 # trigger a bug in pdksh 5.2.14.
15896 for as_var
in BASH_ENV ENV MAIL MAILPATH
15897 do eval test x\
${$as_var+set} = xset \
15898 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15911 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15915 # ----------------------------------------
15916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15918 # script with STATUS, using 1 if that was 0.
15921 as_status
=$1; test $as_status -eq 0 && as_status
=1
15923 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15926 $as_echo "$as_me: error: $2" >&2
15927 as_fn_exit
$as_status
15931 # as_fn_set_status STATUS
15932 # -----------------------
15933 # Set $? to STATUS, without forking.
15934 as_fn_set_status
()
15937 } # as_fn_set_status
15939 # as_fn_exit STATUS
15940 # -----------------
15941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15945 as_fn_set_status
$1
15951 # Portably unset VAR.
15954 { eval $1=; unset $1;}
15956 as_unset
=as_fn_unset
15957 # as_fn_append VAR VALUE
15958 # ----------------------
15959 # Append the text in VALUE to the end of the definition contained in VAR. Take
15960 # advantage of any shell optimizations that allow amortized linear growth over
15961 # repeated appends, instead of the typical quadratic growth present in naive
15963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15964 eval 'as_fn_append ()
15975 # as_fn_arith ARG...
15976 # ------------------
15977 # Perform arithmetic evaluation on the ARGs, and store the result in the
15978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15979 # must be portable across $(()) and expr.
15980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15981 eval 'as_fn_arith ()
15988 as_val
=`expr "$@" || test $? -eq 1`
15993 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15994 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16000 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16001 as_basename
=basename
16006 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16012 as_me
=`$as_basename -- "$0" ||
16013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16014 X"$0" : 'X\(//\)$' \| \
16015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16017 sed '/^.*\/\([^/][^/]*\)\/*$/{
16031 # Avoid depending upon Character Ranges.
16032 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16033 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16034 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16035 as_cr_digits
='0123456789'
16036 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16038 ECHO_C
= ECHO_N
= ECHO_T
=
16039 case `echo -n x` in #(((((
16041 case `echo 'xy\c'` in
16042 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16044 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16051 rm -f conf$$ conf$$.exe conf$$.
file
16052 if test -d conf$$.dir
; then
16053 rm -f conf$$.dir
/conf$$.
file
16056 mkdir conf$$.dir
2>/dev
/null
16058 if (echo >conf$$.
file) 2>/dev
/null
; then
16059 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16061 # ... but there are two gotchas:
16062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16064 # In both cases, we have to default to `cp -pR'.
16065 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16067 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16075 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16076 rmdir conf$$.dir
2>/dev
/null
16081 # Create "$as_dir" as a directory, including parents if necessary.
16086 -*) as_dir
=.
/$as_dir;;
16088 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16092 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16093 *) as_qdir
=$as_dir;;
16095 as_dirs
="'$as_qdir' $as_dirs"
16096 as_dir
=`$as_dirname -- "$as_dir" ||
16097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16098 X"$as_dir" : 'X\(//\)[^/]' \| \
16099 X"$as_dir" : 'X\(//\)$' \| \
16100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16101 $as_echo X"$as_dir" |
16102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16106 /^X\(\/\/\)[^/].*/{
16119 test -d "$as_dir" && break
16121 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16122 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16126 if mkdir
-p .
2>/dev
/null
; then
16127 as_mkdir_p
='mkdir -p "$as_dir"'
16129 test -d .
/-p && rmdir .
/-p
16134 # as_fn_executable_p FILE
16135 # -----------------------
16136 # Test if FILE is an executable regular file.
16137 as_fn_executable_p
()
16139 test -f "$1" && test -x "$1"
16140 } # as_fn_executable_p
16141 as_test_x
='test -x'
16142 as_executable_p
=as_fn_executable_p
16144 # Sed expression to map a string onto a valid CPP name.
16145 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16147 # Sed expression to map a string onto a valid variable name.
16148 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16152 ## ----------------------------------- ##
16153 ## Main body of $CONFIG_STATUS script. ##
16154 ## ----------------------------------- ##
16156 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16159 # Save the log message, to keep $0 and so on meaningful, and to
16160 # report actual input values of CONFIG_FILES etc. instead of their
16161 # values after options handling.
16163 This file was extended by package-unused $as_me version-unused, which was
16164 generated by GNU Autoconf 2.69. Invocation command line was
16166 CONFIG_FILES = $CONFIG_FILES
16167 CONFIG_HEADERS = $CONFIG_HEADERS
16168 CONFIG_LINKS = $CONFIG_LINKS
16169 CONFIG_COMMANDS = $CONFIG_COMMANDS
16172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16177 case $ac_config_files in *"
16178 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16181 case $ac_config_headers in *"
16182 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 # Files that config.status was made for.
16188 config_files="$ac_config_files"
16189 config_headers="$ac_config_headers"
16190 config_commands="$ac_config_commands"
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16196 \`$as_me' instantiates files and other configuration actions
16197 from templates according to the current configuration. Unless the files
16198 and actions are specified as TAGs, all are instantiated by default.
16200 Usage: $0 [OPTION]... [TAG]...
16202 -h, --help print this help, then exit
16203 -V, --version print version number and configuration settings, then exit
16204 --config print configuration, then exit
16205 -q, --quiet, --silent
16206 do not print progress messages
16207 -d, --debug don't remove temporary files
16208 --recheck update $as_me by reconfiguring in the same conditions
16209 --file=FILE[:TEMPLATE]
16210 instantiate the configuration file FILE
16211 --header=FILE[:TEMPLATE]
16212 instantiate the configuration header FILE
16214 Configuration files:
16217 Configuration headers:
16220 Configuration commands:
16223 Report bugs to the package provider."
16226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16227 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16229 package-unused config.status version-unused
16230 configured by $0, generated by GNU Autoconf 2.69,
16231 with options \\"\$ac_cs_config\\"
16233 Copyright (C) 2012 Free Software Foundation, Inc.
16234 This config.status script is free software; the Free Software Foundation
16235 gives unlimited permission to copy, distribute and modify it."
16242 test -n "\$AWK" || AWK=awk
16245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16246 # The default lists apply if the user does not specify any file.
16252 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16253 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16257 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16269 # Handling of the options.
16270 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16272 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16273 $as_echo "$ac_cs_version"; exit ;;
16274 --config |
--confi |
--conf |
--con |
--co |
--c )
16275 $as_echo "$ac_cs_config"; exit ;;
16276 --debug |
--debu |
--deb |
--de |
--d |
-d )
16278 --file |
--fil |
--fi |
--f )
16281 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282 '') as_fn_error $?
"missing file argument" ;;
16284 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16285 ac_need_defaults
=false
;;
16286 --header |
--heade |
--head |
--hea )
16289 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16291 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16292 ac_need_defaults
=false
;;
16294 # Conflict between --help and --header
16295 as_fn_error $?
"ambiguous option: \`$1'
16296 Try \`$0 --help' for more information.";;
16297 --help |
--hel |
-h )
16298 $as_echo "$ac_cs_usage"; exit ;;
16299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16300 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16303 # This is an error.
16304 -*) as_fn_error $?
"unrecognized option: \`$1'
16305 Try \`$0 --help' for more information." ;;
16307 *) as_fn_append ac_config_targets
" $1"
16308 ac_need_defaults
=false
;;
16314 ac_configure_extra_args
=
16316 if $ac_cs_silent; then
16318 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 if \$ac_cs_recheck; then
16324 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16326 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16327 CONFIG_SHELL='$SHELL'
16328 export CONFIG_SHELL
16333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16338 ## Running $as_me. ##
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 with_multisubdir="$with_multisubdir"
16353 with_multisrctop="$with_multisrctop"
16354 with_target_subdir="$with_target_subdir"
16355 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16356 multi_basedir="$multi_basedir"
16357 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16360 GFORTRAN="$GFORTRAN"
16364 # The HP-UX ksh and POSIX shell print the target directory to stdout
16365 # if CDPATH is set.
16366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16368 sed_quote_subst='$sed_quote_subst'
16369 double_quote_subst='$double_quote_subst'
16370 delay_variable_subst='$delay_variable_subst'
16371 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16372 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16373 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16374 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16375 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16376 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16377 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16378 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16379 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16380 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16381 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16382 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16383 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16384 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16385 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16386 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16387 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16388 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16389 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16390 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16391 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16392 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16393 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16394 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16395 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16396 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16397 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16398 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16401 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16402 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16403 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16404 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16405 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16406 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16407 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16408 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16409 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16410 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16411 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16412 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16413 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16414 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16415 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16416 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16417 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16419 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"`'
16420 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16421 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16422 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16424 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16425 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16426 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16427 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16451 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16452 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16453 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16454 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16455 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16456 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16457 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16458 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16459 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16460 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16461 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16462 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16463 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16464 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16465 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16466 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16467 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16468 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16469 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16470 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16471 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16472 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16473 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16474 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16475 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16476 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16477 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16478 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16479 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16480 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16481 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16482 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16483 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16484 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16491 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16492 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16493 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16494 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16495 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16496 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16499 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16500 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16501 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16502 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16503 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16504 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16505 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16506 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16507 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16508 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16509 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16510 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16511 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16512 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16513 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16514 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16515 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16516 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16517 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16518 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16519 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16520 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16521 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16522 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16523 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16524 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16525 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16526 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16527 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16528 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16529 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16530 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16531 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16532 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16533 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16536 LTCFLAGS='$LTCFLAGS'
16537 compiler='$compiler_DEFAULT'
16539 # A function that is used when there is no print builtin or printf.
16540 func_fallback_echo ()
16542 eval 'cat <<_LTECHO_EOF
16547 # Quote evaled strings.
16561 deplibs_check_method \
16570 lt_cv_sys_global_symbol_pipe \
16571 lt_cv_sys_global_symbol_to_cdecl \
16572 lt_cv_sys_global_symbol_to_c_name_address \
16573 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16574 lt_prog_compiler_no_builtin_flag \
16575 lt_prog_compiler_wl \
16576 lt_prog_compiler_pic \
16577 lt_prog_compiler_static \
16578 lt_cv_prog_compiler_c_o \
16586 export_dynamic_flag_spec \
16587 whole_archive_flag_spec \
16588 compiler_needs_object \
16590 allow_undefined_flag \
16591 no_undefined_flag \
16592 hardcode_libdir_flag_spec \
16593 hardcode_libdir_flag_spec_ld \
16594 hardcode_libdir_separator \
16599 variables_saved_for_relink \
16601 library_names_spec \
16603 install_override_mode \
16610 lt_prog_compiler_no_builtin_flag_D \
16611 lt_prog_compiler_wl_D \
16612 lt_prog_compiler_pic_D \
16613 lt_prog_compiler_static_D \
16614 lt_cv_prog_compiler_c_o_D \
16615 export_dynamic_flag_spec_D \
16616 whole_archive_flag_spec_D \
16617 compiler_needs_object_D \
16619 allow_undefined_flag_D \
16620 no_undefined_flag_D \
16621 hardcode_libdir_flag_spec_D \
16622 hardcode_libdir_flag_spec_ld_D \
16623 hardcode_libdir_separator_D \
16624 fix_srcfile_path_D \
16625 exclude_expsyms_D \
16626 include_expsyms_D \
16627 file_list_spec_D; do
16628 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16629 *[\\\\\\\`\\"\\\$]*)
16630 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16633 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16638 # Double-quote double-evaled strings.
16639 for var in reload_cmds \
16640 old_postinstall_cmds \
16641 old_postuninstall_cmds \
16643 extract_expsyms_cmds \
16644 old_archive_from_new_cmds \
16645 old_archive_from_expsyms_cmds \
16647 archive_expsym_cmds \
16649 module_expsym_cmds \
16650 export_symbols_cmds \
16653 postuninstall_cmds \
16655 sys_lib_search_path_spec \
16656 sys_lib_dlsearch_path_spec \
16658 old_archive_cmds_D \
16659 old_archive_from_new_cmds_D \
16660 old_archive_from_expsyms_cmds_D \
16662 archive_expsym_cmds_D \
16664 module_expsym_cmds_D \
16665 export_symbols_cmds_D \
16667 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16668 *[\\\\\\\`\\"\\\$]*)
16669 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16672 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16677 ac_aux_dir='$ac_aux_dir'
16678 xsi_shell='$xsi_shell'
16679 lt_shell_append='$lt_shell_append'
16681 # See if we are running on zsh, and set the options which allow our
16682 # commands through without removal of \ escapes INIT.
16683 if test -n "\${ZSH_VERSION+set}" ; then
16684 setopt NO_GLOB_SUBST
16690 TIMESTAMP='$TIMESTAMP'
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16703 # Handling of arguments.
16704 for ac_config_target
in $ac_config_targets
16706 case $ac_config_target in
16707 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16708 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16709 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16710 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16711 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16712 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16713 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16714 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16715 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16716 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16717 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16719 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16724 # If the user did not use the arguments to specify the items to instantiate,
16725 # then the envvar interface is used. Set only those that are not.
16726 # We use the long form for the default assignment because of an extremely
16727 # bizarre bug on SunOS 4.1.3.
16728 if $ac_need_defaults; then
16729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16734 # Have a temporary directory for convenience. Make it in the build tree
16735 # simply because there is no reason against having it here, and in addition,
16736 # creating and moving files from /tmp can sometimes cause problems.
16737 # Hook for its removal unless debugging.
16738 # Note that there is a small window in which the directory will not be cleaned:
16739 # after its creation but before its name has been assigned to `$tmp'.
16743 trap 'exit_status=$?
16744 : "${ac_tmp:=$tmp}"
16745 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16747 trap 'as_fn_exit 1' 1 2 13 15
16749 # Create a (secure) tmp directory for tmp files.
16752 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16756 tmp
=.
/conf$$
-$RANDOM
16757 (umask 077 && mkdir
"$tmp")
16758 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16761 # Set up the scripts for CONFIG_FILES section.
16762 # No need to generate them if there are no CONFIG_FILES.
16763 # This happens for instance with `./config.status config.h'.
16764 if test -n "$CONFIG_FILES"; then
16766 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16767 ac_cs_awk_getline
=:
16768 ac_cs_awk_pipe_init
=
16769 ac_cs_awk_read_file
='
16770 while ((getline aline < (F[key])) > 0)
16773 ac_cs_awk_pipe_fini
=
16775 ac_cs_awk_getline
=false
16776 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16777 ac_cs_awk_read_file
='
16779 print "cat " F[key] " &&"
16780 '$ac_cs_awk_pipe_init
16781 # The final `:' finishes the AND list.
16782 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16784 ac_cr
=`echo X | tr X '\015'`
16785 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16786 # But we know of no other shell where ac_cr would be empty at this
16787 # point, so we can use a bashism as a fallback.
16788 if test "x$ac_cr" = x
; then
16789 eval ac_cr
=\$
\'\\r
\'
16791 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16792 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16795 ac_cs_awk_cr
=$ac_cr
16798 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16801 # Create commands to substitute file output variables.
16803 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16804 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16805 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16808 } >conf$
$files.sh
&&
16809 . .
/conf$
$files.sh ||
16810 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16811 rm -f conf$
$files.sh
16814 echo "cat >conf$$subs.awk <<_ACEOF" &&
16815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16817 } >conf$$subs.sh ||
16818 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16821 for ac_last_try in false false false false false :; do
16822 . ./conf$$subs.sh ||
16823 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16825 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16826 if test $ac_delim_n = $ac_delim_num; then
16828 elif $ac_last_try; then
16829 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16831 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16834 rm -f conf$$subs.sh
16836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16837 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16841 s/^/S["/; s
/!.
*/"]=/
16851 s/\(.\{148\}\)..*/\1/
16853 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16858 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16865 s/\(.\{148\}\)..*/\1/
16867 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16871 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16876 ' <conf$$subs.awk | sed '
16881 ' >>$CONFIG_STATUS || ac_write_fail=1
16882 rm -f conf$$subs.awk
16883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16885 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16886 for (key in S) S_is_set[key] = 1
16888 \$ac_cs_awk_pipe_init
16892 nfields = split(line, field, "@
")
16894 len = length(field[1])
16895 for (i = 2; i < nfields; i++) {
16897 keylen = length(key)
16898 if (S_is_set[key]) {
16900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16901 len += length(value) + length(field[++i])
16906 if (nfields == 3 && !substed) {
16908 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16909 \$ac_cs_awk_read_file
16915 \$ac_cs_awk_pipe_fini
16918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16919 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16920 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16923 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16924 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16927 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16928 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16929 # trailing colons and then remove the whole line if VPATH becomes empty
16930 # (actually we leave an empty line to preserve line numbers).
16931 if test "x
$srcdir" = x.; then
16932 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16951 fi # test -n "$CONFIG_FILES"
16953 # Set up the scripts for CONFIG_HEADERS section.
16954 # No need to generate them if there are no CONFIG_HEADERS.
16955 # This happens for instance with `./config.status Makefile'.
16956 if test -n "$CONFIG_HEADERS"; then
16957 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16961 # Transform confdefs.h into an awk script `defines.awk', embedded as
16962 # here-document in config.status, that substitutes the proper values into
16963 # config.h.in to produce config.h.
16965 # Create a delimiter string that does not exist in confdefs.h, to ease
16966 # handling of long lines.
16968 for ac_last_try in false false :; do
16969 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16970 if test -z "$ac_tt"; then
16972 elif $ac_last_try; then
16973 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16975 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16979 # For the awk script, D is an array of macro values keyed by name,
16980 # likewise P contains macro parameters if any. Preserve backslash
16981 # newline sequences.
16983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16985 s/.\{148\}/&'"$ac_delim"'/g
16988 s/^[ ]*#[ ]*define[ ][ ]*/ /
16995 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16997 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17002 D["\
1"]=" \
3\\\\\\n
"\\/p
17004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17009 s/.\{148\}/&'"$ac_delim"'/g
17014 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17017 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17019 ' <confdefs.h | sed '
17020 s/'"$ac_delim"'/"\\\
17021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17024 for (key in D) D_is_set[key] = 1
17027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17029 split(line, arg, " ")
17030 if (arg[1] == "#") {
17034 defundef
= substr
(arg
[1], 2)
17037 split(mac1
, mac2
, "(") #)
17039 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17040 if (D_is_set
[macro
]) {
17041 # Preserve the white space surrounding the "#".
17042 print prefix
"define", macro P
[macro
] D
[macro
]
17045 # Replace #undef with comments. This is necessary, for example,
17046 # in the case of _POSIX_SOURCE, which is predefined and required
17047 # on some systems where configure will not decide to define it.
17048 if (defundef
== "undef") {
17049 print
"/*", prefix defundef
, macro
, "*/"
17057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17058 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17059 fi # test -n "$CONFIG_HEADERS"
17062 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17067 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17069 case $ac_mode$ac_tag in
17071 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17072 :[FH
]-) ac_tag
=-:-;;
17073 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17090 -) ac_f
="$ac_tmp/stdin";;
17091 *) # Look for the file first in the build tree, then in the source tree
17092 # (if the path is not absolute). The absolute path cannot be DOS-style,
17093 # because $ac_f cannot contain `:'.
17097 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17099 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17101 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17102 as_fn_append ac_file_inputs
" '$ac_f'"
17105 # Let's still pretend it is `configure' which instantiates (i.e., don't
17106 # use $as_me), people would be surprised to read:
17107 # /* config.h. Generated by config.status. */
17108 configure_input
='Generated from '`
17109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17111 if test x
"$ac_file" != x-
; then
17112 configure_input
="$ac_file. $configure_input"
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17114 $as_echo "$as_me: creating $ac_file" >&6;}
17116 # Neutralize special characters interpreted by sed in replacement strings.
17117 case $configure_input in #(
17118 *\
&* |
*\|
* |
*\\* )
17119 ac_sed_conf_input
=`$as_echo "$configure_input" |
17120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17121 *) ac_sed_conf_input
=$configure_input;;
17125 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17126 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17131 ac_dir
=`$as_dirname -- "$ac_file" ||
17132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17133 X"$ac_file" : 'X\(//\)[^/]' \| \
17134 X"$ac_file" : 'X\(//\)$' \| \
17135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17136 $as_echo X"$ac_file" |
17137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17141 /^X\(\/\/\)[^/].*/{
17154 as_dir
="$ac_dir"; as_fn_mkdir_p
17158 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17160 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17161 # A ".." for each directory in $ac_dir_suffix.
17162 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17163 case $ac_top_builddir_sub in
17164 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17165 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17168 ac_abs_top_builddir
=$ac_pwd
17169 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17170 # for backward compatibility:
17171 ac_top_builddir
=$ac_top_build_prefix
17174 .
) # We are building in place.
17176 ac_top_srcdir
=$ac_top_builddir_sub
17177 ac_abs_top_srcdir
=$ac_pwd ;;
17178 [\\/]* | ?
:[\\/]* ) # Absolute name.
17179 ac_srcdir
=$srcdir$ac_dir_suffix;
17180 ac_top_srcdir
=$srcdir
17181 ac_abs_top_srcdir
=$srcdir ;;
17182 *) # Relative name.
17183 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17184 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17185 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17187 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17197 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17198 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17200 ac_MKDIR_P
=$MKDIR_P
17202 [\\/$
]* | ?
:[\\/]* ) ;;
17203 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17208 # If the template does not know about datarootdir, expand it.
17209 # FIXME: This hack should be removed a few years after 2.60.
17210 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17221 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17222 *datarootdir
*) ac_datarootdir_seen
=yes;;
17223 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17225 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17228 ac_datarootdir_hack='
17229 s&@datadir@&$datadir&g
17230 s&@docdir@&$docdir&g
17231 s&@infodir@&$infodir&g
17232 s&@localedir@&$localedir&g
17233 s&@mandir@&$mandir&g
17234 s&\\\${datarootdir}&$datarootdir&g' ;;
17238 # Neutralize VPATH when `$srcdir' = `.'.
17239 # Shell code in configure.ac might set extrasub.
17240 # FIXME: do we really want to maintain this feature?
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 ac_sed_extra="$ac_vpsub
17245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17247 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17248 s|@configure_input@|
$ac_sed_conf_input|
;t t
17249 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17250 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17251 s
&@srcdir@
&$ac_srcdir&;t t
17252 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17253 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17254 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17255 s
&@builddir@
&$ac_builddir&;t t
17256 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17257 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17258 s
&@INSTALL@
&$ac_INSTALL&;t t
17259 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17260 $ac_datarootdir_hack
17262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17263 if $ac_cs_awk_getline; then
17264 $AWK -f "$ac_tmp/subs.
awk"
17266 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17268 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17271 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17273 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17275 which seems to be undefined. Please make sure it is defined" >&5
17276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17277 which seems to be undefined. Please make sure it is defined" >&2;}
17279 rm -f "$ac_tmp/stdin"
17281 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17282 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17290 if test x"$ac_file" != x-; then
17292 $as_echo "/* $configure_input */" \
17293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17294 } >"$ac_tmp/config.h" \
17295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17296 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17301 mv "$ac_tmp/config.h" "$ac_file" \
17302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17305 $as_echo "/* $configure_input */" \
17306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17307 || as_fn_error $? "could not create -" "$LINENO" 5
17309 # Compute "$ac_file"'s index
in $config_headers.
17312 for _am_header
in $config_headers :; do
17313 case $_am_header in
17314 $_am_arg |
$_am_arg:* )
17317 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17322 X"$_am_arg" : 'X\(//\)[^/]' \| \
17323 X"$_am_arg" : 'X\(//\)$' \| \
17324 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17325 $as_echo X"$_am_arg" |
17326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17330 /^X\(\/\/\)[^/].*/{
17342 s/.*/./; q'`/stamp-h
$_am_stamp_count
17345 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17346 $as_echo "$as_me: executing $ac_file commands" >&6;}
17351 case $ac_file$ac_mode in
17353 # Only add multilib support code if we just rebuilt the top-level
17355 case " $CONFIG_FILES " in
17357 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17362 # See if we are running on zsh, and set the options which allow our
17363 # commands through without removal of \ escapes.
17364 if test -n "${ZSH_VERSION+set}" ; then
17365 setopt NO_GLOB_SUBST
17368 cfgfile
="${ofile}T"
17369 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17372 cat <<_LT_EOF >> "$cfgfile"
17375 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17376 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17378 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17380 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17381 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17382 # Written by Gordon Matzigkeit, 1996
17384 # This file is part of GNU Libtool.
17386 # GNU Libtool is free software; you can redistribute it and/or
17387 # modify it under the terms of the GNU General Public License as
17388 # published by the Free Software Foundation; either version 2 of
17389 # the License, or (at your option) any later version.
17391 # As a special exception to the GNU General Public License,
17392 # if you distribute this file as part of a program or library that
17393 # is built using GNU Libtool, you may include this file under the
17394 # same distribution terms that you use for the rest of that program.
17396 # GNU Libtool is distributed in the hope that it will be useful,
17397 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17398 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17399 # GNU General Public License for more details.
17401 # You should have received a copy of the GNU General Public License
17402 # along with GNU Libtool; see the file COPYING. If not, a copy
17403 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17404 # obtained by writing to the Free Software Foundation, Inc.,
17405 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17408 # The names of the tagged configurations supported by this script.
17409 available_tags="D "
17411 # ### BEGIN LIBTOOL CONFIG
17413 # Which release of libtool.m4 was used?
17414 macro_version=$macro_version
17415 macro_revision=$macro_revision
17417 # Whether or not to build shared libraries.
17418 build_libtool_libs=$enable_shared
17420 # Whether or not to build static libraries.
17421 build_old_libs=$enable_static
17423 # What type of objects to build.
17426 # Whether or not to optimize for fast installation.
17427 fast_install=$enable_fast_install
17429 # Shell to use when invoking shell scripts.
17432 # An echo program that protects backslashes.
17436 host_alias=$host_alias
17440 # The build system.
17441 build_alias=$build_alias
17445 # A sed program that does not truncate output.
17448 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17449 Xsed="\$SED -e 1s/^X//"
17451 # A grep program that handles long lines.
17457 # A literal string matcher.
17460 # A BSD- or MS-compatible name lister.
17463 # Whether we need soft or hard links.
17466 # What is the maximum length of a command?
17467 max_cmd_len=$max_cmd_len
17469 # Object file suffix (normally "o").
17472 # Executable file suffix (normally "").
17475 # whether the shell understands "unset".
17478 # turn spaces into newlines.
17481 # turn newlines into spaces.
17484 # An object symbol dumper.
17485 OBJDUMP=$lt_OBJDUMP
17487 # Method to check whether dependent libraries are shared objects.
17488 deplibs_check_method=$lt_deplibs_check_method
17490 # Command to use when deplibs_check_method == "file_magic".
17491 file_magic_cmd=$lt_file_magic_cmd
17495 AR_FLAGS=$lt_AR_FLAGS
17497 # A symbol stripping program.
17500 # Commands used to install an old-style archive.
17502 old_postinstall_cmds=$lt_old_postinstall_cmds
17503 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17505 # Whether to use a lock for old archive extraction.
17506 lock_old_archive_extraction=$lock_old_archive_extraction
17511 # LTCC compiler flags.
17512 LTCFLAGS=$lt_CFLAGS
17514 # Take the output of nm and produce a listing of raw symbols and C names.
17515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17517 # Transform the output of nm in a proper C declaration.
17518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17520 # Transform the output of nm in a C name address pair.
17521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17523 # Transform the output of nm in a C name address pair when lib prefix is needed.
17524 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17526 # The name of the directory that contains temporary libtool files.
17529 # Used to examine libraries when file_magic_cmd begins with "file".
17530 MAGIC_CMD=$MAGIC_CMD
17532 # Must we lock files when doing compilation?
17533 need_locks=$lt_need_locks
17535 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17536 DSYMUTIL=$lt_DSYMUTIL
17538 # Tool to change global to local symbols on Mac OS X.
17541 # Tool to manipulate fat objects and archives on Mac OS X.
17544 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17547 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17548 OTOOL64=$lt_OTOOL64
17550 # Old archive suffix (normally "a").
17553 # Shared library suffix (normally ".so").
17554 shrext_cmds=$lt_shrext_cmds
17556 # The commands to extract the exported symbol list from a shared archive.
17557 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17559 # Variables whose values should be saved in libtool wrapper scripts and
17560 # restored at link time.
17561 variables_saved_for_relink=$lt_variables_saved_for_relink
17563 # Do we need the "lib" prefix for modules?
17564 need_lib_prefix=$need_lib_prefix
17566 # Do we need a version for libraries?
17567 need_version=$need_version
17569 # Library versioning type.
17570 version_type=$version_type
17572 # Shared library runtime path variable.
17573 runpath_var=$runpath_var
17575 # Shared library path variable.
17576 shlibpath_var=$shlibpath_var
17578 # Is shlibpath searched before the hard-coded library search path?
17579 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17581 # Format of library name prefix.
17582 libname_spec=$lt_libname_spec
17584 # List of archive names. First name is the real one, the rest are links.
17585 # The last name is the one that the linker finds with -lNAME
17586 library_names_spec=$lt_library_names_spec
17588 # The coded name of the library, if different from the real name.
17589 soname_spec=$lt_soname_spec
17591 # Permission mode override for installation of shared libraries.
17592 install_override_mode=$lt_install_override_mode
17594 # Command to use after installation of a shared archive.
17595 postinstall_cmds=$lt_postinstall_cmds
17597 # Command to use after uninstallation of a shared archive.
17598 postuninstall_cmds=$lt_postuninstall_cmds
17600 # Commands used to finish a libtool library installation in a directory.
17601 finish_cmds=$lt_finish_cmds
17603 # As "finish_cmds", except a single script fragment to be evaled but
17605 finish_eval=$lt_finish_eval
17607 # Whether we should hardcode library paths into libraries.
17608 hardcode_into_libs=$hardcode_into_libs
17610 # Compile-time system search path for libraries.
17611 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17613 # Run-time system search path for libraries.
17614 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17616 # Whether dlopen is supported.
17617 dlopen_support=$enable_dlopen
17619 # Whether dlopen of programs is supported.
17620 dlopen_self=$enable_dlopen_self
17622 # Whether dlopen of statically linked programs is supported.
17623 dlopen_self_static=$enable_dlopen_self_static
17625 # Commands to strip libraries.
17626 old_striplib=$lt_old_striplib
17627 striplib=$lt_striplib
17630 # The linker used to build libraries.
17633 # How to create reloadable object files.
17634 reload_flag=$lt_reload_flag
17635 reload_cmds=$lt_reload_cmds
17637 # Commands used to build an old-style archive.
17638 old_archive_cmds=$lt_old_archive_cmds
17640 # A language specific compiler.
17643 # Is the compiler the GNU compiler?
17646 # Compiler flag to turn off builtin functions.
17647 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17649 # How to pass a linker flag through the compiler.
17650 wl=$lt_lt_prog_compiler_wl
17652 # Additional compiler flags for building library objects.
17653 pic_flag=$lt_lt_prog_compiler_pic
17655 # Compiler flag to prevent dynamic linking.
17656 link_static_flag=$lt_lt_prog_compiler_static
17658 # Does compiler simultaneously support -c and -o options?
17659 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17661 # Whether or not to add -lc for building shared libraries.
17662 build_libtool_need_lc=$archive_cmds_need_lc
17664 # Whether or not to disallow shared libs when runtime libs are static.
17665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17667 # Compiler flag to allow reflexive dlopens.
17668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17670 # Compiler flag to generate shared objects directly from archives.
17671 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17673 # Whether the compiler copes with passing no objects directly.
17674 compiler_needs_object=$lt_compiler_needs_object
17676 # Create an old-style archive from a shared archive.
17677 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17679 # Create a temporary old-style archive to link instead of a shared archive.
17680 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17682 # Commands used to build a shared archive.
17683 archive_cmds=$lt_archive_cmds
17684 archive_expsym_cmds=$lt_archive_expsym_cmds
17686 # Commands used to build a loadable module if different from building
17687 # a shared archive.
17688 module_cmds=$lt_module_cmds
17689 module_expsym_cmds=$lt_module_expsym_cmds
17691 # Whether we are building with GNU ld or not.
17692 with_gnu_ld=$lt_with_gnu_ld
17694 # Flag that allows shared libraries with undefined symbols to be built.
17695 allow_undefined_flag=$lt_allow_undefined_flag
17697 # Flag that enforces no undefined symbols.
17698 no_undefined_flag=$lt_no_undefined_flag
17700 # Flag to hardcode \$libdir into a binary during linking.
17701 # This must work even if \$libdir does not exist
17702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17704 # If ld is used when linking, flag to hardcode \$libdir into a binary
17705 # during linking. This must work even if \$libdir does not exist.
17706 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17708 # Whether we need a single "-rpath" flag with a separated argument.
17709 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17712 # DIR into the resulting binary.
17713 hardcode_direct=$hardcode_direct
17715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17716 # DIR into the resulting binary and the resulting library dependency is
17717 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17718 # library is relocated.
17719 hardcode_direct_absolute=$hardcode_direct_absolute
17721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17722 # into the resulting binary.
17723 hardcode_minus_L=$hardcode_minus_L
17725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17726 # into the resulting binary.
17727 hardcode_shlibpath_var=$hardcode_shlibpath_var
17729 # Set to "yes" if building a shared library automatically hardcodes DIR
17730 # into the library and all subsequent libraries and executables linked
17732 hardcode_automatic=$hardcode_automatic
17734 # Set to yes if linker adds runtime paths of dependent libraries
17735 # to runtime path list.
17736 inherit_rpath=$inherit_rpath
17738 # Whether libtool must link a program against all its dependency libraries.
17739 link_all_deplibs=$link_all_deplibs
17741 # Fix the shell variable \$srcfile for the compiler.
17742 fix_srcfile_path=$lt_fix_srcfile_path
17744 # Set to "yes" if exported symbols are required.
17745 always_export_symbols=$always_export_symbols
17747 # The commands to list exported symbols.
17748 export_symbols_cmds=$lt_export_symbols_cmds
17750 # Symbols that should not be listed in the preloaded symbols.
17751 exclude_expsyms=$lt_exclude_expsyms
17753 # Symbols that must always be exported.
17754 include_expsyms=$lt_include_expsyms
17756 # Commands necessary for linking programs (against libraries) with templates.
17757 prelink_cmds=$lt_prelink_cmds
17759 # Specify filename containing input files.
17760 file_list_spec=$lt_file_list_spec
17762 # How to hardcode a shared library path into an executable.
17763 hardcode_action=$hardcode_action
17765 # ### END LIBTOOL CONFIG
17771 cat <<\_LT_EOF
>> "$cfgfile"
17772 # AIX sometimes has problems with the GCC collect2 program. For some
17773 # reason, if we set the COLLECT_NAMES environment variable, the problems
17774 # vanish in a puff of smoke.
17775 if test "X${COLLECT_NAMES+set}" != Xset
; then
17777 export COLLECT_NAMES
17784 ltmain
="$ac_aux_dir/ltmain.sh"
17787 # We use sed instead of cat because bash on DJGPP gets confused if
17788 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17789 # text mode, it properly converts lines to CR/LF. This bash problem
17790 # is reportedly fixed, but why not run on old versions too?
17791 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17792 ||
(rm -f "$cfgfile"; exit 1)
17796 cat << \_LT_EOF
>> "$cfgfile"
17798 # func_dirname file append nondir_replacement
17799 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17800 # otherwise set result to NONDIR_REPLACEMENT.
17804 */*) func_dirname_result
="${1%/*}${2}" ;;
17805 * ) func_dirname_result
="${3}" ;;
17809 # func_basename file
17812 func_basename_result
="${1##*/}"
17815 # func_dirname_and_basename file append nondir_replacement
17816 # perform func_basename and func_dirname in a single function
17818 # dirname: Compute the dirname of FILE. If nonempty,
17819 # add APPEND to the result, otherwise set result
17820 # to NONDIR_REPLACEMENT.
17821 # value returned in "$func_dirname_result"
17822 # basename: Compute filename of FILE.
17823 # value retuned in "$func_basename_result"
17824 # Implementation must be kept synchronized with func_dirname
17825 # and func_basename. For efficiency, we do not delegate to
17826 # those functions but instead duplicate the functionality here.
17827 func_dirname_and_basename
()
17830 */*) func_dirname_result
="${1%/*}${2}" ;;
17831 * ) func_dirname_result
="${3}" ;;
17833 func_basename_result
="${1##*/}"
17836 # func_stripname prefix suffix name
17837 # strip PREFIX and SUFFIX off of NAME.
17838 # PREFIX and SUFFIX must not contain globbing or regex special
17839 # characters, hashes, percent signs, but SUFFIX may contain a leading
17840 # dot (in which case that matches only a dot).
17843 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17844 # positional parameters, so assign one to ordinary parameter first.
17845 func_stripname_result
=${3}
17846 func_stripname_result
=${func_stripname_result#"${1}"}
17847 func_stripname_result
=${func_stripname_result%"${2}"}
17853 func_opt_split_opt
=${1%%=*}
17854 func_opt_split_arg
=${1#*=}
17861 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17862 *) func_lo2o_result
=${1} ;;
17866 # func_xform libobj-or-source
17869 func_xform_result
=${1%.*}.lo
17872 # func_arith arithmetic-term...
17875 func_arith_result
=$
(( $
* ))
17879 # STRING may not start with a hyphen.
17882 func_len_result
=${#1}
17887 *) # Bourne compatible functions.
17888 cat << \_LT_EOF
>> "$cfgfile"
17890 # func_dirname file append nondir_replacement
17891 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17892 # otherwise set result to NONDIR_REPLACEMENT.
17895 # Extract subdirectory from the argument.
17896 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17897 if test "X$func_dirname_result" = "X${1}"; then
17898 func_dirname_result
="${3}"
17900 func_dirname_result
="$func_dirname_result${2}"
17904 # func_basename file
17907 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17911 # func_stripname prefix suffix name
17912 # strip PREFIX and SUFFIX off of NAME.
17913 # PREFIX and SUFFIX must not contain globbing or regex special
17914 # characters, hashes, percent signs, but SUFFIX may contain a leading
17915 # dot (in which case that matches only a dot).
17916 # func_strip_suffix prefix name
17920 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17921 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17926 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17927 my_sed_long_arg
='1s/^-[^=]*=//'
17932 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17933 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17939 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17942 # func_xform libobj-or-source
17945 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17948 # func_arith arithmetic-term...
17951 func_arith_result
=`expr "$@"`
17955 # STRING may not start with a hyphen.
17958 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17964 case $lt_shell_append in
17966 cat << \_LT_EOF
>> "$cfgfile"
17968 # func_append var value
17969 # Append VALUE to the end of shell variable VAR.
17977 cat << \_LT_EOF
>> "$cfgfile"
17979 # func_append var value
17980 # Append VALUE to the end of shell variable VAR.
17991 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17992 ||
(rm -f "$cfgfile"; exit 1)
17994 mv -f "$cfgfile" "$ofile" ||
17995 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17999 cat <<_LT_EOF >> "$ofile"
18001 # ### BEGIN LIBTOOL TAG CONFIG: D
18003 # The linker used to build libraries.
18006 # How to create reloadable object files.
18007 reload_flag=$lt_reload_flag_D
18008 reload_cmds=$lt_reload_cmds_D
18010 # Commands used to build an old-style archive.
18011 old_archive_cmds=$lt_old_archive_cmds_D
18013 # A language specific compiler.
18016 # Is the compiler the GNU compiler?
18019 # Compiler flag to turn off builtin functions.
18020 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18022 # How to pass a linker flag through the compiler.
18023 wl=$lt_lt_prog_compiler_wl_D
18025 # Additional compiler flags for building library objects.
18026 pic_flag=$lt_lt_prog_compiler_pic_D
18028 # Compiler flag to prevent dynamic linking.
18029 link_static_flag=$lt_lt_prog_compiler_static_D
18031 # Does compiler simultaneously support -c and -o options?
18032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18034 # Whether or not to add -lc for building shared libraries.
18035 build_libtool_need_lc=$archive_cmds_need_lc_D
18037 # Whether or not to disallow shared libs when runtime libs are static.
18038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18040 # Compiler flag to allow reflexive dlopens.
18041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18043 # Compiler flag to generate shared objects directly from archives.
18044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18046 # Whether the compiler copes with passing no objects directly.
18047 compiler_needs_object=$lt_compiler_needs_object_D
18049 # Create an old-style archive from a shared archive.
18050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18052 # Create a temporary old-style archive to link instead of a shared archive.
18053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18055 # Commands used to build a shared archive.
18056 archive_cmds=$lt_archive_cmds_D
18057 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18059 # Commands used to build a loadable module if different from building
18060 # a shared archive.
18061 module_cmds=$lt_module_cmds_D
18062 module_expsym_cmds=$lt_module_expsym_cmds_D
18064 # Whether we are building with GNU ld or not.
18065 with_gnu_ld=$lt_with_gnu_ld_D
18067 # Flag that allows shared libraries with undefined symbols to be built.
18068 allow_undefined_flag=$lt_allow_undefined_flag_D
18070 # Flag that enforces no undefined symbols.
18071 no_undefined_flag=$lt_no_undefined_flag_D
18073 # Flag to hardcode \$libdir into a binary during linking.
18074 # This must work even if \$libdir does not exist
18075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18077 # If ld is used when linking, flag to hardcode \$libdir into a binary
18078 # during linking. This must work even if \$libdir does not exist.
18079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18081 # Whether we need a single "-rpath" flag with a separated argument.
18082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18084 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18085 # DIR into the resulting binary.
18086 hardcode_direct=$hardcode_direct_D
18088 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18089 # DIR into the resulting binary and the resulting library dependency is
18090 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18091 # library is relocated.
18092 hardcode_direct_absolute=$hardcode_direct_absolute_D
18094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18095 # into the resulting binary.
18096 hardcode_minus_L=$hardcode_minus_L_D
18098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18099 # into the resulting binary.
18100 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18102 # Set to "yes" if building a shared library automatically hardcodes DIR
18103 # into the library and all subsequent libraries and executables linked
18105 hardcode_automatic=$hardcode_automatic_D
18107 # Set to yes if linker adds runtime paths of dependent libraries
18108 # to runtime path list.
18109 inherit_rpath=$inherit_rpath_D
18111 # Whether libtool must link a program against all its dependency libraries.
18112 link_all_deplibs=$link_all_deplibs_D
18114 # Fix the shell variable \$srcfile for the compiler.
18115 fix_srcfile_path=$lt_fix_srcfile_path_D
18117 # Set to "yes" if exported symbols are required.
18118 always_export_symbols=$always_export_symbols_D
18120 # The commands to list exported symbols.
18121 export_symbols_cmds=$lt_export_symbols_cmds_D
18123 # Symbols that should not be listed in the preloaded symbols.
18124 exclude_expsyms=$lt_exclude_expsyms_D
18126 # Symbols that must always be exported.
18127 include_expsyms=$lt_include_expsyms_D
18129 # Commands necessary for linking programs (against libraries) with templates.
18130 prelink_cmds=$lt_prelink_cmds_D
18132 # Specify filename containing input files.
18133 file_list_spec=$lt_file_list_spec_D
18135 # How to hardcode a shared library path into an executable.
18136 hardcode_action=$hardcode_action_D
18138 # ### END LIBTOOL TAG CONFIG: D
18142 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
18143 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
18144 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18146 sed -f vpsed$$
$ac_file > tmp$$
18149 echo 'MULTISUBDIR =' >> $ac_file
18151 .
${multi_basedir}/config-ml.
in
18152 { ml_norecursion
=; unset ml_norecursion
;}
18154 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
18155 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18157 sed -f vpsed$$
$ac_file > tmp$$
18160 echo 'MULTISUBDIR =' >> $ac_file
18162 .
${multi_basedir}/config-ml.
in
18163 { ml_norecursion
=; unset ml_norecursion
;}
18165 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
18166 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18168 sed -f vpsed$$
$ac_file > tmp$$
18171 echo 'MULTISUBDIR =' >> $ac_file
18173 .
${multi_basedir}/config-ml.
in
18174 { ml_norecursion
=; unset ml_norecursion
;}
18183 ac_clean_files
=$ac_clean_files_save
18185 test $ac_write_fail = 0 ||
18186 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18189 # configure is writing to config.log, and then calls config.status.
18190 # config.status does its own redirection, appending to config.log.
18191 # Unfortunately, on DOS this fails, as config.log is still kept open
18192 # by configure, so config.status won't be able to write to it; its
18193 # output is simply discarded. So we exec the FD to /dev/null,
18194 # effectively closing config.log, so it can be properly (re)opened and
18195 # appended to by config.status. When coming back to configure, we
18196 # need to make the FD available again.
18197 if test "$no_create" != yes; then
18199 ac_config_status_args
=
18200 test "$silent" = yes &&
18201 ac_config_status_args
="$ac_config_status_args --quiet"
18203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18206 # would make configure fail if this is the last instruction.
18207 $ac_cs_success || as_fn_exit
1
18209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}