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
728 MAINTAINER_MODE_FALSE
746 INSTALL_STRIP_PROGRAM
811 program_transform_name
822 ac_subst_files
='DRTSTUFF_SPEC'
824 enable_option_checking
827 enable_maintainer_mode
835 with_gcc_major_version_only
839 with_target_system_zlib
841 enable_version_specific_runtime_libs
844 with_libphobos_druntime_only
845 enable_libphobos_checking
847 ac_precious_vars
='build_alias
858 # Initialize some variables set by options.
860 ac_init_version
=false
861 ac_unrecognized_opts
=
863 # The variables have the same names as the options, with
864 # dashes changed to underlines.
872 program_transform_name
=s
,x
,x
,
880 # Installation directory options.
881 # These are left unexpanded so users can "make install exec_prefix=/foo"
882 # and all the variables that are supposed to be based on exec_prefix
883 # by default will actually change.
884 # Use braces instead of parens because sh, perl, etc. also accept them.
885 # (The list follows the same order as the GNU Coding Standards.)
886 bindir
='${exec_prefix}/bin'
887 sbindir
='${exec_prefix}/sbin'
888 libexecdir
='${exec_prefix}/libexec'
889 datarootdir
='${prefix}/share'
890 datadir
='${datarootdir}'
891 sysconfdir
='${prefix}/etc'
892 sharedstatedir
='${prefix}/com'
893 localstatedir
='${prefix}/var'
894 includedir
='${prefix}/include'
895 oldincludedir
='/usr/include'
896 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir
='${datarootdir}/info'
902 libdir
='${exec_prefix}/lib'
903 localedir
='${datarootdir}/locale'
904 mandir
='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\
$ac_option
918 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 # Accept the important Cygnus configure options, so we can diagnose typos.
925 case $ac_dashdash$ac_option in
929 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
931 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
934 -build |
--build |
--buil |
--bui |
--bu)
935 ac_prev
=build_alias
;;
936 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
937 build_alias
=$ac_optarg ;;
939 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
940 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
941 ac_prev
=cache_file
;;
942 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
943 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
944 cache_file
=$ac_optarg ;;
947 cache_file
=config.cache
;;
949 -datadir |
--datadir |
--datadi |
--datad)
951 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
952 datadir
=$ac_optarg ;;
954 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
955 |
--dataroo |
--dataro |
--datar)
956 ac_prev
=datarootdir
;;
957 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
958 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
959 datarootdir
=$ac_optarg ;;
961 -disable-* |
--disable-*)
962 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
965 as_fn_error $?
"invalid feature name: $ac_useropt"
966 ac_useropt_orig
=$ac_useropt
967 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
972 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep
=', ';;
975 eval enable_
$ac_useropt=no
;;
977 -docdir |
--docdir |
--docdi |
--doc |
--do)
979 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
982 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
984 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
987 -enable-* |
--enable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error $?
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=\
$ac_optarg ;;
1003 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1004 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1005 |
--exec |
--exe |
--ex)
1006 ac_prev
=exec_prefix
;;
1007 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1008 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1009 |
--exec=* |
--exe=* |
--ex=*)
1010 exec_prefix
=$ac_optarg ;;
1012 -gas |
--gas |
--ga |
--g)
1013 # Obsolete; use --with-gas.
1016 -help |
--help |
--hel |
--he |
-h)
1017 ac_init_help
=long
;;
1018 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1019 ac_init_help
=recursive
;;
1020 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1021 ac_init_help
=short
;;
1023 -host |
--host |
--hos |
--ho)
1024 ac_prev
=host_alias
;;
1025 -host=* |
--host=* |
--hos=* |
--ho=*)
1026 host_alias
=$ac_optarg ;;
1028 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1030 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1032 htmldir
=$ac_optarg ;;
1034 -includedir |
--includedir |
--includedi |
--included |
--include \
1035 |
--includ |
--inclu |
--incl |
--inc)
1036 ac_prev
=includedir
;;
1037 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1038 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1039 includedir
=$ac_optarg ;;
1041 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1043 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1044 infodir
=$ac_optarg ;;
1046 -libdir |
--libdir |
--libdi |
--libd)
1048 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1049 libdir
=$ac_optarg ;;
1051 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1052 |
--libexe |
--libex |
--libe)
1053 ac_prev
=libexecdir
;;
1054 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1055 |
--libexe=* |
--libex=* |
--libe=*)
1056 libexecdir
=$ac_optarg ;;
1058 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1059 ac_prev
=localedir
;;
1060 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1061 localedir
=$ac_optarg ;;
1063 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1064 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1065 ac_prev
=localstatedir
;;
1066 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1067 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1068 localstatedir
=$ac_optarg ;;
1070 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1072 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1073 mandir
=$ac_optarg ;;
1075 -nfp |
--nfp |
--nf)
1076 # Obsolete; use --without-fp.
1079 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1080 |
--no-cr |
--no-c |
-n)
1083 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1084 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1087 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1088 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1089 |
--oldin |
--oldi |
--old |
--ol |
--o)
1090 ac_prev
=oldincludedir
;;
1091 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1092 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1093 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1094 oldincludedir
=$ac_optarg ;;
1096 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1098 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1099 prefix
=$ac_optarg ;;
1101 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1102 |
--program-pre |
--program-pr |
--program-p)
1103 ac_prev
=program_prefix
;;
1104 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1105 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1106 program_prefix
=$ac_optarg ;;
1108 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1109 |
--program-suf |
--program-su |
--program-s)
1110 ac_prev
=program_suffix
;;
1111 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1112 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1113 program_suffix
=$ac_optarg ;;
1115 -program-transform-name |
--program-transform-name \
1116 |
--program-transform-nam |
--program-transform-na \
1117 |
--program-transform-n |
--program-transform- \
1118 |
--program-transform |
--program-transfor \
1119 |
--program-transfo |
--program-transf \
1120 |
--program-trans |
--program-tran \
1121 |
--progr-tra |
--program-tr |
--program-t)
1122 ac_prev
=program_transform_name
;;
1123 -program-transform-name=* |
--program-transform-name=* \
1124 |
--program-transform-nam=* |
--program-transform-na=* \
1125 |
--program-transform-n=* |
--program-transform-=* \
1126 |
--program-transform=* |
--program-transfor=* \
1127 |
--program-transfo=* |
--program-transf=* \
1128 |
--program-trans=* |
--program-tran=* \
1129 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1130 program_transform_name
=$ac_optarg ;;
1132 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1134 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1135 pdfdir
=$ac_optarg ;;
1137 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1139 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1142 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1143 |
-silent |
--silent |
--silen |
--sile |
--sil)
1146 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1148 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1150 sbindir
=$ac_optarg ;;
1152 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1153 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1154 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1156 ac_prev
=sharedstatedir
;;
1157 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1158 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1159 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1161 sharedstatedir
=$ac_optarg ;;
1163 -site |
--site |
--sit)
1165 -site=* |
--site=* |
--sit=*)
1168 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1170 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1171 srcdir
=$ac_optarg ;;
1173 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1174 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1175 ac_prev
=sysconfdir
;;
1176 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1177 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1178 sysconfdir
=$ac_optarg ;;
1180 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1181 ac_prev
=target_alias
;;
1182 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1183 target_alias
=$ac_optarg ;;
1185 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1188 -version |
--version |
--versio |
--versi |
--vers |
-V)
1189 ac_init_version
=: ;;
1192 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 as_fn_error $?
"invalid package name: $ac_useropt"
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=\
$ac_optarg ;;
1207 -without-* |
--without-*)
1208 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1211 as_fn_error $?
"invalid package name: $ac_useropt"
1212 ac_useropt_orig
=$ac_useropt
1213 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1219 ac_unrecognized_sep
=', ';;
1221 eval with_
$ac_useropt=no
;;
1224 # Obsolete; use --with-x.
1227 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1228 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1229 ac_prev
=x_includes
;;
1230 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1231 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1232 x_includes
=$ac_optarg ;;
1234 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1235 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1236 ac_prev
=x_libraries
;;
1237 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1238 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1239 x_libraries
=$ac_optarg ;;
1241 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1242 Try \`$0 --help' for more information"
1246 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names.
1248 case $ac_envvar in #(
1249 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1250 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1252 eval $ac_envvar=\
$ac_optarg
1253 export $ac_envvar ;;
1256 # FIXME: should be removed in autoconf 3.0.
1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 if test -n "$ac_prev"; then
1267 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1268 as_fn_error $?
"missing argument to $ac_option"
1271 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in
1274 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 # Check all directory arguments for consistency.
1280 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1285 eval ac_val
=\$
$ac_var
1286 # Remove trailing slashes.
1289 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1290 eval $ac_var=\
$ac_val;;
1292 # Be sure to have absolute directory names.
1294 [\\/$
]* | ?
:[\\/]* ) continue;;
1295 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1297 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1305 target
=$target_alias
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x
; then
1309 if test "x$build_alias" = x
; then
1310 cross_compiling
=maybe
1311 elif test "x$build_alias" != "x$host_alias"; then
1317 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1319 test "$silent" = yes && exec 6>/dev
/null
1322 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di
=`ls -di .` &&
1324 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1325 as_fn_error $?
"working directory cannot be determined"
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 as_fn_error $?
"pwd does not report name of working directory"
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1368 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1380 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 for ac_var
in $ac_precious_vars; do
1383 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1385 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1396 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking ...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1459 --build=BUILD configure
for building on BUILD
[guessed
]
1460 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1461 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive
) echo "Configuration of package-unused version-unused:";;
1472 --disable-option-checking ignore unrecognized
--enable/--with options
1473 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1474 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1475 --enable-multilib build many library versions
(default
)
1476 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1477 --disable-silent-rules verbose build output
(undo
: "make V=0")
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful
(and
1480 sometimes confusing
) to the casual installer
1481 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1482 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1483 --enable-static[=PKGS
] build static libraries
[default
=yes]
1484 --enable-fast-install[=PKGS
]
1485 optimize
for fast installation
[default
=yes]
1486 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1487 --enable-werror turns on
-Werror [default
=no
]
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491 --enable-libphobos Enable libphobos
1492 --enable-libphobos-checking[=LIST
]
1493 enable expensive run-time checks. With LIST
, enable
1494 only specific categories of checks. Categories are
:
1495 yes,no
,all
,none
,release. Flags are
: assert or other
1499 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1500 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1501 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1503 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1504 --with-gcc-major-version-only
1505 use only GCC major number
in filesystem paths
1506 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1507 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1509 --with-target-system-zlib={yes,no
,auto
}
1510 use installed libz
(default
: no
)
1511 --with-cross-host=HOST configuring with a cross compiler
1512 --with-toolexeclibdir=DIR
1513 install libraries built with a cross compiler within
1515 --with-libphobos-druntime-only={yes,no
,auto
}
1516 build only the druntime library
(default
: auto
)
1518 Some influential environment variables
:
1519 CC C compiler
command
1520 CFLAGS C compiler flags
1521 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1522 nonstandard directory
<lib dir
>
1523 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1524 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1525 you have headers
in a nonstandard directory
<include dir
>
1527 CCAS assembler compiler
command (defaults to CC
)
1528 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1529 GDC D compiler
command
1530 GDCFLAGS D compiler flags
1532 Use these variables to override the choices made by
`configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 Report bugs to the package provider.
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1565 .) # We are building in place.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1598 package-unused configure version-unused
1599 generated by GNU Autoconf 2.69
1601 Copyright (C) 2012 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 rm -f conftest.$ac_objext
1619 if { { ac_try="$ac_compile"
1621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1622 *) ac_try_echo
=$ac_try;;
1624 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_compile") 2>conftest.err
1628 if test -s conftest.err
; then
1629 grep -v '^ *+' conftest.err
>conftest.er1
1630 cat conftest.er1
>&5
1631 mv -f conftest.er1 conftest.err
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } && {
1635 test -z "$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 } && test -s conftest.
$ac_objext; then :
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.
$ac_ext >&5
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status
$ac_retval
1648 } # ac_fn_c_try_compile
1650 # ac_fn_c_try_cpp LINENO
1651 # ----------------------
1652 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1656 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } > conftest.i && {
1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1687 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1690 # the include files in INCLUDES and setting the cache variable VAR
1692 ac_fn_c_check_header_mongrel ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if eval \${$3+:} false; then :
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1705 # Is the header compilable?
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1707 $as_echo_n "checking $2 usability... " >&6; }
1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709 /* end confdefs.h. */
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_header_compiler=yes
1716 ac_header_compiler=no
1718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1720 $as_echo "$ac_header_compiler" >&6; }
1722 # Is the header present?
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1724 $as_echo_n "checking $2 presence... " >&6; }
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1729 if ac_fn_c_try_cpp "$LINENO"; then :
1730 ac_header_preproc=yes
1732 ac_header_preproc=no
1734 rm -f conftest.err conftest.i conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1736 $as_echo "$ac_header_preproc" >&6; }
1738 # So? What about this header?
1739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1742 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1748 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1750 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1752 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1754 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1756 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1764 eval "$3=\$ac_header_compiler"
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 } # ac_fn_c_check_header_mongrel
1774 # ac_fn_c_try_run LINENO
1775 # ----------------------
1776 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1777 # that executables *can* be run.
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_link"
1783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1784 *) ac_try_echo
=$ac_try;;
1786 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_link") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1792 { { case "(($ac_try" in
1793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_try") 2>&5
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; }; }; then :
1804 $as_echo "$as_me: program exited with status $ac_status" >&5
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1808 ac_retval=$ac_status
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists and can be compiled using the include files in
1819 # INCLUDES, setting the cache variable VAR accordingly.
1820 ac_fn_c_check_header_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1833 if ac_fn_c_try_compile "$LINENO"; then :
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 } # ac_fn_c_check_header_compile
1847 # ac_fn_d_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_d_try_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1857 *) ac_try_echo
=$ac_try;;
1859 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1863 if test -s conftest.err
; then
1864 grep -v '^ *+' conftest.err
>conftest.er1
1865 cat conftest.er1
>&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_d_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.
$ac_objext; then :
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.
$ac_ext >&5
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status
$ac_retval
1883 } # ac_fn_d_try_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1891 rm -f conftest.
$ac_objext conftest
$ac_exeext
1892 if { { ac_try
="$ac_link"
1894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946 #define $2 innocuous_$2
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below.
1950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951 <limits.h> exists even on freestanding compilers. */
1954 # include <limits.h>
1956 # include <assert.h>
1961 /* Override any GCC internal prototype to avoid an error.
1962 Use char because int might match the return type of a GCC
1963 builtin and then its argument prototype would still apply. */
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined __stub_$2 || defined __stub___$2
1983 if ac_fn_c_try_link "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext \
1989 conftest$ac_exeext conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_func
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval \${$4+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2023 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2033 if (sizeof ac_aggr.$3)
2039 if ac_fn_c_try_compile "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_member
2055 # ac_fn_d_try_link LINENO
2056 # -----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded.
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { { ac_try="$ac_link"
2064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2065 *) ac_try_echo
=$ac_try;;
2067 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>conftest.err
2071 if test -s conftest.err
; then
2072 grep -v '^ *+' conftest.err
>conftest.er1
2073 cat conftest.er1
>&5
2074 mv -f conftest.er1 conftest.err
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && {
2078 test -z "$ac_d_werror_flag" ||
2079 test ! -s conftest.err
2080 } && test -s conftest
$ac_exeext && {
2081 test "$cross_compiling" = yes ||
2082 test -x conftest
$ac_exeext
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.
$ac_ext >&5
2091 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2092 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2093 # interfere with the next link command; also delete a directory that is
2094 # left behind by Apple's compiler. We do this before executing the actions.
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status
$ac_retval
2099 } # ac_fn_d_try_link
2100 cat >config.log
<<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2104 It was created by package-unused $as_me version-unused, which was
2105 generated by GNU Autoconf 2.69. Invocation command line was
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir
=.
2141 $as_echo "PATH: $as_dir"
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_must_keep_next
=false
2171 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2173 |
-silent |
--silent |
--silen |
--sile |
--sil)
2176 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2181 as_fn_append ac_configure_args1
" '$ac_arg'"
2182 if test $ac_must_keep_next = true
; then
2183 ac_must_keep_next
=false
# Got value, back to normal.
2186 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2187 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2188 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2189 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2194 -* ) ac_must_keep_next
=true
;;
2197 as_fn_append ac_configure_args
" '$ac_arg'"
2202 { ac_configure_args0
=; unset ac_configure_args0
;}
2203 { ac_configure_args1
=; unset ac_configure_args1
;}
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2215 $as_echo "## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##"
2219 # The following way of writing the cache mishandles newlines in values,
2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2222 eval ac_val=\$$ac_var
2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230 _ | IFS | as_nl) ;; #(
2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2232 *) { eval $ac_var=; unset $ac_var;} ;;
2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2238 *${as_nl}ac_space=\ *)
2240 "s/'\''/'\''\\\\'\'''\''/g;
2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 $as_echo "## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##"
2255 for ac_var in $ac_subst_vars
2257 eval ac_val=\$$ac_var
2259 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 $as_echo "$ac_var='\''$ac_val'\''"
2265 if test -n "$ac_subst_files"; then
2266 $as_echo "## ------------------- ##
2267 ## File substitutions. ##
2268 ## ------------------- ##"
2270 for ac_var
in $ac_subst_files
2272 eval ac_val
=\$
$ac_var
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 $as_echo "$ac_var='\''$ac_val'\''"
2281 if test -s confdefs.h; then
2282 $as_echo "## ----------- ##
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297 for ac_signal
in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest
* confdefs.h
2305 $as_echo "/* confdefs.h */" > confdefs.h
2307 # Predefined preprocessor variables.
2309 cat >>confdefs.h
<<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2313 cat >>confdefs.h
<<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2317 cat >>confdefs.h
<<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2321 cat >>confdefs.h
<<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2325 cat >>confdefs.h
<<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2329 cat >>confdefs.h
<<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2338 if test -n "$CONFIG_SITE"; then
2339 # We do not want a PATH search for config.site.
2340 case $CONFIG_SITE in #((
2341 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2342 */*) ac_site_file1
=$CONFIG_SITE;;
2343 *) ac_site_file1
=.
/$CONFIG_SITE;;
2345 elif test "x$prefix" != xNONE
; then
2346 ac_site_file1
=$prefix/share
/config.site
2347 ac_site_file2
=$prefix/etc
/config.site
2349 ac_site_file1
=$ac_default_prefix/share
/config.site
2350 ac_site_file2
=$ac_default_prefix/etc
/config.site
2352 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2354 test "x$ac_site_file" = xNONE
&& continue
2355 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2360 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362 as_fn_error $?
"failed to load site script $ac_site_file
2363 See \`config.log' for more details" "$LINENO" 5; }
2367 if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2375 *) .
"./$cache_file";;
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2384 # Check that the precious variables saved in the cache have kept the same
2386 ac_cache_corrupted
=false
2387 for ac_var
in $ac_precious_vars; do
2388 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2389 eval ac_new_set
=\
$ac_env_${ac_var}_set
2390 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2391 eval ac_new_val
=\
$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted
=: ;;
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted
=: ;;
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w
=`echo x $ac_old_val`
2406 ac_new_val_w
=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted
=:
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\
$ac_old_val
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2425 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg
=$ac_var=$ac_new_val ;;
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2446 ac_cpp
='$CPP $CPPFLAGS'
2447 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2456 ac_config_headers
="$ac_config_headers config.h"
2459 # Default to --enable-multilib
2460 # Check whether --enable-multilib was given.
2461 if test "${enable_multilib+set}" = set; then :
2462 enableval
=$enable_multilib; case "$enableval" in
2463 yes) multilib
=yes ;;
2465 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2472 # We may get other options which we leave undocumented:
2473 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2474 # See config-ml.in if you want the gory details.
2476 if test "$srcdir" = "."; then
2477 if test "$with_target_subdir" != "."; then
2478 multi_basedir
="$srcdir/$with_multisrctop../.."
2480 multi_basedir
="$srcdir/$with_multisrctop.."
2483 multi_basedir
="$srcdir/.."
2487 # Even if the default multilib is not a cross compilation,
2488 # it may be that some of the other multilibs are.
2489 if test $cross_compiling = no
&& test $multilib = yes \
2490 && test "x${with_multisubdir}" != x
; then
2491 cross_compiling
=maybe
2494 ac_config_commands
="$ac_config_commands default-1"
2497 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498 if test -f "$ac_dir/install-sh"; then
2500 ac_install_sh
="$ac_aux_dir/install-sh -c"
2502 elif test -f "$ac_dir/install.sh"; then
2504 ac_install_sh
="$ac_aux_dir/install.sh -c"
2506 elif test -f "$ac_dir/shtool"; then
2508 ac_install_sh
="$ac_aux_dir/shtool install -c"
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2527 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if ${ac_cv_build+:} false
; then :
2532 $as_echo_n "(cached) " >&6
2534 ac_build_alias
=$build_alias
2535 test "x$ac_build_alias" = x
&&
2536 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x
&&
2538 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2547 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2550 ac_save_IFS
=$IFS; IFS
='-'
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2560 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if ${ac_cv_host+:} false
; then :
2566 $as_echo_n "(cached) " >&6
2568 if test "x$host_alias" = x
; then
2569 ac_cv_host
=$ac_cv_build
2571 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2580 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2583 ac_save_IFS
=$IFS; IFS
='-'
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2593 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597 $as_echo_n "checking target system type... " >&6; }
2598 if ${ac_cv_target+:} false
; then :
2599 $as_echo_n "(cached) " >&6
2601 if test "x$target_alias" = x
; then
2602 ac_cv_target
=$ac_cv_host
2604 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2605 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610 $as_echo "$ac_cv_target" >&6; }
2611 case $ac_cv_target in
2613 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2615 target
=$ac_cv_target
2616 ac_save_IFS
=$IFS; IFS
='-'
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2626 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2629 # The aliases save the names the user supplied, while $host etc.
2630 # will get canonicalized.
2631 test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2634 program_prefix
=${target_alias}-
2636 # Expand $ac_aux_dir to an absolute path.
2637 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2640 ac_cpp
='$CPP $CPPFLAGS'
2641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2644 if test -n "$ac_tool_prefix"; then
2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2646 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648 $as_echo_n "checking for $ac_word... " >&6; }
2649 if ${ac_cv_prog_CC+:} false
; then :
2650 $as_echo_n "(cached) " >&6
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC
="$CC" # Let the user override the test.
2655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir
=.
2660 for ac_exec_ext
in '' $ac_executable_extensions; do
2661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2662 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 if test -n "$CC"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2675 $as_echo "$CC" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678 $as_echo "no" >&6; }
2683 if test -z "$ac_cv_prog_CC"; then
2685 # Extract the first word of "gcc", so it can be a program name with args.
2686 set dummy gcc
; ac_word
=$2
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688 $as_echo_n "checking for $ac_word... " >&6; }
2689 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2690 $as_echo_n "(cached) " >&6
2692 if test -n "$ac_ct_CC"; then
2693 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2699 test -z "$as_dir" && as_dir
=.
2700 for ac_exec_ext
in '' $ac_executable_extensions; do
2701 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2702 ac_cv_prog_ac_ct_CC
="gcc"
2703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2713 if test -n "$ac_ct_CC"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2715 $as_echo "$ac_ct_CC" >&6; }
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2721 if test "x$ac_ct_CC" = x
; then
2724 case $cross_compiling:$ac_tool_warned in
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned
=yes ;;
2736 if test -z "$CC"; then
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2739 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_CC+:} false
; then :
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC
="$CC" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2777 if test -z "$CC"; then
2778 # Extract the first word of "cc", so it can be a program name with args.
2779 set dummy cc
; ac_word
=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_CC+:} false
; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC
="$CC" # Let the user override the test.
2789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir
=.
2794 for ac_exec_ext
in '' $ac_executable_extensions; do
2795 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2797 ac_prog_rejected
=yes
2801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy
$ac_cv_prog_CC
2812 if test $# != 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2817 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$CC"; then
2834 if test -n "$ac_tool_prefix"; then
2835 for ac_prog
in cl.exe
2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false
; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC
="$CC" # Let the user override the test.
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2874 test -n "$CC" && break
2877 if test -z "$CC"; then
2879 for ac_prog
in cl.exe
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy
$ac_prog; ac_word
=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$ac_ct_CC"; then
2889 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_CC
="$ac_prog"
2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2909 if test -n "$ac_ct_CC"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2911 $as_echo "$ac_ct_CC" >&6; }
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2918 test -n "$ac_ct_CC" && break
2921 if test "x$ac_ct_CC" = x
; then
2924 case $cross_compiling:$ac_tool_warned in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned
=yes ;;
2937 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $?
"no acceptable C compiler found in \$PATH
2940 See \`config.log' for more details" "$LINENO" 5; }
2942 # Provide some information about the compiler.
2943 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2946 for ac_option
in --version -v -V -qversion; do
2947 { { ac_try
="$ac_compiler $ac_option >&5"
2949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 if test -s conftest.err; then
2958 ... rest of stderr output deleted ...
2959 10q' conftest.err >conftest.er1
2960 cat conftest.er1 >&5
2962 rm -f conftest.er1 conftest.err
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }
2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h. */
2978 ac_clean_files_save=$ac_clean_files
2979 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2980 # Try to create an executable without -o first, disregard a.out.
2981 # It will help us diagnose broken compilers, and finding out an intuition
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2984 $as_echo_n "checking whether the C compiler works... " >&6; }
2985 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2987 # The possible output files:
2988 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2991 for ac_file in $ac_files
2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2995 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3000 if { { ac_try="$ac_link_default"
3002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3003 *) ac_try_echo
=$ac_try;;
3005 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link_default") 2>&5
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3016 for ac_file
in $ac_files ''
3018 test -f "$ac_file" ||
continue
3020 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3023 # We found the default executable, but exeext='' is most
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3029 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3041 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3046 if test -z "$ac_file"; then :
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 $as_echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.
$ac_ext >&5
3052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3054 as_fn_error
77 "C compiler cannot create executables
3055 See \`config.log' for more details" "$LINENO" 5; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3061 $as_echo_n "checking for C compiler default output file name... " >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3063 $as_echo "$ac_file" >&6; }
3064 ac_exeext
=$ac_cv_exeext
3066 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3067 ac_clean_files
=$ac_clean_files_save
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3069 $as_echo_n "checking for suffix of executables... " >&6; }
3070 if { { ac_try
="$ac_link"
3072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_link") 2>&5
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; then :
3081 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3082 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 for ac_file
in conftest.exe conftest conftest.
*; do
3086 test -f "$ac_file" ||
continue
3088 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3089 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details" "$LINENO" 5; }
3100 rm -f conftest conftest
$ac_cv_exeext
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3102 $as_echo "$ac_cv_exeext" >&6; }
3104 rm -f conftest.
$ac_ext
3105 EXEEXT
=$ac_cv_exeext
3107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3113 FILE *f = fopen ("conftest.out", "w");
3114 return ferror (f) || fclose (f) != 0;
3120 ac_clean_files
="$ac_clean_files conftest.out"
3121 # Check that the compiler produces executables we can run. If not, either
3122 # the compiler is broken, or we cross compile.
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3124 $as_echo_n "checking whether we are cross compiling... " >&6; }
3125 if test "$cross_compiling" != yes; then
3126 { { ac_try
="$ac_link"
3128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133 (eval "$ac_link") 2>&5
3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136 test $ac_status = 0; }
3137 if { ac_try='./conftest$ac_cv_exeext'
3138 { { case "(($ac_try" in
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_try") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; }; then
3150 if test "$cross_compiling" = maybe
; then
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error $?
"cannot run C compiled programs.
3156 If you meant to cross compile, use \`--host'.
3157 See \`config.log' for more details" "$LINENO" 5; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3162 $as_echo "$cross_compiling" >&6; }
3164 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3165 ac_clean_files
=$ac_clean_files_save
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3167 $as_echo_n "checking for suffix of object files... " >&6; }
3168 if ${ac_cv_objext+:} false
; then :
3169 $as_echo_n "(cached) " >&6
3171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 rm -f conftest.o conftest.obj
3183 if { { ac_try
="$ac_compile"
3185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_compile") 2>&5
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 for ac_file in conftest.o conftest.obj conftest.*; do
3195 test -f "$ac_file" || continue;
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3198 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3209 See \
`config.log' for more details" "$LINENO" 5; }
3211 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3214 $as_echo "$ac_cv_objext" >&6; }
3215 OBJEXT=$ac_cv_objext
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3218 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3219 if ${ac_cv_c_compiler_gnu+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3236 if ac_fn_c_try_compile "$LINENO"; then :
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3246 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3247 if test $ac_compiler_gnu = yes; then
3252 ac_test_CFLAGS=${CFLAGS+set}
3253 ac_save_CFLAGS=$CFLAGS
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3255 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3256 if ${ac_cv_prog_cc_g+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_save_c_werror_flag=$ac_c_werror_flag
3260 ac_c_werror_flag=yes
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3274 if ac_fn_c_try_compile "$LINENO"; then :
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3305 if ac_fn_c_try_compile "$LINENO"; then :
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3316 $as_echo "$ac_cv_prog_cc_g" >&6; }
3317 if test "$ac_test_CFLAGS" = set; then
3318 CFLAGS=$ac_save_CFLAGS
3319 elif test $ac_cv_prog_cc_g = yes; then
3320 if test "$GCC" = yes; then
3326 if test "$GCC" = yes; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3333 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3334 if ${ac_cv_prog_cc_c89+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 ac_cv_prog_cc_c89=no
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3358 s = g (p, va_arg (v,int));
3363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3364 function prototypes and stuff, but not '\xHH' hex character constants.
3365 These don't provoke an error unfortunately, instead are silently treated
3366 as 'x'. The following induces an error, until -std is added to get
3367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3368 array size at least. It's necessary to write '\x00'==0 to get something
3369 that's true only with -std. */
3370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3373 inside strings and character constants. */
3375 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377 int test (int i, double x);
3378 struct s1 {int (*f) (int a);};
3379 struct s2 {int (*f) (double a);};
3380 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3391 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3392 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 CC="$ac_save_CC $ac_arg"
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_c89=$ac_arg
3398 rm -f core conftest.err conftest.$ac_objext
3399 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 rm -f conftest.$ac_ext
3406 case "x$ac_cv_prog_cc_c89" in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3409 $as_echo "none needed" >&6; } ;;
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3412 $as_echo "unsupported" >&6; } ;;
3414 CC="$CC $ac_cv_prog_cc_c89"
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3416 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418 if test "x$ac_cv_prog_cc_c89" != xno; then :
3423 ac_cpp='$CPP $CPPFLAGS'
3424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3434 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3435 if ${am_cv_prog_cc_c_o+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3449 # Make sure it works both with $CC and with simple cc.
3450 # Following AC_PROG_CC_C_O, we do the test twice because some
3451 # compilers refuse to overwrite an existing .o file with -o,
3452 # though they will create one.
3453 am_cv_prog_cc_c_o=yes
3455 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3456 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } \
3460 && test -f conftest2.$ac_objext; then
3463 am_cv_prog_cc_c_o=no
3467 rm -f core conftest*
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3471 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3472 if test "$am_cv_prog_cc_c_o" != yes; then
3473 # Losing compiler, so override with the script.
3474 # FIXME: It is wrong to rewrite CC.
3475 # But if we don't then we get into trouble of one sort or another.
3476 # A longer-term fix would be to have automake use am__CC in this case,
3477 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3478 CC="$am_aux_dir/compile $CC"
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3494 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3495 # On Suns, sometimes $CPP names a directory.
3496 if test -n "$CPP" && test -d "$CPP"; then
3499 if test -z "$CPP"; then
3500 if ${ac_cv_prog_CPP+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 # Double quotes because CPP needs to be expanded
3504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3507 for ac_c_preproc_warn_flag in '' yes
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3518 # include <limits.h>
3520 # include <assert.h>
3524 if ac_fn_c_try_cpp "$LINENO"; then :
3527 # Broken: fails on valid input.
3530 rm -f conftest.err conftest.i conftest.$ac_ext
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536 #include <ac_nonexistent.h>
3538 if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3542 # Passes both tests.
3546 rm -f conftest.err conftest.i conftest.$ac_ext
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.i conftest.err conftest.
$ac_ext
3551 if $ac_preproc_ok; then :
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3564 $as_echo "$CPP" >&6; }
3566 for ac_c_preproc_warn_flag
in '' yes
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3577 # include <limits.h>
3579 # include <assert.h>
3583 if ac_fn_c_try_cpp
"$LINENO"; then :
3586 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.i conftest.
$ac_ext
3591 # OK, works on sane cases. Now check whether nonexistent headers
3592 # can be detected and how.
3593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <ac_nonexistent.h>
3597 if ac_fn_c_try_cpp
"$LINENO"; then :
3598 # Broken: success on invalid input.
3601 # Passes both tests.
3605 rm -f conftest.err conftest.i conftest.
$ac_ext
3608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3609 rm -f conftest.i conftest.err conftest.
$ac_ext
3610 if $ac_preproc_ok; then :
3613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3615 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3616 See \`config.log' for more details" "$LINENO" 5; }
3620 ac_cpp
='$CPP $CPPFLAGS'
3621 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628 if ${ac_cv_path_GREP+:} false
; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found
=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3635 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3638 test -z "$as_dir" && as_dir
=.
3639 for ac_prog
in grep ggrep
; do
3640 for ac_exec_ext
in '' $ac_executable_extensions; do
3641 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3642 as_fn_executable_p
"$ac_path_GREP" ||
continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3647 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3650 $as_echo_n 0123456789 >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3658 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3659 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP
="$ac_path_GREP"
3663 ac_path_GREP_max
=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3671 $ac_path_GREP_found && break 3
3676 if test -z "$ac_cv_path_GREP"; then
3677 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3680 ac_cv_path_GREP
=$GREP
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3685 $as_echo "$ac_cv_path_GREP" >&6; }
3686 GREP
="$ac_cv_path_GREP"
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3690 $as_echo_n "checking for egrep... " >&6; }
3691 if ${ac_cv_path_EGREP+:} false
; then :
3692 $as_echo_n "(cached) " >&6
3694 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3695 then ac_cv_path_EGREP
="$GREP -E"
3697 if test -z "$EGREP"; then
3698 ac_path_EGREP_found
=false
3699 # Loop through the user's path and test for each of PROGNAME-LIST
3700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3701 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3704 test -z "$as_dir" && as_dir
=.
3705 for ac_prog
in egrep; do
3706 for ac_exec_ext
in '' $ac_executable_extensions; do
3707 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3708 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3709 # Check for GNU ac_path_EGREP and select it if it is found.
3710 # Check for GNU $ac_path_EGREP
3711 case `"$ac_path_EGREP" --version 2>&1` in
3713 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3716 $as_echo_n 0123456789 >"conftest.in"
3719 cat "conftest.in" "conftest.in" >"conftest.tmp"
3720 mv "conftest.tmp" "conftest.in"
3721 cp "conftest.in" "conftest.nl"
3722 $as_echo 'EGREP' >> "conftest.nl"
3723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3724 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3725 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3727 # Best one so far, save it but keep looking for a better one
3728 ac_cv_path_EGREP
="$ac_path_EGREP"
3729 ac_path_EGREP_max
=$ac_count
3731 # 10*(2^10) chars as input seems more than enough
3732 test $ac_count -gt 10 && break
3734 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3737 $ac_path_EGREP_found && break 3
3742 if test -z "$ac_cv_path_EGREP"; then
3743 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3746 ac_cv_path_EGREP
=$EGREP
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3752 $as_echo "$ac_cv_path_EGREP" >&6; }
3753 EGREP
="$ac_cv_path_EGREP"
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3757 $as_echo_n "checking for ANSI C header files... " >&6; }
3758 if ${ac_cv_header_stdc+:} false
; then :
3759 $as_echo_n "(cached) " >&6
3761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3776 if ac_fn_c_try_compile
"$LINENO"; then :
3777 ac_cv_header_stdc
=yes
3779 ac_cv_header_stdc
=no
3781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3783 if test $ac_cv_header_stdc = yes; then
3784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev
/null
2>&1; then :
3794 ac_cv_header_stdc
=no
3800 if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 $EGREP "free" >/dev
/null
2>&1; then :
3811 ac_cv_header_stdc
=no
3817 if test $ac_cv_header_stdc = yes; then
3818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3819 if test "$cross_compiling" = yes; then :
3822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3826 #if ((' ' & 0x0FF) == 0x020)
3827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830 # define ISLOWER(c) \
3831 (('a' <= (c) && (c) <= 'i') \
3832 || ('j' <= (c) && (c) <= 'r') \
3833 || ('s' <= (c) && (c) <= 'z'))
3834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3842 for (i = 0; i < 256; i++)
3843 if (XOR (islower (i), ISLOWER (i))
3844 || toupper (i) != TOUPPER (i))
3849 if ac_fn_c_try_run
"$LINENO"; then :
3852 ac_cv_header_stdc
=no
3854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3855 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3861 $as_echo "$ac_cv_header_stdc" >&6; }
3862 if test $ac_cv_header_stdc = yes; then
3864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3869 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3870 inttypes.h stdint.h unistd.h
3872 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3873 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3875 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3876 cat >>confdefs.h
<<_ACEOF
3877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3886 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3887 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3894 if test "$MINIX" = yes; then
3896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3902 $as_echo "#define _MINIX 1" >>confdefs.h
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3908 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3909 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3915 # define __EXTENSIONS__ 1
3916 $ac_includes_default
3925 if ac_fn_c_try_compile
"$LINENO"; then :
3926 ac_cv_safe_to_define___extensions__
=yes
3928 ac_cv_safe_to_define___extensions__
=no
3930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3933 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3934 test $ac_cv_safe_to_define___extensions__ = yes &&
3935 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3937 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3939 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3941 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3943 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3947 target_alias
=${target_alias-$target}
3950 # 1.11.1: Require that version of automake.
3951 # foreign: Don't require README, INSTALL, NEWS, etc.
3952 # no-define: Don't define PACKAGE and VERSION.
3953 # no-dependencies: Don't generate automatic dependencies.
3954 # (because it breaks when using bootstrap-lean, since some of the
3955 # headers are gone at "make install" time).
3956 # subdir-objects: Build objects in sub-directories.
3957 # -Wall: Issue all automake warnings.
3958 # -Wno-portability: Don't warn about constructs supported by GNU make.
3959 # (because GCC requires GNU make anyhow).
3960 # -Wno-override: Overrides used in testsuite.
3961 am__api_version
='1.15'
3963 # Find a good install program. We prefer a C program (faster),
3964 # so one script is as good as another. But avoid the broken or
3965 # incompatible versions:
3966 # SysV /etc/install, /usr/sbin/install
3967 # SunOS /usr/etc/install
3968 # IRIX /sbin/install
3970 # AmigaOS /C/install, which installs bootblocks on floppy discs
3971 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3974 # OS/2's system install, which has a completely different semantic
3975 # ./install, which can be erroneously created by make from ./install.sh.
3976 # Reject install programs that cannot install multiple files.
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3978 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3979 if test -z "$INSTALL"; then
3980 if ${ac_cv_path_install+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3987 test -z "$as_dir" && as_dir
=.
3988 # Account for people who put trailing slashes in PATH elements.
3989 case $as_dir/ in #((
3990 .
/ | .
// |
/[cC
]/* | \
3991 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3992 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3995 # OSF1 and SCO ODT 3.0 have their own names for install.
3996 # Don't use installbsd from OSF since it installs stuff as root
3998 for ac_prog
in ginstall scoinst
install; do
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4001 if test $ac_prog = install &&
4002 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4003 # AIX install. It has an incompatible calling convention.
4005 elif test $ac_prog = install &&
4006 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4007 # program-specific install script used by HP pwplus--don't use.
4010 rm -rf conftest.one conftest.two conftest.dir
4011 echo one
> conftest.one
4012 echo two
> conftest.two
4014 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4015 test -s conftest.one
&& test -s conftest.two
&&
4016 test -s conftest.dir
/conftest.one
&&
4017 test -s conftest.dir
/conftest.two
4019 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4032 rm -rf conftest.one conftest.two conftest.dir
4035 if test "${ac_cv_path_install+set}" = set; then
4036 INSTALL
=$ac_cv_path_install
4038 # As a last resort, use the slow shell script. Don't cache a
4039 # value for INSTALL within a source directory, because that will
4040 # break other packages using the cache if that directory is
4041 # removed, or if the value is a relative name.
4042 INSTALL
=$ac_install_sh
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4046 $as_echo "$INSTALL" >&6; }
4048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4049 # It thinks the first close brace ends the variable substitution.
4050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4054 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4057 $as_echo_n "checking whether build environment is sane... " >&6; }
4058 # Reject unsafe characters in $srcdir or the absolute working directory
4059 # name. Accept space and tab only in the latter.
4063 *[\\\"\
#\$\&\'\`$am_lf]*)
4064 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4067 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4068 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4071 # Do 'set' in a subshell so we don't clobber the current shell's
4072 # arguments. Must try -L first in case configure is actually a
4073 # symlink; some systems play weird games with the mod time of symlinks
4074 # (eg FreeBSD returns the mod time of the symlink's containing
4078 for am_try
in 1 2; do
4079 echo "timestamp, slept: $am_has_slept" > conftest.
file
4080 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4081 if test "$*" = "X"; then
4083 set X
`ls -t "$srcdir/configure" conftest.file`
4085 if test "$*" != "X $srcdir/configure conftest.file" \
4086 && test "$*" != "X conftest.file $srcdir/configure"; then
4088 # If neither matched, then we have a broken ls. This can happen
4089 # if, for instance, CONFIG_SHELL is bash and it inherits a
4090 # broken ls alias from the environment. This has actually
4091 # happened. Such a system could not be considered "sane".
4092 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4093 alias in your environment" "$LINENO" 5
4095 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4102 test "$2" = conftest.
file
4108 as_fn_error $?
"newly created file is older than distributed files!
4109 Check your system clock" "$LINENO" 5
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113 # If we didn't sleep, we still need to ensure time stamps of config.status and
4114 # generated files are strictly newer.
4116 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4123 test "$program_prefix" != NONE
&&
4124 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4125 # Use a double $ so make ignores it.
4126 test "$program_suffix" != NONE
&&
4127 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4128 # Double any \ or $.
4129 # By default was `s,x,x', remove it if useless.
4130 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4131 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4133 if test x
"${MISSING+set}" != xset
; then
4136 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4138 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4141 # Use eval to expand $SHELL
4142 if eval "$MISSING --is-lightweight"; then
4143 am_missing_run
="$MISSING "
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4147 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4150 if test x
"${install_sh+set}" != xset
; then
4153 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4155 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4159 # Installed binaries are usually stripped using 'strip' when the user
4160 # run "make install-strip". However 'strip' might not be the right
4161 # tool to use in cross-compilation environments, therefore Automake
4162 # will honor the 'STRIP' environment variable to overrule this program.
4163 if test "$cross_compiling" != no
; then
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4166 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_STRIP+:} false
; then :
4170 $as_echo_n "(cached) " >&6
4172 if test -n "$STRIP"; then
4173 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir
=.
4180 for ac_exec_ext
in '' $ac_executable_extensions; do
4181 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 STRIP
=$ac_cv_prog_STRIP
4193 if test -n "$STRIP"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4195 $as_echo "$STRIP" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4203 if test -z "$ac_cv_prog_STRIP"; then
4205 # Extract the first word of "strip", so it can be a program name with args.
4206 set dummy strip
; ac_word
=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 if test -n "$ac_ct_STRIP"; then
4213 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir
=.
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_STRIP
="strip"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4233 if test -n "$ac_ct_STRIP"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4235 $as_echo "$ac_ct_STRIP" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4241 if test "x$ac_ct_STRIP" = x
; then
4244 case $cross_compiling:$ac_tool_warned in
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned
=yes ;;
4253 STRIP
="$ac_cv_prog_STRIP"
4257 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4260 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4261 if test -z "$MKDIR_P"; then
4262 if ${ac_cv_path_mkdir+:} false
; then :
4263 $as_echo_n "(cached) " >&6
4265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4266 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4269 test -z "$as_dir" && as_dir
=.
4270 for ac_prog
in mkdir gmkdir
; do
4271 for ac_exec_ext
in '' $ac_executable_extensions; do
4272 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4273 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4274 'mkdir (GNU coreutils) '* | \
4275 'mkdir (coreutils) '* | \
4276 'mkdir (fileutils) '4.1*)
4277 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4287 test -d .
/--version && rmdir .
/--version
4288 if test "${ac_cv_path_mkdir+set}" = set; then
4289 MKDIR_P
="$ac_cv_path_mkdir -p"
4291 # As a last resort, use the slow shell script. Don't cache a
4292 # value for MKDIR_P within a source directory, because that will
4293 # break other packages using the cache if that directory is
4294 # removed, or if the value is a relative name.
4295 MKDIR_P
="$ac_install_sh -d"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4299 $as_echo "$MKDIR_P" >&6; }
4301 for ac_prog
in gawk mawk nawk
awk
4303 # Extract the first word of "$ac_prog", so it can be a program name with args.
4304 set dummy
$ac_prog; ac_word
=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if ${ac_cv_prog_AWK+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$AWK"; then
4311 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_exec_ext
in '' $ac_executable_extensions; do
4319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4320 ac_cv_prog_AWK
="$ac_prog"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 if test -n "$AWK"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4333 $as_echo "$AWK" >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4340 test -n "$AWK" && break
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4344 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4346 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4347 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4348 $as_echo_n "(cached) " >&6
4350 cat >conftest.
make <<\_ACEOF
4353 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4355 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4356 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4358 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4360 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4364 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 $as_echo "yes" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4371 SET_MAKE
="MAKE=${MAKE-make}"
4374 rm -rf .tst
2>/dev
/null
4375 mkdir .tst
2>/dev
/null
4376 if test -d .tst
; then
4381 rmdir .tst
2>/dev
/null
4383 # Check whether --enable-silent-rules was given.
4384 if test "${enable_silent_rules+set}" = set; then :
4385 enableval
=$enable_silent_rules;
4388 case $enable_silent_rules in # (((
4389 yes) AM_DEFAULT_VERBOSITY
=0;;
4390 no
) AM_DEFAULT_VERBOSITY
=1;;
4391 *) AM_DEFAULT_VERBOSITY
=1;;
4393 am_make
=${MAKE-make}
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4395 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4396 if ${am_cv_make_support_nested_variables+:} false
; then :
4397 $as_echo_n "(cached) " >&6
4399 if $as_echo 'TRUE=$(BAR$(V))
4405 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4406 am_cv_make_support_nested_variables
=yes
4408 am_cv_make_support_nested_variables
=no
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4412 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4413 if test $am_cv_make_support_nested_variables = yes; then
4415 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4417 AM_V
=$AM_DEFAULT_VERBOSITY
4418 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4422 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4424 # is not polluted with repeated "-I."
4425 am__isrc
=' -I$(srcdir)'
4426 # test to see if srcdir already configured
4427 if test -f $srcdir/config.status
; then
4428 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4432 # test whether we have cygpath
4433 if test -z "$CYGPATH_W"; then
4434 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4435 CYGPATH_W
='cygpath -w'
4442 # Define the identity of the package.
4444 VERSION
='version-unused'
4447 # Some tools Automake needs.
4449 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4452 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4455 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4458 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4461 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4463 # For better backward compatibility. To be removed once Automake 1.9.x
4464 # dies out for good. For more background, see:
4465 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4466 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4467 mkdir_p
='$(MKDIR_P)'
4469 # We need awk for the "check" target (and possibly the TAP driver). The
4470 # system "awk" is bad on some platforms.
4471 # Always define AMTAR for backward compatibility. Yes, it's still used
4472 # in the wild :-( We should find a proper way to deprecate it ...
4476 # We'll loop over all known methods to create a tar archive until one works.
4477 _am_tools
='gnutar pax cpio none'
4479 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4486 # POSIX will say in a future version that running "rm -f" with no argument
4487 # is OK; and we want to be able to make that assumption in our Makefile
4488 # recipes. So use an aggressive probe to check that the usage we want is
4489 # actually supported "in the wild" to an acceptable degree.
4490 # See automake bug#10828.
4491 # To make any issue more visible, cause the running configure to be aborted
4492 # by default if the 'rm' program in use doesn't match our expectations; the
4493 # user can still override this though.
4494 if rm -f && rm -fr && rm -rf; then : OK
; else
4498 Your 'rm' program seems unable to run without file operands specified
4499 on the command line, even when the '-f' option is present. This is contrary
4500 to the behaviour of most rm programs out there, and not conforming with
4501 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4503 Please tell bug-automake@gnu.org about your system, including the value
4504 of your $PATH and any error possibly output before this message. This
4505 can help us improve future automake versions.
4508 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4509 echo 'Configuration will proceed anyway, since you have set the' >&2
4510 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4514 Aborting the configuration process, to ensure you take notice of the issue.
4516 You can download and install GNU coreutils to get an 'rm' implementation
4517 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4519 If you want to complete the configuration process using your problematic
4520 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4521 to "yes", and re-run configure.
4524 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4531 # By default we simply use the C compiler to build assembly code.
4533 test "${CCAS+set}" = set || CCAS
=$CC
4534 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4539 ac_cpp
='$CPP $CPPFLAGS'
4540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4545 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false
; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC
="$CC" # Let the user override the test.
4554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir
=.
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4582 if test -z "$ac_cv_prog_CC"; then
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585 set dummy gcc
; ac_word
=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4589 $as_echo_n "(cached) " >&6
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir
=.
4599 for ac_exec_ext
in '' $ac_executable_extensions; do
4600 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC
="gcc"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4612 if test -n "$ac_ct_CC"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4614 $as_echo "$ac_ct_CC" >&6; }
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4620 if test "x$ac_ct_CC" = x
; then
4623 case $cross_compiling:$ac_tool_warned in
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned
=yes ;;
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4638 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_CC+:} false
; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$CC"; then
4645 ac_cv_prog_CC
="$CC" # Let the user override the test.
4647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir
=.
4652 for ac_exec_ext
in '' $ac_executable_extensions; do
4653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 if test -n "$CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4667 $as_echo "$CC" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4676 if test -z "$CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678 set dummy cc
; ac_word
=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if ${ac_cv_prog_CC+:} false
; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC
="$CC" # Let the user override the test.
4688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4692 test -z "$as_dir" && as_dir
=.
4693 for ac_exec_ext
in '' $ac_executable_extensions; do
4694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected
=yes
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy
$ac_cv_prog_CC
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set CC to just the basename; use the full file name.
4716 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4722 if test -n "$CC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4724 $as_echo "$CC" >&6; }
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4732 if test -z "$CC"; then
4733 if test -n "$ac_tool_prefix"; then
4734 for ac_prog
in cl.exe
4736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4737 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_prog_CC+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC
="$CC" # Let the user override the test.
4746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir
=.
4751 for ac_exec_ext
in '' $ac_executable_extensions; do
4752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4753 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 if test -n "$CC"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4766 $as_echo "$CC" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 test -n "$CC" && break
4776 if test -z "$CC"; then
4778 for ac_prog
in cl.exe
4780 # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy
$ac_prog; ac_word
=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$ac_ct_CC"; then
4788 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir
=.
4795 for ac_exec_ext
in '' $ac_executable_extensions; do
4796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4797 ac_cv_prog_ac_ct_CC
="$ac_prog"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4808 if test -n "$ac_ct_CC"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4810 $as_echo "$ac_ct_CC" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4817 test -n "$ac_ct_CC" && break
4820 if test "x$ac_ct_CC" = x
; then
4823 case $cross_compiling:$ac_tool_warned in
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4827 ac_tool_warned
=yes ;;
4836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 as_fn_error $?
"no acceptable C compiler found in \$PATH
4839 See \`config.log' for more details" "$LINENO" 5; }
4841 # Provide some information about the compiler.
4842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4845 for ac_option
in --version -v -V -qversion; do
4846 { { ac_try
="$ac_compiler $ac_option >&5"
4848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852 $as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855 if test -s conftest.err; then
4857 ... rest of stderr output deleted ...
4858 10q' conftest.err >conftest.er1
4859 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4863 test $ac_status = 0; }
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4867 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4868 if ${ac_cv_c_compiler_gnu+:} false; then :
4869 $as_echo_n "(cached) " >&6
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4885 if ac_fn_c_try_compile "$LINENO"; then :
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4895 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4896 if test $ac_compiler_gnu = yes; then
4901 ac_test_CFLAGS=${CFLAGS+set}
4902 ac_save_CFLAGS=$CFLAGS
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4904 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4905 if ${ac_cv_prog_cc_g+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 ac_save_c_werror_flag=$ac_c_werror_flag
4909 ac_c_werror_flag=yes
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4923 if ac_fn_c_try_compile "$LINENO"; then :
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4938 if ac_fn_c_try_compile "$LINENO"; then :
4941 ac_c_werror_flag=$ac_save_c_werror_flag
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4954 if ac_fn_c_try_compile "$LINENO"; then :
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 ac_c_werror_flag=$ac_save_c_werror_flag
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4965 $as_echo "$ac_cv_prog_cc_g" >&6; }
4966 if test "$ac_test_CFLAGS" = set; then
4967 CFLAGS=$ac_save_CFLAGS
4968 elif test $ac_cv_prog_cc_g = yes; then
4969 if test "$GCC" = yes; then
4975 if test "$GCC" = yes; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4983 if ${ac_cv_prog_cc_c89+:} false; then :
4984 $as_echo_n "(cached) " >&6
4986 ac_cv_prog_cc_c89=no
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4994 struct buf { int x; };
4995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4996 static char *e (p, i)
5002 static char *f (char * (*g) (char **, int), char **p, ...)
5007 s = g (p, va_arg (v,int));
5012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5013 function prototypes and stuff, but not '\xHH' hex character constants.
5014 These don't provoke an error unfortunately, instead are silently treated
5015 as 'x'. The following induces an error, until -std is added to get
5016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5017 array size at least. It's necessary to write '\x00'==0 to get something
5018 that's true only with -std. */
5019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5021 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5022 inside strings and character constants. */
5024 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5026 int test (int i, double x);
5027 struct s1 {int (*f) (int a);};
5028 struct s2 {int (*f) (double a);};
5029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5040 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5043 CC="$ac_save_CC $ac_arg"
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045 ac_cv_prog_cc_c89=$ac_arg
5047 rm -f core conftest.err conftest.$ac_objext
5048 test "x$ac_cv_prog_cc_c89" != "xno" && break
5050 rm -f conftest.$ac_ext
5055 case "x$ac_cv_prog_cc_c89" in
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5058 $as_echo "none needed" >&6; } ;;
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5061 $as_echo "unsupported" >&6; } ;;
5063 CC="$CC $ac_cv_prog_cc_c89"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5067 if test "x$ac_cv_prog_cc_c89" != xno; then :
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5078 ac_cpp='$CPP $CPPFLAGS'
5079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5083 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5084 if ${am_cv_prog_cc_c_o+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5098 # Make sure it works both with $CC and with simple cc.
5099 # Following AC_PROG_CC_C_O, we do the test twice because some
5100 # compilers refuse to overwrite an existing .o file with -o,
5101 # though they will create one.
5102 am_cv_prog_cc_c_o=yes
5104 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5105 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } \
5109 && test -f conftest2.$ac_objext; then
5112 am_cv_prog_cc_c_o=no
5116 rm -f core conftest*
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5120 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5121 if test "$am_cv_prog_cc_c_o" != yes; then
5122 # Losing compiler, so override with the script.
5123 # FIXME: It is wrong to rewrite CC.
5124 # But if we don't then we get into trouble of one sort or another.
5125 # A longer-term fix would be to have automake use am__CC in this case,
5126 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5127 CC="$am_aux_dir/compile $CC"
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5138 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5142 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_GDC+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 if test -n "$GDC"; then
5149 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 if test -n "$GDC"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5171 $as_echo "$GDC" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5179 if test -z "$ac_cv_prog_GDC"; then
5181 # Extract the first word of "gdc", so it can be a program name with args.
5182 set dummy gdc; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 if test -n "$ac_ct_GDC"; then
5189 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_GDC="gdc"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5209 if test -n "$ac_ct_GDC"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5211 $as_echo "$ac_ct_GDC" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5217 if test "x$ac_ct_GDC" = x; then
5220 case $cross_compiling:$ac_tool_warned in
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5229 GDC="$ac_cv_prog_GDC"
5232 if test -z "$GDC"; then
5233 if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5235 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_GDC+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -n "$GDC"; then
5242 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 if test -n "$GDC"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5264 $as_echo "$GDC" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5273 if test -z "$GDC"; then
5274 # Extract the first word of "gdc", so it can be a program name with args.
5275 set dummy gdc; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_prog_GDC+:} false; then :
5279 $as_echo_n "(cached) " >&6
5281 if test -n "$GDC"; then
5282 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5292 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5293 ac_prog_rejected=yes
5296 ac_cv_prog_GDC="gdc"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 if test $ac_prog_rejected = yes; then
5305 # We found a bogon in the path, so make sure we never use it.
5306 set dummy $ac_cv_prog_GDC
5308 if test $# != 0; then
5309 # We chose a different compiler from the bogus one.
5310 # However, it has the same basename, so the bogon will be chosen
5311 # first if we set GDC to just the basename; use the full file name.
5313 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5319 if test -n "$GDC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5321 $as_echo "$GDC" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5331 # Provide some information about the compiler.
5332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5335 { { ac_try="$ac_compiler --version >&5"
5337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5338 *) ac_try_echo
=$ac_try;;
5340 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5341 $as_echo "$ac_try_echo"; } >&5
5342 (eval "$ac_compiler --version >&5") 2>conftest.err
5344 if test -s conftest.err
; then
5346 ... rest of stderr output deleted ...
5347 10q' conftest.err
>conftest.er1
5348 cat conftest.er1
>&5
5350 rm -f conftest.er1 conftest.err
5351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5352 test $ac_status = 0; }
5354 ac_cpp
='$CPP $CPPFLAGS'
5355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5361 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5362 if ${phobos_cv_abs_srcdir+:} false
; then :
5363 $as_echo_n "(cached) " >&6
5365 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5368 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5369 if test -d "$phobos_cv_abs_srcdir"; then :
5372 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5378 gdc_save_DFLAGS
=$GDCFLAGS
5379 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5382 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5383 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5387 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5388 cat > conftest.
$ac_ext <<_ACEOF
5392 extern(C) int main() {
5396 if ac_fn_d_try_compile
"$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5398 $as_echo "yes" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5402 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5406 ac_cpp
='$CPP $CPPFLAGS'
5407 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5412 GDCFLAGS
=$gdc_save_DFLAGS
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5421 # Check whether --enable-maintainer-mode was given.
5422 if test "${enable_maintainer_mode+set}" = set; then :
5423 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5425 USE_MAINTAINER_MODE
=no
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5430 if test $USE_MAINTAINER_MODE = yes; then
5431 MAINTAINER_MODE_TRUE
=
5432 MAINTAINER_MODE_FALSE
='#'
5434 MAINTAINER_MODE_TRUE
='#'
5435 MAINTAINER_MODE_FALSE
=
5438 MAINT
=$MAINTAINER_MODE_TRUE
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if ${ac_cv_prog_RANLIB+:} false
; then :
5447 $as_echo_n "(cached) " >&6
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5456 test -z "$as_dir" && as_dir
=.
5457 for ac_exec_ext
in '' $ac_executable_extensions; do
5458 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5459 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 RANLIB
=$ac_cv_prog_RANLIB
5470 if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472 $as_echo "$RANLIB" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5480 if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB
=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483 set dummy ranlib
; ac_word
=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5487 $as_echo_n "(cached) " >&6
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir
=.
5497 for ac_exec_ext
in '' $ac_executable_extensions; do
5498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5499 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5510 if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512 $as_echo "$ac_ct_RANLIB" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5518 if test "x$ac_ct_RANLIB" = x
; then
5521 case $cross_compiling:$ac_tool_warned in
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned
=yes ;;
5527 RANLIB
=$ac_ct_RANLIB
5530 RANLIB
="$ac_cv_prog_RANLIB"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5537 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5538 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5539 $as_echo_n "(cached) " >&6
5541 cat >conftest.
make <<\_ACEOF
5544 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5549 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5551 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5555 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5557 $as_echo "yes" >&6; }
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5562 SET_MAKE
="MAKE=${MAKE-make}"
5566 # Add CET specific flags if CET is enabled
5567 # Check whether --enable-cet was given.
5568 if test "${enable_cet+set}" = set; then :
5569 enableval
=$enable_cet;
5570 case "$enableval" in
5572 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5581 $as_echo_n "checking for CET support... " >&6; }
5583 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5585 i
[34567]86-*-linux* | x86_64-
*-linux*)
5586 case "$enable_cet" in
5588 # Check if target supports multi-byte NOPs
5589 # and if assembler supports CET insn.
5590 cet_save_CFLAGS
="$CFLAGS"
5591 CFLAGS
="$CFLAGS -fcf-protection"
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5599 #if !defined(__SSE2__)
5600 #error target does not support multi-byte NOPs
5609 if ac_fn_c_try_compile
"$LINENO"; then :
5614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 CFLAGS
="$cet_save_CFLAGS"
5618 # Check if assembler supports CET.
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5630 if ac_fn_c_try_compile
"$LINENO"; then :
5633 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
5635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5643 if test x
$enable_cet = xyes
; then
5644 CET_FLAGS
="-fcf-protection -mshstk"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5654 # This should be inherited in the recursive make, but ensure it is defined.
5658 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5666 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5671 macro_version
='2.2.7a'
5672 macro_revision
='1.3134'
5686 ltmain
="$ac_aux_dir/ltmain.sh"
5688 # Backslashify metacharacters that are still active within
5689 # double-quoted strings.
5690 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5692 # Same as above, but do not quote variable references.
5693 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5695 # Sed substitution to delay expansion of an escaped shell variable in a
5696 # double_quote_subst'ed string.
5697 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5699 # Sed substitution to delay expansion of an escaped single quote.
5700 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5702 # Sed substitution to avoid accidental globbing in evaled expressions
5703 no_glob_subst
='s/\*/\\\*/g'
5705 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5707 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5710 $as_echo_n "checking how to print strings... " >&6; }
5711 # Test print first, because it will be a builtin if present.
5712 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5713 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5715 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5718 # Use this function as a fallback that always works.
5719 func_fallback_echo ()
5721 eval 'cat <<_LTECHO_EOF
5725 ECHO='func_fallback_echo
'
5728 # func_echo_all arg...
5729 # Invoke $ECHO with all args, space-separated.
5736 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5737 $as_echo "printf" >&6; } ;;
5738 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5739 $as_echo "print -r" >&6; } ;;
5740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5741 $as_echo "cat" >&6; } ;;
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5758 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5759 if ${ac_cv_path_SED+:} false; then :
5760 $as_echo_n "(cached) " >&6
5762 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5763 for ac_i in 1 2 3 4 5 6 7; do
5764 ac_script="$ac_script$as_nl$ac_script"
5766 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5767 { ac_script=; unset ac_script;}
5768 if test -z "$SED"; then
5769 ac_path_SED_found=false
5770 # Loop through the user's path and
test for each of PROGNAME-LIST
5771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir
=.
5776 for ac_prog
in sed gsed
; do
5777 for ac_exec_ext
in '' $ac_executable_extensions; do
5778 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5779 as_fn_executable_p
"$ac_path_SED" ||
continue
5780 # Check for GNU ac_path_SED and select it if it is found.
5781 # Check for GNU $ac_path_SED
5782 case `"$ac_path_SED" --version 2>&1` in
5784 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5787 $as_echo_n 0123456789 >"conftest.in"
5790 cat "conftest.in" "conftest.in" >"conftest.tmp"
5791 mv "conftest.tmp" "conftest.in"
5792 cp "conftest.in" "conftest.nl"
5793 $as_echo '' >> "conftest.nl"
5794 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5795 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5796 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5797 if test $ac_count -gt ${ac_path_SED_max-0}; then
5798 # Best one so far, save it but keep looking for a better one
5799 ac_cv_path_SED
="$ac_path_SED"
5800 ac_path_SED_max
=$ac_count
5802 # 10*(2^10) chars as input seems more than enough
5803 test $ac_count -gt 10 && break
5805 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5808 $ac_path_SED_found && break 3
5813 if test -z "$ac_cv_path_SED"; then
5814 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5822 $as_echo "$ac_cv_path_SED" >&6; }
5823 SED
="$ac_cv_path_SED"
5826 test -z "$SED" && SED
=sed
5827 Xsed
="$SED -e 1s/^X//"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5840 $as_echo_n "checking for fgrep... " >&6; }
5841 if ${ac_cv_path_FGREP+:} false
; then :
5842 $as_echo_n "(cached) " >&6
5844 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5845 then ac_cv_path_FGREP
="$GREP -F"
5847 if test -z "$FGREP"; then
5848 ac_path_FGREP_found
=false
5849 # Loop through the user's path and test for each of PROGNAME-LIST
5850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5851 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5854 test -z "$as_dir" && as_dir
=.
5855 for ac_prog
in fgrep
; do
5856 for ac_exec_ext
in '' $ac_executable_extensions; do
5857 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5858 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5859 # Check for GNU ac_path_FGREP and select it if it is found.
5860 # Check for GNU $ac_path_FGREP
5861 case `"$ac_path_FGREP" --version 2>&1` in
5863 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5866 $as_echo_n 0123456789 >"conftest.in"
5869 cat "conftest.in" "conftest.in" >"conftest.tmp"
5870 mv "conftest.tmp" "conftest.in"
5871 cp "conftest.in" "conftest.nl"
5872 $as_echo 'FGREP' >> "conftest.nl"
5873 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5874 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5875 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5876 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5877 # Best one so far, save it but keep looking for a better one
5878 ac_cv_path_FGREP
="$ac_path_FGREP"
5879 ac_path_FGREP_max
=$ac_count
5881 # 10*(2^10) chars as input seems more than enough
5882 test $ac_count -gt 10 && break
5884 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5887 $ac_path_FGREP_found && break 3
5892 if test -z "$ac_cv_path_FGREP"; then
5893 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5896 ac_cv_path_FGREP
=$FGREP
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5902 $as_echo "$ac_cv_path_FGREP" >&6; }
5903 FGREP
="$ac_cv_path_FGREP"
5906 test -z "$GREP" && GREP
=grep
5926 # Check whether --with-gnu-ld was given.
5927 if test "${with_gnu_ld+set}" = set; then :
5928 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5934 if test "$GCC" = yes; then
5935 # Check if gcc -print-prog-name=ld gives a path.
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5937 $as_echo_n "checking for ld used by $CC... " >&6; }
5940 # gcc leaves a trailing carriage return which upsets mingw
5941 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5943 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5946 # Accept absolute paths.
5948 re_direlt
='/[^/][^/]*/\.\./'
5949 # Canonicalize the pathname of ld
5950 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5951 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5952 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5954 test -z "$LD" && LD
="$ac_prog"
5957 # If it fails, then pretend we aren't using GCC.
5961 # If it is relative, then search for the first ld in PATH.
5965 elif test "$with_gnu_ld" = yes; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5967 $as_echo_n "checking for GNU ld... " >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5970 $as_echo_n "checking for non-GNU ld... " >&6; }
5972 if ${lt_cv_path_LD+:} false
; then :
5973 $as_echo_n "(cached) " >&6
5975 if test -z "$LD"; then
5976 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5977 for ac_dir
in $PATH; do
5979 test -z "$ac_dir" && ac_dir
=.
5980 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5981 lt_cv_path_LD
="$ac_dir/$ac_prog"
5982 # Check to see if the program is GNU ld. I'd rather use --version,
5983 # but apparently some variants of GNU ld only accept -v.
5984 # Break only if it was the GNU/non-GNU ld that we prefer.
5985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5986 *GNU
* |
*'with BFD'*)
5987 test "$with_gnu_ld" != no
&& break
5990 test "$with_gnu_ld" != yes && break
5997 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6002 if test -n "$LD"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6004 $as_echo "$LD" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6009 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6011 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6012 if ${lt_cv_prog_gnu_ld+:} false
; then :
6013 $as_echo_n "(cached) " >&6
6015 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6016 case `$LD -v 2>&1 </dev/null` in
6017 *GNU
* |
*'with BFD'*)
6018 lt_cv_prog_gnu_ld
=yes
6021 lt_cv_prog_gnu_ld
=no
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6026 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6027 with_gnu_ld
=$lt_cv_prog_gnu_ld
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6038 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6039 if ${lt_cv_path_NM+:} false
; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$NM"; then
6043 # Let the user override the test.
6046 lt_nm_to_check
="${ac_tool_prefix}nm"
6047 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6048 lt_nm_to_check
="$lt_nm_to_check nm"
6050 for lt_tmp_nm
in $lt_nm_to_check; do
6051 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6052 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6054 test -z "$ac_dir" && ac_dir
=.
6055 tmp_nm
="$ac_dir/$lt_tmp_nm"
6056 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6057 # Check to see if the nm accepts a BSD-compat flag.
6058 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6059 # nm: unknown option "B" ignored
6060 # Tru64's nm complains that /dev/null is an invalid object file
6061 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6062 */dev
/null
* |
*'Invalid file or object type'*)
6063 lt_cv_path_NM
="$tmp_nm -B"
6067 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6069 lt_cv_path_NM
="$tmp_nm -p"
6073 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6074 continue # so that we can try to find one that supports BSD flags
6083 : ${lt_cv_path_NM=no}
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6087 $as_echo "$lt_cv_path_NM" >&6; }
6088 if test "$lt_cv_path_NM" != "no"; then
6091 # Didn't find any BSD compatible name lister, look for dumpbin.
6092 if test -n "$DUMPBIN"; then :
6093 # Let the user override the test.
6095 if test -n "$ac_tool_prefix"; then
6096 for ac_prog
in dumpbin
"link -dump"
6098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6099 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$DUMPBIN"; then
6106 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir
=.
6113 for ac_exec_ext
in '' $ac_executable_extensions; do
6114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 DUMPBIN
=$ac_cv_prog_DUMPBIN
6126 if test -n "$DUMPBIN"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6128 $as_echo "$DUMPBIN" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6135 test -n "$DUMPBIN" && break
6138 if test -z "$DUMPBIN"; then
6139 ac_ct_DUMPBIN
=$DUMPBIN
6140 for ac_prog
in dumpbin
"link -dump"
6142 # Extract the first word of "$ac_prog", so it can be a program name with args.
6143 set dummy
$ac_prog; ac_word
=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$ac_ct_DUMPBIN"; then
6150 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir
=.
6157 for ac_exec_ext
in '' $ac_executable_extensions; do
6158 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6170 if test -n "$ac_ct_DUMPBIN"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6172 $as_echo "$ac_ct_DUMPBIN" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6179 test -n "$ac_ct_DUMPBIN" && break
6182 if test "x$ac_ct_DUMPBIN" = x
; then
6185 case $cross_compiling:$ac_tool_warned in
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned
=yes ;;
6191 DUMPBIN
=$ac_ct_DUMPBIN
6195 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6197 DUMPBIN
="$DUMPBIN -symbols"
6205 if test "$DUMPBIN" != ":"; then
6209 test -z "$NM" && NM
=nm
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6217 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6218 if ${lt_cv_nm_interface+:} false
; then :
6219 $as_echo_n "(cached) " >&6
6221 lt_cv_nm_interface
="BSD nm"
6222 echo "int some_variable = 0;" > conftest.
$ac_ext
6223 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6224 (eval "$ac_compile" 2>conftest.err
)
6225 cat conftest.err
>&5
6226 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6227 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6228 cat conftest.err
>&5
6229 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6230 cat conftest.out
>&5
6231 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6232 lt_cv_nm_interface
="MS dumpbin"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6237 $as_echo "$lt_cv_nm_interface" >&6; }
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6240 $as_echo_n "checking whether ln -s works... " >&6; }
6242 if test "$LN_S" = "ln -s"; then
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6244 $as_echo "yes" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6247 $as_echo "no, using $LN_S" >&6; }
6250 # find the maximum length of command line arguments
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6252 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6253 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6254 $as_echo_n "(cached) " >&6
6261 # On DJGPP, this test can blow up pretty badly due to problems in libc
6262 # (any single argument exceeding 2000 bytes causes a buffer overrun
6263 # during glob expansion). Even if it were fixed, the result of this
6264 # check would be larger than it should be.
6265 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6269 # Under GNU Hurd, this test is not required because there is
6270 # no limit to the length of command line arguments.
6271 # Libtool will interpret -1 as no limit whatsoever
6272 lt_cv_sys_max_cmd_len
=-1;
6275 cygwin
* | mingw
* | cegcc
*)
6276 # On Win9x/ME, this test blows up -- it succeeds, but takes
6277 # about 5 minutes as the teststring grows exponentially.
6278 # Worse, since 9x/ME are not pre-emptively multitasking,
6279 # you end up with a "frozen" computer, even though with patience
6280 # the test eventually succeeds (with a max line length of 256k).
6281 # Instead, let's just punt: use the minimum linelength reported by
6282 # all of the supported platforms: 8192 (on NT/2K/XP).
6283 lt_cv_sys_max_cmd_len
=8192;
6287 # On MiNT this can take a long time and run out of memory.
6288 lt_cv_sys_max_cmd_len
=8192;
6292 # On AmigaOS with pdksh, this test takes hours, literally.
6293 # So we just punt and use a minimum line length of 8192.
6294 lt_cv_sys_max_cmd_len
=8192;
6297 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6298 # This has been around since 386BSD, at least. Likely further.
6299 if test -x /sbin
/sysctl
; then
6300 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6301 elif test -x /usr
/sbin
/sysctl
; then
6302 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6304 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6306 # And add a safety zone
6307 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6308 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6312 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6313 lt_cv_sys_max_cmd_len
=196608
6317 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6318 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6319 # nice to cause kernel panics so lets avoid the loop below.
6320 # First set a reasonable default.
6321 lt_cv_sys_max_cmd_len
=16384
6323 if test -x /sbin
/sysconfig
; then
6324 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6325 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6330 lt_cv_sys_max_cmd_len
=102400
6332 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6333 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6334 if test -n "$kargmax"; then
6335 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6337 lt_cv_sys_max_cmd_len
=32768
6341 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6342 if test -n "$lt_cv_sys_max_cmd_len"; then
6343 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6344 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6346 # Make teststring a little bigger before we do anything with it.
6347 # a 1K string should be a reasonable start.
6348 for i
in 1 2 3 4 5 6 7 8 ; do
6349 teststring
=$teststring$teststring
6351 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352 # If test is not a shell built-in, we'll probably end up computing a
6353 # maximum length that is only half of the actual maximum length, but
6355 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6356 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6357 test $i != 17 # 1/2 MB should be enough
6360 teststring
=$teststring$teststring
6362 # Only check the string length outside the loop.
6363 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6365 # Add a significant safety factor because C++ compilers can tack on
6366 # massive amounts of additional arguments before passing them to the
6367 # linker. It appears as though 1/2 is a usable value.
6368 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6375 if test -n $lt_cv_sys_max_cmd_len ; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6377 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6380 $as_echo "none" >&6; }
6382 max_cmd_len
=$lt_cv_sys_max_cmd_len
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6394 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6395 # Try some XSI features
6398 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6400 && eval 'test $(( 1 + 1 )) -eq 2 \
6401 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6404 $as_echo "$xsi_shell" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6408 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6410 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6412 && lt_shell_append=yes
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6414 $as_echo "$lt_shell_append" >&6; }
6417 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6427 # test EBCDIC or ASCII
6428 case `echo X|tr X '\101'` in
6429 A) # ASCII based system
6430 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6431 lt_SP2NL='tr \040 \012'
6432 lt_NL2SP='tr \015\012 \040\040'
6434 *) # EBCDIC based system
6435 lt_SP2NL='tr \100 \n'
6436 lt_NL2SP='tr \r\n \100\100'
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6449 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6450 if ${lt_cv_ld_reload_flag+:} false; then :
6451 $as_echo_n "(cached
) " >&6
6453 lt_cv_ld_reload_flag='-r'
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6456 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6457 reload_flag=$lt_cv_ld_reload_flag
6458 case $reload_flag in
6460 *) reload_flag=" $reload_flag" ;;
6462 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6465 if test "$GCC" = yes; then
6466 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6485 $as_echo_n "checking
for $ac_word...
" >&6; }
6486 if ${ac_cv_prog_OBJDUMP+:} false; then :
6487 $as_echo_n "(cached
) " >&6
6489 if test -n "$OBJDUMP"; then
6490 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6509 OBJDUMP=$ac_cv_prog_OBJDUMP
6510 if test -n "$OBJDUMP"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6512 $as_echo "$OBJDUMP" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6515 $as_echo "no
" >&6; }
6520 if test -z "$ac_cv_prog_OBJDUMP"; then
6521 ac_ct_OBJDUMP=$OBJDUMP
6522 # Extract the first word of "objdump
", so it can be a program name with args.
6523 set dummy objdump; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6525 $as_echo_n "checking
for $ac_word...
" >&6; }
6526 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6527 $as_echo_n "(cached
) " >&6
6529 if test -n "$ac_ct_OBJDUMP"; then
6530 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6549 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6550 if test -n "$ac_ct_OBJDUMP"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6552 $as_echo "$ac_ct_OBJDUMP" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6555 $as_echo "no
" >&6; }
6558 if test "x
$ac_ct_OBJDUMP" = x; then
6561 case $cross_compiling:$ac_tool_warned in
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6564 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6565 ac_tool_warned=yes ;;
6567 OBJDUMP=$ac_ct_OBJDUMP
6570 OBJDUMP="$ac_cv_prog_OBJDUMP"
6573 test -z "$OBJDUMP" && OBJDUMP=objdump
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6584 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6585 if ${lt_cv_deplibs_check_method+:} false; then :
6586 $as_echo_n "(cached
) " >&6
6588 lt_cv_file_magic_cmd='$MAGIC_CMD'
6589 lt_cv_file_magic_test_file=
6590 lt_cv_deplibs_check_method='unknown'
6591 # Need to set the preceding variable on all platforms that support
6592 # interlibrary dependencies.
6593 # 'none' -- dependencies not supported.
6594 # `unknown' -- same as none, but documents that we really don't know.
6595 # 'pass_all' -- all dependencies passed with no checks.
6596 # 'test_compile' -- check by making test program.
6597 # 'file_magic [[regex]]' -- check by looking for files in library path
6598 # which responds to the $file_magic_cmd with a given extended regex.
6599 # If you have `file' or equivalent on your system and you're not sure
6600 # whether `pass_all' will *always* work, you probably want this one.
6604 lt_cv_deplibs_check_method=pass_all
6608 lt_cv_deplibs_check_method=pass_all
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6613 lt_cv_file_magic_cmd='/usr/bin/file -L'
6614 lt_cv_file_magic_test_file=/shlib/libc.so
6618 # func_win32_libid is a shell function defined in ltmain.sh
6619 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6620 lt_cv_file_magic_cmd='func_win32_libid'
6624 # Base MSYS/MinGW do not provide the 'file' command needed by
6625 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6626 # unless we find 'file', for example because we are cross-compiling.
6627 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6628 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6629 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6630 lt_cv_file_magic_cmd='func_win32_libid'
6632 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6633 lt_cv_file_magic_cmd='$OBJDUMP -f'
6638 # use the weaker test based on 'objdump'. See mingw*.
6639 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6640 lt_cv_file_magic_cmd='$OBJDUMP -f'
6643 darwin* | rhapsody*)
6644 lt_cv_deplibs_check_method=pass_all
6647 freebsd* | dragonfly*)
6648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6651 # Not sure whether the presence of OpenBSD here was a mistake.
6652 # Let's accept both of them until this is cleared up.
6653 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6659 lt_cv_deplibs_check_method=pass_all
6664 lt_cv_deplibs_check_method=pass_all
6668 lt_cv_deplibs_check_method=pass_all
6671 hpux10.20* | hpux11*)
6672 lt_cv_file_magic_cmd=/usr/bin/file
6675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6676 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6679 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]'
6680 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6684 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6690 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6694 irix5* | irix6* | nonstopux*)
6696 *-32|*"-32 ") libmagic=32-bit;;
6697 *-n32|*"-n32 ") libmagic=N32;;
6698 *-64|*"-64 ") libmagic=64-bit;;
6699 *) libmagic=never-match;;
6701 lt_cv_deplibs_check_method=pass_all
6704 # This must be Linux ELF.
6705 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6706 lt_cv_deplibs_check_method=pass_all
6710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6719 lt_cv_file_magic_cmd=/usr/bin/file
6720 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6724 lt_cv_deplibs_check_method=pass_all
6728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6735 osf3* | osf4* | osf5*)
6736 lt_cv_deplibs_check_method=pass_all
6740 lt_cv_deplibs_check_method=pass_all
6744 lt_cv_deplibs_check_method=pass_all
6747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6748 lt_cv_deplibs_check_method=pass_all
6752 case $host_vendor in
6754 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]'
6755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6758 lt_cv_deplibs_check_method=pass_all
6761 lt_cv_file_magic_cmd='/bin/file'
6762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6765 lt_cv_file_magic_cmd='/bin/file'
6766 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6767 lt_cv_file_magic_test_file=/lib/libc.so
6770 lt_cv_deplibs_check_method=pass_all
6773 lt_cv_deplibs_check_method=pass_all
6779 lt_cv_deplibs_check_method=pass_all
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6785 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6786 file_magic_cmd=$lt_cv_file_magic_cmd
6787 deplibs_check_method=$lt_cv_deplibs_check_method
6788 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}ar; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6805 $as_echo_n "checking
for $ac_word...
" >&6; }
6806 if ${ac_cv_prog_AR+:} false; then :
6807 $as_echo_n "(cached
) " >&6
6809 if test -n "$AR"; then
6810 ac_cv_prog_AR="$AR" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_AR="${ac_tool_prefix}ar"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6830 if test -n "$AR"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6832 $as_echo "$AR" >&6; }
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6835 $as_echo "no
" >&6; }
6840 if test -z "$ac_cv_prog_AR"; then
6842 # Extract the first word of "ar", so it can be a program name with args.
6843 set dummy ar; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6845 $as_echo_n "checking
for $ac_word...
" >&6; }
6846 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6847 $as_echo_n "(cached
) " >&6
6849 if test -n "$ac_ct_AR"; then
6850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6859 ac_cv_prog_ac_ct_AR="ar"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6869 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6870 if test -n "$ac_ct_AR"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6872 $as_echo "$ac_ct_AR" >&6; }
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6875 $as_echo "no
" >&6; }
6878 if test "x
$ac_ct_AR" = x; then
6881 case $cross_compiling:$ac_tool_warned in
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6884 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6885 ac_tool_warned=yes ;;
6893 test -z "$AR" && AR=ar
6894 test -z "$AR_FLAGS" && AR_FLAGS=cru
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}strip; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6910 $as_echo_n "checking
for $ac_word...
" >&6; }
6911 if ${ac_cv_prog_STRIP+:} false; then :
6912 $as_echo_n "(cached
) " >&6
6914 if test -n "$STRIP"; then
6915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6934 STRIP=$ac_cv_prog_STRIP
6935 if test -n "$STRIP"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6937 $as_echo "$STRIP" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6940 $as_echo "no
" >&6; }
6945 if test -z "$ac_cv_prog_STRIP"; then
6947 # Extract the first word of "strip
", so it can be a program name with args.
6948 set dummy strip; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6950 $as_echo_n "checking
for $ac_word...
" >&6; }
6951 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6952 $as_echo_n "(cached
) " >&6
6954 if test -n "$ac_ct_STRIP"; then
6955 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964 ac_cv_prog_ac_ct_STRIP="strip
"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6974 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6975 if test -n "$ac_ct_STRIP"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6977 $as_echo "$ac_ct_STRIP" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6980 $as_echo "no
" >&6; }
6983 if test "x
$ac_ct_STRIP" = x; then
6986 case $cross_compiling:$ac_tool_warned in
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6989 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6990 ac_tool_warned=yes ;;
6995 STRIP="$ac_cv_prog_STRIP"
6998 test -z "$STRIP" && STRIP=:
7005 if test -n "$ac_tool_prefix"; then
7006 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7009 $as_echo_n "checking
for $ac_word...
" >&6; }
7010 if ${ac_cv_prog_RANLIB+:} false; then :
7011 $as_echo_n "(cached
) " >&6
7013 if test -n "$RANLIB"; then
7014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7033 RANLIB=$ac_cv_prog_RANLIB
7034 if test -n "$RANLIB"; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7036 $as_echo "$RANLIB" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7039 $as_echo "no
" >&6; }
7044 if test -z "$ac_cv_prog_RANLIB"; then
7045 ac_ct_RANLIB=$RANLIB
7046 # Extract the first word of "ranlib
", so it can be a program name with args.
7047 set dummy ranlib; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7049 $as_echo_n "checking
for $ac_word...
" >&6; }
7050 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7051 $as_echo_n "(cached
) " >&6
7053 if test -n "$ac_ct_RANLIB"; then
7054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7063 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7074 if test -n "$ac_ct_RANLIB"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7076 $as_echo "$ac_ct_RANLIB" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7079 $as_echo "no
" >&6; }
7082 if test "x
$ac_ct_RANLIB" = x; then
7085 case $cross_compiling:$ac_tool_warned in
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7088 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7089 ac_tool_warned=yes ;;
7091 RANLIB=$ac_ct_RANLIB
7094 RANLIB="$ac_cv_prog_RANLIB"
7097 test -z "$RANLIB" && RANLIB=:
7104 # Determine commands to create old-style static archives.
7105 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7106 old_postinstall_cmds='chmod 644 $oldlib'
7107 old_postuninstall_cmds=
7109 if test -n "$RANLIB"; then
7112 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7115 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7118 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7123 lock_old_archive_extraction=yes ;;
7125 lock_old_archive_extraction=no ;;
7166 # If no C compiler was specified, use CC.
7169 # If no C compiler flags were specified, use CFLAGS.
7170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7172 # Allow CC to be a program name with arguments.
7176 # Check for command to grab the raw symbol name followed by C symbol from nm.
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7178 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7179 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7180 $as_echo_n "(cached
) " >&6
7183 # These are sane defaults that work on at least a few old systems.
7184 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7186 # Character class describing NM global symbol codes.
7187 symcode='[BCDEGRST]'
7189 # Regexp to match symbols that can be accessed directly from C.
7190 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7192 # Define system-specific variables.
7197 cygwin* | mingw* | pw32* | cegcc*)
7198 symcode='[ABCDGISTW]'
7201 if test "$host_cpu" = ia64; then
7202 symcode='[ABCDEGRST]'
7206 symcode='[BCDEGRST]'
7209 symcode='[BCDEGQRST]'
7220 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7228 # If we're using GNU nm, then use its standard symbol codes.
7229 case `$NM -V 2>&1` in
7230 *GNU* | *'with BFD'*)
7231 symcode='[ABCDGIRSTW]' ;;
7234 # Transform an extracted symbol line into a proper C declaration.
7235 # Some systems (esp. on ia64) link data and code symbols differently,
7236 # so use this general approach.
7237 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7239 # Transform an extracted symbol line into symbol name and symbol address
7240 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7241 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'"
7243 # Handle CRLF in mingw tool chain
7247 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7251 # Try without a prefix underscore, then with it.
7252 for ac_symprfx in "" "_
"; do
7254 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7255 symxfrm="\\1 $ac_symprfx\\2 \\2"
7257 # Write the raw and C identifiers.
7258 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7259 # Fake it for dumpbin and say T for any non-static function
7260 # and D for any global variable.
7261 # Also find C++ and __fastcall symbols from MSVC++,
7262 # which start with @ or ?.
7263 lt_cv_sys_global_symbol_pipe="$AWK '"\
7264 " {last_section=section; section=\$ 3};"\
7265 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7266 " \$ 0!~/External *\|/{next};"\
7267 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7268 " {if(hide[section]) next};"\
7269 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7270 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7271 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7272 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7273 " ' prfx
=^
$ac_symprfx"
7275 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7278 # Check to see that the pipe works correctly.
7282 cat > conftest.$ac_ext <<_LT_EOF
7287 void nm_test_func(void);
7288 void nm_test_func(void){}
7292 int main(){nm_test_var='a';nm_test_func();return(0);}
7295 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7296 (eval $ac_compile) 2>&5
7298 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7299 test $ac_status = 0; }; then
7300 # Now try to grab the symbols.
7302 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7303 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7305 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7306 test $ac_status = 0; } && test -s "$nlist"; then
7307 # Try sorting and uniquifying the output.
7308 if sort "$nlist" | uniq > "$nlist"T; then
7309 mv -f "$nlist"T "$nlist"
7314 # Make sure that we snagged all the symbols we need.
7315 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7316 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7317 cat <<_LT_EOF > conftest.$ac_ext
7323 # Now generate the symbol file.
7324 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7326 cat <<_LT_EOF >> conftest.$ac_ext
7328 /* The mapping between symbol names and symbols. */
7333 lt__PROGRAM__LTX_preloaded_symbols[] =
7335 { "@PROGRAM@
", (void *) 0 },
7337 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7338 cat <<\_LT_EOF >> conftest.$ac_ext
7342 /* This works around a problem in FreeBSD linker */
7343 #ifdef FREEBSD_WORKAROUND
7344 static const void *lt_preloaded_setup() {
7345 return lt__PROGRAM__LTX_preloaded_symbols;
7353 # Now try linking the two files.
7354 mv conftest.$ac_objext conftstm.$ac_objext
7355 lt_save_LIBS="$LIBS"
7356 lt_save_CFLAGS="$CFLAGS"
7357 LIBS="conftstm.
$ac_objext"
7358 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7359 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7360 (eval $ac_link) 2>&5
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7363 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7366 LIBS="$lt_save_LIBS"
7367 CFLAGS="$lt_save_CFLAGS"
7369 echo "cannot
find nm_test_func
in $nlist" >&5
7372 echo "cannot
find nm_test_var
in $nlist" >&5
7375 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7378 echo "$progname: failed program was
:" >&5
7379 cat conftest.$ac_ext >&5
7381 rm -rf conftest* conftst*
7383 # Do not use the global_symbol_pipe unless it works.
7384 if test "$pipe_works" = yes; then
7387 lt_cv_sys_global_symbol_pipe=
7393 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7394 lt_cv_sys_global_symbol_to_cdecl=
7396 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7398 $as_echo "failed
" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7401 $as_echo "ok
" >&6; }
7425 # Check whether --enable-libtool-lock was given.
7426 if test "${enable_libtool_lock+set}" = set; then :
7427 enableval=$enable_libtool_lock;
7430 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7432 # Some flags need to be propagated to the compiler or linker for good
7436 # Find out which ABI we are using.
7437 echo 'int i;' > conftest.$ac_ext
7438 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7439 (eval $ac_compile) 2>&5
7441 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7442 test $ac_status = 0; }; then
7443 case `/usr/bin/file conftest.$ac_objext` in
7455 # Find out which ABI we are using.
7456 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7457 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7458 (eval $ac_compile) 2>&5
7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7461 test $ac_status = 0; }; then
7462 if test "$lt_cv_prog_gnu_ld" = yes; then
7463 case `/usr/bin/file conftest.$ac_objext` in
7465 LD="${LD-ld} -melf32bsmip"
7468 LD="${LD-ld} -melf32bmipn32"
7471 LD="${LD-ld} -melf64bmip"
7475 case `/usr/bin/file conftest.$ac_objext` in
7491 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7492 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7493 # Find out which ABI we are using.
7494 echo 'int i;' > conftest.$ac_ext
7495 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7496 (eval $ac_compile) 2>&5
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 case `/usr/bin/file conftest.o` in
7503 x86_64-*kfreebsd*-gnu)
7504 LD="${LD-ld} -m elf_i386_fbsd
"
7507 case `/usr/bin/file conftest.o` in
7509 LD="${LD-ld} -m elf32_x86_64
"
7512 LD="${LD-ld} -m elf_i386
"
7516 powerpc64le-*linux*)
7517 LD="${LD-ld} -m elf32lppclinux
"
7520 LD="${LD-ld} -m elf32ppclinux
"
7523 LD="${LD-ld} -m elf_s390
"
7526 LD="${LD-ld} -m elf32_sparc
"
7532 x86_64-*kfreebsd*-gnu)
7533 LD="${LD-ld} -m elf_x86_64_fbsd
"
7536 LD="${LD-ld} -m elf_x86_64
"
7539 LD="${LD-ld} -m elf64lppc
"
7542 LD="${LD-ld} -m elf64ppc
"
7544 s390*-*linux*|s390*-*tpf*)
7545 LD="${LD-ld} -m elf64_s390
"
7548 LD="${LD-ld} -m elf64_sparc
"
7558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7559 SAVE_CFLAGS="$CFLAGS"
7560 CFLAGS="$CFLAGS -belf"
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7562 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7563 if ${lt_cv_cc_needs_belf+:} false; then :
7564 $as_echo_n "(cached
) " >&6
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7583 if ac_fn_c_try_link "$LINENO"; then :
7584 lt_cv_cc_needs_belf=yes
7586 lt_cv_cc_needs_belf=no
7588 rm -f core conftest.err conftest.$ac_objext \
7589 conftest$ac_exeext conftest.$ac_ext
7591 ac_cpp='$CPP $CPPFLAGS'
7592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7598 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7601 CFLAGS="$SAVE_CFLAGS"
7605 # Find out which ABI we are using.
7606 echo 'int i;' > conftest.$ac_ext
7607 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7608 (eval $ac_compile) 2>&5
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7611 test $ac_status = 0; }; then
7612 case `/usr/bin/file conftest.o` in
7614 case $lt_cv_prog_gnu_ld in
7615 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7629 need_locks="$enable_libtool_lock"
7633 rhapsody* | darwin*)
7634 if test -n "$ac_tool_prefix"; then
7635 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7636 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7638 $as_echo_n "checking
for $ac_word...
" >&6; }
7639 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7640 $as_echo_n "(cached
) " >&6
7642 if test -n "$DSYMUTIL"; then
7643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7662 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7663 if test -n "$DSYMUTIL"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7665 $as_echo "$DSYMUTIL" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7668 $as_echo "no
" >&6; }
7673 if test -z "$ac_cv_prog_DSYMUTIL"; then
7674 ac_ct_DSYMUTIL=$DSYMUTIL
7675 # Extract the first word of "dsymutil
", so it can be a program name with args.
7676 set dummy dsymutil; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7678 $as_echo_n "checking
for $ac_word...
" >&6; }
7679 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7680 $as_echo_n "(cached
) " >&6
7682 if test -n "$ac_ct_DSYMUTIL"; then
7683 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7702 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7703 if test -n "$ac_ct_DSYMUTIL"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7705 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7708 $as_echo "no
" >&6; }
7711 if test "x
$ac_ct_DSYMUTIL" = x; then
7714 case $cross_compiling:$ac_tool_warned in
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7717 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7718 ac_tool_warned=yes ;;
7720 DSYMUTIL=$ac_ct_DSYMUTIL
7723 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7730 $as_echo_n "checking
for $ac_word...
" >&6; }
7731 if ${ac_cv_prog_NMEDIT+:} false; then :
7732 $as_echo_n "(cached
) " >&6
7734 if test -n "$NMEDIT"; then
7735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7754 NMEDIT=$ac_cv_prog_NMEDIT
7755 if test -n "$NMEDIT"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7757 $as_echo "$NMEDIT" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7760 $as_echo "no
" >&6; }
7765 if test -z "$ac_cv_prog_NMEDIT"; then
7766 ac_ct_NMEDIT=$NMEDIT
7767 # Extract the first word of "nmedit
", so it can be a program name with args.
7768 set dummy nmedit; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7770 $as_echo_n "checking
for $ac_word...
" >&6; }
7771 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7772 $as_echo_n "(cached
) " >&6
7774 if test -n "$ac_ct_NMEDIT"; then
7775 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7784 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7794 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7795 if test -n "$ac_ct_NMEDIT"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7797 $as_echo "$ac_ct_NMEDIT" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7800 $as_echo "no
" >&6; }
7803 if test "x
$ac_ct_NMEDIT" = x; then
7806 case $cross_compiling:$ac_tool_warned in
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7809 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7810 ac_tool_warned=yes ;;
7812 NMEDIT=$ac_ct_NMEDIT
7815 NMEDIT="$ac_cv_prog_NMEDIT"
7818 if test -n "$ac_tool_prefix"; then
7819 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7820 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7822 $as_echo_n "checking
for $ac_word...
" >&6; }
7823 if ${ac_cv_prog_LIPO+:} false; then :
7824 $as_echo_n "(cached
) " >&6
7826 if test -n "$LIPO"; then
7827 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7837 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7846 LIPO=$ac_cv_prog_LIPO
7847 if test -n "$LIPO"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7849 $as_echo "$LIPO" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7852 $as_echo "no
" >&6; }
7857 if test -z "$ac_cv_prog_LIPO"; then
7859 # Extract the first word of "lipo
", so it can be a program name with args.
7860 set dummy lipo; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7862 $as_echo_n "checking
for $ac_word...
" >&6; }
7863 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7864 $as_echo_n "(cached
) " >&6
7866 if test -n "$ac_ct_LIPO"; then
7867 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_ac_ct_LIPO="lipo
"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7886 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7887 if test -n "$ac_ct_LIPO"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7889 $as_echo "$ac_ct_LIPO" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7892 $as_echo "no
" >&6; }
7895 if test "x
$ac_ct_LIPO" = x; then
7898 case $cross_compiling:$ac_tool_warned in
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7901 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7902 ac_tool_warned=yes ;;
7907 LIPO="$ac_cv_prog_LIPO"
7910 if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7912 set dummy ${ac_tool_prefix}otool; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7914 $as_echo_n "checking
for $ac_word...
" >&6; }
7915 if ${ac_cv_prog_OTOOL+:} false; then :
7916 $as_echo_n "(cached
) " >&6
7918 if test -n "$OTOOL"; then
7919 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7938 OTOOL=$ac_cv_prog_OTOOL
7939 if test -n "$OTOOL"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7941 $as_echo "$OTOOL" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7944 $as_echo "no
" >&6; }
7949 if test -z "$ac_cv_prog_OTOOL"; then
7951 # Extract the first word of "otool
", so it can be a program name with args.
7952 set dummy otool; ac_word=$2
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7954 $as_echo_n "checking
for $ac_word...
" >&6; }
7955 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7956 $as_echo_n "(cached
) " >&6
7958 if test -n "$ac_ct_OTOOL"; then
7959 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968 ac_cv_prog_ac_ct_OTOOL="otool
"
7969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7978 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7979 if test -n "$ac_ct_OTOOL"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7981 $as_echo "$ac_ct_OTOOL" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7984 $as_echo "no
" >&6; }
7987 if test "x
$ac_ct_OTOOL" = x; then
7990 case $cross_compiling:$ac_tool_warned in
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7993 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7994 ac_tool_warned=yes ;;
7999 OTOOL="$ac_cv_prog_OTOOL"
8002 if test -n "$ac_tool_prefix"; then
8003 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8004 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8006 $as_echo_n "checking
for $ac_word...
" >&6; }
8007 if ${ac_cv_prog_OTOOL64+:} false; then :
8008 $as_echo_n "(cached
) " >&6
8010 if test -n "$OTOOL64"; then
8011 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8030 OTOOL64=$ac_cv_prog_OTOOL64
8031 if test -n "$OTOOL64"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8033 $as_echo "$OTOOL64" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8036 $as_echo "no
" >&6; }
8041 if test -z "$ac_cv_prog_OTOOL64"; then
8042 ac_ct_OTOOL64=$OTOOL64
8043 # Extract the first word of "otool64
", so it can be a program name with args.
8044 set dummy otool64; ac_word=$2
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8046 $as_echo_n "checking
for $ac_word...
" >&6; }
8047 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8048 $as_echo_n "(cached
) " >&6
8050 if test -n "$ac_ct_OTOOL64"; then
8051 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8060 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8061 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8070 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8071 if test -n "$ac_ct_OTOOL64"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8073 $as_echo "$ac_ct_OTOOL64" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8076 $as_echo "no
" >&6; }
8079 if test "x
$ac_ct_OTOOL64" = x; then
8082 case $cross_compiling:$ac_tool_warned in
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8085 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8086 ac_tool_warned=yes ;;
8088 OTOOL64=$ac_ct_OTOOL64
8091 OTOOL64="$ac_cv_prog_OTOOL64"
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8121 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8122 if ${lt_cv_apple_cc_single_mod+:} false; then :
8123 $as_echo_n "(cached
) " >&6
8125 lt_cv_apple_cc_single_mod=no
8126 if test -z "${LT_MULTI_MODULE}"; then
8127 # By default we will add the -single_module flag. You can override
8128 # by either setting the environment variable LT_MULTI_MODULE
8129 # non-empty at configure time, or by adding -multi_module to the
8131 rm -rf libconftest.dylib*
8132 echo "int foo
(void
){return 1;}" > conftest.c
8133 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8134 -dynamiclib -Wl,-single_module conftest.c
" >&5
8135 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8136 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8138 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8139 lt_cv_apple_cc_single_mod=yes
8141 cat conftest.err >&5
8143 rm -rf libconftest.dylib*
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8148 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8150 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8151 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8152 $as_echo_n "(cached
) " >&6
8154 lt_cv_ld_exported_symbols_list=no
8155 save_LDFLAGS=$LDFLAGS
8156 echo "_main
" > conftest.sym
8157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 lt_cv_ld_exported_symbols_list=yes
8172 lt_cv_ld_exported_symbols_list=no
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 LDFLAGS="$save_LDFLAGS"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8180 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8182 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8183 if ${lt_cv_ld_force_load+:} false; then :
8184 $as_echo_n "(cached
) " >&6
8186 lt_cv_ld_force_load=no
8187 cat > conftest.c << _LT_EOF
8188 int forced_loaded() { return 2;}
8190 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8191 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8192 echo "$AR cru libconftest.a conftest.o
" >&5
8193 $AR cru libconftest.a conftest.o 2>&5
8194 cat > conftest.c << _LT_EOF
8195 int main() { return 0;}
8197 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8198 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8200 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8201 lt_cv_ld_force_load=yes
8203 cat conftest.err >&5
8205 rm -f conftest.err libconftest.a conftest conftest.c
8206 rm -rf conftest.dSYM
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8210 $as_echo "$lt_cv_ld_force_load" >&6; }
8212 rhapsody* | darwin1.[012])
8213 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8216 darwin*) # darwin 5.x on
8217 # if running on 10.5 or later, the deployment target defaults
8218 # to the OS version, if on x86, and 10.4, the deployment
8219 # target defaults to 10.4. Don't you love it?
8220 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8221 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8226 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8230 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8231 _lt_dar_single_mod='$single_module'
8233 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8234 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8236 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8238 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8239 _lt_dsymutil='~$DSYMUTIL $lib || :'
8246 for ac_header in dlfcn.h
8248 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8250 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_DLFCN_H 1
8272 # Check whether --enable-shared was given.
8273 if test "${enable_shared+set}" = set; then :
8274 enableval=$enable_shared; p=${PACKAGE-default}
8276 yes) enable_shared=yes ;;
8277 no) enable_shared=no ;;
8280 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8282 for pkg in $enableval; do
8284 if test "X
$pkg" = "X
$p"; then
8303 # Check whether --enable-static was given.
8304 if test "${enable_static+set}" = set; then :
8305 enableval=$enable_static; p=${PACKAGE-default}
8307 yes) enable_static=yes ;;
8308 no) enable_static=no ;;
8311 # Look at the argument we got. We use all the common list separators.
8312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8313 for pkg in $enableval; do
8315 if test "X
$pkg" = "X
$p"; then
8335 # Check whether --with-pic was given.
8336 if test "${with_pic+set}" = set; then :
8337 withval=$with_pic; pic_mode="$withval"
8343 test -z "$pic_mode" && pic_mode=default
8351 # Check whether --enable-fast-install was given.
8352 if test "${enable_fast_install+set}" = set; then :
8353 enableval=$enable_fast_install; p=${PACKAGE-default}
8355 yes) enable_fast_install=yes ;;
8356 no) enable_fast_install=no ;;
8358 enable_fast_install=no
8359 # Look at the argument we got. We use all the common list separators.
8360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8361 for pkg in $enableval; do
8363 if test "X
$pkg" = "X
$p"; then
8364 enable_fast_install=yes
8371 enable_fast_install=yes
8384 # This can be used to rebuild libtool when needed
8385 LIBTOOL_DEPS="$ltmain"
8387 # Always use our own libtool.
8388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8415 test -z "$LN_S" && LN_S="ln -s"
8430 if test -n "${ZSH_VERSION+set}" ; then
8431 setopt NO_GLOB_SUBST
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8435 $as_echo_n "checking
for objdir...
" >&6; }
8436 if ${lt_cv_objdir+:} false; then :
8437 $as_echo_n "(cached
) " >&6
8439 rm -f .libs 2>/dev/null
8440 mkdir .libs 2>/dev/null
8441 if test -d .libs; then
8444 # MS-DOS does not allow filenames that begin with a dot.
8447 rmdir .libs 2>/dev/null
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8450 $as_echo "$lt_cv_objdir" >&6; }
8451 objdir=$lt_cv_objdir
8457 cat >>confdefs.h <<_ACEOF
8458 #define LT_OBJDIR "$lt_cv_objdir/"
8466 # AIX sometimes has problems with the GCC collect2 program. For some
8467 # reason, if we set the COLLECT_NAMES environment variable, the problems
8468 # vanish in a puff of smoke.
8469 if test "X
${COLLECT_NAMES+set}" != Xset; then
8471 export COLLECT_NAMES
8478 can_build_shared=yes
8480 # All known linkers require a `.a' archive for static linking (except MSVC,
8481 # which needs '.lib').
8484 with_gnu_ld="$lt_cv_prog_gnu_ld"
8487 old_CFLAGS="$CFLAGS"
8489 # Set sane defaults for various variables
8490 test -z "$CC" && CC=cc
8491 test -z "$LTCC" && LTCC=$CC
8492 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8493 test -z "$LD" && LD=ld
8494 test -z "$ac_objext" && ac_objext=o
8496 for cc_temp in $compiler""; do
8498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8504 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8507 # Only perform the check for file, if the check method requires it
8508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8509 case $deplibs_check_method in
8511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8513 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8515 $as_echo_n "(cached
) " >&6
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/${ac_tool_prefix}file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8541 *** Warning: the command libtool uses to detect shared libraries,
8542 *** $file_magic_cmd, produces output that libtool cannot recognize.
8543 *** The result is that libtool may fail to recognize shared libraries
8544 *** as such. This will affect the creation of libtool libraries that
8545 *** depend on shared libraries, but programs linked with such libtool
8546 *** libraries will work regardless of this problem. Nevertheless, you
8547 *** may want to report the problem to your system manager and/or to
8548 *** bug-libtool@gnu.org
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564 if test -n "$MAGIC_CMD"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8566 $as_echo "$MAGIC_CMD" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8569 $as_echo "no
" >&6; }
8576 if test -z "$lt_cv_path_MAGIC_CMD"; then
8577 if test -n "$ac_tool_prefix"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8579 $as_echo_n "checking
for file...
" >&6; }
8580 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8581 $as_echo_n "(cached
) " >&6
8585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8588 lt_save_MAGIC_CMD="$MAGIC_CMD"
8589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8590 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8591 for ac_dir in $ac_dummy; do
8593 test -z "$ac_dir" && ac_dir=.
8594 if test -f $ac_dir/file; then
8595 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8596 if test -n "$file_magic_test_file"; then
8597 case $deplibs_check_method in
8599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8602 $EGREP "$file_magic_regex" > /dev/null; then
8607 *** Warning: the command libtool uses to detect shared libraries,
8608 *** $file_magic_cmd, produces output that libtool cannot recognize.
8609 *** The result is that libtool may fail to recognize shared libraries
8610 *** as such. This will affect the creation of libtool libraries that
8611 *** depend on shared libraries, but programs linked with such libtool
8612 *** libraries will work regardless of this problem. Nevertheless, you
8613 *** may want to report the problem to your system manager and/or to
8614 *** bug-libtool@gnu.org
8624 MAGIC_CMD="$lt_save_MAGIC_CMD"
8629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8630 if test -n "$MAGIC_CMD"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8632 $as_echo "$MAGIC_CMD" >&6; }
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8635 $as_echo "no
" >&6; }
8648 # Use C for the default configuration in the libtool script
8652 ac_cpp='$CPP $CPPFLAGS'
8653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8658 # Source file extension for C test sources.
8661 # Object file extension for compiled C test sources.
8665 # Code to be used in simple compile tests
8666 lt_simple_compile_test_code="int some_variable
= 0;"
8668 # Code to be used in simple link tests
8669 lt_simple_link_test_code='int main(){return(0);}'
8677 # If no C compiler was specified, use CC.
8680 # If no C compiler flags were specified, use CFLAGS.
8681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8683 # Allow CC to be a program name with arguments.
8686 # Save the default compiler, since it gets overwritten when the other
8687 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8688 compiler_DEFAULT=$CC
8690 # save warnings/boilerplate of simple test code
8691 ac_outfile=conftest.$ac_objext
8692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8694 _lt_compiler_boilerplate=`cat conftest.err`
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_linker_boilerplate=`cat conftest.err`
8705 ## There is no encapsulation within the following macros, do not change
8706 ## the running order or otherwise move them around unless you know exactly
8707 ## what you are doing...
8708 if test -n "$compiler"; then
8710 lt_prog_compiler_no_builtin_flag=
8712 if test "$GCC" = yes; then
8713 case $cc_basename in
8715 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8717 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8721 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8722 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8723 $as_echo_n "(cached
) " >&6
8725 lt_cv_prog_compiler_rtti_exceptions=no
8726 ac_outfile=conftest.$ac_objext
8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="-fno-rtti -fno-exceptions"
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.
", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_rtti_exceptions=yes
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8758 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8771 lt_prog_compiler_wl=
8772 lt_prog_compiler_pic=
8773 lt_prog_compiler_static=
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8776 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8778 if test "$GCC" = yes; then
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_static='-static'
8784 # All AIX code is PIC.
8785 if test "$host_cpu" = ia64; then
8786 # AIX 5 now supports IA64 processor
8787 lt_prog_compiler_static='-Bstatic'
8789 lt_prog_compiler_pic='-fPIC'
8795 # see comment about AmigaOS4 .so support
8796 lt_prog_compiler_pic='-fPIC'
8799 # FIXME: we need at least 68020 code to build shared libraries, but
8800 # adding the `-m68020' flag to GCC prevents building anything better,
8802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8808 # PIC is the default for these OSes.
8811 mingw* | cygwin* | pw32* | os2* | cegcc*)
8812 # This hack is so that the source file can tell whether it is being
8813 # built for inclusion in a dll (and should export symbols for example).
8814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8815 # (--disable-auto-import) libraries
8816 lt_prog_compiler_pic='-DDLL_EXPORT'
8819 darwin* | rhapsody*)
8820 # PIC is the default on this platform
8821 # Common symbols not allowed in MH_DYLIB files
8822 lt_prog_compiler_pic='-fno-common'
8826 # PIC is the default for Haiku.
8827 # The "-static" flag exists, but is broken.
8828 lt_prog_compiler_static=
8832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8834 # sets the default TLS model and affects inlining.
8840 lt_prog_compiler_pic='-fPIC'
8846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8847 # Instead, we relocate shared libraries at runtime.
8851 # Just because we use GCC doesn't mean we suddenly get shared libraries
8852 # on systems that don't support them.
8853 lt_prog_compiler_can_build_shared=no
8858 # QNX uses GNU C++, but need to define -shared option too, otherwise
8860 lt_prog_compiler_pic='-fPIC -shared'
8864 if test -d /usr/nec; then
8865 lt_prog_compiler_pic=-Kconform_pic
8870 lt_prog_compiler_pic='-fPIC'
8874 case $cc_basename in
8875 nvcc*) # Cuda Compiler Driver 2.2
8876 lt_prog_compiler_wl='-Xlinker '
8877 lt_prog_compiler_pic='-Xcompiler -fPIC'
8881 # PORTME Check for flag to pass linker flags through the system compiler.
8884 lt_prog_compiler_wl='-Wl,'
8885 if test "$host_cpu" = ia64; then
8886 # AIX 5 now supports IA64 processor
8887 lt_prog_compiler_static='-Bstatic'
8889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8893 mingw* | cygwin* | pw32* | os2* | cegcc*)
8894 # This hack is so that the source file can tell whether it is being
8895 # built for inclusion in a dll (and should export symbols for example).
8896 lt_prog_compiler_pic='-DDLL_EXPORT'
8899 hpux9* | hpux10* | hpux11*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8908 lt_prog_compiler_pic='+Z'
8911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8912 lt_prog_compiler_static='${wl}-a ${wl}archive'
8915 irix5* | irix6* | nonstopux*)
8916 lt_prog_compiler_wl='-Wl,'
8917 # PIC (with -KPIC) is the default.
8918 lt_prog_compiler_static='-non_shared'
8921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8922 case $cc_basename in
8923 # old Intel for x86_64 which still supported -KPIC.
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-static'
8929 # icc used to be incompatible with GCC.
8930 # ICC 10 doesn't accept -KPIC any more.
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fPIC'
8934 lt_prog_compiler_static='-static'
8936 # Lahey Fortran 8.1.
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='--shared'
8940 lt_prog_compiler_static='--static'
8942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8943 # Portland Group compilers (*not* the Pentium gcc compiler,
8944 # which looks to be a dead project)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='-fpic'
8947 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_wl='-Wl,'
8951 # All Alpha code is PIC.
8952 lt_prog_compiler_static='-non_shared'
8954 xl* | bgxl* | bgf* | mpixl*)
8955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8956 lt_prog_compiler_wl='-Wl,'
8957 lt_prog_compiler_pic='-qpic'
8958 lt_prog_compiler_static='-qstaticlink'
8961 case `$CC -V 2>&1 | sed 5q` in
8962 *Sun\ F* | *Sun*Fortran*)
8963 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 lt_prog_compiler_wl=''
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 lt_prog_compiler_wl='-Wl,'
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8985 # QNX uses GNU C++, but need to define -shared option too, otherwise
8987 lt_prog_compiler_pic='-fPIC -shared'
8990 osf3* | osf4* | osf5*)
8991 lt_prog_compiler_wl='-Wl,'
8992 # All OSF/1 code is PIC.
8993 lt_prog_compiler_static='-non_shared'
8997 lt_prog_compiler_static='-non_shared'
9001 lt_prog_compiler_pic='-KPIC'
9002 lt_prog_compiler_static='-Bstatic'
9003 case $cc_basename in
9005 lt_prog_compiler_wl='-Qoption ld ';;
9007 lt_prog_compiler_wl='-Wl,';;
9012 lt_prog_compiler_wl='-Qoption ld '
9013 lt_prog_compiler_pic='-PIC'
9014 lt_prog_compiler_static='-Bstatic'
9017 sysv4 | sysv4.2uw2* | sysv4.3*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9024 if test -d /usr/nec ;then
9025 lt_prog_compiler_pic='-Kconform_pic'
9026 lt_prog_compiler_static='-Bstatic'
9030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9031 lt_prog_compiler_wl='-Wl,'
9032 lt_prog_compiler_pic='-KPIC'
9033 lt_prog_compiler_static='-Bstatic'
9037 lt_prog_compiler_wl='-Wl,'
9038 lt_prog_compiler_can_build_shared=no
9042 lt_prog_compiler_pic='-pic'
9043 lt_prog_compiler_static='-Bstatic'
9047 lt_prog_compiler_can_build_shared=no
9053 # For platforms which do not support PIC, -DPIC is meaningless:
9055 lt_prog_compiler_pic=
9058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9062 $as_echo "$lt_prog_compiler_pic" >&6; }
9070 # Check to make sure the PIC flag actually works.
9072 if test -n "$lt_prog_compiler_pic"; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9074 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9075 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9076 $as_echo_n "(cached
) " >&6
9078 lt_cv_prog_compiler_pic_works=no
9079 ac_outfile=conftest.$ac_objext
9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9082 # Insert the option either (1) after the last *FLAGS variable, or
9083 # (2) before a word containing "conftest.
", or (3) at the end.
9084 # Note that $ac_compile itself does not contain backslashes and begins
9085 # with a dollar sign (not a hyphen), so the echo should work correctly.
9086 # The option is referenced via a variable to avoid confusing sed.
9087 lt_compile=`echo "$ac_compile" | $SED \
9088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090 -e 's:$: $lt_compiler_flag:'`
9091 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9092 (eval "$lt_compile" 2>conftest.err)
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9096 if (exit $ac_status) && test -s "$ac_outfile"; then
9097 # The compiler can only warn and ignore the option if not recognized
9098 # So say no if there are warnings other than the usual output.
9099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9102 lt_cv_prog_compiler_pic_works=yes
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9109 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9111 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9112 case $lt_prog_compiler_pic in
9114 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9117 lt_prog_compiler_pic=
9118 lt_prog_compiler_can_build_shared=no
9129 # Check to make sure the static flag actually works.
9131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9133 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9134 if ${lt_cv_prog_compiler_static_works+:} false; then :
9135 $as_echo_n "(cached
) " >&6
9137 lt_cv_prog_compiler_static_works=no
9138 save_LDFLAGS="$LDFLAGS"
9139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9142 # The linker can only warn and ignore the option if not recognized
9143 # So say no if there are warnings
9144 if test -s conftest.err; then
9145 # Append any errors to the config.log.
9146 cat conftest.err 1>&5
9147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9149 if diff conftest.exp conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler_static_works=yes
9153 lt_cv_prog_compiler_static_works=yes
9157 LDFLAGS="$save_LDFLAGS"
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9166 lt_prog_compiler_static=
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9176 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9177 if ${lt_cv_prog_compiler_c_o+:} false; then :
9178 $as_echo_n "(cached
) " >&6
9180 lt_cv_prog_compiler_c_o=no
9181 $RM -r conftest 2>/dev/null
9185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.
", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 lt_compile=`echo "$ac_compile" | $SED \
9193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195 -e 's:$: $lt_compiler_flag:'`
9196 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9197 (eval "$lt_compile" 2>out/conftest.err)
9199 cat out/conftest.err >&5
9200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings
9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_c_o=yes
9213 # SGI C++ compiler will create directory out/ii_files/ for
9214 # template instantiation
9215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9216 $RM out/* && rmdir out
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9231 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9232 if ${lt_cv_prog_compiler_c_o+:} false; then :
9233 $as_echo_n "(cached
) " >&6
9235 lt_cv_prog_compiler_c_o=no
9236 $RM -r conftest 2>/dev/null
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9242 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9243 # Insert the option either (1) after the last *FLAGS variable, or
9244 # (2) before a word containing "conftest.
", or (3) at the end.
9245 # Note that $ac_compile itself does not contain backslashes and begins
9246 # with a dollar sign (not a hyphen), so the echo should work correctly.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>out/conftest.err)
9254 cat out/conftest.err >&5
9255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9258 # The compiler can only warn and ignore the option if not recognized
9259 # So say no if there are warnings
9260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9263 lt_cv_prog_compiler_c_o=yes
9268 # SGI C++ compiler will create directory out/ii_files/ for
9269 # template instantiation
9270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9271 $RM out/* && rmdir out
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9283 hard_links="nottested
"
9284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9285 # do not overwrite the value of need_locks provided by the user
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9287 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9292 ln conftest.a conftest.b 2>&5 || hard_links=no
9293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9295 $as_echo "$hard_links" >&6; }
9296 if test "$hard_links" = no; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9298 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9311 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9314 allow_undefined_flag=
9315 always_export_symbols=no
9317 archive_expsym_cmds=
9318 compiler_needs_object=no
9319 enable_shared_with_static_runtimes=no
9320 export_dynamic_flag_spec=
9321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9322 hardcode_automatic=no
9324 hardcode_direct_absolute=no
9325 hardcode_libdir_flag_spec=
9326 hardcode_libdir_flag_spec_ld=
9327 hardcode_libdir_separator=
9329 hardcode_shlibpath_var=unsupported
9331 link_all_deplibs=unknown
9334 old_archive_from_new_cmds=
9335 old_archive_from_expsyms_cmds=
9336 thread_safe_flag_spec=
9337 whole_archive_flag_spec=
9338 # include_expsyms should be a list of space-separated symbols to be *always*
9339 # included in the symbol list
9341 # exclude_expsyms can be an extended regexp of symbols to exclude
9342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9344 # as well as any symbol that contains `d'.
9345 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9347 # platforms (ab)use it in PIC code, but their linkers get confused if
9348 # the symbol is explicitly referenced. Since portable code cannot
9349 # rely on this symbol name, it's probably fine to never include it in
9350 # preloaded symbol tables.
9351 # Exclude shared library initialization/finalization symbols.
9352 extract_expsyms_cmds=
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9357 # When not using gcc, we currently assume that we are using
9358 # Microsoft Visual C++.
9359 if test "$GCC" != yes; then
9364 # we just hope/assume this is gcc and not c89 (= MSVC++)
9374 # On some targets, GNU ld is compatible enough with the native linker
9375 # that we're better off using the native interface for both.
9376 lt_use_gnu_ld_interface=no
9377 if test "$with_gnu_ld" = yes; then
9380 # The AIX port of GNU ld has always aspired to compatibility
9381 # with the native linker. However, as the warning in the GNU ld
9382 # block says, versions before 2.19.5* couldn't really create working
9383 # shared libraries, regardless of the interface used.
9384 case `$LD -v 2>&1` in
9385 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9386 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9387 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9389 lt_use_gnu_ld_interface=yes
9394 lt_use_gnu_ld_interface=yes
9399 if test "$lt_use_gnu_ld_interface" = yes; then
9400 # If archive_cmds runs LD, not CC, wlarc should be empty
9403 # Set some defaults for GNU ld with shared library support. These
9404 # are reset later if shared libraries are not supported. Putting them
9405 # here allows them to be overridden if necessary.
9406 runpath_var=LD_RUN_PATH
9407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9408 export_dynamic_flag_spec='${wl}--export-dynamic'
9409 # ancient GNU ld didn't support --whole-archive et. al.
9410 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9411 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9413 whole_archive_flag_spec=
9415 supports_anon_versioning=no
9416 case `$LD -v 2>&1` in
9417 *GNU\ gold*) supports_anon_versioning=yes ;;
9418 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9419 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9420 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9421 *\ 2.11.*) ;; # other 2.11 versions
9422 *) supports_anon_versioning=yes ;;
9425 # See if GNU ld supports shared libraries.
9428 # On AIX/PPC, the GNU linker is very broken
9429 if test "$host_cpu" != ia64; then
9433 *** Warning: the GNU linker, at least up to release 2.19, is reported
9434 *** to be unable to reliably create shared libraries on AIX.
9435 *** Therefore, libtool is disabling shared libraries support. If you
9436 *** really care for shared libraries, you may want to install binutils
9437 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9438 *** You will then need to restart the configuration process.
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds=''
9452 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)'
9453 hardcode_libdir_flag_spec
='-L$libdir'
9454 hardcode_minus_L
=yes
9460 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9461 allow_undefined_flag
=unsupported
9462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9463 # support --undefined. This deserves some investigation. FIXME
9464 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470 cygwin
* | mingw
* | pw32
* | cegcc
*)
9471 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9472 # as there is no search path for DLLs.
9473 hardcode_libdir_flag_spec
='-L$libdir'
9474 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9475 allow_undefined_flag
=unsupported
9476 always_export_symbols
=no
9477 enable_shared_with_static_runtimes
=yes
9478 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9480 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9481 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9482 # If the export-symbols file already is a .def file (1st line
9483 # is EXPORTS), use it as is; otherwise, prepend...
9484 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9485 cp $export_symbols $output_objdir/$soname.def;
9487 echo EXPORTS > $output_objdir/$soname.def;
9488 cat $export_symbols >> $output_objdir/$soname.def;
9490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9497 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 link_all_deplibs
=yes
9503 hardcode_shlibpath_var
=no
9504 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9505 export_dynamic_flag_spec
='${wl}-E'
9506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9507 # Instead, shared libraries are loaded at an image base (0x10000000 by
9508 # default) and relocated if they conflict, which is a slow very memory
9509 # consuming and fragmenting process. To avoid this, we pick a random,
9510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9512 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9513 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'
9516 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9518 if test "$host_os" = linux-dietlibc
; then
9519 case $cc_basename in
9520 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9523 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9524 && test "$tmp_diet" = no
9526 tmp_addflag
=' $pic_flag'
9527 tmp_sharedflag
='-shared'
9528 case $cc_basename,$host_cpu in
9529 pgcc
*) # Portland Group C compiler
9530 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'
9531 tmp_addflag
=' $pic_flag'
9533 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9534 # Portland Group f77 and f90 compilers
9535 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'
9536 tmp_addflag
=' $pic_flag -Mnomain' ;;
9537 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9538 tmp_addflag
=' -i_dynamic' ;;
9539 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9540 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9541 ifc
* | ifort
*) # Intel Fortran compiler
9542 tmp_addflag
=' -nofor_main' ;;
9543 lf95
*) # Lahey Fortran 8.1
9544 whole_archive_flag_spec
=
9545 tmp_sharedflag
='--shared' ;;
9546 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9547 tmp_sharedflag
='-qmkshrobj'
9549 nvcc
*) # Cuda Compiler Driver 2.2
9550 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'
9551 compiler_needs_object
=yes
9554 case `$CC -V 2>&1 | sed 5q` in
9555 *Sun\ C
*) # Sun C 5.9
9556 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'
9557 compiler_needs_object
=yes
9558 tmp_sharedflag
='-G' ;;
9559 *Sun\ F
*) # Sun Fortran 8.3
9560 tmp_sharedflag
='-G' ;;
9562 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564 if test "x$supports_anon_versioning" = xyes
; then
9565 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9567 echo "local: *; };" >> $output_objdir/$libname.ver~
9568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9571 case $cc_basename in
9572 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9574 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9575 hardcode_libdir_flag_spec
=
9576 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9577 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9578 if test "x$supports_anon_versioning" = xyes
; then
9579 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9581 echo "local: *; };" >> $output_objdir/$libname.ver~
9582 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9592 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9593 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9596 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9602 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9607 *** create shared libraries on Solaris systems. Therefore, libtool
9608 *** is disabling shared libraries support. We urge you to upgrade GNU
9609 *** binutils to release 2.9.1 or newer. Another option is to modify
9610 *** your PATH or compiler configuration so that the native linker is
9611 *** used, and then restart.
9614 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9615 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9616 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9622 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9623 case `$LD -v 2>&1` in
9624 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9629 *** reliably create shared libraries on SCO systems. Therefore, libtool
9630 *** is disabling shared libraries support. We urge you to upgrade GNU
9631 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9632 *** your PATH or compiler configuration so that the native linker is
9633 *** used, and then restart.
9638 # For security reasons, it is highly recommended that you always
9639 # use absolute paths for naming shared libraries, and exclude the
9640 # DT_RUNPATH tag from executables and libraries. But doing so
9641 # requires that you compile everything twice, which is a pain.
9642 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9643 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9644 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9645 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9654 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_shlibpath_var
=no
9661 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
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'
9670 if test "$ld_shlibs" = no
; then
9672 hardcode_libdir_flag_spec
=
9673 export_dynamic_flag_spec
=
9674 whole_archive_flag_spec
=
9677 # PORTME fill in a description of your system's linker (not GNU ld)
9680 allow_undefined_flag
=unsupported
9681 always_export_symbols
=yes
9682 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'
9683 # Note: this linker hardcodes the directories in LIBPATH if there
9684 # are no directories specified by -L.
9685 hardcode_minus_L
=yes
9686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9687 # Neither direct hardcoding nor static linking is supported with a
9689 hardcode_direct
=unsupported
9694 if test "$host_cpu" = ia64
; then
9695 # On IA64, the linker does run time linking by default, so we don't
9696 # have to do anything special.
9697 aix_use_runtimelinking
=no
9698 exp_sym_flag
='-Bexport'
9701 # If we're using GNU nm, then we don't want the "-C" option.
9702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9703 # Also, AIX nm treats weak defined symbols like other global
9704 # defined symbols, whereas GNU nm marks them as "W".
9705 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9706 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'
9708 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'
9710 aix_use_runtimelinking
=no
9712 # Test if we are trying to use run time linking or normal
9713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9714 # need to do runtime linking.
9715 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9716 for ld_flag
in $LDFLAGS; do
9717 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9718 aix_use_runtimelinking
=yes
9725 exp_sym_flag
='-bexport'
9726 no_entry_flag
='-bnoentry'
9729 # When large executables or shared objects are built, AIX ld can
9730 # have problems creating the table of contents. If linking a library
9731 # or program results in "error TOC overflow" add -mminimal-toc to
9732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9737 hardcode_direct_absolute
=yes
9738 hardcode_libdir_separator
=':'
9739 link_all_deplibs
=yes
9740 file_list_spec
='${wl}-f,'
9742 if test "$GCC" = yes; then
9743 case $host_os in aix4.
[012]|aix4.
[012].
*)
9744 # We only want to do this on AIX 4.2 and lower, the check
9745 # below for broken collect2 doesn't work under 4.3+
9746 collect2name
=`${CC} -print-prog-name=collect2`
9747 if test -f "$collect2name" &&
9748 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9750 # We have reworked collect2
9753 # We have old collect2
9754 hardcode_direct
=unsupported
9755 # It fails to find uninstalled libraries when the uninstalled
9756 # path is not listed in the libpath. Setting hardcode_minus_L
9757 # to unsupported forces relinking
9758 hardcode_minus_L
=yes
9759 hardcode_libdir_flag_spec
='-L$libdir'
9760 hardcode_libdir_separator
=
9764 shared_flag
='-shared'
9765 if test "$aix_use_runtimelinking" = yes; then
9766 shared_flag
="$shared_flag "'${wl}-G'
9770 if test "$host_cpu" = ia64
; then
9771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9772 # chokes on -Wl,-G. The following line is correct:
9775 if test "$aix_use_runtimelinking" = yes; then
9776 shared_flag
='${wl}-G'
9778 shared_flag
='${wl}-bM:SRE'
9783 export_dynamic_flag_spec
='${wl}-bexpall'
9784 # It seems that -bexpall does not export symbols beginning with
9785 # underscore (_), so it is better to generate a list of symbols to export.
9786 always_export_symbols
=yes
9787 if test "$aix_use_runtimelinking" = yes; then
9788 # Warning - without using the other runtime loading flags (-brtl),
9789 # -berok will link without error, but may produce a broken library.
9790 allow_undefined_flag
='-berok'
9791 # Determine the default libpath from the value encoded in an
9793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9804 if ac_fn_c_try_link
"$LINENO"; then :
9806 lt_aix_libpath_sed
='
9807 /Import File Strings/,/^$/ {
9813 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9814 # Check for a 64-bit object if we didn't find anything.
9815 if test -z "$aix_libpath"; then
9816 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819 rm -f core conftest.err conftest.
$ac_objext \
9820 conftest
$ac_exeext conftest.
$ac_ext
9821 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9823 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9824 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"
9826 if test "$host_cpu" = ia64
; then
9827 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9828 allow_undefined_flag
="-z nodefs"
9829 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"
9831 # Determine the default libpath from the value encoded in an
9833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9844 if ac_fn_c_try_link
"$LINENO"; then :
9846 lt_aix_libpath_sed
='
9847 /Import File Strings/,/^$/ {
9853 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854 # Check for a 64-bit object if we didn't find anything.
9855 if test -z "$aix_libpath"; then
9856 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9859 rm -f core conftest.err conftest.
$ac_objext \
9860 conftest
$ac_exeext conftest.
$ac_ext
9861 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9863 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9864 # Warning - without using the other run time loading flags,
9865 # -berok will link without error, but may produce a broken library.
9866 no_undefined_flag
=' ${wl}-bernotok'
9867 allow_undefined_flag
=' ${wl}-berok'
9868 if test "$with_gnu_ld" = yes; then
9869 # We only use this code for GNU lds that support --whole-archive.
9870 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9872 # Exported symbols can be pulled into shared objects from archives
9873 whole_archive_flag_spec
='$convenience'
9875 archive_cmds_need_lc
=yes
9876 # This is similar to how AIX traditionally builds its shared libraries.
9877 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'
9885 # see comment about AmigaOS4 .so support
9886 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9887 archive_expsym_cmds
=''
9890 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)'
9891 hardcode_libdir_flag_spec
='-L$libdir'
9892 hardcode_minus_L
=yes
9898 export_dynamic_flag_spec
=-rdynamic
9901 cygwin
* | mingw
* | pw32
* | cegcc
*)
9902 # When not using gcc, we currently assume that we are using
9903 # Microsoft Visual C++.
9904 # hardcode_libdir_flag_spec is actually meaningless, as there is
9905 # no search path for DLLs.
9906 hardcode_libdir_flag_spec
=' '
9907 allow_undefined_flag
=unsupported
9908 # Tell ltmain to make .lib files, not .a files.
9910 # Tell ltmain to make .dll files, not .so files.
9912 # FIXME: Setting linknames here is a bad hack.
9913 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9914 # The linker will automatically build a .lib file if we build a DLL.
9915 old_archive_from_new_cmds
='true'
9916 # FIXME: Should let the user specify the lib program.
9917 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9918 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9919 enable_shared_with_static_runtimes
=yes
9922 darwin
* | rhapsody
*)
9925 archive_cmds_need_lc
=no
9927 hardcode_automatic
=yes
9928 hardcode_shlibpath_var
=unsupported
9929 if test "$lt_cv_ld_force_load" = "yes"; then
9930 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\"`'
9932 whole_archive_flag_spec
=''
9934 link_all_deplibs
=yes
9935 allow_undefined_flag
="$_lt_dar_allow_undefined"
9936 case $cc_basename in
9937 ifort
*) _lt_dar_can_shared
=yes ;;
9938 *) _lt_dar_can_shared
=$GCC ;;
9940 if test "$_lt_dar_can_shared" = "yes"; then
9941 output_verbose_link_cmd
=func_echo_all
9942 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9943 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9944 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}"
9945 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}"
9954 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955 hardcode_libdir_flag_spec
='-L$libdir'
9956 hardcode_shlibpath_var
=no
9959 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9960 # support. Future versions do this automatically, but an explicit c++rt0.o
9961 # does not break anything, and helps significantly (at the cost of a little
9964 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9965 hardcode_libdir_flag_spec
='-R$libdir'
9967 hardcode_shlibpath_var
=no
9970 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9972 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_minus_L
=yes
9975 hardcode_shlibpath_var
=no
9978 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9979 freebsd
* | dragonfly
*)
9980 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9981 hardcode_libdir_flag_spec
='-R$libdir'
9983 hardcode_shlibpath_var
=no
9987 if test "$GCC" = yes; then
9988 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'
9990 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'
9992 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9993 hardcode_libdir_separator
=:
9996 # hardcode_minus_L: Not really in the search PATH,
9997 # but as the default location of the library.
9998 hardcode_minus_L
=yes
9999 export_dynamic_flag_spec
='${wl}-E'
10003 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10004 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10006 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10008 if test "$with_gnu_ld" = no
; then
10009 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10010 hardcode_libdir_flag_spec_ld
='+b $libdir'
10011 hardcode_libdir_separator
=:
10012 hardcode_direct
=yes
10013 hardcode_direct_absolute
=yes
10014 export_dynamic_flag_spec
='${wl}-E'
10015 # hardcode_minus_L: Not really in the search PATH,
10016 # but as the default location of the library.
10017 hardcode_minus_L
=yes
10022 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10025 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10044 # Older versions of the 11.00 compiler do not understand -b yet
10045 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10047 $as_echo_n "checking if $CC understands -b... " >&6; }
10048 if ${lt_cv_prog_compiler__b+:} false
; then :
10049 $as_echo_n "(cached) " >&6
10051 lt_cv_prog_compiler__b
=no
10052 save_LDFLAGS
="$LDFLAGS"
10053 LDFLAGS
="$LDFLAGS -b"
10054 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10055 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10056 # The linker can only warn and ignore the option if not recognized
10057 # So say no if there are warnings
10058 if test -s conftest.err
; then
10059 # Append any errors to the config.log.
10060 cat conftest.err
1>&5
10061 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10062 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10063 if diff conftest.exp conftest.er2
>/dev
/null
; then
10064 lt_cv_prog_compiler__b
=yes
10067 lt_cv_prog_compiler__b
=yes
10071 LDFLAGS
="$save_LDFLAGS"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10075 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10077 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10078 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10086 if test "$with_gnu_ld" = no
; then
10087 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10088 hardcode_libdir_separator
=:
10093 hardcode_shlibpath_var
=no
10096 hardcode_direct
=yes
10097 hardcode_direct_absolute
=yes
10098 export_dynamic_flag_spec
='${wl}-E'
10100 # hardcode_minus_L: Not really in the search PATH,
10101 # but as the default location of the library.
10102 hardcode_minus_L
=yes
10108 irix5
* | irix6
* | nonstopux
*)
10109 if test "$GCC" = yes; then
10110 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'
10111 # Try to use the -exported_symbol ld option, if it does not
10112 # work, assume that -exports_file does not work either and
10113 # implicitly export all symbols.
10114 save_LDFLAGS
="$LDFLAGS"
10115 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10120 if ac_fn_c_try_link
"$LINENO"; then :
10121 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'
10124 rm -f core conftest.err conftest.
$ac_objext \
10125 conftest
$ac_exeext conftest.
$ac_ext
10126 LDFLAGS
="$save_LDFLAGS"
10128 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'
10129 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'
10131 archive_cmds_need_lc
='no'
10132 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10133 hardcode_libdir_separator
=:
10135 link_all_deplibs
=yes
10139 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10140 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10142 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10144 hardcode_libdir_flag_spec
='-R$libdir'
10145 hardcode_direct
=yes
10146 hardcode_shlibpath_var
=no
10150 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151 hardcode_direct
=yes
10152 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10153 hardcode_libdir_separator
=:
10154 hardcode_shlibpath_var
=no
10161 if test -f /usr
/libexec
/ld.so
; then
10162 hardcode_direct
=yes
10163 hardcode_shlibpath_var
=no
10164 hardcode_direct_absolute
=yes
10165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10166 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10167 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10168 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10169 export_dynamic_flag_spec
='${wl}-E'
10172 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10173 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_libdir_flag_spec
='-R$libdir'
10177 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10178 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10188 hardcode_libdir_flag_spec
='-L$libdir'
10189 hardcode_minus_L
=yes
10190 allow_undefined_flag
=unsupported
10191 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'
10192 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10196 if test "$GCC" = yes; then
10197 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10198 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'
10200 allow_undefined_flag
=' -expect_unresolved \*'
10201 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'
10203 archive_cmds_need_lc
='no'
10204 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10205 hardcode_libdir_separator
=:
10208 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10209 if test "$GCC" = yes; then
10210 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10211 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'
10212 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10214 allow_undefined_flag
=' -expect_unresolved \*'
10215 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'
10216 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~
10217 $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'
10219 # Both c and cxx compiler support -rpath directly
10220 hardcode_libdir_flag_spec
='-rpath $libdir'
10222 archive_cmds_need_lc
='no'
10223 hardcode_libdir_separator
=:
10227 no_undefined_flag
=' -z defs'
10228 if test "$GCC" = yes; then
10230 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10234 case `$CC -V 2>&1` in
10237 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10243 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10245 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10249 hardcode_libdir_flag_spec
='-R$libdir'
10250 hardcode_shlibpath_var
=no
10252 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10254 # The compiler driver will combine and reorder linker options,
10255 # but understands `-z linker_flag'. GCC discards it without `$wl',
10256 # but is careful enough not to reorder.
10257 # Supported since Solaris 2.6 (maybe 2.5.1?)
10258 if test "$GCC" = yes; then
10259 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10261 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10265 link_all_deplibs
=yes
10269 if test "x$host_vendor" = xsequent
; then
10270 # Use $CC to link under sequent, because it throws in some extra .o
10271 # files that make .init and .fini sections work.
10272 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_libdir_flag_spec
='-L$libdir'
10277 hardcode_direct
=yes
10278 hardcode_minus_L
=yes
10279 hardcode_shlibpath_var
=no
10283 case $host_vendor in
10285 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10286 hardcode_direct
=yes # is this really true???
10289 ## LD is ld it makes a PLAMLIB
10290 ## CC just makes a GrossModule.
10291 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10292 reload_cmds
='$CC -r -o $output$reload_objs'
10296 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10300 runpath_var
='LD_RUN_PATH'
10301 hardcode_shlibpath_var
=no
10305 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306 hardcode_shlibpath_var
=no
10307 export_dynamic_flag_spec
='-Bexport'
10311 if test -d /usr
/nec
; then
10312 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_shlibpath_var
=no
10314 runpath_var
=LD_RUN_PATH
10315 hardcode_runpath_var
=yes
10320 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10321 no_undefined_flag
='${wl}-z,text'
10322 archive_cmds_need_lc
=no
10323 hardcode_shlibpath_var
=no
10324 runpath_var
='LD_RUN_PATH'
10326 if test "$GCC" = yes; then
10327 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 sysv5
* | sco3.2v5
* | sco5v6
*)
10336 # Note: We can NOT use -z defs as we might desire, because we do not
10337 # link with -lc, and that would cause any symbols used from libc to
10338 # always be unresolved, which means just about no library would
10339 # ever link correctly. If we're not using GNU ld we use -z text
10340 # though, which does catch some bad symbols but isn't as heavy-handed
10342 no_undefined_flag
='${wl}-z,text'
10343 allow_undefined_flag
='${wl}-z,nodefs'
10344 archive_cmds_need_lc
=no
10345 hardcode_shlibpath_var
=no
10346 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10347 hardcode_libdir_separator
=':'
10348 link_all_deplibs
=yes
10349 export_dynamic_flag_spec
='${wl}-Bexport'
10350 runpath_var
='LD_RUN_PATH'
10352 if test "$GCC" = yes; then
10353 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10354 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_libdir_flag_spec
='-L$libdir'
10364 hardcode_shlibpath_var
=no
10372 if test x
$host_vendor = xsni
; then
10374 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10375 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10382 $as_echo "$ld_shlibs" >&6; }
10383 test "$ld_shlibs" = no
&& can_build_shared
=no
10385 with_gnu_ld
=$with_gnu_ld
10402 # Do we need to explicitly link libc?
10404 case "x$archive_cmds_need_lc" in
10406 # Assume -lc should be added
10407 archive_cmds_need_lc
=yes
10409 if test "$enable_shared" = yes && test "$GCC" = yes; then
10410 case $archive_cmds in
10412 # FIXME: we may have to deal with multi-command sequences.
10415 # Test whether the compiler implicitly links with -lc since on some
10416 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10417 # to ld, don't add -lc before -lgcc.
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10419 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10420 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10421 $as_echo_n "(cached) " >&6
10424 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10427 (eval $ac_compile) 2>&5
10429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10430 test $ac_status = 0; } 2>conftest.err
; then
10433 libobjs
=conftest.
$ac_objext
10435 wl
=$lt_prog_compiler_wl
10436 pic_flag
=$lt_prog_compiler_pic
10442 lt_save_allow_undefined_flag
=$allow_undefined_flag
10443 allow_undefined_flag
=
10444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10445 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10448 test $ac_status = 0; }
10450 lt_cv_archive_cmds_need_lc
=no
10452 lt_cv_archive_cmds_need_lc
=yes
10454 allow_undefined_flag
=$lt_save_allow_undefined_flag
10456 cat conftest.err
1>&5
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10462 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10463 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10627 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10629 if test "$GCC" = yes; then
10631 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10632 *) lt_awk_arg
="/^libraries:/" ;;
10635 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10636 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10638 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10639 case $lt_search_path_spec in
10641 # if the path contains ";" then we assume it to be the separator
10642 # otherwise default to the standard path separator (i.e. ":") - it is
10643 # assumed that no part of a normal pathname contains ";" but that should
10644 # okay in the real world where ";" in dirpaths is itself problematic.
10645 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10648 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10651 # Ok, now we have the path, separated by spaces, we can step through it
10652 # and add multilib dir if necessary.
10653 lt_tmp_lt_search_path_spec
=
10654 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10655 for lt_sys_path
in $lt_search_path_spec; do
10656 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10657 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10659 test -d "$lt_sys_path" && \
10660 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10663 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10664 BEGIN {RS=" "; FS="/|\n";} {
10667 for (lt_i = NF; lt_i > 0; lt_i--) {
10668 if ($lt_i != "" && $lt_i != ".") {
10669 if ($lt_i == "..") {
10672 if (lt_count == 0) {
10673 lt_foo="/" $lt_i lt_foo;
10680 if (lt_foo != "") { lt_freq[lt_foo]++; }
10681 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10683 # AWK program above erroneously prepends '/' to C:/dos/paths
10686 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10687 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10689 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10691 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10693 library_names_spec
=
10694 libname_spec
='lib$name'
10698 postuninstall_cmds
=
10702 shlibpath_overrides_runpath
=unknown
10704 dynamic_linker
="$host_os ld.so"
10705 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10706 need_lib_prefix
=unknown
10707 hardcode_into_libs
=no
10709 # when you set need_version to no, make sure it does not cause -set_version
10710 # flags to be left without arguments
10711 need_version
=unknown
10716 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10717 shlibpath_var
=LIBPATH
10719 # AIX 3 has no versioning support, so we append a major version to the name.
10720 soname_spec
='${libname}${release}${shared_ext}$major'
10727 hardcode_into_libs
=yes
10728 if test "$host_cpu" = ia64
; then
10729 # AIX 5 supports IA64
10730 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10731 shlibpath_var
=LD_LIBRARY_PATH
10733 # With GCC up to 2.95.x, collect2 would create an import file
10734 # for dependence libraries. The import file would start with
10735 # the line `#! .'. This would cause the generated library to
10736 # depend on `.', always an invalid library. This was fixed in
10737 # development snapshots of GCC prior to 3.0.
10739 aix4 | aix4.
[01] | aix4.
[01].
*)
10740 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10742 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10745 can_build_shared
=no
10749 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10750 # soname into executable. Probably we can add versioning support to
10751 # collect2, so additional links can be useful in future.
10752 if test "$aix_use_runtimelinking" = yes; then
10753 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10754 # instead of lib<name>.a to let people know that these are not
10755 # typical AIX shared libraries.
10756 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 # We preserve .a as extension for shared libraries through AIX4.2
10759 # and later when we are not doing run time linking.
10760 library_names_spec
='${libname}${release}.a $libname.a'
10761 soname_spec
='${libname}${release}${shared_ext}$major'
10763 shlibpath_var
=LIBPATH
10770 # Since July 2007 AmigaOS4 officially supports .so libraries.
10771 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 library_names_spec
='$libname.ixlibrary $libname.a'
10776 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10777 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'
10783 library_names_spec
='${libname}${shared_ext}'
10784 dynamic_linker
="$host_os ld.so"
10785 shlibpath_var
=LIBRARY_PATH
10791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec
='${libname}${release}${shared_ext}$major'
10793 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10794 shlibpath_var
=LD_LIBRARY_PATH
10795 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10796 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10797 # the default ld.so.conf also contains /usr/contrib/lib and
10798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10799 # libtool to hard-code these into programs
10802 cygwin
* | mingw
* | pw32
* | cegcc
*)
10803 version_type
=windows
10808 case $GCC,$host_os in
10809 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10810 library_names_spec
='$libname.dll.a'
10811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10812 postinstall_cmds
='base_file=`basename \${file}`~
10813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10814 dldir=$destdir/`dirname \$dlpath`~
10815 test -d \$dldir || mkdir -p \$dldir~
10816 $install_prog $dir/$dlname \$dldir/$dlname~
10817 chmod a+x \$dldir/$dlname~
10818 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10819 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10821 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10822 dlpath=$dir/\$dldll~
10824 shlibpath_overrides_runpath
=yes
10828 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10829 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10831 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10834 # MinGW DLLs use traditional 'lib' prefix
10835 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10838 # pw32 DLLs use 'pw' prefix rather than 'lib'
10839 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10845 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10848 dynamic_linker
='Win32 ld.exe'
10849 # FIXME: first we should search . and the directory the executable is in
10853 darwin
* | rhapsody
*)
10854 dynamic_linker
="$host_os dyld"
10855 version_type
=darwin
10858 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10859 soname_spec
='${libname}${release}${major}$shared_ext'
10860 shlibpath_overrides_runpath
=yes
10861 shlibpath_var
=DYLD_LIBRARY_PATH
10862 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10864 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10865 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10873 soname_spec
='${libname}${release}${shared_ext}$major'
10874 shlibpath_var
=LD_LIBRARY_PATH
10877 freebsd
* | dragonfly
*)
10878 # DragonFly does not have aout. When/if they implement a new
10879 # versioning mechanism, adjust this.
10880 if test -x /usr
/bin
/objformat
; then
10881 objformat
=`/usr/bin/objformat`
10884 freebsd
[23].
*) objformat
=aout
;;
10885 *) objformat
=elf
;;
10888 version_type
=freebsd-
$objformat
10889 case $version_type in
10891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10896 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10900 shlibpath_var
=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath
=yes
10905 freebsd3.
[01]* | freebsdelf3.
[01]*)
10906 shlibpath_overrides_runpath
=yes
10907 hardcode_into_libs
=yes
10909 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10910 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10911 shlibpath_overrides_runpath
=no
10912 hardcode_into_libs
=yes
10914 *) # from 4.6 on, and DragonFly
10915 shlibpath_overrides_runpath
=yes
10916 hardcode_into_libs
=yes
10925 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10926 soname_spec
='${libname}${release}${shared_ext}$major'
10927 shlibpath_var
=LD_LIBRARY_PATH
10928 hardcode_into_libs
=yes
10935 dynamic_linker
="$host_os runtime_loader"
10936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10937 soname_spec
='${libname}${release}${shared_ext}$major'
10938 shlibpath_var
=LIBRARY_PATH
10939 shlibpath_overrides_runpath
=yes
10940 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10941 hardcode_into_libs
=yes
10944 hpux9
* | hpux10
* | hpux11
*)
10945 # Give a soname corresponding to the major version so that dld.sl refuses to
10946 # link against other versions.
10953 hardcode_into_libs
=yes
10954 dynamic_linker
="$host_os dld.so"
10955 shlibpath_var
=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec
='${libname}${release}${shared_ext}$major'
10959 if test "X$HPUX_IA64_MODE" = X32
; then
10960 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10962 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10964 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10968 hardcode_into_libs
=yes
10969 dynamic_linker
="$host_os dld.sl"
10970 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10971 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec
='${libname}${release}${shared_ext}$major'
10974 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10975 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10979 dynamic_linker
="$host_os dld.sl"
10980 shlibpath_var
=SHLIB_PATH
10981 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10982 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec
='${libname}${release}${shared_ext}$major'
10986 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10987 postinstall_cmds
='chmod 555 $lib'
10988 # or fails outright, so override atomically:
10989 install_override_mode
=555
10996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10997 soname_spec
='${libname}${release}${shared_ext}$major'
10998 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10999 shlibpath_var
=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath
=no
11001 hardcode_into_libs
=yes
11004 irix5
* | irix6
* | nonstopux
*)
11006 nonstopux
*) version_type
=nonstopux
;;
11008 if test "$lt_cv_prog_gnu_ld" = yes; then
11016 soname_spec
='${libname}${release}${shared_ext}$major'
11017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11019 irix5
* | nonstopux
*)
11020 libsuff
= shlibsuff
=
11023 case $LD in # libtool.m4 will add one of these switches to LD
11024 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11025 libsuff
= shlibsuff
= libmagic
=32-bit;;
11026 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11027 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11028 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11029 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11030 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11034 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11035 shlibpath_overrides_runpath
=no
11036 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11037 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11038 hardcode_into_libs
=yes
11041 # No shared lib support for Linux oldld, aout, or coff.
11042 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11046 # This must be Linux ELF.
11048 # uclinux* changes (here and below) have been submitted to the libtool
11049 # project, but have not yet been accepted: they are GCC-local changes
11050 # for the time being. (See
11051 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11052 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
11056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec
='${libname}${release}${shared_ext}$major'
11058 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11059 shlibpath_var
=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath
=no
11062 # Some binutils ld are patched to set DT_RUNPATH
11063 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11064 $as_echo_n "(cached) " >&6
11066 lt_cv_shlibpath_overrides_runpath
=no
11067 save_LDFLAGS
=$LDFLAGS
11068 save_libdir
=$libdir
11069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11082 if ac_fn_c_try_link
"$LINENO"; then :
11083 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11084 lt_cv_shlibpath_overrides_runpath
=yes
11087 rm -f core conftest.err conftest.
$ac_objext \
11088 conftest
$ac_exeext conftest.
$ac_ext
11089 LDFLAGS
=$save_LDFLAGS
11090 libdir
=$save_libdir
11094 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11096 # This implies no fast_install, which is unacceptable.
11097 # Some rework will be needed to allow for fast_install
11098 # before this can be enabled.
11099 hardcode_into_libs
=yes
11101 # Append ld.so.conf contents to the search path
11102 if test -f /etc
/ld.so.conf
; then
11103 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' ' '`
11104 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11107 # We used to test for /lib/ld.so.1 and disable shared libraries on
11108 # powerpc, because MkLinux only supported shared libraries with the
11109 # GNU dynamic linker. Since this was broken with cross compilers,
11110 # most powerpc-linux boxes support dynamic linking these days and
11111 # people can always --disable-shared, the test was removed, and we
11112 # assume the GNU/Linux dynamic linker is in use.
11113 dynamic_linker
='GNU/Linux ld.so'
11120 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11122 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11123 dynamic_linker
='NetBSD (a.out) ld.so'
11125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11126 soname_spec
='${libname}${release}${shared_ext}$major'
11127 dynamic_linker
='NetBSD ld.elf_so'
11129 shlibpath_var
=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath
=yes
11131 hardcode_into_libs
=yes
11136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 shlibpath_var
=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath
=yes
11145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 soname_spec
='${libname}${release}${shared_ext}$major'
11147 shlibpath_var
=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath
=no
11149 hardcode_into_libs
=yes
11150 dynamic_linker
='ldqnx.so'
11155 sys_lib_dlsearch_path_spec
="/usr/lib"
11157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11159 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11160 *) need_version
=no
;;
11162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11163 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11164 shlibpath_var
=LD_LIBRARY_PATH
11165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11167 openbsd2.
[89] | openbsd2.
[89].
*)
11168 shlibpath_overrides_runpath
=no
11171 shlibpath_overrides_runpath
=yes
11175 shlibpath_overrides_runpath
=yes
11180 libname_spec
='$name'
11183 library_names_spec
='$libname${shared_ext} $libname.a'
11184 dynamic_linker
='OS/2 ld.exe'
11185 shlibpath_var
=LIBPATH
11188 osf3
* | osf4
* | osf5
*)
11192 soname_spec
='${libname}${release}${shared_ext}$major'
11193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var
=LD_LIBRARY_PATH
11195 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11196 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec
='${libname}${release}${shared_ext}$major'
11209 shlibpath_var
=LD_LIBRARY_PATH
11210 shlibpath_overrides_runpath
=yes
11211 hardcode_into_libs
=yes
11212 # ldd complains unless libraries are executable
11213 postinstall_cmds
='chmod +x $lib'
11218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11220 shlibpath_var
=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath
=yes
11222 if test "$with_gnu_ld" = yes; then
11230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11231 soname_spec
='${libname}${release}${shared_ext}$major'
11232 shlibpath_var
=LD_LIBRARY_PATH
11233 case $host_vendor in
11235 shlibpath_overrides_runpath
=no
11237 runpath_var
=LD_RUN_PATH
11245 shlibpath_overrides_runpath
=no
11246 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11252 if test -d /usr
/nec
;then
11254 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11255 soname_spec
='$libname${shared_ext}.$major'
11256 shlibpath_var
=LD_LIBRARY_PATH
11260 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11261 version_type
=freebsd-elf
11264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11265 soname_spec
='${libname}${release}${shared_ext}$major'
11266 shlibpath_var
=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath
=yes
11268 hardcode_into_libs
=yes
11269 if test "$with_gnu_ld" = yes; then
11270 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11272 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11275 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11279 sys_lib_dlsearch_path_spec
='/usr/lib'
11283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11288 shlibpath_var
=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath
=no
11290 hardcode_into_libs
=yes
11295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec
='${libname}${release}${shared_ext}$major'
11297 shlibpath_var
=LD_LIBRARY_PATH
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11305 $as_echo "$dynamic_linker" >&6; }
11306 test "$dynamic_linker" = no
&& can_build_shared
=no
11308 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11309 if test "$GCC" = yes; then
11310 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11313 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11314 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11316 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11317 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11414 if test -n "$hardcode_libdir_flag_spec" ||
11415 test -n "$runpath_var" ||
11416 test "X$hardcode_automatic" = "Xyes" ; then
11418 # We can hardcode non-existent directories.
11419 if test "$hardcode_direct" != no
&&
11420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11421 # have to relink, otherwise we might link with an installed library
11422 # when we should be linking with a yet-to-be-installed one
11423 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11424 test "$hardcode_minus_L" != no
; then
11425 # Linking always hardcodes the temporary library directory.
11426 hardcode_action
=relink
11428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11429 hardcode_action
=immediate
11432 # We cannot hardcode anything, or else we can only hardcode existing
11434 hardcode_action
=unsupported
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11437 $as_echo "$hardcode_action" >&6; }
11439 if test "$hardcode_action" = relink ||
11440 test "$inherit_rpath" = yes; then
11441 # Fast installation is not supported
11442 enable_fast_install
=no
11443 elif test "$shlibpath_overrides_runpath" = yes ||
11444 test "$enable_shared" = no
; then
11445 # Fast installation is not necessary
11446 enable_fast_install
=needless
11454 if test "x$enable_dlopen" != xyes
; then
11455 enable_dlopen
=unknown
11456 enable_dlopen_self
=unknown
11457 enable_dlopen_self_static
=unknown
11464 lt_cv_dlopen
="load_add_on"
11466 lt_cv_dlopen_self
=yes
11469 mingw
* | pw32
* | cegcc
*)
11470 lt_cv_dlopen
="LoadLibrary"
11475 lt_cv_dlopen
="dlopen"
11480 # if libdl is installed we need to link against it
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11482 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11483 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11484 $as_echo_n "(cached) " >&6
11486 ac_check_lib_save_LIBS
=$LIBS
11488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11506 if ac_fn_c_try_link
"$LINENO"; then :
11507 ac_cv_lib_dl_dlopen
=yes
11509 ac_cv_lib_dl_dlopen
=no
11511 rm -f core conftest.err conftest.
$ac_objext \
11512 conftest
$ac_exeext conftest.
$ac_ext
11513 LIBS
=$ac_check_lib_save_LIBS
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11516 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11517 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11518 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11521 lt_cv_dlopen
="dyld"
11523 lt_cv_dlopen_self
=yes
11530 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11531 if test "x$ac_cv_func_shl_load" = xyes
; then :
11532 lt_cv_dlopen
="shl_load"
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11535 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11536 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11537 $as_echo_n "(cached) " >&6
11539 ac_check_lib_save_LIBS
=$LIBS
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11554 return shl_load ();
11559 if ac_fn_c_try_link
"$LINENO"; then :
11560 ac_cv_lib_dld_shl_load
=yes
11562 ac_cv_lib_dld_shl_load
=no
11564 rm -f core conftest.err conftest.
$ac_objext \
11565 conftest
$ac_exeext conftest.
$ac_ext
11566 LIBS
=$ac_check_lib_save_LIBS
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11569 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11570 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11571 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11573 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11574 if test "x$ac_cv_func_dlopen" = xyes
; then :
11575 lt_cv_dlopen
="dlopen"
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11579 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11580 $as_echo_n "(cached) " >&6
11582 ac_check_lib_save_LIBS
=$LIBS
11584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11602 if ac_fn_c_try_link
"$LINENO"; then :
11603 ac_cv_lib_dl_dlopen
=yes
11605 ac_cv_lib_dl_dlopen
=no
11607 rm -f core conftest.err conftest.
$ac_objext \
11608 conftest
$ac_exeext conftest.
$ac_ext
11609 LIBS
=$ac_check_lib_save_LIBS
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11613 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11614 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11617 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11618 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11619 $as_echo_n "(cached) " >&6
11621 ac_check_lib_save_LIBS
=$LIBS
11622 LIBS
="-lsvld $LIBS"
11623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11641 if ac_fn_c_try_link
"$LINENO"; then :
11642 ac_cv_lib_svld_dlopen
=yes
11644 ac_cv_lib_svld_dlopen
=no
11646 rm -f core conftest.err conftest.
$ac_objext \
11647 conftest
$ac_exeext conftest.
$ac_ext
11648 LIBS
=$ac_check_lib_save_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11651 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11652 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11653 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11656 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11657 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11658 $as_echo_n "(cached) " >&6
11660 ac_check_lib_save_LIBS
=$LIBS
11662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11675 return dld_link ();
11680 if ac_fn_c_try_link
"$LINENO"; then :
11681 ac_cv_lib_dld_dld_link
=yes
11683 ac_cv_lib_dld_dld_link
=no
11685 rm -f core conftest.err conftest.
$ac_objext \
11686 conftest
$ac_exeext conftest.
$ac_ext
11687 LIBS
=$ac_check_lib_save_LIBS
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11690 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11691 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11692 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11713 if test "x$lt_cv_dlopen" != xno
; then
11719 case $lt_cv_dlopen in
11721 save_CPPFLAGS
="$CPPFLAGS"
11722 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11724 save_LDFLAGS
="$LDFLAGS"
11725 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11728 LIBS
="$lt_cv_dlopen_libs $LIBS"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11731 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11732 if ${lt_cv_dlopen_self+:} false
; then :
11733 $as_echo_n "(cached) " >&6
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self
=cross
11738 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11739 lt_status
=$lt_dlunknown
11740 cat > conftest.
$ac_ext <<_LT_EOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11751 # define LT_DLGLOBAL RTLD_GLOBAL
11754 # define LT_DLGLOBAL DL_GLOBAL
11756 # define LT_DLGLOBAL 0
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11767 # define LT_DLLAZY_OR_NOW DL_LAZY
11770 # define LT_DLLAZY_OR_NOW RTLD_NOW
11773 # define LT_DLLAZY_OR_NOW DL_NOW
11775 # define LT_DLLAZY_OR_NOW 0
11782 /* When -fvisbility=hidden is used, assume the code has been annotated
11783 correspondingly for the symbols needed. */
11784 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785 void fnord () __attribute__((visibility("default")));
11788 void fnord () { int i=42; }
11791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792 int status = $lt_dlunknown;
11796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11800 else puts (dlerror ());
11802 /* dlclose (self); */
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811 (eval $ac_link) 2>&5
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11815 (.
/conftest
; exit; ) >&5 2>/dev
/null
11817 case x
$lt_status in
11818 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11819 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11820 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11823 # compilation failed
11824 lt_cv_dlopen_self
=no
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11832 $as_echo "$lt_cv_dlopen_self" >&6; }
11834 if test "x$lt_cv_dlopen_self" = xyes
; then
11835 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11838 if ${lt_cv_dlopen_self_static+:} false
; then :
11839 $as_echo_n "(cached) " >&6
11841 if test "$cross_compiling" = yes; then :
11842 lt_cv_dlopen_self_static
=cross
11844 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11845 lt_status
=$lt_dlunknown
11846 cat > conftest.
$ac_ext <<_LT_EOF
11847 #line 11847 "configure"
11848 #include "confdefs.h"
11857 # define LT_DLGLOBAL RTLD_GLOBAL
11860 # define LT_DLGLOBAL DL_GLOBAL
11862 # define LT_DLGLOBAL 0
11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11867 find out it does not work in some platform. */
11868 #ifndef LT_DLLAZY_OR_NOW
11870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11873 # define LT_DLLAZY_OR_NOW DL_LAZY
11876 # define LT_DLLAZY_OR_NOW RTLD_NOW
11879 # define LT_DLLAZY_OR_NOW DL_NOW
11881 # define LT_DLLAZY_OR_NOW 0
11888 /* When -fvisbility=hidden is used, assume the code has been annotated
11889 correspondingly for the symbols needed. */
11890 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11891 void fnord () __attribute__((visibility("default")));
11894 void fnord () { int i=42; }
11897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11898 int status = $lt_dlunknown;
11902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11906 else puts (dlerror ());
11908 /* dlclose (self); */
11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11917 (eval $ac_link) 2>&5
11919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11920 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11921 (.
/conftest
; exit; ) >&5 2>/dev
/null
11923 case x
$lt_status in
11924 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11925 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11926 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11929 # compilation failed
11930 lt_cv_dlopen_self_static
=no
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11938 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11941 CPPFLAGS
="$save_CPPFLAGS"
11942 LDFLAGS
="$save_LDFLAGS"
11947 case $lt_cv_dlopen_self in
11948 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11949 *) enable_dlopen_self
=unknown
;;
11952 case $lt_cv_dlopen_self_static in
11953 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11954 *) enable_dlopen_self_static
=unknown
;;
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11977 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11978 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11979 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11980 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982 $as_echo "yes" >&6; }
11984 # FIXME - insert some real tests, host_os isn't really good enough
11987 if test -n "$STRIP" ; then
11988 striplib
="$STRIP -x"
11989 old_striplib
="$STRIP -S"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991 $as_echo "yes" >&6; }
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994 $as_echo "no" >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12015 # Report which library types will actually be built
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12017 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12019 $as_echo "$can_build_shared" >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12022 $as_echo_n "checking whether to build shared libraries... " >&6; }
12023 test "$can_build_shared" = "no" && enable_shared
=no
12025 # On AIX, shared libraries and static libraries use the same namespace, and
12026 # are all built from PIC.
12029 test "$enable_shared" = yes && enable_static
=no
12030 if test -n "$RANLIB"; then
12031 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12032 postinstall_cmds
='$RANLIB $lib'
12037 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12038 test "$enable_shared" = yes && enable_static
=no
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12043 $as_echo "$enable_shared" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12046 $as_echo_n "checking whether to build static libraries... " >&6; }
12047 # Make sure either enable_shared or enable_static is yes.
12048 test "$enable_shared" = yes || enable_static
=yes
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12050 $as_echo "$enable_static" >&6; }
12057 ac_cpp
='$CPP $CPPFLAGS'
12058 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12059 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12076 ac_config_commands
="$ac_config_commands libtool"
12081 # Only expand once:
12087 gdc_save_DFLAGS
=$GDCFLAGS
12088 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
12091 # Source file extension for D test sources.
12094 # Object file extension for compiled D test sources.
12098 # Code to be used in simple compile tests
12099 lt_simple_compile_test_code
="\
12101 shared int some_variable = 0;
12104 # Code to be used in simple link tests
12105 lt_simple_link_test_code
="\
12107 extern(C) int main() { return 0; }
12110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12117 # If no C compiler was specified, use CC.
12120 # If no C compiler flags were specified, use CFLAGS.
12121 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12123 # Allow CC to be a program name with arguments.
12127 # save warnings/boilerplate of simple test code
12128 ac_outfile
=conftest.
$ac_objext
12129 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12130 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12131 _lt_compiler_boilerplate
=`cat conftest.err`
12134 ac_outfile
=conftest.
$ac_objext
12135 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12136 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12137 _lt_linker_boilerplate
=`cat conftest.err`
12141 # Allow CC to be a program name with arguments.
12143 lt_save_CFLAGS
=$CFLAGS
12151 for cc_temp
in $compiler""; do
12153 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12154 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12159 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12162 # GDC did not exist at the time GCC didn't implicitly link libc in.
12163 archive_cmds_need_lc_D
=no
12165 old_archive_cmds_D
=$old_archive_cmds
12166 reload_flag_D
=$reload_flag
12167 reload_cmds_D
=$reload_cmds
12170 ## There is no encapsulation within the following macros, do not change
12171 ## the running order or otherwise move them around unless you know exactly
12172 ## what you are doing...
12173 if test -n "$compiler"; then
12175 lt_prog_compiler_no_builtin_flag_D
=
12177 if test "$GCC" = yes; then
12178 case $cc_basename in
12180 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12182 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12186 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12187 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12188 $as_echo_n "(cached) " >&6
12190 lt_cv_prog_compiler_rtti_exceptions
=no
12191 ac_outfile
=conftest.
$ac_objext
12192 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12193 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12194 # Insert the option either (1) after the last *FLAGS variable, or
12195 # (2) before a word containing "conftest.", or (3) at the end.
12196 # Note that $ac_compile itself does not contain backslashes and begins
12197 # with a dollar sign (not a hyphen), so the echo should work correctly.
12198 # The option is referenced via a variable to avoid confusing sed.
12199 lt_compile
=`echo "$ac_compile" | $SED \
12200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12202 -e 's:$: $lt_compiler_flag:'`
12203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12204 (eval "$lt_compile" 2>conftest.err
)
12206 cat conftest.err
>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 if (exit $ac_status) && test -s "$ac_outfile"; then
12209 # The compiler can only warn and ignore the option if not recognized
12210 # So say no if there are warnings other than the usual output.
12211 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12212 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12213 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12214 lt_cv_prog_compiler_rtti_exceptions
=yes
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12221 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12223 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12224 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12233 lt_prog_compiler_wl_D
=
12234 lt_prog_compiler_pic_D
=
12235 lt_prog_compiler_static_D
=
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12238 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12240 if test "$GCC" = yes; then
12241 lt_prog_compiler_wl_D
='-Wl,'
12242 lt_prog_compiler_static_D
='-static'
12246 # All AIX code is PIC.
12247 if test "$host_cpu" = ia64
; then
12248 # AIX 5 now supports IA64 processor
12249 lt_prog_compiler_static_D
='-Bstatic'
12251 lt_prog_compiler_pic_D
='-fPIC'
12257 # see comment about AmigaOS4 .so support
12258 lt_prog_compiler_pic_D
='-fPIC'
12261 # FIXME: we need at least 68020 code to build shared libraries, but
12262 # adding the `-m68020' flag to GCC prevents building anything better,
12264 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12269 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12270 # PIC is the default for these OSes.
12273 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12274 # This hack is so that the source file can tell whether it is being
12275 # built for inclusion in a dll (and should export symbols for example).
12276 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12277 # (--disable-auto-import) libraries
12278 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12281 darwin
* | rhapsody
*)
12282 # PIC is the default on this platform
12283 # Common symbols not allowed in MH_DYLIB files
12284 lt_prog_compiler_pic_D
='-fno-common'
12288 # PIC is the default for Haiku.
12289 # The "-static" flag exists, but is broken.
12290 lt_prog_compiler_static_D
=
12294 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12295 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12296 # sets the default TLS model and affects inlining.
12302 lt_prog_compiler_pic_D
='-fPIC'
12308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12309 # Instead, we relocate shared libraries at runtime.
12313 # Just because we use GCC doesn't mean we suddenly get shared libraries
12314 # on systems that don't support them.
12315 lt_prog_compiler_can_build_shared_D
=no
12320 # QNX uses GNU C++, but need to define -shared option too, otherwise
12321 # it will coredump.
12322 lt_prog_compiler_pic_D
='-fPIC -shared'
12326 if test -d /usr
/nec
; then
12327 lt_prog_compiler_pic_D
=-Kconform_pic
12332 lt_prog_compiler_pic_D
='-fPIC'
12336 case $cc_basename in
12337 nvcc
*) # Cuda Compiler Driver 2.2
12338 lt_prog_compiler_wl_D
='-Xlinker '
12339 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12343 # PORTME Check for flag to pass linker flags through the system compiler.
12346 lt_prog_compiler_wl_D
='-Wl,'
12347 if test "$host_cpu" = ia64
; then
12348 # AIX 5 now supports IA64 processor
12349 lt_prog_compiler_static_D
='-Bstatic'
12351 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12355 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12356 # This hack is so that the source file can tell whether it is being
12357 # built for inclusion in a dll (and should export symbols for example).
12358 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12361 hpux9
* | hpux10
* | hpux11
*)
12362 lt_prog_compiler_wl_D
='-Wl,'
12363 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12364 # not for PA HP-UX.
12370 lt_prog_compiler_pic_D
='+Z'
12373 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12374 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12377 irix5
* | irix6
* | nonstopux
*)
12378 lt_prog_compiler_wl_D
='-Wl,'
12379 # PIC (with -KPIC) is the default.
12380 lt_prog_compiler_static_D
='-non_shared'
12383 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12384 case $cc_basename in
12385 # old Intel for x86_64 which still supported -KPIC.
12387 lt_prog_compiler_wl_D
='-Wl,'
12388 lt_prog_compiler_pic_D
='-KPIC'
12389 lt_prog_compiler_static_D
='-static'
12391 # icc used to be incompatible with GCC.
12392 # ICC 10 doesn't accept -KPIC any more.
12394 lt_prog_compiler_wl_D
='-Wl,'
12395 lt_prog_compiler_pic_D
='-fPIC'
12396 lt_prog_compiler_static_D
='-static'
12398 # Lahey Fortran 8.1.
12400 lt_prog_compiler_wl_D
='-Wl,'
12401 lt_prog_compiler_pic_D
='--shared'
12402 lt_prog_compiler_static_D
='--static'
12404 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12405 # Portland Group compilers (*not* the Pentium gcc compiler,
12406 # which looks to be a dead project)
12407 lt_prog_compiler_wl_D
='-Wl,'
12408 lt_prog_compiler_pic_D
='-fpic'
12409 lt_prog_compiler_static_D
='-Bstatic'
12412 lt_prog_compiler_wl_D
='-Wl,'
12413 # All Alpha code is PIC.
12414 lt_prog_compiler_static_D
='-non_shared'
12416 xl
* | bgxl
* | bgf
* | mpixl
*)
12417 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12418 lt_prog_compiler_wl_D
='-Wl,'
12419 lt_prog_compiler_pic_D
='-qpic'
12420 lt_prog_compiler_static_D
='-qstaticlink'
12423 case `$CC -V 2>&1 | sed 5q` in
12424 *Sun\ F
* |
*Sun
*Fortran
*)
12425 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12426 lt_prog_compiler_pic_D
='-KPIC'
12427 lt_prog_compiler_static_D
='-Bstatic'
12428 lt_prog_compiler_wl_D
=''
12432 lt_prog_compiler_pic_D
='-KPIC'
12433 lt_prog_compiler_static_D
='-Bstatic'
12434 lt_prog_compiler_wl_D
='-Wl,'
12442 lt_prog_compiler_pic_D
='-KPIC'
12443 lt_prog_compiler_static_D
='-Bstatic'
12447 # QNX uses GNU C++, but need to define -shared option too, otherwise
12448 # it will coredump.
12449 lt_prog_compiler_pic_D
='-fPIC -shared'
12452 osf3
* | osf4
* | osf5
*)
12453 lt_prog_compiler_wl_D
='-Wl,'
12454 # All OSF/1 code is PIC.
12455 lt_prog_compiler_static_D
='-non_shared'
12459 lt_prog_compiler_static_D
='-non_shared'
12463 lt_prog_compiler_pic_D
='-KPIC'
12464 lt_prog_compiler_static_D
='-Bstatic'
12465 case $cc_basename in
12466 f77
* | f90
* | f95
*)
12467 lt_prog_compiler_wl_D
='-Qoption ld ';;
12469 lt_prog_compiler_wl_D
='-Wl,';;
12474 lt_prog_compiler_wl_D
='-Qoption ld '
12475 lt_prog_compiler_pic_D
='-PIC'
12476 lt_prog_compiler_static_D
='-Bstatic'
12479 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12480 lt_prog_compiler_wl_D
='-Wl,'
12481 lt_prog_compiler_pic_D
='-KPIC'
12482 lt_prog_compiler_static_D
='-Bstatic'
12486 if test -d /usr
/nec
;then
12487 lt_prog_compiler_pic_D
='-Kconform_pic'
12488 lt_prog_compiler_static_D
='-Bstatic'
12492 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12493 lt_prog_compiler_wl_D
='-Wl,'
12494 lt_prog_compiler_pic_D
='-KPIC'
12495 lt_prog_compiler_static_D
='-Bstatic'
12499 lt_prog_compiler_wl_D
='-Wl,'
12500 lt_prog_compiler_can_build_shared_D
=no
12504 lt_prog_compiler_pic_D
='-pic'
12505 lt_prog_compiler_static_D
='-Bstatic'
12509 lt_prog_compiler_can_build_shared_D
=no
12515 # For platforms which do not support PIC, -DPIC is meaningless:
12517 lt_prog_compiler_pic_D
=
12520 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12524 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12529 # Check to make sure the PIC flag actually works.
12531 if test -n "$lt_prog_compiler_pic_D"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12534 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12535 $as_echo_n "(cached) " >&6
12537 lt_cv_prog_compiler_pic_works_D
=no
12538 ac_outfile
=conftest.
$ac_objext
12539 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12540 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12541 # Insert the option either (1) after the last *FLAGS variable, or
12542 # (2) before a word containing "conftest.", or (3) at the end.
12543 # Note that $ac_compile itself does not contain backslashes and begins
12544 # with a dollar sign (not a hyphen), so the echo should work correctly.
12545 # The option is referenced via a variable to avoid confusing sed.
12546 lt_compile
=`echo "$ac_compile" | $SED \
12547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12549 -e 's:$: $lt_compiler_flag:'`
12550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12551 (eval "$lt_compile" 2>conftest.err
)
12553 cat conftest.err
>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 if (exit $ac_status) && test -s "$ac_outfile"; then
12556 # The compiler can only warn and ignore the option if not recognized
12557 # So say no if there are warnings other than the usual output.
12558 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12559 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12560 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12561 lt_cv_prog_compiler_pic_works_D
=yes
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12568 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12570 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12571 case $lt_prog_compiler_pic_D in
12573 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12576 lt_prog_compiler_pic_D
=
12577 lt_prog_compiler_can_build_shared_D
=no
12585 # Check to make sure the static flag actually works.
12587 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12589 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12590 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12591 $as_echo_n "(cached) " >&6
12593 lt_cv_prog_compiler_static_works_D
=no
12594 save_LDFLAGS
="$LDFLAGS"
12595 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12596 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12597 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12598 # The linker can only warn and ignore the option if not recognized
12599 # So say no if there are warnings
12600 if test -s conftest.err
; then
12601 # Append any errors to the config.log.
12602 cat conftest.err
1>&5
12603 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12604 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12605 if diff conftest.exp conftest.er2
>/dev
/null
; then
12606 lt_cv_prog_compiler_static_works_D
=yes
12609 lt_cv_prog_compiler_static_works_D
=yes
12613 LDFLAGS
="$save_LDFLAGS"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12617 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12619 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12622 lt_prog_compiler_static_D
=
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12629 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12630 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12631 $as_echo_n "(cached) " >&6
12633 lt_cv_prog_compiler_c_o_D
=no
12634 $RM -r conftest
2>/dev
/null
12638 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12640 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12641 # Insert the option either (1) after the last *FLAGS variable, or
12642 # (2) before a word containing "conftest.", or (3) at the end.
12643 # Note that $ac_compile itself does not contain backslashes and begins
12644 # with a dollar sign (not a hyphen), so the echo should work correctly.
12645 lt_compile
=`echo "$ac_compile" | $SED \
12646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648 -e 's:$: $lt_compiler_flag:'`
12649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12650 (eval "$lt_compile" 2>out
/conftest.err
)
12652 cat out
/conftest.err
>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12656 # The compiler can only warn and ignore the option if not recognized
12657 # So say no if there are warnings
12658 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12659 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12660 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12661 lt_cv_prog_compiler_c_o_D
=yes
12666 # SGI C++ compiler will create directory out/ii_files/ for
12667 # template instantiation
12668 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12669 $RM out
/* && rmdir out
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12676 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12682 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12683 $as_echo_n "(cached) " >&6
12685 lt_cv_prog_compiler_c_o_D
=no
12686 $RM -r conftest
2>/dev
/null
12690 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12692 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12693 # Insert the option either (1) after the last *FLAGS variable, or
12694 # (2) before a word containing "conftest.", or (3) at the end.
12695 # Note that $ac_compile itself does not contain backslashes and begins
12696 # with a dollar sign (not a hyphen), so the echo should work correctly.
12697 lt_compile
=`echo "$ac_compile" | $SED \
12698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12700 -e 's:$: $lt_compiler_flag:'`
12701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12702 (eval "$lt_compile" 2>out
/conftest.err
)
12704 cat out
/conftest.err
>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12708 # The compiler can only warn and ignore the option if not recognized
12709 # So say no if there are warnings
12710 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12711 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12712 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12713 lt_cv_prog_compiler_c_o_D
=yes
12718 # SGI C++ compiler will create directory out/ii_files/ for
12719 # template instantiation
12720 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12721 $RM out
/* && rmdir out
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12728 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12733 hard_links
="nottested"
12734 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12735 # do not overwrite the value of need_locks provided by the user
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12737 $as_echo_n "checking if we can lock with hard links... " >&6; }
12740 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12742 ln conftest.a conftest.b
2>&5 || hard_links
=no
12743 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12745 $as_echo "$hard_links" >&6; }
12746 if test "$hard_links" = no
; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12748 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12761 allow_undefined_flag_D
=
12762 always_export_symbols_D
=no
12764 archive_expsym_cmds_D
=
12765 compiler_needs_object_D
=no
12766 enable_shared_with_static_runtimes_D
=no
12767 export_dynamic_flag_spec_D
=
12768 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12769 hardcode_automatic_D
=no
12770 hardcode_direct_D
=no
12771 hardcode_direct_absolute_D
=no
12772 hardcode_libdir_flag_spec_D
=
12773 hardcode_libdir_flag_spec_ld_D
=
12774 hardcode_libdir_separator_D
=
12775 hardcode_minus_L_D
=no
12776 hardcode_shlibpath_var_D
=unsupported
12778 link_all_deplibs_D
=unknown
12780 module_expsym_cmds_D
=
12781 old_archive_from_new_cmds_D
=
12782 old_archive_from_expsyms_cmds_D
=
12783 thread_safe_flag_spec_D
=
12784 whole_archive_flag_spec_D
=
12785 # include_expsyms should be a list of space-separated symbols to be *always*
12786 # included in the symbol list
12788 # exclude_expsyms can be an extended regexp of symbols to exclude
12789 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12790 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12791 # as well as any symbol that contains `d'.
12792 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12793 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12794 # platforms (ab)use it in PIC code, but their linkers get confused if
12795 # the symbol is explicitly referenced. Since portable code cannot
12796 # rely on this symbol name, it's probably fine to never include it in
12797 # preloaded symbol tables.
12798 # Exclude shared library initialization/finalization symbols.
12799 extract_expsyms_cmds
=
12802 cygwin
* | mingw
* | pw32
* | cegcc
*)
12803 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12804 # When not using gcc, we currently assume that we are using
12805 # Microsoft Visual C++.
12806 if test "$GCC" != yes; then
12811 # we just hope/assume this is gcc and not c89 (= MSVC++)
12821 # On some targets, GNU ld is compatible enough with the native linker
12822 # that we're better off using the native interface for both.
12823 lt_use_gnu_ld_interface
=no
12824 if test "$with_gnu_ld" = yes; then
12827 # The AIX port of GNU ld has always aspired to compatibility
12828 # with the native linker. However, as the warning in the GNU ld
12829 # block says, versions before 2.19.5* couldn't really create working
12830 # shared libraries, regardless of the interface used.
12831 case `$LD -v 2>&1` in
12832 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12833 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12834 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12836 lt_use_gnu_ld_interface
=yes
12841 lt_use_gnu_ld_interface
=yes
12846 if test "$lt_use_gnu_ld_interface" = yes; then
12847 # If archive_cmds runs LD, not CC, wlarc should be empty
12850 # Set some defaults for GNU ld with shared library support. These
12851 # are reset later if shared libraries are not supported. Putting them
12852 # here allows them to be overridden if necessary.
12853 runpath_var
=LD_RUN_PATH
12854 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12855 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12856 # ancient GNU ld didn't support --whole-archive et. al.
12857 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12858 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12860 whole_archive_flag_spec_D
=
12862 supports_anon_versioning
=no
12863 case `$LD -v 2>&1` in
12864 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12865 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12866 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12867 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12868 *\
2.11.
*) ;; # other 2.11 versions
12869 *) supports_anon_versioning
=yes ;;
12872 # See if GNU ld supports shared libraries.
12875 # On AIX/PPC, the GNU linker is very broken
12876 if test "$host_cpu" != ia64
; then
12880 *** Warning: the GNU linker, at least up to release 2.19, is reported
12881 *** to be unable to reliably create shared libraries on AIX.
12882 *** Therefore, libtool is disabling shared libraries support. If you
12883 *** really care for shared libraries, you may want to install binutils
12884 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12885 *** You will then need to restart the configuration process.
12894 # see comment about AmigaOS4 .so support
12895 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896 archive_expsym_cmds_D
=''
12899 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)'
12900 hardcode_libdir_flag_spec_D
='-L$libdir'
12901 hardcode_minus_L_D
=yes
12907 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12908 allow_undefined_flag_D
=unsupported
12909 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12910 # support --undefined. This deserves some investigation. FIXME
12911 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917 cygwin
* | mingw
* | pw32
* | cegcc
*)
12918 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12919 # as there is no search path for DLLs.
12920 hardcode_libdir_flag_spec_D
='-L$libdir'
12921 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12922 allow_undefined_flag_D
=unsupported
12923 always_export_symbols_D
=no
12924 enable_shared_with_static_runtimes_D
=yes
12925 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12927 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12928 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12929 # If the export-symbols file already is a .def file (1st line
12930 # is EXPORTS), use it as is; otherwise, prepend...
12931 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12932 cp $export_symbols $output_objdir/$soname.def;
12934 echo EXPORTS > $output_objdir/$soname.def;
12935 cat $export_symbols >> $output_objdir/$soname.def;
12937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12944 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 link_all_deplibs_D
=yes
12949 hardcode_direct_D
=no
12950 hardcode_shlibpath_var_D
=no
12951 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12952 export_dynamic_flag_spec_D
='${wl}-E'
12953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12954 # Instead, shared libraries are loaded at an image base (0x10000000 by
12955 # default) and relocated if they conflict, which is a slow very memory
12956 # consuming and fragmenting process. To avoid this, we pick a random,
12957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12959 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'
12960 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'
12963 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
12965 if test "$host_os" = linux-dietlibc
; then
12966 case $cc_basename in
12967 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12970 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12971 && test "$tmp_diet" = no
12973 tmp_addflag
=' $pic_flag'
12974 tmp_sharedflag
='-shared'
12975 case $cc_basename,$host_cpu in
12976 pgcc
*) # Portland Group C compiler
12977 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'
12978 tmp_addflag
=' $pic_flag'
12980 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12981 # Portland Group f77 and f90 compilers
12982 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'
12983 tmp_addflag
=' $pic_flag -Mnomain' ;;
12984 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12985 tmp_addflag
=' -i_dynamic' ;;
12986 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12987 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12988 ifc
* | ifort
*) # Intel Fortran compiler
12989 tmp_addflag
=' -nofor_main' ;;
12990 lf95
*) # Lahey Fortran 8.1
12991 whole_archive_flag_spec_D
=
12992 tmp_sharedflag
='--shared' ;;
12993 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12994 tmp_sharedflag
='-qmkshrobj'
12996 nvcc
*) # Cuda Compiler Driver 2.2
12997 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'
12998 compiler_needs_object_D
=yes
13001 case `$CC -V 2>&1 | sed 5q` in
13002 *Sun\ C
*) # Sun C 5.9
13003 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'
13004 compiler_needs_object_D
=yes
13005 tmp_sharedflag
='-G' ;;
13006 *Sun\ F
*) # Sun Fortran 8.3
13007 tmp_sharedflag
='-G' ;;
13009 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13011 if test "x$supports_anon_versioning" = xyes
; then
13012 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13014 echo "local: *; };" >> $output_objdir/$libname.ver~
13015 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13018 case $cc_basename in
13019 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
13020 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13021 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
13022 hardcode_libdir_flag_spec_D
=
13023 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
13024 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13025 if test "x$supports_anon_versioning" = xyes
; then
13026 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
13027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13028 echo "local: *; };" >> $output_objdir/$libname.ver~
13029 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13039 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13040 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13043 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13049 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
13053 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13054 *** create shared libraries on Solaris systems. Therefore, libtool
13055 *** is disabling shared libraries support. We urge you to upgrade GNU
13056 *** binutils to release 2.9.1 or newer. Another option is to modify
13057 *** your PATH or compiler configuration so that the native linker is
13058 *** used, and then restart.
13061 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13062 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13063 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13069 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
13070 case `$LD -v 2>&1` in
13071 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
13075 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13076 *** reliably create shared libraries on SCO systems. Therefore, libtool
13077 *** is disabling shared libraries support. We urge you to upgrade GNU
13078 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13079 *** your PATH or compiler configuration so that the native linker is
13080 *** used, and then restart.
13085 # For security reasons, it is highly recommended that you always
13086 # use absolute paths for naming shared libraries, and exclude the
13087 # DT_RUNPATH tag from executables and libraries. But doing so
13088 # requires that you compile everything twice, which is a pain.
13089 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13090 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13091 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13101 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13103 hardcode_direct_D
=yes
13104 hardcode_shlibpath_var_D
=no
13108 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13109 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13117 if test "$ld_shlibs_D" = no
; then
13119 hardcode_libdir_flag_spec_D
=
13120 export_dynamic_flag_spec_D
=
13121 whole_archive_flag_spec_D
=
13124 # PORTME fill in a description of your system's linker (not GNU ld)
13127 allow_undefined_flag_D
=unsupported
13128 always_export_symbols_D
=yes
13129 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'
13130 # Note: this linker hardcodes the directories in LIBPATH if there
13131 # are no directories specified by -L.
13132 hardcode_minus_L_D
=yes
13133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13134 # Neither direct hardcoding nor static linking is supported with a
13136 hardcode_direct_D
=unsupported
13141 if test "$host_cpu" = ia64
; then
13142 # On IA64, the linker does run time linking by default, so we don't
13143 # have to do anything special.
13144 aix_use_runtimelinking
=no
13145 exp_sym_flag
='-Bexport'
13148 # If we're using GNU nm, then we don't want the "-C" option.
13149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13150 # Also, AIX nm treats weak defined symbols like other global
13151 # defined symbols, whereas GNU nm marks them as "W".
13152 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13153 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'
13155 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'
13157 aix_use_runtimelinking
=no
13159 # Test if we are trying to use run time linking or normal
13160 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13161 # need to do runtime linking.
13162 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13163 for ld_flag
in $LDFLAGS; do
13164 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13165 aix_use_runtimelinking
=yes
13172 exp_sym_flag
='-bexport'
13173 no_entry_flag
='-bnoentry'
13176 # When large executables or shared objects are built, AIX ld can
13177 # have problems creating the table of contents. If linking a library
13178 # or program results in "error TOC overflow" add -mminimal-toc to
13179 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13180 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13183 hardcode_direct_D
=yes
13184 hardcode_direct_absolute_D
=yes
13185 hardcode_libdir_separator_D
=':'
13186 link_all_deplibs_D
=yes
13187 file_list_spec_D
='${wl}-f,'
13189 if test "$GCC" = yes; then
13190 case $host_os in aix4.
[012]|aix4.
[012].
*)
13191 # We only want to do this on AIX 4.2 and lower, the check
13192 # below for broken collect2 doesn't work under 4.3+
13193 collect2name
=`${CC} -print-prog-name=collect2`
13194 if test -f "$collect2name" &&
13195 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13197 # We have reworked collect2
13200 # We have old collect2
13201 hardcode_direct_D
=unsupported
13202 # It fails to find uninstalled libraries when the uninstalled
13203 # path is not listed in the libpath. Setting hardcode_minus_L
13204 # to unsupported forces relinking
13205 hardcode_minus_L_D
=yes
13206 hardcode_libdir_flag_spec_D
='-L$libdir'
13207 hardcode_libdir_separator_D
=
13211 shared_flag
='-shared'
13212 if test "$aix_use_runtimelinking" = yes; then
13213 shared_flag
="$shared_flag "'${wl}-G'
13217 if test "$host_cpu" = ia64
; then
13218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13219 # chokes on -Wl,-G. The following line is correct:
13222 if test "$aix_use_runtimelinking" = yes; then
13223 shared_flag
='${wl}-G'
13225 shared_flag
='${wl}-bM:SRE'
13230 export_dynamic_flag_spec_D
='${wl}-bexpall'
13231 # It seems that -bexpall does not export symbols beginning with
13232 # underscore (_), so it is better to generate a list of symbols to export.
13233 always_export_symbols_D
=yes
13234 if test "$aix_use_runtimelinking" = yes; then
13235 # Warning - without using the other runtime loading flags (-brtl),
13236 # -berok will link without error, but may produce a broken library.
13237 allow_undefined_flag_D
='-berok'
13238 # Determine the default libpath from the value encoded in an
13239 # empty executable.
13240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13251 if ac_fn_c_try_link
"$LINENO"; then :
13253 lt_aix_libpath_sed
='
13254 /Import File Strings/,/^$/ {
13260 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13261 # Check for a 64-bit object if we didn't find anything.
13262 if test -z "$aix_libpath"; then
13263 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13266 rm -f core conftest.err conftest.
$ac_objext \
13267 conftest
$ac_exeext conftest.
$ac_ext
13268 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13270 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13271 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"
13273 if test "$host_cpu" = ia64
; then
13274 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13275 allow_undefined_flag_D
="-z nodefs"
13276 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"
13278 # Determine the default libpath from the value encoded in an
13279 # empty executable.
13280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13291 if ac_fn_c_try_link
"$LINENO"; then :
13293 lt_aix_libpath_sed
='
13294 /Import File Strings/,/^$/ {
13300 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13301 # Check for a 64-bit object if we didn't find anything.
13302 if test -z "$aix_libpath"; then
13303 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13306 rm -f core conftest.err conftest.
$ac_objext \
13307 conftest
$ac_exeext conftest.
$ac_ext
13308 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13310 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13311 # Warning - without using the other run time loading flags,
13312 # -berok will link without error, but may produce a broken library.
13313 no_undefined_flag_D
=' ${wl}-bernotok'
13314 allow_undefined_flag_D
=' ${wl}-berok'
13315 if test "$with_gnu_ld" = yes; then
13316 # We only use this code for GNU lds that support --whole-archive.
13317 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13319 # Exported symbols can be pulled into shared objects from archives
13320 whole_archive_flag_spec_D
='$convenience'
13322 archive_cmds_need_lc_D
=yes
13323 # This is similar to how AIX traditionally builds its shared libraries.
13324 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'
13332 # see comment about AmigaOS4 .so support
13333 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 archive_expsym_cmds_D
=''
13337 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)'
13338 hardcode_libdir_flag_spec_D
='-L$libdir'
13339 hardcode_minus_L_D
=yes
13345 export_dynamic_flag_spec_D
=-rdynamic
13348 cygwin
* | mingw
* | pw32
* | cegcc
*)
13349 # When not using gcc, we currently assume that we are using
13350 # Microsoft Visual C++.
13351 # hardcode_libdir_flag_spec is actually meaningless, as there is
13352 # no search path for DLLs.
13353 hardcode_libdir_flag_spec_D
=' '
13354 allow_undefined_flag_D
=unsupported
13355 # Tell ltmain to make .lib files, not .a files.
13357 # Tell ltmain to make .dll files, not .so files.
13359 # FIXME: Setting linknames here is a bad hack.
13360 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13361 # The linker will automatically build a .lib file if we build a DLL.
13362 old_archive_from_new_cmds_D
='true'
13363 # FIXME: Should let the user specify the lib program.
13364 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13365 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13366 enable_shared_with_static_runtimes_D
=yes
13369 darwin
* | rhapsody
*)
13372 archive_cmds_need_lc_D
=no
13373 hardcode_direct_D
=no
13374 hardcode_automatic_D
=yes
13375 hardcode_shlibpath_var_D
=unsupported
13376 if test "$lt_cv_ld_force_load" = "yes"; then
13377 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\"`'
13379 whole_archive_flag_spec_D
=''
13381 link_all_deplibs_D
=yes
13382 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13383 case $cc_basename in
13384 ifort
*) _lt_dar_can_shared
=yes ;;
13385 *) _lt_dar_can_shared
=$GCC ;;
13387 if test "$_lt_dar_can_shared" = "yes"; then
13388 output_verbose_link_cmd
=func_echo_all
13389 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}"
13390 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13391 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}"
13392 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}"
13401 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13402 hardcode_libdir_flag_spec_D
='-L$libdir'
13403 hardcode_shlibpath_var_D
=no
13406 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13407 # support. Future versions do this automatically, but an explicit c++rt0.o
13408 # does not break anything, and helps significantly (at the cost of a little
13411 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13412 hardcode_libdir_flag_spec_D
='-R$libdir'
13413 hardcode_direct_D
=yes
13414 hardcode_shlibpath_var_D
=no
13417 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13419 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_direct_D
=yes
13421 hardcode_minus_L_D
=yes
13422 hardcode_shlibpath_var_D
=no
13425 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13426 freebsd
* | dragonfly
*)
13427 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13428 hardcode_libdir_flag_spec_D
='-R$libdir'
13429 hardcode_direct_D
=yes
13430 hardcode_shlibpath_var_D
=no
13434 if test "$GCC" = yes; then
13435 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'
13437 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'
13439 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13440 hardcode_libdir_separator_D
=:
13441 hardcode_direct_D
=yes
13443 # hardcode_minus_L: Not really in the search PATH,
13444 # but as the default location of the library.
13445 hardcode_minus_L_D
=yes
13446 export_dynamic_flag_spec_D
='${wl}-E'
13450 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13451 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13453 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13455 if test "$with_gnu_ld" = no
; then
13456 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13457 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13458 hardcode_libdir_separator_D
=:
13459 hardcode_direct_D
=yes
13460 hardcode_direct_absolute_D
=yes
13461 export_dynamic_flag_spec_D
='${wl}-E'
13462 # hardcode_minus_L: Not really in the search PATH,
13463 # but as the default location of the library.
13464 hardcode_minus_L_D
=yes
13469 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13472 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13475 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13478 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13484 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13487 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13494 if test "$with_gnu_ld" = no
; then
13495 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13496 hardcode_libdir_separator_D
=:
13500 hardcode_direct_D
=no
13501 hardcode_shlibpath_var_D
=no
13504 hardcode_direct_D
=yes
13505 hardcode_direct_absolute_D
=yes
13506 export_dynamic_flag_spec_D
='${wl}-E'
13508 # hardcode_minus_L: Not really in the search PATH,
13509 # but as the default location of the library.
13510 hardcode_minus_L_D
=yes
13516 irix5
* | irix6
* | nonstopux
*)
13517 if test "$GCC" = yes; then
13518 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'
13519 # Try to use the -exported_symbol ld option, if it does not
13520 # work, assume that -exports_file does not work either and
13521 # implicitly export all symbols.
13522 save_LDFLAGS
="$LDFLAGS"
13523 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13528 if ac_fn_c_try_link
"$LINENO"; then :
13529 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'
13532 rm -f core conftest.err conftest.
$ac_objext \
13533 conftest
$ac_exeext conftest.
$ac_ext
13534 LDFLAGS
="$save_LDFLAGS"
13536 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'
13537 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'
13539 archive_cmds_need_lc_D
='no'
13540 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13541 hardcode_libdir_separator_D
=:
13542 inherit_rpath_D
=yes
13543 link_all_deplibs_D
=yes
13547 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13548 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13550 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13552 hardcode_libdir_flag_spec_D
='-R$libdir'
13553 hardcode_direct_D
=yes
13554 hardcode_shlibpath_var_D
=no
13558 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13559 hardcode_direct_D
=yes
13560 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13561 hardcode_libdir_separator_D
=:
13562 hardcode_shlibpath_var_D
=no
13569 if test -f /usr
/libexec
/ld.so
; then
13570 hardcode_direct_D
=yes
13571 hardcode_shlibpath_var_D
=no
13572 hardcode_direct_absolute_D
=yes
13573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13574 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13575 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13576 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13577 export_dynamic_flag_spec_D
='${wl}-E'
13580 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13581 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13582 hardcode_libdir_flag_spec_D
='-R$libdir'
13585 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13596 hardcode_libdir_flag_spec_D
='-L$libdir'
13597 hardcode_minus_L_D
=yes
13598 allow_undefined_flag_D
=unsupported
13599 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'
13600 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13604 if test "$GCC" = yes; then
13605 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13606 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'
13608 allow_undefined_flag_D
=' -expect_unresolved \*'
13609 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'
13611 archive_cmds_need_lc_D
='no'
13612 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13613 hardcode_libdir_separator_D
=:
13616 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13617 if test "$GCC" = yes; then
13618 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13619 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'
13620 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13622 allow_undefined_flag_D
=' -expect_unresolved \*'
13623 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'
13624 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~
13625 $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'
13627 # Both c and cxx compiler support -rpath directly
13628 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13630 archive_cmds_need_lc_D
='no'
13631 hardcode_libdir_separator_D
=:
13635 no_undefined_flag_D
=' -z defs'
13636 if test "$GCC" = yes; then
13638 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13640 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13642 case `$CC -V 2>&1` in
13645 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13646 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13651 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13657 hardcode_libdir_flag_spec_D
='-R$libdir'
13658 hardcode_shlibpath_var_D
=no
13660 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13662 # The compiler driver will combine and reorder linker options,
13663 # but understands `-z linker_flag'. GCC discards it without `$wl',
13664 # but is careful enough not to reorder.
13665 # Supported since Solaris 2.6 (maybe 2.5.1?)
13666 if test "$GCC" = yes; then
13667 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13669 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13673 link_all_deplibs_D
=yes
13677 if test "x$host_vendor" = xsequent
; then
13678 # Use $CC to link under sequent, because it throws in some extra .o
13679 # files that make .init and .fini sections work.
13680 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13684 hardcode_libdir_flag_spec_D
='-L$libdir'
13685 hardcode_direct_D
=yes
13686 hardcode_minus_L_D
=yes
13687 hardcode_shlibpath_var_D
=no
13691 case $host_vendor in
13693 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13694 hardcode_direct_D
=yes # is this really true???
13697 ## LD is ld it makes a PLAMLIB
13698 ## CC just makes a GrossModule.
13699 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13700 reload_cmds_D
='$CC -r -o $output$reload_objs'
13701 hardcode_direct_D
=no
13704 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13708 runpath_var
='LD_RUN_PATH'
13709 hardcode_shlibpath_var_D
=no
13713 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13714 hardcode_shlibpath_var_D
=no
13715 export_dynamic_flag_spec_D
='-Bexport'
13719 if test -d /usr
/nec
; then
13720 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_shlibpath_var_D
=no
13722 runpath_var
=LD_RUN_PATH
13723 hardcode_runpath_var
=yes
13728 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13729 no_undefined_flag_D
='${wl}-z,text'
13730 archive_cmds_need_lc_D
=no
13731 hardcode_shlibpath_var_D
=no
13732 runpath_var
='LD_RUN_PATH'
13734 if test "$GCC" = yes; then
13735 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13738 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 sysv5
* | sco3.2v5
* | sco5v6
*)
13744 # Note: We can NOT use -z defs as we might desire, because we do not
13745 # link with -lc, and that would cause any symbols used from libc to
13746 # always be unresolved, which means just about no library would
13747 # ever link correctly. If we're not using GNU ld we use -z text
13748 # though, which does catch some bad symbols but isn't as heavy-handed
13750 no_undefined_flag_D
='${wl}-z,text'
13751 allow_undefined_flag_D
='${wl}-z,nodefs'
13752 archive_cmds_need_lc_D
=no
13753 hardcode_shlibpath_var_D
=no
13754 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13755 hardcode_libdir_separator_D
=':'
13756 link_all_deplibs_D
=yes
13757 export_dynamic_flag_spec_D
='${wl}-Bexport'
13758 runpath_var
='LD_RUN_PATH'
13760 if test "$GCC" = yes; then
13761 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_libdir_flag_spec_D
='-L$libdir'
13772 hardcode_shlibpath_var_D
=no
13780 if test x
$host_vendor = xsni
; then
13782 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13783 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13790 $as_echo "$ld_shlibs_D" >&6; }
13791 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13793 with_gnu_ld_D
=$with_gnu_ld
13801 # Do we need to explicitly link libc?
13803 case "x$archive_cmds_need_lc_D" in
13805 # Assume -lc should be added
13806 archive_cmds_need_lc_D
=yes
13808 if test "$enable_shared" = yes && test "$GCC" = yes; then
13809 case $archive_cmds_D in
13811 # FIXME: we may have to deal with multi-command sequences.
13814 # Test whether the compiler implicitly links with -lc since on some
13815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13816 # to ld, don't add -lc before -lgcc.
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13818 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13819 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13820 $as_echo_n "(cached) " >&6
13823 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13826 (eval $ac_compile) 2>&5
13828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13829 test $ac_status = 0; } 2>conftest.err
; then
13832 libobjs
=conftest.
$ac_objext
13834 wl
=$lt_prog_compiler_wl_D
13835 pic_flag
=$lt_prog_compiler_pic_D
13841 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13842 allow_undefined_flag_D
=
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13844 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }
13849 lt_cv_archive_cmds_need_lc_D
=no
13851 lt_cv_archive_cmds_need_lc_D
=yes
13853 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13855 cat conftest.err
1>&5
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13861 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13862 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13933 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13935 if test -n "$hardcode_libdir_flag_spec_D" ||
13936 test -n "$runpath_var_D" ||
13937 test "X$hardcode_automatic_D" = "Xyes" ; then
13939 # We can hardcode non-existent directories.
13940 if test "$hardcode_direct_D" != no
&&
13941 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13942 # have to relink, otherwise we might link with an installed library
13943 # when we should be linking with a yet-to-be-installed one
13944 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13945 test "$hardcode_minus_L_D" != no
; then
13946 # Linking always hardcodes the temporary library directory.
13947 hardcode_action_D
=relink
13949 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13950 hardcode_action_D
=immediate
13953 # We cannot hardcode anything, or else we can only hardcode existing
13955 hardcode_action_D
=unsupported
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13958 $as_echo "$hardcode_action_D" >&6; }
13960 if test "$hardcode_action_D" = relink ||
13961 test "$inherit_rpath_D" = yes; then
13962 # Fast installation is not supported
13963 enable_fast_install
=no
13964 elif test "$shlibpath_overrides_runpath" = yes ||
13965 test "$enable_shared" = no
; then
13966 # Fast installation is not necessary
13967 enable_fast_install
=needless
13979 ac_cpp
='$CPP $CPPFLAGS'
13980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13987 CFLAGS
=$lt_save_CFLAGS
13989 GDCFLAGS
=$gdc_save_DFLAGS
13992 # libtool variables for Phobos shared and position-independent compiles.
13994 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13995 # creating shared objects. Default: -fversion=Shared.
13997 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13998 # creating position-independent objects. This varies with the target
13999 # hardware and operating system, but is often: -fPIC.
14001 # The distinction between pic and shared compilation flags is not present in
14002 # libtool, and so we make it here. How it is handled is that in shared
14003 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14004 # ensure that conditional compilation of shared runtime code is compiled in.
14005 # The original PIC flags are then used in the compilation of every object.
14007 # Why are objects destined for libgphobos.a compiled with -fPIC?
14008 # Because -fPIC is not harmful to use for objects destined for static
14009 # libraries. In addition, using -fPIC will allow the use of static
14010 # libgphobos.a in the creation of other D shared libraries.
14011 if test "$enable_shared" = yes; then
14012 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
14013 phobos_compiler_shared_flag
="-fversion=Shared"
14015 phobos_compiler_pic_flag
=
14016 phobos_compiler_shared_flag
=
14021 # Override the libtool's pic_flag and pic_mode.
14022 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14023 # NB: this impacts --with-pic and --without-pic.
14024 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
14027 # Determine what GCC version number to use in filesystem paths.
14029 get_gcc_base_ver
="cat"
14031 # Check whether --with-gcc-major-version-only was given.
14032 if test "${with_gcc_major_version_only+set}" = set; then :
14033 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
14034 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
14042 # libphobos/libdruntime specific options and feature detection
14044 # These need to be absolute paths, yet at the same time need to
14045 # canonicalize only relative paths, because then amd will not unmount
14046 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14047 libphobos_builddir
=`${PWDCMD-pwd}`
14049 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
14050 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14056 if test ${multilib} = yes; then
14057 multilib_arg
="--enable-multilib"
14063 # Check whether --enable-werror was given.
14064 if test "${enable_werror+set}" = set; then :
14065 enableval
=$enable_werror;
14069 if test "x$enable_werror" = "xyes"; then
14070 WERROR_FLAG
="-Werror"
14074 druntime_target_cpu_parsed
=""
14075 case "$target_cpu" in
14077 druntime_target_cpu_parsed
="aarch64"
14079 arm
*) druntime_target_cpu_parsed
="arm"
14081 mips
*) druntime_target_cpu_parsed
="mips"
14084 druntime_target_cpu_parsed
="powerpc"
14087 druntime_target_cpu_parsed
="x86"
14090 druntime_target_cpu_parsed
="s390x"
14093 druntime_target_cpu_parsed
="s390"
14096 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14097 DRUNTIME_CPU_AARCH64_TRUE
=
14098 DRUNTIME_CPU_AARCH64_FALSE
='#'
14100 DRUNTIME_CPU_AARCH64_TRUE
='#'
14101 DRUNTIME_CPU_AARCH64_FALSE
=
14104 if test "$druntime_target_cpu_parsed" = "arm"; then
14105 DRUNTIME_CPU_ARM_TRUE
=
14106 DRUNTIME_CPU_ARM_FALSE
='#'
14108 DRUNTIME_CPU_ARM_TRUE
='#'
14109 DRUNTIME_CPU_ARM_FALSE
=
14112 if test "$druntime_target_cpu_parsed" = "mips"; then
14113 DRUNTIME_CPU_MIPS_TRUE
=
14114 DRUNTIME_CPU_MIPS_FALSE
='#'
14116 DRUNTIME_CPU_MIPS_TRUE
='#'
14117 DRUNTIME_CPU_MIPS_FALSE
=
14120 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14121 DRUNTIME_CPU_POWERPC_TRUE
=
14122 DRUNTIME_CPU_POWERPC_FALSE
='#'
14124 DRUNTIME_CPU_POWERPC_TRUE
='#'
14125 DRUNTIME_CPU_POWERPC_FALSE
=
14128 if test "$druntime_target_cpu_parsed" = "x86"; then
14129 DRUNTIME_CPU_X86_TRUE
=
14130 DRUNTIME_CPU_X86_FALSE
='#'
14132 DRUNTIME_CPU_X86_TRUE
='#'
14133 DRUNTIME_CPU_X86_FALSE
=
14136 if test "$druntime_target_cpu_parsed" = "s390x"; then
14137 DRUNTIME_CPU_SYSTEMZ_TRUE
=
14138 DRUNTIME_CPU_SYSTEMZ_FALSE
='#'
14140 DRUNTIME_CPU_SYSTEMZ_TRUE
='#'
14141 DRUNTIME_CPU_SYSTEMZ_FALSE
=
14144 if test "$druntime_target_cpu_parsed" = "s390"; then
14145 DRUNTIME_CPU_S390_TRUE
=
14146 DRUNTIME_CPU_S390_FALSE
='#'
14148 DRUNTIME_CPU_S390_TRUE
='#'
14149 DRUNTIME_CPU_S390_FALSE
=
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14155 $as_echo_n "checking for target OS... " >&6; }
14156 if ${druntime_cv_target_os+:} false
; then :
14157 $as_echo_n "(cached) " >&6
14159 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14162 $as_echo "$druntime_cv_target_os" >&6; }
14163 if test -z "$druntime_cv_target_os"; then :
14164 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14170 druntime_target_os_parsed
=""
14171 case "$druntime_cv_target_os" in
14172 aix
*) druntime_target_os_parsed
="aix"
14175 druntime_target_os_parsed
="android"
14177 darwin
*) druntime_target_os_parsed
="darwin"
14180 druntime_target_os_parsed
="dragonflybsd"
14182 freebsd
*|k
*bsd
*-gnu)
14183 druntime_target_os_parsed
="freebsd"
14186 druntime_target_os_parsed
="openbsd"
14189 druntime_target_os_parsed
="netbsd"
14191 linux
*) druntime_target_os_parsed
="linux"
14193 mingw
*) druntime_target_os_parsed
="mingw"
14195 *solaris
*) druntime_target_os_parsed
="solaris"
14197 if test "$druntime_target_os_parsed" = "aix"; then
14198 DRUNTIME_OS_AIX_TRUE
=
14199 DRUNTIME_OS_AIX_FALSE
='#'
14201 DRUNTIME_OS_AIX_TRUE
='#'
14202 DRUNTIME_OS_AIX_FALSE
=
14205 if test "$druntime_target_os_parsed" = "android"; then
14206 DRUNTIME_OS_ANDROID_TRUE
=
14207 DRUNTIME_OS_ANDROID_FALSE
='#'
14209 DRUNTIME_OS_ANDROID_TRUE
='#'
14210 DRUNTIME_OS_ANDROID_FALSE
=
14213 if test "$druntime_target_os_parsed" = "darwin"; then
14214 DRUNTIME_OS_DARWIN_TRUE
=
14215 DRUNTIME_OS_DARWIN_FALSE
='#'
14217 DRUNTIME_OS_DARWIN_TRUE
='#'
14218 DRUNTIME_OS_DARWIN_FALSE
=
14221 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14222 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14223 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14225 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14226 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14229 if test "$druntime_target_os_parsed" = "freebsd"; then
14230 DRUNTIME_OS_FREEBSD_TRUE
=
14231 DRUNTIME_OS_FREEBSD_FALSE
='#'
14233 DRUNTIME_OS_FREEBSD_TRUE
='#'
14234 DRUNTIME_OS_FREEBSD_FALSE
=
14237 if test "$druntime_target_os_parsed" = "netbsd"; then
14238 DRUNTIME_OS_NETBSD_TRUE
=
14239 DRUNTIME_OS_NETBSD_FALSE
='#'
14241 DRUNTIME_OS_NETBSD_TRUE
='#'
14242 DRUNTIME_OS_NETBSD_FALSE
=
14245 if test "$druntime_target_os_parsed" = "openbsd"; then
14246 DRUNTIME_OS_OPENBSD_TRUE
=
14247 DRUNTIME_OS_OPENBSD_FALSE
='#'
14249 DRUNTIME_OS_OPENBSD_TRUE
='#'
14250 DRUNTIME_OS_OPENBSD_FALSE
=
14253 if test "$druntime_target_os_parsed" = "linux"; then
14254 DRUNTIME_OS_LINUX_TRUE
=
14255 DRUNTIME_OS_LINUX_FALSE
='#'
14257 DRUNTIME_OS_LINUX_TRUE
='#'
14258 DRUNTIME_OS_LINUX_FALSE
=
14261 if test "$druntime_target_os_parsed" = "mingw"; then
14262 DRUNTIME_OS_MINGW_TRUE
=
14263 DRUNTIME_OS_MINGW_FALSE
='#'
14265 DRUNTIME_OS_MINGW_TRUE
='#'
14266 DRUNTIME_OS_MINGW_FALSE
=
14269 if test "$druntime_target_os_parsed" = "solaris"; then
14270 DRUNTIME_OS_SOLARIS_TRUE
=
14271 DRUNTIME_OS_SOLARIS_FALSE
='#'
14273 DRUNTIME_OS_SOLARIS_TRUE
='#'
14274 DRUNTIME_OS_SOLARIS_FALSE
=
14278 druntime_target_posix
="no"
14279 case "$druntime_cv_target_os" in
14280 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*)
14281 druntime_target_posix
="yes"
14284 if test "$druntime_target_posix" = "yes"; then
14285 DRUNTIME_OS_POSIX_TRUE
=
14286 DRUNTIME_OS_POSIX_FALSE
='#'
14288 DRUNTIME_OS_POSIX_TRUE
='#'
14289 DRUNTIME_OS_POSIX_FALSE
=
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14296 $as_echo_n "checking for thread model used by GDC... " >&6; }
14297 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14299 $as_echo "$d_thread_model" >&6; }
14301 # Map from thread model to thread interface.
14303 case $d_thread_model in
14304 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14305 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14306 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14307 single
) DCFG_THREAD_MODEL
="Single" ;;
14308 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14309 # TODO: These targets need porting.
14310 dce|mipssde|rtems|tpf|vxworks
)
14311 DCFG_THREAD_MODEL
="Single" ;;
14312 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14319 ac_cpp
='$CPP $CPPFLAGS'
14320 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14321 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14322 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14325 $as_echo_n "checking for ARM unwinder... " >&6; }
14326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 #include <unwind.h>
14333 #if __ARM_EABI_UNWINDER__
14341 if ac_fn_c_try_compile
"$LINENO"; then :
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14344 DCFG_ARM_EABI_UNWINDER
=false
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14347 $as_echo "yes" >&6; }
14348 DCFG_ARM_EABI_UNWINDER
=true
14350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14352 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14353 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14354 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14356 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14357 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14361 ac_cpp
='$CPP $CPPFLAGS'
14362 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14363 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14364 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14375 $as_echo_n "checking for minfo section bracketing... " >&6; }
14376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14379 void* module_info_ptr __attribute__((section ("minfo")));
14380 extern void* __start_minfo __attribute__((visibility ("hidden")));
14381 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14385 // Never run, just to prevent compiler from optimizing access
14386 return &__start_minfo == &__stop_minfo;
14390 if ac_fn_c_try_link
"$LINENO"; then :
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14392 $as_echo "yes" >&6; }
14393 DCFG_MINFO_BRACKETING
=true
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14397 DCFG_MINFO_BRACKETING
=false
14399 rm -f core conftest.err conftest.
$ac_objext \
14400 conftest
$ac_exeext conftest.
$ac_ext
14402 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14403 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14404 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14406 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14407 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14411 ac_cpp
='$CPP $CPPFLAGS'
14412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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
14424 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>
14426 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14427 DCFG_DLPI_TLS_MODID
=true
14429 DCFG_DLPI_TLS_MODID
=false
14434 ac_cpp
='$CPP $CPPFLAGS'
14435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14442 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14443 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14444 # relocs. Work around by disabling TLS transitions. Not necessary
14445 # on 32-bit x86, but cannot be distinguished reliably in specs.
14446 druntime_ld_prog
=`$CC -print-prog-name=ld`
14448 druntime_ld_relax_transtls
=no
14449 if test -n "$druntime_ld_prog" \
14450 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14451 druntime_ld_gld
=yes
14453 echo 'int main (void) { return 0; }' > conftest.c
14454 save_LDFLAGS
="$LDFLAGS"
14455 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14456 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14457 druntime_ld_relax_transtls
=yes
14459 LDFLAGS
="$save_LDFLAGS"
14460 rm -f conftest.c conftest
14462 if test "$druntime_ld_relax_transtls" = "yes"; then
14463 OS_LINK_SPEC
='-z relax=transtls'
14471 ac_cpp
='$CPP $CPPFLAGS'
14472 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14476 DCFG_HAVE_QSORT_R
=false
14477 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14478 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14479 DCFG_HAVE_QSORT_R
=true
14484 ac_cpp
='$CPP $CPPFLAGS'
14485 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14486 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14487 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14493 gdc_save_DFLAGS
=$GDCFLAGS
14494 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14497 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14498 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499 ac_compiler_gnu
=yes
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14502 $as_echo_n "checking for library containing malloc... " >&6; }
14503 if ${ac_cv_search_malloc+:} false
; then :
14504 $as_echo_n "(cached) " >&6
14506 ac_func_search_save_LIBS
=$LIBS
14507 cat > conftest.
$ac_ext <<_ACEOF
14509 extern(C) int malloc();
14511 extern(C) int main() {
14512 malloc(); return 0;
14515 for ac_lib
in '' c
; do
14516 if test -z "$ac_lib"; then
14517 ac_res
="none required"
14520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14522 if ac_fn_d_try_link
"$LINENO"; then :
14523 ac_cv_search_malloc
=$ac_res
14525 rm -f core conftest.err conftest.
$ac_objext \
14527 if ${ac_cv_search_malloc+:} false
; then :
14531 if ${ac_cv_search_malloc+:} false
; then :
14534 ac_cv_search_malloc
=no
14536 rm conftest.
$ac_ext
14537 LIBS
=$ac_func_search_save_LIBS
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14540 $as_echo "$ac_cv_search_malloc" >&6; }
14541 ac_res
=$ac_cv_search_malloc
14542 if test "$ac_res" != no
; then :
14543 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14548 $as_echo_n "checking for library containing pthread_create... " >&6; }
14549 if ${ac_cv_search_pthread_create+:} false
; then :
14550 $as_echo_n "(cached) " >&6
14552 ac_func_search_save_LIBS
=$LIBS
14553 cat > conftest.
$ac_ext <<_ACEOF
14555 extern(C) int pthread_create();
14557 extern(C) int main() {
14558 pthread_create(); return 0;
14561 for ac_lib
in '' pthread
; do
14562 if test -z "$ac_lib"; then
14563 ac_res
="none required"
14566 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14568 if ac_fn_d_try_link
"$LINENO"; then :
14569 ac_cv_search_pthread_create
=$ac_res
14571 rm -f core conftest.err conftest.
$ac_objext \
14573 if ${ac_cv_search_pthread_create+:} false
; then :
14577 if ${ac_cv_search_pthread_create+:} false
; then :
14580 ac_cv_search_pthread_create
=no
14582 rm conftest.
$ac_ext
14583 LIBS
=$ac_func_search_save_LIBS
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14586 $as_echo "$ac_cv_search_pthread_create" >&6; }
14587 ac_res
=$ac_cv_search_pthread_create
14588 if test "$ac_res" != no
; then :
14589 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14594 $as_echo_n "checking for library containing cosf... " >&6; }
14595 if ${ac_cv_search_cosf+:} false
; then :
14596 $as_echo_n "(cached) " >&6
14598 ac_func_search_save_LIBS
=$LIBS
14599 cat > conftest.
$ac_ext <<_ACEOF
14601 extern(C) int cosf();
14603 extern(C) int main() {
14607 for ac_lib
in '' m
; do
14608 if test -z "$ac_lib"; then
14609 ac_res
="none required"
14612 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14614 if ac_fn_d_try_link
"$LINENO"; then :
14615 ac_cv_search_cosf
=$ac_res
14617 rm -f core conftest.err conftest.
$ac_objext \
14619 if ${ac_cv_search_cosf+:} false
; then :
14623 if ${ac_cv_search_cosf+:} false
; then :
14626 ac_cv_search_cosf
=no
14628 rm conftest.
$ac_ext
14629 LIBS
=$ac_func_search_save_LIBS
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14632 $as_echo "$ac_cv_search_cosf" >&6; }
14633 ac_res
=$ac_cv_search_cosf
14634 if test "$ac_res" != no
; then :
14635 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14640 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14641 if ${ac_cv_search_clock_gettime+:} false
; then :
14642 $as_echo_n "(cached) " >&6
14644 ac_func_search_save_LIBS
=$LIBS
14645 cat > conftest.
$ac_ext <<_ACEOF
14647 extern(C) int clock_gettime();
14649 extern(C) int main() {
14650 clock_gettime(); return 0;
14653 for ac_lib
in '' rt
; do
14654 if test -z "$ac_lib"; then
14655 ac_res
="none required"
14658 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14660 if ac_fn_d_try_link
"$LINENO"; then :
14661 ac_cv_search_clock_gettime
=$ac_res
14663 rm -f core conftest.err conftest.
$ac_objext \
14665 if ${ac_cv_search_clock_gettime+:} false
; then :
14669 if ${ac_cv_search_clock_gettime+:} false
; then :
14672 ac_cv_search_clock_gettime
=no
14674 rm conftest.
$ac_ext
14675 LIBS
=$ac_func_search_save_LIBS
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14678 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14679 ac_res
=$ac_cv_search_clock_gettime
14680 if test "$ac_res" != no
; then :
14681 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14686 # This checks to see if the host supports the compiler-generated builtins
14687 # for atomic operations for various integral sizes. Note, this is intended
14688 # to be an all-or-nothing switch, so all the atomic operations that are
14689 # used should be checked.
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14691 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14692 if ${druntime_cv_atomic_byte+:} false
; then :
14693 $as_echo_n "(cached) " >&6
14696 cat > conftest.
$ac_ext <<_ACEOF
14698 import gcc.builtins;
14700 extern(C) int main() {
14704 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14705 __atomic_load_1(&c1, 5);
14706 __atomic_store_1(&c1, c2, 5);
14711 if ac_fn_d_try_link
"$LINENO"; then :
14712 druntime_cv_atomic_byte
=yes
14714 druntime_cv_atomic_byte
=no
14716 rm -f core conftest.err conftest.
$ac_objext \
14717 conftest
$ac_exeext conftest.
$ac_ext
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14722 $as_echo "$druntime_cv_atomic_byte" >&6; }
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14725 $as_echo_n "checking for atomic builtins for short... " >&6; }
14726 if ${druntime_cv_atomic_short+:} false
; then :
14727 $as_echo_n "(cached) " >&6
14730 cat > conftest.
$ac_ext <<_ACEOF
14732 import gcc.builtins;
14734 extern(C) int main() {
14738 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14739 __atomic_load_2(&c1, 5);
14740 __atomic_store_2(&c1, c2, 5);
14745 if ac_fn_d_try_link
"$LINENO"; then :
14746 druntime_cv_atomic_short
=yes
14748 druntime_cv_atomic_short
=no
14750 rm -f core conftest.err conftest.
$ac_objext \
14751 conftest
$ac_exeext conftest.
$ac_ext
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14756 $as_echo "$druntime_cv_atomic_short" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14759 $as_echo_n "checking for atomic builtins for int... " >&6; }
14760 if ${druntime_cv_atomic_int+:} false
; then :
14761 $as_echo_n "(cached) " >&6
14764 cat > conftest.
$ac_ext <<_ACEOF
14766 import gcc.builtins;
14768 extern(C) int main() {
14772 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14773 __atomic_load_4(&c1, 5);
14774 __atomic_store_4(&c1, c2, 5);
14779 if ac_fn_d_try_link
"$LINENO"; then :
14780 druntime_cv_atomic_int
=yes
14782 druntime_cv_atomic_int
=no
14784 rm -f core conftest.err conftest.
$ac_objext \
14785 conftest
$ac_exeext conftest.
$ac_ext
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14790 $as_echo "$druntime_cv_atomic_int" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14793 $as_echo_n "checking for atomic builtins for long... " >&6; }
14794 if ${druntime_cv_atomic_long+:} false
; then :
14795 $as_echo_n "(cached) " >&6
14798 cat > conftest.
$ac_ext <<_ACEOF
14800 import gcc.builtins;
14802 extern(C) int main() {
14806 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14807 __atomic_load_8(&c1, 5);
14808 __atomic_store_8(&c1, c2, 5);
14813 if ac_fn_d_try_link
"$LINENO"; then :
14814 druntime_cv_atomic_long
=yes
14816 druntime_cv_atomic_long
=no
14818 rm -f core conftest.err conftest.
$ac_objext \
14819 conftest
$ac_exeext conftest.
$ac_ext
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14824 $as_echo "$druntime_cv_atomic_long" >&6; }
14826 # Have atomic builtin support if all but the long test above passes.
14827 DCFG_HAVE_ATOMIC_BUILTINS
=false
14828 if test "$druntime_cv_atomic_byte" = yes \
14829 && test "$druntime_cv_atomic_short" = yes \
14830 && test "$druntime_cv_atomic_int" = yes; then \
14831 DCFG_HAVE_ATOMIC_BUILTINS
=true
14834 # Have 64-bit atomic support if the long test above passes.
14835 DCFG_HAVE_64BIT_ATOMICS
=false
14836 if test "$druntime_cv_atomic_long" = yes; then
14837 DCFG_HAVE_64BIT_ATOMICS
=true
14844 ac_cpp
='$CPP $CPPFLAGS'
14845 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14850 GDCFLAGS
=$gdc_save_DFLAGS
14855 # Check whether --with-libatomic was given.
14856 if test "${with_libatomic+set}" = set; then :
14857 withval
=$with_libatomic;
14861 DCFG_HAVE_LIBATOMIC
=false
14863 if test "x$with_libatomic" != "xno"; then :
14865 DCFG_HAVE_LIBATOMIC
=true
14866 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14871 $as_echo_n "checking for libatomic... " >&6; }
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14873 $as_echo "disabled" >&6; }
14882 ac_cpp
='$CPP $CPPFLAGS'
14883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14887 BACKTRACE_SUPPORTED
=false
14888 BACKTRACE_USES_MALLOC
=false
14889 BACKTRACE_SUPPORTS_THREADS
=false
14893 # Check whether --with-libbacktrace was given.
14894 if test "${with_libbacktrace+set}" = set; then :
14895 withval
=$with_libbacktrace;
14899 if test "x$with_libbacktrace" != "xno"; then :
14901 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14903 gdc_save_CPPFLAGS
=$CPPFLAGS
14904 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
14906 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14907 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14908 have_libbacktrace_h
=true
14910 have_libbacktrace_h
=false
14915 if $have_libbacktrace_h; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14917 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14919 /* end confdefs.h. */
14921 #include <backtrace-supported.h>
14922 #if BACKTRACE_SUPPORTED
14923 FOUND_LIBBACKTRACE_RESULT_GDC
14927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14928 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14929 BACKTRACE_SUPPORTED
=true
14931 BACKTRACE_SUPPORTED
=false
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14936 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14939 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14943 #include <backtrace-supported.h>
14944 #if BACKTRACE_USES_MALLOC
14945 FOUND_LIBBACKTRACE_RESULT_GDC
14949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14951 BACKTRACE_USES_MALLOC
=true
14953 BACKTRACE_USES_MALLOC
=false
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14958 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14961 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14965 #include <backtrace-supported.h>
14966 #if BACKTRACE_SUPPORTS_THREADS
14967 FOUND_LIBBACKTRACE_RESULT_GDC
14971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14972 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14973 BACKTRACE_SUPPORTS_THREADS
=true
14975 BACKTRACE_SUPPORTS_THREADS
=false
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14980 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14982 CPPFLAGS
=$gdc_save_CPPFLAGS
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14987 $as_echo_n "checking for libbacktrace... " >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14989 $as_echo "disabled" >&6; }
14998 ac_cpp
='$CPP $CPPFLAGS'
14999 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15000 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15001 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15005 # Libtool has already checked this, so re-use the inferred dlopen lib.
15006 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15008 LIBS
="$LIBS $lt_cv_dlopen_libs"
15013 druntime_check_both
=no
15014 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15015 if test "x$ac_cv_func_connect" = xyes
; then :
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15019 $as_echo_n "checking for connect in -lsocket... " >&6; }
15020 if ${ac_cv_lib_socket_connect+:} false
; then :
15021 $as_echo_n "(cached) " >&6
15023 ac_check_lib_save_LIBS
=$LIBS
15024 LIBS
="-lsocket $LIBS"
15025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15043 if ac_fn_c_try_link
"$LINENO"; then :
15044 ac_cv_lib_socket_connect
=yes
15046 ac_cv_lib_socket_connect
=no
15048 rm -f core conftest.err conftest.
$ac_objext \
15049 conftest
$ac_exeext conftest.
$ac_ext
15050 LIBS
=$ac_check_lib_save_LIBS
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15053 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15054 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
15055 LIBS
="$LIBS -lsocket"
15057 druntime_check_both
=yes
15062 if test "$druntime_check_both" = "yes"; then
15063 druntime_old_libs
=$LIBS
15064 LIBS
="$LIBS -lsocket -lnsl"
15065 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15066 if test "x$ac_cv_func_accept" = xyes
; then :
15069 LIBS
=$druntime_old_libs
15073 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15074 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15078 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15079 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
15080 $as_echo_n "(cached) " >&6
15082 ac_check_lib_save_LIBS
=$LIBS
15084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15087 /* Override any GCC internal prototype to avoid an error.
15088 Use char because int might match the return type of a GCC
15089 builtin and then its argument prototype would still apply. */
15093 char gethostbyname ();
15097 return gethostbyname ();
15102 if ac_fn_c_try_link
"$LINENO"; then :
15103 ac_cv_lib_nsl_gethostbyname
=yes
15105 ac_cv_lib_nsl_gethostbyname
=no
15107 rm -f core conftest.err conftest.
$ac_objext \
15108 conftest
$ac_exeext conftest.
$ac_ext
15109 LIBS
=$ac_check_lib_save_LIBS
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15112 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15113 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
15121 # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15122 # "yes" for targets that have 'version = AsmExternal'.
15123 druntime_fiber_asm_external
=no
15124 case "$target_cpu" in
15127 i
[34567]86|x86_64 | \
15129 druntime_fiber_asm_external
=yes
15132 if test "$druntime_fiber_asm_external" = no
; then
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15134 $as_echo_n "checking for library containing swapcontext... " >&6; }
15135 if ${ac_cv_search_swapcontext+:} false
; then :
15136 $as_echo_n "(cached) " >&6
15138 ac_func_search_save_LIBS
=$LIBS
15139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15142 /* Override any GCC internal prototype to avoid an error.
15143 Use char because int might match the return type of a GCC
15144 builtin and then its argument prototype would still apply. */
15148 char swapcontext ();
15152 return swapcontext ();
15157 for ac_lib
in '' c ucontext
; do
15158 if test -z "$ac_lib"; then
15159 ac_res
="none required"
15162 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15164 if ac_fn_c_try_link
"$LINENO"; then :
15165 ac_cv_search_swapcontext
=$ac_res
15167 rm -f core conftest.err conftest.
$ac_objext \
15169 if ${ac_cv_search_swapcontext+:} false
; then :
15173 if ${ac_cv_search_swapcontext+:} false
; then :
15176 ac_cv_search_swapcontext
=no
15178 rm conftest.
$ac_ext
15179 LIBS
=$ac_func_search_save_LIBS
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15182 $as_echo "$ac_cv_search_swapcontext" >&6; }
15183 ac_res
=$ac_cv_search_swapcontext
15184 if test "$ac_res" != no
; then :
15185 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15188 as_fn_error $?
"swapcontext required but not found" "$LINENO" 5
15195 ac_cpp
='$CPP $CPPFLAGS'
15196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15203 # Check whether --with-target-system-zlib was given.
15204 if test "${with_target_system_zlib+set}" = set; then :
15205 withval
=$with_target_system_zlib;
15207 with_target_system_zlib
=no
15211 case "$with_target_system_zlib" in
15213 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15217 $as_echo_n "checking for system zlib... " >&6; }
15220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15226 gzopen("none", "rb")
15231 if ac_fn_c_try_link
"$LINENO"; then :
15233 if test "$cross_compiling" = yes; then :
15234 system_zlib_found
=no
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15242 gzFile file = gzopen("none", "rb");
15247 if ac_fn_c_try_run
"$LINENO"; then :
15248 system_zlib_found
=yes
15250 system_zlib_found
=no
15252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15253 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15258 system_zlib_found
=no
15260 rm -f core conftest.err conftest.
$ac_objext \
15261 conftest
$ac_exeext conftest.
$ac_ext
15264 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15266 $as_echo "found" >&6; }
15268 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15269 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15272 $as_echo "just compiled" >&6; }
15273 LIBZ
=..
/..
/zlib
/libz_convenience.la
15278 ac_cpp
='$CPP $CPPFLAGS'
15279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15288 $as_echo_n "checking D GCC version... " >&6; }
15289 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15291 $as_echo "$gcc_version" >&6; }
15295 # Check whether --with-cross-host was given.
15296 if test "${with_cross_host+set}" = set; then :
15297 withval
=$with_cross_host;
15301 libphobos_toolexecdir
=no
15302 libphobos_toolexeclibdir
=no
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15305 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15306 # Check whether --enable-version-specific-runtime-libs was given.
15307 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15308 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15309 yes) version_specific_libs
=yes ;;
15310 no
) version_specific_libs
=no
;;
15311 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15314 version_specific_libs
=no
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15318 $as_echo "$version_specific_libs" >&6; }
15321 # Check whether --with-toolexeclibdir was given.
15322 if test "${with_toolexeclibdir+set}" = set; then :
15323 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15327 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
15331 with_toolexeclibdir
=no
15336 # Version-specific runtime libs processing.
15337 if test $version_specific_libs = yes; then
15338 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15339 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15341 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15342 # Install a library built with a cross compiler in tooldir, not libdir.
15343 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15344 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15345 case ${with_toolexeclibdir} in
15347 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15350 libphobos_toolexeclibdir
=${with_toolexeclibdir}
15354 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15355 libphobos_toolexeclibdir
='${libdir}'
15357 multi_os_directory
=`$GDC -print-multi-os-directory`
15358 case $multi_os_directory in
15359 .
) ;; # Avoid trailing /.
15360 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15366 # Default case for install directory for D sources files.
15367 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15372 $as_echo_n "checking for --enable-libphobos... " >&6; }
15373 # Check whether --enable-libphobos was given.
15374 if test "${enable_libphobos+set}" = set; then :
15375 enableval
=$enable_libphobos;
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15379 $as_echo "$enable_libphobos" >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15382 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15384 # Check whether --with-libphobos-druntime-only was given.
15385 if test "${with_libphobos_druntime_only+set}" = set; then :
15386 withval
=$with_libphobos_druntime_only;
15388 with_libphobos_druntime_only
=auto
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15392 $as_echo "$with_libphobos_druntime_only" >&6; }
15394 case "$with_libphobos_druntime_only" in
15396 *) as_fn_error $?
"Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15399 # See if supported.
15400 unset LIBPHOBOS_SUPPORTED
15401 unset LIBDRUNTIME_ONLY
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15403 $as_echo_n "checking for host support for libphobos... " >&6; }
15404 .
${srcdir}/configure.tgt
15406 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15407 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15408 # relatively low linelength limit.
15409 as_prog
=`$CC -print-prog-name=as`
15410 if test -n "$as_prog" && $as_prog -v /dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
15411 druntime_cv_use_gas
=yes;
15413 druntime_cv_use_gas
=no
;
15416 if test x
$druntime_cv_use_gas = xno
; then
15417 LIBPHOBOS_SUPPORTED
=no
15419 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15420 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15421 LIBPHOBOS_SUPPORTED
=no
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15426 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15428 # Decide if it's usable.
15429 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15430 *:no
) use_libphobos
=no
;;
15431 *:yes) use_libphobos
=yes ;;
15432 yes:*) use_libphobos
=yes ;;
15433 *:*) use_libphobos
=no
;;
15435 if test x
$use_libphobos = xyes
; then
15436 ENABLE_LIBPHOBOS_TRUE
=
15437 ENABLE_LIBPHOBOS_FALSE
='#'
15439 ENABLE_LIBPHOBOS_TRUE
='#'
15440 ENABLE_LIBPHOBOS_FALSE
=
15444 # Decide if only libdruntime should be built.
15445 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15446 *:no
) only_libdruntime
=no
;;
15447 *:yes) only_libdruntime
=yes ;;
15448 yes:*) only_libdruntime
=yes ;;
15449 *:*) only_libdruntime
=no
;;
15451 if test x
$only_libdruntime = xyes
; then
15452 ENABLE_LIBDRUNTIME_ONLY_TRUE
=
15453 ENABLE_LIBDRUNTIME_ONLY_FALSE
='#'
15455 ENABLE_LIBDRUNTIME_ONLY_TRUE
='#'
15456 ENABLE_LIBDRUNTIME_ONLY_FALSE
=
15460 # Enable expensive internal checks
15461 # Check whether --enable-libphobos-checking was given.
15462 if test "${enable_libphobos_checking+set}" = set; then :
15463 enableval
=$enable_libphobos_checking; ac_checking_flags
="${enableval}"
15465 ac_checking_flags
=release
15468 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
15469 for check
in release
$ac_checking_flags
15472 # These set all the flags to specific states
15473 yes|all
) RELEASE_FLAG
="-fno-release" ; ASSERT_FLAG
= ;;
15474 no|none|release
) RELEASE_FLAG
="-frelease" ; ASSERT_FLAG
= ;;
15475 # These enable particular checks
15476 assert
) ASSERT_FLAG
="-fassert" ;;
15482 CHECKING_DFLAGS
="$RELEASE_FLAG $ASSERT_FLAG"
15485 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15486 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15487 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15489 DRTSTUFF_SPEC
=/dev
/null
15493 # Add dependencies for libgphobos.spec file
15494 SPEC_PHOBOS_DEPS
="$LIBS"
15497 # Libdruntime / phobos soname version
15498 libtool_VERSION
=1:0:0
15501 # Set default flags (after DRUNTIME_WERROR!)
15502 if test -z "$GDCFLAGS"; then
15507 WARN_DFLAGS
="-Wall $WERROR_FLAG"
15510 # Sanity check for the cross-compilation case:
15511 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15512 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15515 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15520 ac_config_files
="$ac_config_files Makefile"
15523 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15525 ac_config_files
="$ac_config_files src/libgphobos.spec"
15527 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15530 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15531 # that multilib installs will end up installed in the correct place.
15532 # The testsuite needs it for multilib-aware ABI baseline files.
15533 # To work around this not being passed down from config-ml.in ->
15534 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15535 # append it here. Only modify Makefiles that have just been created.
15537 # Also, get rid of this simulated-VPATH thing that automake does.
15538 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15541 cat >confcache
<<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, we kill variables containing newlines.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15563 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val
=\$
$ac_var
15568 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15572 _ | IFS | as_nl
) ;; #(
15573 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space
=\
*)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15603 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15604 if test -w "$cache_file"; then
15605 if test "x$cache_file" != "x/dev/null"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607 $as_echo "$as_me: updating cache $cache_file" >&6;}
15608 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15609 cat confcache
>"$cache_file"
15611 case $cache_file in #(
15613 mv -f confcache
"$cache_file"$$
&&
15614 mv -f "$cache_file"$$
"$cache_file" ;; #(
15616 mv -f confcache
"$cache_file" ;;
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15627 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15628 # Let make expand exec_prefix.
15629 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15631 DEFS
=-DHAVE_CONFIG_H
15636 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15637 # 1. Remove the extension, and $U if already installed.
15638 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15639 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15641 # will be set to the directory where LIBOBJS objects are built.
15642 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15643 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15645 LIBOBJS
=$ac_libobjs
15647 LTLIBOBJS
=$ac_ltlibobjs
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15652 if test -n "$am_sleep_pid"; then
15653 # Hide warnings about reused PIDs.
15654 wait $am_sleep_pid 2>/dev
/null
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15657 $as_echo "done" >&6; }
15658 if test -n "$EXEEXT"; then
15660 am__EXEEXT_FALSE
='#'
15662 am__EXEEXT_TRUE
='#'
15666 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15667 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15671 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15675 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15679 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15683 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15687 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15690 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15691 as_fn_error $?
"conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15694 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15695 as_fn_error $?
"conditional \"DRUNTIME_CPU_S390\" was never defined.
15696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15698 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15699 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15702 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15703 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15706 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15707 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15710 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15711 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15714 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15715 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15719 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15723 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15727 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15731 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15734 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15735 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15738 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15739 as_fn_error $?
"conditional \"DRUNTIME_OS_POSIX\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15742 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15743 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15746 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15747 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15750 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15751 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
15752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15754 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15755 as_fn_error $?
"conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 : "${CONFIG_STATUS=./config.status}"
15761 ac_clean_files_save
=$ac_clean_files
15762 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15764 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15768 # Generated by $as_me.
15769 # Run this file to recreate the current configuration.
15770 # Compiler output produced by configure, useful for debugging
15771 # configure, is in config.log if it exists.
15774 ac_cs_recheck=false
15777 SHELL=\${CONFIG_SHELL-$SHELL}
15780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15781 ## -------------------- ##
15782 ## M4sh Initialization. ##
15783 ## -------------------- ##
15785 # Be more Bourne compatible
15786 DUALCASE
=1; export DUALCASE
# for MKS sh
15787 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15790 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15791 # is contrary to our usage. Disable this feature.
15792 alias -g '${1+"$@"}'='"$@"'
15793 setopt NO_GLOB_SUBST
15795 case `(set -o) 2>/dev/null` in #(
15807 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15808 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15811 # Prefer a ksh shell builtin over an external printf program on Solaris,
15812 # but without wasting forks for bash or zsh.
15813 if test -z "$BASH_VERSION$ZSH_VERSION" \
15814 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15815 as_echo='print
-r --'
15816 as_echo_n='print
-rn --'
15817 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15818 as_echo='printf %s
\n'
15819 as_echo_n='printf %s
'
15821 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15822 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15823 as_echo_n='/usr
/ucb
/echo -n'
15825 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15826 as_echo_n_body='eval
15830 expr "X$arg" : "X\\(.*\\)$as_nl";
15831 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15833 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15835 export as_echo_n_body
15836 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15838 export as_echo_body
15839 as_echo='sh
-c $as_echo_body as_echo
'
15842 # The user is always right.
15843 if test "${PATH_SEPARATOR+set}" != set; then
15845 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15846 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15853 # We need space, tab and new line, in precisely that order. Quoting is
15854 # there to prevent editors from complaining about space-tab.
15855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15856 # splitting by setting IFS to empty value.)
15859 # Find who we are. Look in the path if we contain no directory separator.
15862 *[\\/]* ) as_myself=$0 ;;
15863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864 for as_dir in $PATH
15867 test -z "$as_dir" && as_dir=.
15868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15874 # We did not find ourselves, most probably we were run as `sh COMMAND'
15875 # in which case we are not to be found in the path.
15876 if test "x$as_myself" = x
; then
15879 if test ! -f "$as_myself"; then
15880 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15884 # Unset variables that we do not need and which cause bugs (e.g. in
15885 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15886 # suppresses any "Segmentation fault" message there. '((' could
15887 # trigger a bug in pdksh 5.2.14.
15888 for as_var
in BASH_ENV ENV MAIL MAILPATH
15889 do eval test x\
${$as_var+set} = xset \
15890 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15903 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15906 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15907 # ----------------------------------------
15908 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15909 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15910 # script with STATUS, using 1 if that was 0.
15913 as_status
=$1; test $as_status -eq 0 && as_status
=1
15915 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15916 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15918 $as_echo "$as_me: error: $2" >&2
15919 as_fn_exit
$as_status
15923 # as_fn_set_status STATUS
15924 # -----------------------
15925 # Set $? to STATUS, without forking.
15926 as_fn_set_status
()
15929 } # as_fn_set_status
15931 # as_fn_exit STATUS
15932 # -----------------
15933 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15937 as_fn_set_status
$1
15943 # Portably unset VAR.
15946 { eval $1=; unset $1;}
15948 as_unset
=as_fn_unset
15949 # as_fn_append VAR VALUE
15950 # ----------------------
15951 # Append the text in VALUE to the end of the definition contained in VAR. Take
15952 # advantage of any shell optimizations that allow amortized linear growth over
15953 # repeated appends, instead of the typical quadratic growth present in naive
15955 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15956 eval 'as_fn_append ()
15967 # as_fn_arith ARG...
15968 # ------------------
15969 # Perform arithmetic evaluation on the ARGs, and store the result in the
15970 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15971 # must be portable across $(()) and expr.
15972 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15973 eval 'as_fn_arith ()
15980 as_val
=`expr "$@" || test $? -eq 1`
15985 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15986 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15992 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15993 as_basename
=basename
15998 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16004 as_me
=`$as_basename -- "$0" ||
16005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16006 X"$0" : 'X\(//\)$' \| \
16007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16009 sed '/^.*\/\([^/][^/]*\)\/*$/{
16023 # Avoid depending upon Character Ranges.
16024 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16025 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16026 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16027 as_cr_digits
='0123456789'
16028 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16030 ECHO_C
= ECHO_N
= ECHO_T
=
16031 case `echo -n x` in #(((((
16033 case `echo 'xy\c'` in
16034 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16036 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16043 rm -f conf$$ conf$$.exe conf$$.
file
16044 if test -d conf$$.dir
; then
16045 rm -f conf$$.dir
/conf$$.
file
16048 mkdir conf$$.dir
2>/dev
/null
16050 if (echo >conf$$.
file) 2>/dev
/null
; then
16051 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16053 # ... but there are two gotchas:
16054 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16055 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16056 # In both cases, we have to default to `cp -pR'.
16057 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16059 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16067 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16068 rmdir conf$$.dir
2>/dev
/null
16073 # Create "$as_dir" as a directory, including parents if necessary.
16078 -*) as_dir
=.
/$as_dir;;
16080 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16084 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16085 *) as_qdir
=$as_dir;;
16087 as_dirs
="'$as_qdir' $as_dirs"
16088 as_dir
=`$as_dirname -- "$as_dir" ||
16089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16090 X"$as_dir" : 'X\(//\)[^/]' \| \
16091 X"$as_dir" : 'X\(//\)$' \| \
16092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16093 $as_echo X"$as_dir" |
16094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16098 /^X\(\/\/\)[^/].*/{
16111 test -d "$as_dir" && break
16113 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16114 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16118 if mkdir
-p .
2>/dev
/null
; then
16119 as_mkdir_p
='mkdir -p "$as_dir"'
16121 test -d .
/-p && rmdir .
/-p
16126 # as_fn_executable_p FILE
16127 # -----------------------
16128 # Test if FILE is an executable regular file.
16129 as_fn_executable_p
()
16131 test -f "$1" && test -x "$1"
16132 } # as_fn_executable_p
16133 as_test_x
='test -x'
16134 as_executable_p
=as_fn_executable_p
16136 # Sed expression to map a string onto a valid CPP name.
16137 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16139 # Sed expression to map a string onto a valid variable name.
16140 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16144 ## ----------------------------------- ##
16145 ## Main body of $CONFIG_STATUS script. ##
16146 ## ----------------------------------- ##
16148 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16151 # Save the log message, to keep $0 and so on meaningful, and to
16152 # report actual input values of CONFIG_FILES etc. instead of their
16153 # values after options handling.
16155 This file was extended by package-unused $as_me version-unused, which was
16156 generated by GNU Autoconf 2.69. Invocation command line was
16158 CONFIG_FILES = $CONFIG_FILES
16159 CONFIG_HEADERS = $CONFIG_HEADERS
16160 CONFIG_LINKS = $CONFIG_LINKS
16161 CONFIG_COMMANDS = $CONFIG_COMMANDS
16164 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16169 case $ac_config_files in *"
16170 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16173 case $ac_config_headers in *"
16174 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16179 # Files that config.status was made for.
16180 config_files="$ac_config_files"
16181 config_headers="$ac_config_headers"
16182 config_commands="$ac_config_commands"
16186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16188 \`$as_me' instantiates files and other configuration actions
16189 from templates according to the current configuration. Unless the files
16190 and actions are specified as TAGs, all are instantiated by default.
16192 Usage: $0 [OPTION]... [TAG]...
16194 -h, --help print this help, then exit
16195 -V, --version print version number and configuration settings, then exit
16196 --config print configuration, then exit
16197 -q, --quiet, --silent
16198 do not print progress messages
16199 -d, --debug don't remove temporary files
16200 --recheck update $as_me by reconfiguring in the same conditions
16201 --file=FILE[:TEMPLATE]
16202 instantiate the configuration file FILE
16203 --header=FILE[:TEMPLATE]
16204 instantiate the configuration header FILE
16206 Configuration files:
16209 Configuration headers:
16212 Configuration commands:
16215 Report bugs to the package provider."
16218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16219 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16221 package-unused config.status version-unused
16222 configured by $0, generated by GNU Autoconf 2.69,
16223 with options \\"\$ac_cs_config\\"
16225 Copyright (C) 2012 Free Software Foundation, Inc.
16226 This config.status script is free software; the Free Software Foundation
16227 gives unlimited permission to copy, distribute and modify it."
16234 test -n "\$AWK" || AWK=awk
16237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16238 # The default lists apply if the user does not specify any file.
16244 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16245 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16249 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16261 # Handling of the options.
16262 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16264 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16265 $as_echo "$ac_cs_version"; exit ;;
16266 --config |
--confi |
--conf |
--con |
--co |
--c )
16267 $as_echo "$ac_cs_config"; exit ;;
16268 --debug |
--debu |
--deb |
--de |
--d |
-d )
16270 --file |
--fil |
--fi |
--f )
16273 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16274 '') as_fn_error $?
"missing file argument" ;;
16276 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16277 ac_need_defaults
=false
;;
16278 --header |
--heade |
--head |
--hea )
16281 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16283 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16284 ac_need_defaults
=false
;;
16286 # Conflict between --help and --header
16287 as_fn_error $?
"ambiguous option: \`$1'
16288 Try \`$0 --help' for more information.";;
16289 --help |
--hel |
-h )
16290 $as_echo "$ac_cs_usage"; exit ;;
16291 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16292 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16295 # This is an error.
16296 -*) as_fn_error $?
"unrecognized option: \`$1'
16297 Try \`$0 --help' for more information." ;;
16299 *) as_fn_append ac_config_targets
" $1"
16300 ac_need_defaults
=false
;;
16306 ac_configure_extra_args
=
16308 if $ac_cs_silent; then
16310 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315 if \$ac_cs_recheck; then
16316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16319 CONFIG_SHELL='$SHELL'
16320 export CONFIG_SHELL
16325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16330 ## Running $as_me. ##
16336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 with_multisubdir="$with_multisubdir"
16345 with_multisrctop="$with_multisrctop"
16346 with_target_subdir="$with_target_subdir"
16347 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16348 multi_basedir="$multi_basedir"
16349 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16352 GFORTRAN="$GFORTRAN"
16356 # The HP-UX ksh and POSIX shell print the target directory to stdout
16357 # if CDPATH is set.
16358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16360 sed_quote_subst='$sed_quote_subst'
16361 double_quote_subst='$double_quote_subst'
16362 delay_variable_subst='$delay_variable_subst'
16363 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16364 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16365 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16366 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16367 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16368 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16369 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16370 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16391 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16392 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16393 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16394 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16395 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16396 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16397 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16398 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16399 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16400 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16401 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16402 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16403 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16404 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16405 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16406 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16407 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16408 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16409 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16410 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16411 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"`'
16412 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16413 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16414 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16415 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16416 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16417 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16418 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16419 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16420 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16421 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16422 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16423 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16424 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16425 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16426 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16427 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16428 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16429 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16430 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16431 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16432 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16433 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16434 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16435 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16436 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16437 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16438 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16439 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16440 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16441 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16442 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16443 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16444 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16445 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16446 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16447 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16448 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16449 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16450 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16451 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16452 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16453 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16454 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16455 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16456 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16457 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16458 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16459 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16460 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16461 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16462 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16463 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16464 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16465 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16466 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16467 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16468 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16469 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16470 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16471 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16472 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16473 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16474 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16475 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16476 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16477 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16478 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16479 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16480 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16481 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16482 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16483 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16484 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16485 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16486 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16487 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16488 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16489 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16490 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16492 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16493 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16494 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16495 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16496 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16497 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16498 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16499 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16500 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16501 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16502 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16503 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16504 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16505 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16506 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16507 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16508 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16509 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16510 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16511 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16512 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16513 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16514 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16515 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16516 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16517 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16518 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16519 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16520 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16521 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16522 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16523 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16524 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16525 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16528 LTCFLAGS='$LTCFLAGS'
16529 compiler='$compiler_DEFAULT'
16531 # A function that is used when there is no print builtin or printf.
16532 func_fallback_echo ()
16534 eval 'cat <<_LTECHO_EOF
16539 # Quote evaled strings.
16553 deplibs_check_method \
16562 lt_cv_sys_global_symbol_pipe \
16563 lt_cv_sys_global_symbol_to_cdecl \
16564 lt_cv_sys_global_symbol_to_c_name_address \
16565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16566 lt_prog_compiler_no_builtin_flag \
16567 lt_prog_compiler_wl \
16568 lt_prog_compiler_pic \
16569 lt_prog_compiler_static \
16570 lt_cv_prog_compiler_c_o \
16578 export_dynamic_flag_spec \
16579 whole_archive_flag_spec \
16580 compiler_needs_object \
16582 allow_undefined_flag \
16583 no_undefined_flag \
16584 hardcode_libdir_flag_spec \
16585 hardcode_libdir_flag_spec_ld \
16586 hardcode_libdir_separator \
16591 variables_saved_for_relink \
16593 library_names_spec \
16595 install_override_mode \
16602 lt_prog_compiler_no_builtin_flag_D \
16603 lt_prog_compiler_wl_D \
16604 lt_prog_compiler_pic_D \
16605 lt_prog_compiler_static_D \
16606 lt_cv_prog_compiler_c_o_D \
16607 export_dynamic_flag_spec_D \
16608 whole_archive_flag_spec_D \
16609 compiler_needs_object_D \
16611 allow_undefined_flag_D \
16612 no_undefined_flag_D \
16613 hardcode_libdir_flag_spec_D \
16614 hardcode_libdir_flag_spec_ld_D \
16615 hardcode_libdir_separator_D \
16616 fix_srcfile_path_D \
16617 exclude_expsyms_D \
16618 include_expsyms_D \
16619 file_list_spec_D; do
16620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16621 *[\\\\\\\`\\"\\\$]*)
16622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16630 # Double-quote double-evaled strings.
16631 for var in reload_cmds \
16632 old_postinstall_cmds \
16633 old_postuninstall_cmds \
16635 extract_expsyms_cmds \
16636 old_archive_from_new_cmds \
16637 old_archive_from_expsyms_cmds \
16639 archive_expsym_cmds \
16641 module_expsym_cmds \
16642 export_symbols_cmds \
16645 postuninstall_cmds \
16647 sys_lib_search_path_spec \
16648 sys_lib_dlsearch_path_spec \
16650 old_archive_cmds_D \
16651 old_archive_from_new_cmds_D \
16652 old_archive_from_expsyms_cmds_D \
16654 archive_expsym_cmds_D \
16656 module_expsym_cmds_D \
16657 export_symbols_cmds_D \
16659 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16660 *[\\\\\\\`\\"\\\$]*)
16661 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16664 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16669 ac_aux_dir='$ac_aux_dir'
16670 xsi_shell='$xsi_shell'
16671 lt_shell_append='$lt_shell_append'
16673 # See if we are running on zsh, and set the options which allow our
16674 # commands through without removal of \ escapes INIT.
16675 if test -n "\${ZSH_VERSION+set}" ; then
16676 setopt NO_GLOB_SUBST
16682 TIMESTAMP='$TIMESTAMP'
16693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16695 # Handling of arguments.
16696 for ac_config_target
in $ac_config_targets
16698 case $ac_config_target in
16699 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16700 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16701 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16702 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16703 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16704 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16705 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16706 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16707 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16708 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16709 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16711 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16716 # If the user did not use the arguments to specify the items to instantiate,
16717 # then the envvar interface is used. Set only those that are not.
16718 # We use the long form for the default assignment because of an extremely
16719 # bizarre bug on SunOS 4.1.3.
16720 if $ac_need_defaults; then
16721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16726 # Have a temporary directory for convenience. Make it in the build tree
16727 # simply because there is no reason against having it here, and in addition,
16728 # creating and moving files from /tmp can sometimes cause problems.
16729 # Hook for its removal unless debugging.
16730 # Note that there is a small window in which the directory will not be cleaned:
16731 # after its creation but before its name has been assigned to `$tmp'.
16735 trap 'exit_status=$?
16736 : "${ac_tmp:=$tmp}"
16737 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16739 trap 'as_fn_exit 1' 1 2 13 15
16741 # Create a (secure) tmp directory for tmp files.
16744 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16748 tmp
=.
/conf$$
-$RANDOM
16749 (umask 077 && mkdir
"$tmp")
16750 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16753 # Set up the scripts for CONFIG_FILES section.
16754 # No need to generate them if there are no CONFIG_FILES.
16755 # This happens for instance with `./config.status config.h'.
16756 if test -n "$CONFIG_FILES"; then
16758 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16759 ac_cs_awk_getline
=:
16760 ac_cs_awk_pipe_init
=
16761 ac_cs_awk_read_file
='
16762 while ((getline aline < (F[key])) > 0)
16765 ac_cs_awk_pipe_fini
=
16767 ac_cs_awk_getline
=false
16768 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16769 ac_cs_awk_read_file
='
16771 print "cat " F[key] " &&"
16772 '$ac_cs_awk_pipe_init
16773 # The final `:' finishes the AND list.
16774 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16776 ac_cr
=`echo X | tr X '\015'`
16777 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16778 # But we know of no other shell where ac_cr would be empty at this
16779 # point, so we can use a bashism as a fallback.
16780 if test "x$ac_cr" = x
; then
16781 eval ac_cr
=\$
\'\\r
\'
16783 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16784 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16787 ac_cs_awk_cr
=$ac_cr
16790 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16793 # Create commands to substitute file output variables.
16795 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16796 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16797 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16800 } >conf$
$files.sh
&&
16801 . .
/conf$
$files.sh ||
16802 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16803 rm -f conf$
$files.sh
16806 echo "cat >conf$$subs.awk <<_ACEOF" &&
16807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16809 } >conf$$subs.sh ||
16810 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16813 for ac_last_try in false false false false false :; do
16814 . ./conf$$subs.sh ||
16815 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16817 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16818 if test $ac_delim_n = $ac_delim_num; then
16820 elif $ac_last_try; then
16821 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16823 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16826 rm -f conf$$subs.sh
16828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16829 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16833 s/^/S["/; s
/!.
*/"]=/
16843 s/\(.\{148\}\)..*/\1/
16845 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16850 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16857 s/\(.\{148\}\)..*/\1/
16859 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16863 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16868 ' <conf$$subs.awk | sed '
16873 ' >>$CONFIG_STATUS || ac_write_fail=1
16874 rm -f conf$$subs.awk
16875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16877 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16878 for (key in S) S_is_set[key] = 1
16880 \$ac_cs_awk_pipe_init
16884 nfields = split(line, field, "@
")
16886 len = length(field[1])
16887 for (i = 2; i < nfields; i++) {
16889 keylen = length(key)
16890 if (S_is_set[key]) {
16892 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16893 len += length(value) + length(field[++i])
16898 if (nfields == 3 && !substed) {
16900 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16901 \$ac_cs_awk_read_file
16907 \$ac_cs_awk_pipe_fini
16910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16911 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16912 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16915 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16916 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16919 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16920 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16921 # trailing colons and then remove the whole line if VPATH becomes empty
16922 # (actually we leave an empty line to preserve line numbers).
16923 if test "x
$srcdir" = x.; then
16924 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16943 fi # test -n "$CONFIG_FILES"
16945 # Set up the scripts for CONFIG_HEADERS section.
16946 # No need to generate them if there are no CONFIG_HEADERS.
16947 # This happens for instance with `./config.status Makefile'.
16948 if test -n "$CONFIG_HEADERS"; then
16949 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16953 # Transform confdefs.h into an awk script `defines.awk', embedded as
16954 # here-document in config.status, that substitutes the proper values into
16955 # config.h.in to produce config.h.
16957 # Create a delimiter string that does not exist in confdefs.h, to ease
16958 # handling of long lines.
16960 for ac_last_try in false false :; do
16961 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16962 if test -z "$ac_tt"; then
16964 elif $ac_last_try; then
16965 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16967 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16971 # For the awk script, D is an array of macro values keyed by name,
16972 # likewise P contains macro parameters if any. Preserve backslash
16973 # newline sequences.
16975 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16977 s/.\{148\}/&'"$ac_delim"'/g
16980 s/^[ ]*#[ ]*define[ ][ ]*/ /
16987 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16989 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16994 D["\
1"]=" \
3\\\\\\n
"\\/p
16996 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17001 s/.\{148\}/&'"$ac_delim"'/g
17006 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17009 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17011 ' <confdefs.h | sed '
17012 s/'"$ac_delim"'/"\\\
17013 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016 for (key in D) D_is_set[key] = 1
17019 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17021 split(line, arg, " ")
17022 if (arg[1] == "#") {
17026 defundef
= substr
(arg
[1], 2)
17029 split(mac1
, mac2
, "(") #)
17031 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17032 if (D_is_set
[macro
]) {
17033 # Preserve the white space surrounding the "#".
17034 print prefix
"define", macro P
[macro
] D
[macro
]
17037 # Replace #undef with comments. This is necessary, for example,
17038 # in the case of _POSIX_SOURCE, which is predefined and required
17039 # on some systems where configure will not decide to define it.
17040 if (defundef
== "undef") {
17041 print
"/*", prefix defundef
, macro
, "*/"
17049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17050 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17051 fi # test -n "$CONFIG_HEADERS"
17054 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17059 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17061 case $ac_mode$ac_tag in
17063 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17064 :[FH
]-) ac_tag
=-:-;;
17065 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17082 -) ac_f
="$ac_tmp/stdin";;
17083 *) # Look for the file first in the build tree, then in the source tree
17084 # (if the path is not absolute). The absolute path cannot be DOS-style,
17085 # because $ac_f cannot contain `:'.
17089 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17091 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17093 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17094 as_fn_append ac_file_inputs
" '$ac_f'"
17097 # Let's still pretend it is `configure' which instantiates (i.e., don't
17098 # use $as_me), people would be surprised to read:
17099 # /* config.h. Generated by config.status. */
17100 configure_input
='Generated from '`
17101 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17103 if test x
"$ac_file" != x-
; then
17104 configure_input
="$ac_file. $configure_input"
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17106 $as_echo "$as_me: creating $ac_file" >&6;}
17108 # Neutralize special characters interpreted by sed in replacement strings.
17109 case $configure_input in #(
17110 *\
&* |
*\|
* |
*\\* )
17111 ac_sed_conf_input
=`$as_echo "$configure_input" |
17112 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17113 *) ac_sed_conf_input
=$configure_input;;
17117 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17118 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17123 ac_dir
=`$as_dirname -- "$ac_file" ||
17124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125 X"$ac_file" : 'X\(//\)[^/]' \| \
17126 X"$ac_file" : 'X\(//\)$' \| \
17127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17128 $as_echo X"$ac_file" |
17129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17133 /^X\(\/\/\)[^/].*/{
17146 as_dir
="$ac_dir"; as_fn_mkdir_p
17150 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17152 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17153 # A ".." for each directory in $ac_dir_suffix.
17154 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17155 case $ac_top_builddir_sub in
17156 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17157 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17160 ac_abs_top_builddir
=$ac_pwd
17161 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17162 # for backward compatibility:
17163 ac_top_builddir
=$ac_top_build_prefix
17166 .
) # We are building in place.
17168 ac_top_srcdir
=$ac_top_builddir_sub
17169 ac_abs_top_srcdir
=$ac_pwd ;;
17170 [\\/]* | ?
:[\\/]* ) # Absolute name.
17171 ac_srcdir
=$srcdir$ac_dir_suffix;
17172 ac_top_srcdir
=$srcdir
17173 ac_abs_top_srcdir
=$srcdir ;;
17174 *) # Relative name.
17175 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17176 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17177 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17179 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17189 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17190 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17192 ac_MKDIR_P
=$MKDIR_P
17194 [\\/$
]* | ?
:[\\/]* ) ;;
17195 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17200 # If the template does not know about datarootdir, expand it.
17201 # FIXME: This hack should be removed a few years after 2.60.
17202 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17214 *datarootdir
*) ac_datarootdir_seen
=yes;;
17215 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17220 ac_datarootdir_hack='
17221 s&@datadir@&$datadir&g
17222 s&@docdir@&$docdir&g
17223 s&@infodir@&$infodir&g
17224 s&@localedir@&$localedir&g
17225 s&@mandir@&$mandir&g
17226 s&\\\${datarootdir}&$datarootdir&g' ;;
17230 # Neutralize VPATH when `$srcdir' = `.'.
17231 # Shell code in configure.ac might set extrasub.
17232 # FIXME: do we really want to maintain this feature?
17233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17234 ac_sed_extra="$ac_vpsub
17237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17239 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17240 s|@configure_input@|
$ac_sed_conf_input|
;t t
17241 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17242 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17243 s
&@srcdir@
&$ac_srcdir&;t t
17244 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17245 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17246 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17247 s
&@builddir@
&$ac_builddir&;t t
17248 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17249 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17250 s
&@INSTALL@
&$ac_INSTALL&;t t
17251 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17252 $ac_datarootdir_hack
17254 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17255 if $ac_cs_awk_getline; then
17256 $AWK -f "$ac_tmp/subs.
awk"
17258 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17260 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17263 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17265 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17267 which seems to be undefined. Please make sure it is defined" >&5
17268 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17269 which seems to be undefined. Please make sure it is defined" >&2;}
17271 rm -f "$ac_tmp/stdin"
17273 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17274 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17282 if test x"$ac_file" != x-; then
17284 $as_echo "/* $configure_input */" \
17285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17286 } >"$ac_tmp/config.h" \
17287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17288 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17290 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17293 mv "$ac_tmp/config.h" "$ac_file" \
17294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17297 $as_echo "/* $configure_input */" \
17298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17299 || as_fn_error $? "could not create -" "$LINENO" 5
17301 # Compute "$ac_file"'s index
in $config_headers.
17304 for _am_header
in $config_headers :; do
17305 case $_am_header in
17306 $_am_arg |
$_am_arg:* )
17309 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17312 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17313 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17314 X"$_am_arg" : 'X\(//\)[^/]' \| \
17315 X"$_am_arg" : 'X\(//\)$' \| \
17316 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17317 $as_echo X"$_am_arg" |
17318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17322 /^X\(\/\/\)[^/].*/{
17334 s/.*/./; q'`/stamp-h
$_am_stamp_count
17337 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17338 $as_echo "$as_me: executing $ac_file commands" >&6;}
17343 case $ac_file$ac_mode in
17345 # Only add multilib support code if we just rebuilt the top-level
17347 case " $CONFIG_FILES " in
17349 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17354 # See if we are running on zsh, and set the options which allow our
17355 # commands through without removal of \ escapes.
17356 if test -n "${ZSH_VERSION+set}" ; then
17357 setopt NO_GLOB_SUBST
17360 cfgfile
="${ofile}T"
17361 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17364 cat <<_LT_EOF >> "$cfgfile"
17367 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17368 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17370 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17372 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17373 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17374 # Written by Gordon Matzigkeit, 1996
17376 # This file is part of GNU Libtool.
17378 # GNU Libtool is free software; you can redistribute it and/or
17379 # modify it under the terms of the GNU General Public License as
17380 # published by the Free Software Foundation; either version 2 of
17381 # the License, or (at your option) any later version.
17383 # As a special exception to the GNU General Public License,
17384 # if you distribute this file as part of a program or library that
17385 # is built using GNU Libtool, you may include this file under the
17386 # same distribution terms that you use for the rest of that program.
17388 # GNU Libtool is distributed in the hope that it will be useful,
17389 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17391 # GNU General Public License for more details.
17393 # You should have received a copy of the GNU General Public License
17394 # along with GNU Libtool; see the file COPYING. If not, a copy
17395 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17396 # obtained by writing to the Free Software Foundation, Inc.,
17397 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17400 # The names of the tagged configurations supported by this script.
17401 available_tags="D "
17403 # ### BEGIN LIBTOOL CONFIG
17405 # Which release of libtool.m4 was used?
17406 macro_version=$macro_version
17407 macro_revision=$macro_revision
17409 # Whether or not to build shared libraries.
17410 build_libtool_libs=$enable_shared
17412 # Whether or not to build static libraries.
17413 build_old_libs=$enable_static
17415 # What type of objects to build.
17418 # Whether or not to optimize for fast installation.
17419 fast_install=$enable_fast_install
17421 # Shell to use when invoking shell scripts.
17424 # An echo program that protects backslashes.
17428 host_alias=$host_alias
17432 # The build system.
17433 build_alias=$build_alias
17437 # A sed program that does not truncate output.
17440 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17441 Xsed="\$SED -e 1s/^X//"
17443 # A grep program that handles long lines.
17449 # A literal string matcher.
17452 # A BSD- or MS-compatible name lister.
17455 # Whether we need soft or hard links.
17458 # What is the maximum length of a command?
17459 max_cmd_len=$max_cmd_len
17461 # Object file suffix (normally "o").
17464 # Executable file suffix (normally "").
17467 # whether the shell understands "unset".
17470 # turn spaces into newlines.
17473 # turn newlines into spaces.
17476 # An object symbol dumper.
17477 OBJDUMP=$lt_OBJDUMP
17479 # Method to check whether dependent libraries are shared objects.
17480 deplibs_check_method=$lt_deplibs_check_method
17482 # Command to use when deplibs_check_method == "file_magic".
17483 file_magic_cmd=$lt_file_magic_cmd
17487 AR_FLAGS=$lt_AR_FLAGS
17489 # A symbol stripping program.
17492 # Commands used to install an old-style archive.
17494 old_postinstall_cmds=$lt_old_postinstall_cmds
17495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17497 # Whether to use a lock for old archive extraction.
17498 lock_old_archive_extraction=$lock_old_archive_extraction
17503 # LTCC compiler flags.
17504 LTCFLAGS=$lt_CFLAGS
17506 # Take the output of nm and produce a listing of raw symbols and C names.
17507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17509 # Transform the output of nm in a proper C declaration.
17510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17512 # Transform the output of nm in a C name address pair.
17513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17515 # Transform the output of nm in a C name address pair when lib prefix is needed.
17516 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17518 # The name of the directory that contains temporary libtool files.
17521 # Used to examine libraries when file_magic_cmd begins with "file".
17522 MAGIC_CMD=$MAGIC_CMD
17524 # Must we lock files when doing compilation?
17525 need_locks=$lt_need_locks
17527 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17528 DSYMUTIL=$lt_DSYMUTIL
17530 # Tool to change global to local symbols on Mac OS X.
17533 # Tool to manipulate fat objects and archives on Mac OS X.
17536 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17539 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17540 OTOOL64=$lt_OTOOL64
17542 # Old archive suffix (normally "a").
17545 # Shared library suffix (normally ".so").
17546 shrext_cmds=$lt_shrext_cmds
17548 # The commands to extract the exported symbol list from a shared archive.
17549 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17551 # Variables whose values should be saved in libtool wrapper scripts and
17552 # restored at link time.
17553 variables_saved_for_relink=$lt_variables_saved_for_relink
17555 # Do we need the "lib" prefix for modules?
17556 need_lib_prefix=$need_lib_prefix
17558 # Do we need a version for libraries?
17559 need_version=$need_version
17561 # Library versioning type.
17562 version_type=$version_type
17564 # Shared library runtime path variable.
17565 runpath_var=$runpath_var
17567 # Shared library path variable.
17568 shlibpath_var=$shlibpath_var
17570 # Is shlibpath searched before the hard-coded library search path?
17571 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17573 # Format of library name prefix.
17574 libname_spec=$lt_libname_spec
17576 # List of archive names. First name is the real one, the rest are links.
17577 # The last name is the one that the linker finds with -lNAME
17578 library_names_spec=$lt_library_names_spec
17580 # The coded name of the library, if different from the real name.
17581 soname_spec=$lt_soname_spec
17583 # Permission mode override for installation of shared libraries.
17584 install_override_mode=$lt_install_override_mode
17586 # Command to use after installation of a shared archive.
17587 postinstall_cmds=$lt_postinstall_cmds
17589 # Command to use after uninstallation of a shared archive.
17590 postuninstall_cmds=$lt_postuninstall_cmds
17592 # Commands used to finish a libtool library installation in a directory.
17593 finish_cmds=$lt_finish_cmds
17595 # As "finish_cmds", except a single script fragment to be evaled but
17597 finish_eval=$lt_finish_eval
17599 # Whether we should hardcode library paths into libraries.
17600 hardcode_into_libs=$hardcode_into_libs
17602 # Compile-time system search path for libraries.
17603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17605 # Run-time system search path for libraries.
17606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17608 # Whether dlopen is supported.
17609 dlopen_support=$enable_dlopen
17611 # Whether dlopen of programs is supported.
17612 dlopen_self=$enable_dlopen_self
17614 # Whether dlopen of statically linked programs is supported.
17615 dlopen_self_static=$enable_dlopen_self_static
17617 # Commands to strip libraries.
17618 old_striplib=$lt_old_striplib
17619 striplib=$lt_striplib
17622 # The linker used to build libraries.
17625 # How to create reloadable object files.
17626 reload_flag=$lt_reload_flag
17627 reload_cmds=$lt_reload_cmds
17629 # Commands used to build an old-style archive.
17630 old_archive_cmds=$lt_old_archive_cmds
17632 # A language specific compiler.
17635 # Is the compiler the GNU compiler?
17638 # Compiler flag to turn off builtin functions.
17639 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17641 # How to pass a linker flag through the compiler.
17642 wl=$lt_lt_prog_compiler_wl
17644 # Additional compiler flags for building library objects.
17645 pic_flag=$lt_lt_prog_compiler_pic
17647 # Compiler flag to prevent dynamic linking.
17648 link_static_flag=$lt_lt_prog_compiler_static
17650 # Does compiler simultaneously support -c and -o options?
17651 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17653 # Whether or not to add -lc for building shared libraries.
17654 build_libtool_need_lc=$archive_cmds_need_lc
17656 # Whether or not to disallow shared libs when runtime libs are static.
17657 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17659 # Compiler flag to allow reflexive dlopens.
17660 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17662 # Compiler flag to generate shared objects directly from archives.
17663 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17665 # Whether the compiler copes with passing no objects directly.
17666 compiler_needs_object=$lt_compiler_needs_object
17668 # Create an old-style archive from a shared archive.
17669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17671 # Create a temporary old-style archive to link instead of a shared archive.
17672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17674 # Commands used to build a shared archive.
17675 archive_cmds=$lt_archive_cmds
17676 archive_expsym_cmds=$lt_archive_expsym_cmds
17678 # Commands used to build a loadable module if different from building
17679 # a shared archive.
17680 module_cmds=$lt_module_cmds
17681 module_expsym_cmds=$lt_module_expsym_cmds
17683 # Whether we are building with GNU ld or not.
17684 with_gnu_ld=$lt_with_gnu_ld
17686 # Flag that allows shared libraries with undefined symbols to be built.
17687 allow_undefined_flag=$lt_allow_undefined_flag
17689 # Flag that enforces no undefined symbols.
17690 no_undefined_flag=$lt_no_undefined_flag
17692 # Flag to hardcode \$libdir into a binary during linking.
17693 # This must work even if \$libdir does not exist
17694 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17696 # If ld is used when linking, flag to hardcode \$libdir into a binary
17697 # during linking. This must work even if \$libdir does not exist.
17698 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17700 # Whether we need a single "-rpath" flag with a separated argument.
17701 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17704 # DIR into the resulting binary.
17705 hardcode_direct=$hardcode_direct
17707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17708 # DIR into the resulting binary and the resulting library dependency is
17709 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17710 # library is relocated.
17711 hardcode_direct_absolute=$hardcode_direct_absolute
17713 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17714 # into the resulting binary.
17715 hardcode_minus_L=$hardcode_minus_L
17717 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17718 # into the resulting binary.
17719 hardcode_shlibpath_var=$hardcode_shlibpath_var
17721 # Set to "yes" if building a shared library automatically hardcodes DIR
17722 # into the library and all subsequent libraries and executables linked
17724 hardcode_automatic=$hardcode_automatic
17726 # Set to yes if linker adds runtime paths of dependent libraries
17727 # to runtime path list.
17728 inherit_rpath=$inherit_rpath
17730 # Whether libtool must link a program against all its dependency libraries.
17731 link_all_deplibs=$link_all_deplibs
17733 # Fix the shell variable \$srcfile for the compiler.
17734 fix_srcfile_path=$lt_fix_srcfile_path
17736 # Set to "yes" if exported symbols are required.
17737 always_export_symbols=$always_export_symbols
17739 # The commands to list exported symbols.
17740 export_symbols_cmds=$lt_export_symbols_cmds
17742 # Symbols that should not be listed in the preloaded symbols.
17743 exclude_expsyms=$lt_exclude_expsyms
17745 # Symbols that must always be exported.
17746 include_expsyms=$lt_include_expsyms
17748 # Commands necessary for linking programs (against libraries) with templates.
17749 prelink_cmds=$lt_prelink_cmds
17751 # Specify filename containing input files.
17752 file_list_spec=$lt_file_list_spec
17754 # How to hardcode a shared library path into an executable.
17755 hardcode_action=$hardcode_action
17757 # ### END LIBTOOL CONFIG
17763 cat <<\_LT_EOF
>> "$cfgfile"
17764 # AIX sometimes has problems with the GCC collect2 program. For some
17765 # reason, if we set the COLLECT_NAMES environment variable, the problems
17766 # vanish in a puff of smoke.
17767 if test "X${COLLECT_NAMES+set}" != Xset
; then
17769 export COLLECT_NAMES
17776 ltmain
="$ac_aux_dir/ltmain.sh"
17779 # We use sed instead of cat because bash on DJGPP gets confused if
17780 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17781 # text mode, it properly converts lines to CR/LF. This bash problem
17782 # is reportedly fixed, but why not run on old versions too?
17783 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17784 ||
(rm -f "$cfgfile"; exit 1)
17788 cat << \_LT_EOF
>> "$cfgfile"
17790 # func_dirname file append nondir_replacement
17791 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17792 # otherwise set result to NONDIR_REPLACEMENT.
17796 */*) func_dirname_result
="${1%/*}${2}" ;;
17797 * ) func_dirname_result
="${3}" ;;
17801 # func_basename file
17804 func_basename_result
="${1##*/}"
17807 # func_dirname_and_basename file append nondir_replacement
17808 # perform func_basename and func_dirname in a single function
17810 # dirname: Compute the dirname of FILE. If nonempty,
17811 # add APPEND to the result, otherwise set result
17812 # to NONDIR_REPLACEMENT.
17813 # value returned in "$func_dirname_result"
17814 # basename: Compute filename of FILE.
17815 # value retuned in "$func_basename_result"
17816 # Implementation must be kept synchronized with func_dirname
17817 # and func_basename. For efficiency, we do not delegate to
17818 # those functions but instead duplicate the functionality here.
17819 func_dirname_and_basename
()
17822 */*) func_dirname_result
="${1%/*}${2}" ;;
17823 * ) func_dirname_result
="${3}" ;;
17825 func_basename_result
="${1##*/}"
17828 # func_stripname prefix suffix name
17829 # strip PREFIX and SUFFIX off of NAME.
17830 # PREFIX and SUFFIX must not contain globbing or regex special
17831 # characters, hashes, percent signs, but SUFFIX may contain a leading
17832 # dot (in which case that matches only a dot).
17835 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17836 # positional parameters, so assign one to ordinary parameter first.
17837 func_stripname_result
=${3}
17838 func_stripname_result
=${func_stripname_result#"${1}"}
17839 func_stripname_result
=${func_stripname_result%"${2}"}
17845 func_opt_split_opt
=${1%%=*}
17846 func_opt_split_arg
=${1#*=}
17853 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17854 *) func_lo2o_result
=${1} ;;
17858 # func_xform libobj-or-source
17861 func_xform_result
=${1%.*}.lo
17864 # func_arith arithmetic-term...
17867 func_arith_result
=$
(( $
* ))
17871 # STRING may not start with a hyphen.
17874 func_len_result
=${#1}
17879 *) # Bourne compatible functions.
17880 cat << \_LT_EOF
>> "$cfgfile"
17882 # func_dirname file append nondir_replacement
17883 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17884 # otherwise set result to NONDIR_REPLACEMENT.
17887 # Extract subdirectory from the argument.
17888 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17889 if test "X$func_dirname_result" = "X${1}"; then
17890 func_dirname_result
="${3}"
17892 func_dirname_result
="$func_dirname_result${2}"
17896 # func_basename file
17899 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17903 # func_stripname prefix suffix name
17904 # strip PREFIX and SUFFIX off of NAME.
17905 # PREFIX and SUFFIX must not contain globbing or regex special
17906 # characters, hashes, percent signs, but SUFFIX may contain a leading
17907 # dot (in which case that matches only a dot).
17908 # func_strip_suffix prefix name
17912 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17913 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17918 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17919 my_sed_long_arg
='1s/^-[^=]*=//'
17924 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17925 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17931 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17934 # func_xform libobj-or-source
17937 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17940 # func_arith arithmetic-term...
17943 func_arith_result
=`expr "$@"`
17947 # STRING may not start with a hyphen.
17950 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17956 case $lt_shell_append in
17958 cat << \_LT_EOF
>> "$cfgfile"
17960 # func_append var value
17961 # Append VALUE to the end of shell variable VAR.
17969 cat << \_LT_EOF
>> "$cfgfile"
17971 # func_append var value
17972 # Append VALUE to the end of shell variable VAR.
17983 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17984 ||
(rm -f "$cfgfile"; exit 1)
17986 mv -f "$cfgfile" "$ofile" ||
17987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17991 cat <<_LT_EOF >> "$ofile"
17993 # ### BEGIN LIBTOOL TAG CONFIG: D
17995 # The linker used to build libraries.
17998 # How to create reloadable object files.
17999 reload_flag=$lt_reload_flag_D
18000 reload_cmds=$lt_reload_cmds_D
18002 # Commands used to build an old-style archive.
18003 old_archive_cmds=$lt_old_archive_cmds_D
18005 # A language specific compiler.
18008 # Is the compiler the GNU compiler?
18011 # Compiler flag to turn off builtin functions.
18012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18014 # How to pass a linker flag through the compiler.
18015 wl=$lt_lt_prog_compiler_wl_D
18017 # Additional compiler flags for building library objects.
18018 pic_flag=$lt_lt_prog_compiler_pic_D
18020 # Compiler flag to prevent dynamic linking.
18021 link_static_flag=$lt_lt_prog_compiler_static_D
18023 # Does compiler simultaneously support -c and -o options?
18024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18026 # Whether or not to add -lc for building shared libraries.
18027 build_libtool_need_lc=$archive_cmds_need_lc_D
18029 # Whether or not to disallow shared libs when runtime libs are static.
18030 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18032 # Compiler flag to allow reflexive dlopens.
18033 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18035 # Compiler flag to generate shared objects directly from archives.
18036 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18038 # Whether the compiler copes with passing no objects directly.
18039 compiler_needs_object=$lt_compiler_needs_object_D
18041 # Create an old-style archive from a shared archive.
18042 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18044 # Create a temporary old-style archive to link instead of a shared archive.
18045 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18047 # Commands used to build a shared archive.
18048 archive_cmds=$lt_archive_cmds_D
18049 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18051 # Commands used to build a loadable module if different from building
18052 # a shared archive.
18053 module_cmds=$lt_module_cmds_D
18054 module_expsym_cmds=$lt_module_expsym_cmds_D
18056 # Whether we are building with GNU ld or not.
18057 with_gnu_ld=$lt_with_gnu_ld_D
18059 # Flag that allows shared libraries with undefined symbols to be built.
18060 allow_undefined_flag=$lt_allow_undefined_flag_D
18062 # Flag that enforces no undefined symbols.
18063 no_undefined_flag=$lt_no_undefined_flag_D
18065 # Flag to hardcode \$libdir into a binary during linking.
18066 # This must work even if \$libdir does not exist
18067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18069 # If ld is used when linking, flag to hardcode \$libdir into a binary
18070 # during linking. This must work even if \$libdir does not exist.
18071 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18073 # Whether we need a single "-rpath" flag with a separated argument.
18074 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18076 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18077 # DIR into the resulting binary.
18078 hardcode_direct=$hardcode_direct_D
18080 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18081 # DIR into the resulting binary and the resulting library dependency is
18082 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18083 # library is relocated.
18084 hardcode_direct_absolute=$hardcode_direct_absolute_D
18086 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18087 # into the resulting binary.
18088 hardcode_minus_L=$hardcode_minus_L_D
18090 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18091 # into the resulting binary.
18092 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18094 # Set to "yes" if building a shared library automatically hardcodes DIR
18095 # into the library and all subsequent libraries and executables linked
18097 hardcode_automatic=$hardcode_automatic_D
18099 # Set to yes if linker adds runtime paths of dependent libraries
18100 # to runtime path list.
18101 inherit_rpath=$inherit_rpath_D
18103 # Whether libtool must link a program against all its dependency libraries.
18104 link_all_deplibs=$link_all_deplibs_D
18106 # Fix the shell variable \$srcfile for the compiler.
18107 fix_srcfile_path=$lt_fix_srcfile_path_D
18109 # Set to "yes" if exported symbols are required.
18110 always_export_symbols=$always_export_symbols_D
18112 # The commands to list exported symbols.
18113 export_symbols_cmds=$lt_export_symbols_cmds_D
18115 # Symbols that should not be listed in the preloaded symbols.
18116 exclude_expsyms=$lt_exclude_expsyms_D
18118 # Symbols that must always be exported.
18119 include_expsyms=$lt_include_expsyms_D
18121 # Commands necessary for linking programs (against libraries) with templates.
18122 prelink_cmds=$lt_prelink_cmds_D
18124 # Specify filename containing input files.
18125 file_list_spec=$lt_file_list_spec_D
18127 # How to hardcode a shared library path into an executable.
18128 hardcode_action=$hardcode_action_D
18130 # ### END LIBTOOL TAG CONFIG: D
18134 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
18135 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
18136 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18138 sed -f vpsed$$
$ac_file > tmp$$
18141 echo 'MULTISUBDIR =' >> $ac_file
18143 .
${multi_basedir}/config-ml.
in
18144 { ml_norecursion
=; unset ml_norecursion
;}
18146 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
18147 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18149 sed -f vpsed$$
$ac_file > tmp$$
18152 echo 'MULTISUBDIR =' >> $ac_file
18154 .
${multi_basedir}/config-ml.
in
18155 { ml_norecursion
=; unset ml_norecursion
;}
18157 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
18158 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18160 sed -f vpsed$$
$ac_file > tmp$$
18163 echo 'MULTISUBDIR =' >> $ac_file
18165 .
${multi_basedir}/config-ml.
in
18166 { ml_norecursion
=; unset ml_norecursion
;}
18175 ac_clean_files
=$ac_clean_files_save
18177 test $ac_write_fail = 0 ||
18178 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18181 # configure is writing to config.log, and then calls config.status.
18182 # config.status does its own redirection, appending to config.log.
18183 # Unfortunately, on DOS this fails, as config.log is still kept open
18184 # by configure, so config.status won't be able to write to it; its
18185 # output is simply discarded. So we exec the FD to /dev/null,
18186 # effectively closing config.log, so it can be properly (re)opened and
18187 # appended to by config.status. When coming back to configure, we
18188 # need to make the FD available again.
18189 if test "$no_create" != yes; then
18191 ac_config_status_args
=
18192 test "$silent" = yes &&
18193 ac_config_status_args
="$ac_config_status_args --quiet"
18195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18198 # would make configure fail if this is the last instruction.
18199 $ac_cs_success || as_fn_exit
1
18201 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18203 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}