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
639 ENABLE_LIBPHOBOS_FALSE
640 ENABLE_LIBPHOBOS_TRUE
642 libphobos_toolexeclibdir
643 libphobos_toolexecdir
646 BACKTRACE_SUPPORTS_THREADS
647 BACKTRACE_USES_MALLOC
652 DCFG_HAVE_64BIT_ATOMICS
653 DCFG_HAVE_ATOMIC_BUILTINS
657 DRUNTIME_OS_MINFO_BRACKETING_FALSE
658 DRUNTIME_OS_MINFO_BRACKETING_TRUE
659 DCFG_MINFO_BRACKETING
660 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
661 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
662 DCFG_ARM_EABI_UNWINDER
664 DRUNTIME_OS_SOLARIS_FALSE
665 DRUNTIME_OS_SOLARIS_TRUE
666 DRUNTIME_OS_MINGW_FALSE
667 DRUNTIME_OS_MINGW_TRUE
668 DRUNTIME_OS_LINUX_FALSE
669 DRUNTIME_OS_LINUX_TRUE
670 DRUNTIME_OS_OPENBSD_FALSE
671 DRUNTIME_OS_OPENBSD_TRUE
672 DRUNTIME_OS_NETBSD_FALSE
673 DRUNTIME_OS_NETBSD_TRUE
674 DRUNTIME_OS_FREEBSD_FALSE
675 DRUNTIME_OS_FREEBSD_TRUE
676 DRUNTIME_OS_DRAGONFLYBSD_FALSE
677 DRUNTIME_OS_DRAGONFLYBSD_TRUE
678 DRUNTIME_OS_DARWIN_FALSE
679 DRUNTIME_OS_DARWIN_TRUE
680 DRUNTIME_OS_ANDROID_FALSE
681 DRUNTIME_OS_ANDROID_TRUE
682 DRUNTIME_OS_AIX_FALSE
684 DRUNTIME_OS_UNIX_FALSE
685 DRUNTIME_OS_UNIX_TRUE
686 DRUNTIME_CPU_X86_FALSE
687 DRUNTIME_CPU_X86_TRUE
688 DRUNTIME_CPU_POWERPC64_FALSE
689 DRUNTIME_CPU_POWERPC64_TRUE
690 DRUNTIME_CPU_POWERPC_FALSE
691 DRUNTIME_CPU_POWERPC_TRUE
692 DRUNTIME_CPU_MIPS_FALSE
693 DRUNTIME_CPU_MIPS_TRUE
694 DRUNTIME_CPU_ARM_FALSE
695 DRUNTIME_CPU_ARM_TRUE
696 DRUNTIME_CPU_AARCH64_FALSE
697 DRUNTIME_CPU_AARCH64_TRUE
698 DRUNTIME_GC_ENABLE_FALSE
699 DRUNTIME_GC_ENABLE_TRUE
703 phobos_compiler_shared_flag
704 phobos_compiler_pic_flag
724 MAINTAINER_MODE_FALSE
742 INSTALL_STRIP_PROGRAM
807 program_transform_name
818 ac_subst_files
='DRTSTUFF_SPEC'
820 enable_option_checking
823 enable_maintainer_mode
830 with_gcc_major_version_only
837 with_target_system_zlib
839 enable_version_specific_runtime_libs
843 ac_precious_vars
='build_alias
854 # Initialize some variables set by options.
856 ac_init_version
=false
857 ac_unrecognized_opts
=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
868 program_transform_name
=s
,x
,x
,
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir
='${exec_prefix}/bin'
883 sbindir
='${exec_prefix}/sbin'
884 libexecdir
='${exec_prefix}/libexec'
885 datarootdir
='${prefix}/share'
886 datadir
='${datarootdir}'
887 sysconfdir
='${prefix}/etc'
888 sharedstatedir
='${prefix}/com'
889 localstatedir
='${prefix}/var'
890 includedir
='${prefix}/include'
891 oldincludedir
='/usr/include'
892 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
893 infodir
='${datarootdir}/info'
898 libdir
='${exec_prefix}/lib'
899 localedir
='${datarootdir}/locale'
900 mandir
='${datarootdir}/man'
906 # If the previous option needs an argument, assign it.
907 if test -n "$ac_prev"; then
908 eval $ac_prev=\
$ac_option
914 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919 # Accept the important Cygnus configure options, so we can diagnose typos.
921 case $ac_dashdash$ac_option in
925 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
927 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
930 -build |
--build |
--buil |
--bui |
--bu)
931 ac_prev
=build_alias
;;
932 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
933 build_alias
=$ac_optarg ;;
935 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
936 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
937 ac_prev
=cache_file
;;
938 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
939 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
940 cache_file
=$ac_optarg ;;
943 cache_file
=config.cache
;;
945 -datadir |
--datadir |
--datadi |
--datad)
947 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
948 datadir
=$ac_optarg ;;
950 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
951 |
--dataroo |
--dataro |
--datar)
952 ac_prev
=datarootdir
;;
953 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
954 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
955 datarootdir
=$ac_optarg ;;
957 -disable-* |
--disable-*)
958 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
961 as_fn_error $?
"invalid feature name: $ac_useropt"
962 ac_useropt_orig
=$ac_useropt
963 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
969 ac_unrecognized_sep
=', ';;
971 eval enable_
$ac_useropt=no
;;
973 -docdir |
--docdir |
--docdi |
--doc |
--do)
975 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
978 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
980 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
983 -enable-* |
--enable-*)
984 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
987 as_fn_error $?
"invalid feature name: $ac_useropt"
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=\
$ac_optarg ;;
999 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1000 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1001 |
--exec |
--exe |
--ex)
1002 ac_prev
=exec_prefix
;;
1003 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1004 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1005 |
--exec=* |
--exe=* |
--ex=*)
1006 exec_prefix
=$ac_optarg ;;
1008 -gas |
--gas |
--ga |
--g)
1009 # Obsolete; use --with-gas.
1012 -help |
--help |
--hel |
--he |
-h)
1013 ac_init_help
=long
;;
1014 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1015 ac_init_help
=recursive
;;
1016 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1017 ac_init_help
=short
;;
1019 -host |
--host |
--hos |
--ho)
1020 ac_prev
=host_alias
;;
1021 -host=* |
--host=* |
--hos=* |
--ho=*)
1022 host_alias
=$ac_optarg ;;
1024 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1026 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1028 htmldir
=$ac_optarg ;;
1030 -includedir |
--includedir |
--includedi |
--included |
--include \
1031 |
--includ |
--inclu |
--incl |
--inc)
1032 ac_prev
=includedir
;;
1033 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1034 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1035 includedir
=$ac_optarg ;;
1037 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1039 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1040 infodir
=$ac_optarg ;;
1042 -libdir |
--libdir |
--libdi |
--libd)
1044 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1045 libdir
=$ac_optarg ;;
1047 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1048 |
--libexe |
--libex |
--libe)
1049 ac_prev
=libexecdir
;;
1050 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1051 |
--libexe=* |
--libex=* |
--libe=*)
1052 libexecdir
=$ac_optarg ;;
1054 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1055 ac_prev
=localedir
;;
1056 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1057 localedir
=$ac_optarg ;;
1059 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1060 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1061 ac_prev
=localstatedir
;;
1062 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1063 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1064 localstatedir
=$ac_optarg ;;
1066 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1068 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1069 mandir
=$ac_optarg ;;
1071 -nfp |
--nfp |
--nf)
1072 # Obsolete; use --without-fp.
1075 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1076 |
--no-cr |
--no-c |
-n)
1079 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1080 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1083 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1084 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1085 |
--oldin |
--oldi |
--old |
--ol |
--o)
1086 ac_prev
=oldincludedir
;;
1087 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1088 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1089 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1090 oldincludedir
=$ac_optarg ;;
1092 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1094 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1095 prefix
=$ac_optarg ;;
1097 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1098 |
--program-pre |
--program-pr |
--program-p)
1099 ac_prev
=program_prefix
;;
1100 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1101 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1102 program_prefix
=$ac_optarg ;;
1104 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1105 |
--program-suf |
--program-su |
--program-s)
1106 ac_prev
=program_suffix
;;
1107 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1108 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1109 program_suffix
=$ac_optarg ;;
1111 -program-transform-name |
--program-transform-name \
1112 |
--program-transform-nam |
--program-transform-na \
1113 |
--program-transform-n |
--program-transform- \
1114 |
--program-transform |
--program-transfor \
1115 |
--program-transfo |
--program-transf \
1116 |
--program-trans |
--program-tran \
1117 |
--progr-tra |
--program-tr |
--program-t)
1118 ac_prev
=program_transform_name
;;
1119 -program-transform-name=* |
--program-transform-name=* \
1120 |
--program-transform-nam=* |
--program-transform-na=* \
1121 |
--program-transform-n=* |
--program-transform-=* \
1122 |
--program-transform=* |
--program-transfor=* \
1123 |
--program-transfo=* |
--program-transf=* \
1124 |
--program-trans=* |
--program-tran=* \
1125 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1126 program_transform_name
=$ac_optarg ;;
1128 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1130 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1131 pdfdir
=$ac_optarg ;;
1133 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1135 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1138 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1139 |
-silent |
--silent |
--silen |
--sile |
--sil)
1142 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1144 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1146 sbindir
=$ac_optarg ;;
1148 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1149 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1150 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1152 ac_prev
=sharedstatedir
;;
1153 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1154 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1155 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1157 sharedstatedir
=$ac_optarg ;;
1159 -site |
--site |
--sit)
1161 -site=* |
--site=* |
--sit=*)
1164 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1166 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1167 srcdir
=$ac_optarg ;;
1169 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1170 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1171 ac_prev
=sysconfdir
;;
1172 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1173 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1174 sysconfdir
=$ac_optarg ;;
1176 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1177 ac_prev
=target_alias
;;
1178 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1179 target_alias
=$ac_optarg ;;
1181 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1184 -version |
--version |
--versio |
--versi |
--vers |
-V)
1185 ac_init_version
=: ;;
1188 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 as_fn_error $?
"invalid package name: $ac_useropt"
1192 ac_useropt_orig
=$ac_useropt
1193 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1199 ac_unrecognized_sep
=', ';;
1201 eval with_
$ac_useropt=\
$ac_optarg ;;
1203 -without-* |
--without-*)
1204 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1207 as_fn_error $?
"invalid package name: $ac_useropt"
1208 ac_useropt_orig
=$ac_useropt
1209 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1215 ac_unrecognized_sep
=', ';;
1217 eval with_
$ac_useropt=no
;;
1220 # Obsolete; use --with-x.
1223 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1224 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1225 ac_prev
=x_includes
;;
1226 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1227 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1228 x_includes
=$ac_optarg ;;
1230 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1231 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1232 ac_prev
=x_libraries
;;
1233 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1234 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1235 x_libraries
=$ac_optarg ;;
1237 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1238 Try \`$0 --help' for more information"
1242 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1243 # Reject names that are not valid shell variable names.
1244 case $ac_envvar in #(
1245 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1246 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1248 eval $ac_envvar=\
$ac_optarg
1249 export $ac_envvar ;;
1252 # FIXME: should be removed in autoconf 3.0.
1253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 if test -n "$ac_prev"; then
1263 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1264 as_fn_error $?
"missing argument to $ac_option"
1267 if test -n "$ac_unrecognized_opts"; then
1268 case $enable_option_checking in
1270 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275 # Check all directory arguments for consistency.
1276 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1277 datadir sysconfdir sharedstatedir localstatedir includedir \
1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1279 libdir localedir mandir
1281 eval ac_val
=\$
$ac_var
1282 # Remove trailing slashes.
1285 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1286 eval $ac_var=\
$ac_val;;
1288 # Be sure to have absolute directory names.
1290 [\\/$
]* | ?
:[\\/]* ) continue;;
1291 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1293 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target
=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x
; then
1305 if test "x$build_alias" = x
; then
1306 cross_compiling
=maybe
1307 elif test "x$build_alias" != "x$host_alias"; then
1313 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1315 test "$silent" = yes && exec 6>/dev
/null
1318 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di
=`ls -di .` &&
1320 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1321 as_fn_error $?
"working directory cannot be determined"
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 as_fn_error $?
"pwd does not report name of working directory"
1326 # Find the source files, if location was not specified.
1327 if test -z "$srcdir"; then
1328 ac_srcdir_defaulted
=yes
1329 # Try the directory containing this script, then the parent directory.
1330 ac_confdir
=`$as_dirname -- "$as_myself" ||
1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332 X"$as_myself" : 'X\(//\)[^/]' \| \
1333 X"$as_myself" : 'X\(//\)$' \| \
1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1335 $as_echo X"$as_myself" |
1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1358 ac_srcdir_defaulted
=no
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1362 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1364 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var
in $ac_precious_vars; do
1379 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1381 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking ...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --program-prefix=PREFIX prepend PREFIX to installed program names
1451 --program-suffix=SUFFIX append SUFFIX to installed program names
1452 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1455 --build=BUILD configure
for building on BUILD
[guessed
]
1456 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1457 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive
) echo "Configuration of package-unused version-unused:";;
1468 --disable-option-checking ignore unrecognized
--enable/--with options
1469 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1470 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1471 --enable-multilib build many library versions
(default
)
1472 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1473 --disable-silent-rules verbose build output
(undo
: "make V=0")
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful
(and
1476 sometimes confusing
) to the casual installer
1477 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1478 --enable-static[=PKGS
] build static libraries
[default
=yes]
1479 --enable-fast-install[=PKGS
]
1480 optimize
for fast installation
[default
=yes]
1481 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1482 --enable-werror turns on
-Werror [default
=no
]
1483 --enable-druntime-gc enable D runtime garbage collector
(default
: yes)
1484 --enable-unix enables Unix runtime
(default
: yes, for Unix
1486 --enable-thread-lib=<arg
>
1487 specify linker option
for the system thread library
1488 (default
: autodetect
)
1489 --enable-version-specific-runtime-libs
1490 Specify that runtime libraries should be installed
1491 in a compiler-specific directory
1492 --enable-libphobos Enable libphobos
1495 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1496 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1497 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1499 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1500 --with-gcc-major-version-only
1501 use only GCC major number
in filesystem paths
1502 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1503 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1505 --with-target-system-zlib={yes,no
,auto
}
1506 use installed libz
(default
: no
)
1507 --with-cross-host=HOST configuring with a cross compiler
1508 --with-toolexeclibdir=DIR
1509 install libraries built with a cross compiler within
1512 Some influential environment variables
:
1513 CC C compiler
command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1516 nonstandard directory
<lib dir
>
1517 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1518 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1519 you have headers
in a nonstandard directory
<include dir
>
1521 CCAS assembler compiler
command (defaults to CC
)
1522 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1523 GDC D compiler
command
1524 GDCFLAGS D compiler flags
1526 Use these variables to override the choices made by
`configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1529 Report bugs to the package provider.
1534 if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1559 .) # We are building in place.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1592 package-unused configure version-unused
1593 generated by GNU Autoconf 2.69
1595 Copyright (C) 2012 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1616 *) ac_try_echo
=$ac_try;;
1618 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1622 if test -s conftest.err
; then
1623 grep -v '^ *+' conftest.err
>conftest.er1
1624 cat conftest.er1
>&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.
$ac_objext; then :
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.
$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status
$ac_retval
1642 } # ac_fn_c_try_compile
1644 # ac_fn_c_try_cpp LINENO
1645 # ----------------------
1646 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1650 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } > conftest.i && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1681 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684 # the include files in INCLUDES and setting the cache variable VAR
1686 ac_fn_c_check_header_mongrel ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if eval \${$3+:} false; then :
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1699 # Is the header compilable?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701 $as_echo_n "checking $2 usability... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_header_compiler=yes
1710 ac_header_compiler=no
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714 $as_echo "$ac_header_compiler" >&6; }
1716 # Is the header present?
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718 $as_echo_n "checking $2 presence... " >&6; }
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1723 if ac_fn_c_try_cpp "$LINENO"; then :
1724 ac_header_preproc=yes
1726 ac_header_preproc=no
1728 rm -f conftest.err conftest.i conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730 $as_echo "$ac_header_preproc" >&6; }
1732 # So? What about this header?
1733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1744 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1748 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1758 eval "$3=\$ac_header_compiler"
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 } # ac_fn_c_check_header_mongrel
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771 # that executables *can* be run.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1778 *) ac_try_echo
=$ac_try;;
1780 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=$ac_status
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1810 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists and can be compiled using the include files in
1813 # INCLUDES, setting the cache variable VAR accordingly.
1814 ac_fn_c_check_header_compile ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_header_compile
1841 # ac_fn_d_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_d_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1851 *) ac_try_echo
=$ac_try;;
1853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err
; then
1858 grep -v '^ *+' conftest.err
>conftest.er1
1859 cat conftest.er1
>&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_d_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.
$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.
$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status
$ac_retval
1877 } # ac_fn_d_try_compile
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1885 rm -f conftest.
$ac_objext conftest
$ac_exeext
1886 if { { ac_try
="$ac_link"
1888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_link
1925 # ac_fn_c_check_func LINENO FUNC VAR
1926 # ----------------------------------
1927 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1928 ac_fn_c_check_func ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940 #define $2 innocuous_$2
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $2 (); below.
1944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945 <limits.h> exists even on freestanding compilers. */
1948 # include <limits.h>
1950 # include <assert.h>
1955 /* Override any GCC internal prototype to avoid an error.
1956 Use char because int might match the return type of a GCC
1957 builtin and then its argument prototype would still apply. */
1962 /* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965 #if defined __stub_$2 || defined __stub___$2
1977 if ac_fn_c_try_link "$LINENO"; then :
1982 rm -f core conftest.err conftest.$ac_objext \
1983 conftest$ac_exeext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_func
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if eval \${$4+:} false; then :
2002 $as_echo_n "(cached) " >&6
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2017 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2027 if (sizeof ac_aggr.$3)
2033 if ac_fn_c_try_compile "$LINENO"; then :
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 } # ac_fn_c_check_member
2049 # ac_fn_d_try_link LINENO
2050 # -----------------------
2051 # Try to link conftest.$ac_ext, and return whether this succeeded.
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 rm -f conftest.$ac_objext conftest$ac_exeext
2056 if { { ac_try="$ac_link"
2058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2059 *) ac_try_echo
=$ac_try;;
2061 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_link") 2>conftest.err
2065 if test -s conftest.err
; then
2066 grep -v '^ *+' conftest.err
>conftest.er1
2067 cat conftest.er1
>&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } && {
2072 test -z "$ac_d_werror_flag" ||
2073 test ! -s conftest.err
2074 } && test -s conftest
$ac_exeext && {
2075 test "$cross_compiling" = yes ||
2076 test -x conftest
$ac_exeext
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.
$ac_ext >&5
2085 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2086 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2087 # interfere with the next link command; also delete a directory that is
2088 # left behind by Apple's compiler. We do this before executing the actions.
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status
$ac_retval
2093 } # ac_fn_d_try_link
2094 cat >config.log
<<_ACEOF
2095 This file contains any messages produced by compilers while
2096 running configure, to aid debugging if configure makes a mistake.
2098 It was created by package-unused $as_me version-unused, which was
2099 generated by GNU Autoconf 2.69. Invocation command line was
2111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir
=.
2135 $as_echo "PATH: $as_dir"
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_must_keep_next
=false
2165 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2166 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2167 |
-silent |
--silent |
--silen |
--sile |
--sil)
2170 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2173 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2175 as_fn_append ac_configure_args1
" '$ac_arg'"
2176 if test $ac_must_keep_next = true
; then
2177 ac_must_keep_next
=false
# Got value, back to normal.
2180 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2181 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2182 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2183 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188 -* ) ac_must_keep_next
=true
;;
2191 as_fn_append ac_configure_args
" '$ac_arg'"
2196 { ac_configure_args0
=; unset ac_configure_args0
;}
2197 { ac_configure_args1
=; unset ac_configure_args1
;}
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2209 $as_echo "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2213 # The following way of writing the cache mishandles newlines in values,
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 $as_echo "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2249 for ac_var in $ac_subst_vars
2251 eval ac_val=\$$ac_var
2253 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 $as_echo "$ac_var='\''$ac_val'\''"
2259 if test -n "$ac_subst_files"; then
2260 $as_echo "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2264 for ac_var
in $ac_subst_files
2266 eval ac_val
=\$
$ac_var
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 $as_echo "$ac_var='\''$ac_val'\''"
2275 if test -s confdefs.h; then
2276 $as_echo "## ----------- ##
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2291 for ac_signal
in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest
* confdefs.h
2299 $as_echo "/* confdefs.h */" > confdefs.h
2301 # Predefined preprocessor variables.
2303 cat >>confdefs.h
<<_ACEOF
2304 #define PACKAGE_NAME "$PACKAGE_NAME"
2307 cat >>confdefs.h
<<_ACEOF
2308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_STRING "$PACKAGE_STRING"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2323 cat >>confdefs.h
<<_ACEOF
2324 #define PACKAGE_URL "$PACKAGE_URL"
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2332 if test -n "$CONFIG_SITE"; then
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2336 */*) ac_site_file1
=$CONFIG_SITE;;
2337 *) ac_site_file1
=.
/$CONFIG_SITE;;
2339 elif test "x$prefix" != xNONE
; then
2340 ac_site_file1
=$prefix/share
/config.site
2341 ac_site_file2
=$prefix/etc
/config.site
2343 ac_site_file1
=$ac_default_prefix/share
/config.site
2344 ac_site_file2
=$ac_default_prefix/etc
/config.site
2346 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2348 test "x$ac_site_file" = xNONE
&& continue
2349 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2354 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $?
"failed to load site script $ac_site_file
2357 See \`config.log' for more details" "$LINENO" 5; }
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2369 *) .
"./$cache_file";;
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 # Check that the precious variables saved in the cache have kept the same
2380 ac_cache_corrupted
=false
2381 for ac_var
in $ac_precious_vars; do
2382 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2383 eval ac_new_set
=\
$ac_env_${ac_var}_set
2384 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2385 eval ac_new_val
=\
$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted
=: ;;
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted
=: ;;
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w
=`echo x $ac_old_val`
2400 ac_new_val_w
=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted
=:
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\
$ac_old_val
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2419 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 *) ac_arg
=$ac_var=$ac_new_val ;;
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2428 if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2435 ## -------------------- ##
2436 ## Main body of script. ##
2437 ## -------------------- ##
2440 ac_cpp
='$CPP $CPPFLAGS'
2441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2450 ac_config_headers
="$ac_config_headers config.h"
2453 # Default to --enable-multilib
2454 # Check whether --enable-multilib was given.
2455 if test "${enable_multilib+set}" = set; then :
2456 enableval
=$enable_multilib; case "$enableval" in
2457 yes) multilib
=yes ;;
2459 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2466 # We may get other options which we leave undocumented:
2467 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2468 # See config-ml.in if you want the gory details.
2470 if test "$srcdir" = "."; then
2471 if test "$with_target_subdir" != "."; then
2472 multi_basedir
="$srcdir/$with_multisrctop../.."
2474 multi_basedir
="$srcdir/$with_multisrctop.."
2477 multi_basedir
="$srcdir/.."
2481 # Even if the default multilib is not a cross compilation,
2482 # it may be that some of the other multilibs are.
2483 if test $cross_compiling = no
&& test $multilib = yes \
2484 && test "x${with_multisubdir}" != x
; then
2485 cross_compiling
=maybe
2488 ac_config_commands
="$ac_config_commands default-1"
2491 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2492 if test -f "$ac_dir/install-sh"; then
2494 ac_install_sh
="$ac_aux_dir/install-sh -c"
2496 elif test -f "$ac_dir/install.sh"; then
2498 ac_install_sh
="$ac_aux_dir/install.sh -c"
2500 elif test -f "$ac_dir/shtool"; then
2502 ac_install_sh
="$ac_aux_dir/shtool install -c"
2506 if test -z "$ac_aux_dir"; then
2507 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2515 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2516 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2519 # Make sure we can run config.sub.
2520 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2521 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2524 $as_echo_n "checking build system type... " >&6; }
2525 if ${ac_cv_build+:} false
; then :
2526 $as_echo_n "(cached) " >&6
2528 ac_build_alias
=$build_alias
2529 test "x$ac_build_alias" = x
&&
2530 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2531 test "x$ac_build_alias" = x
&&
2532 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2533 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2534 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2538 $as_echo "$ac_cv_build" >&6; }
2539 case $ac_cv_build in
2541 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2544 ac_save_IFS
=$IFS; IFS
='-'
2550 # Remember, the first character of IFS is used to create $*,
2551 # except with old shells:
2554 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2558 $as_echo_n "checking host system type... " >&6; }
2559 if ${ac_cv_host+:} false
; then :
2560 $as_echo_n "(cached) " >&6
2562 if test "x$host_alias" = x
; then
2563 ac_cv_host
=$ac_cv_build
2565 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2566 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2571 $as_echo "$ac_cv_host" >&6; }
2574 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2577 ac_save_IFS
=$IFS; IFS
='-'
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2587 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2591 $as_echo_n "checking target system type... " >&6; }
2592 if ${ac_cv_target+:} false
; then :
2593 $as_echo_n "(cached) " >&6
2595 if test "x$target_alias" = x
; then
2596 ac_cv_target
=$ac_cv_host
2598 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2599 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2604 $as_echo "$ac_cv_target" >&6; }
2605 case $ac_cv_target in
2607 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2609 target
=$ac_cv_target
2610 ac_save_IFS
=$IFS; IFS
='-'
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2620 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2623 # The aliases save the names the user supplied, while $host etc.
2624 # will get canonicalized.
2625 test -n "$target_alias" &&
2626 test "$program_prefix$program_suffix$program_transform_name" = \
2628 program_prefix
=${target_alias}-
2630 # Expand $ac_aux_dir to an absolute path.
2631 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2634 ac_cpp
='$CPP $CPPFLAGS'
2635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2640 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if ${ac_cv_prog_CC+:} false
; then :
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC
="$CC" # Let the user override the test.
2649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir
=.
2654 for ac_exec_ext
in '' $ac_executable_extensions; do
2655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2677 if test -z "$ac_cv_prog_CC"; then
2679 # Extract the first word of "gcc", so it can be a program name with args.
2680 set dummy gcc
; ac_word
=$2
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2684 $as_echo_n "(cached) " >&6
2686 if test -n "$ac_ct_CC"; then
2687 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir
=.
2694 for ac_exec_ext
in '' $ac_executable_extensions; do
2695 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_ac_ct_CC
="gcc"
2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2707 if test -n "$ac_ct_CC"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2709 $as_echo "$ac_ct_CC" >&6; }
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712 $as_echo "no" >&6; }
2715 if test "x$ac_ct_CC" = x
; then
2718 case $cross_compiling:$ac_tool_warned in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2722 ac_tool_warned
=yes ;;
2730 if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
2732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2733 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false
; then :
2737 $as_echo_n "(cached) " >&6
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC
="$CC" # Let the user override the test.
2742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir
=.
2747 for ac_exec_ext
in '' $ac_executable_extensions; do
2748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2771 if test -z "$CC"; then
2772 # Extract the first word of "cc", so it can be a program name with args.
2773 set dummy cc
; ac_word
=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_CC+:} false
; then :
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$CC"; then
2780 ac_cv_prog_CC
="$CC" # Let the user override the test.
2783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir
=.
2788 for ac_exec_ext
in '' $ac_executable_extensions; do
2789 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2791 ac_prog_rejected
=yes
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 if test $ac_prog_rejected = yes; then
2803 # We found a bogon in the path, so make sure we never use it.
2804 set dummy
$ac_cv_prog_CC
2806 if test $# != 0; then
2807 # We chose a different compiler from the bogus one.
2808 # However, it has the same basename, so the bogon will be chosen
2809 # first if we set CC to just the basename; use the full file name.
2811 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2827 if test -z "$CC"; then
2828 if test -n "$ac_tool_prefix"; then
2829 for ac_prog
in cl.exe
2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_CC+:} false
; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC
="$CC" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2868 test -n "$CC" && break
2871 if test -z "$CC"; then
2873 for ac_prog
in cl.exe
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy
$ac_prog; ac_word
=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir
=.
2890 for ac_exec_ext
in '' $ac_executable_extensions; do
2891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_CC
="$ac_prog"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2912 test -n "$ac_ct_CC" && break
2915 if test "x$ac_ct_CC" = x
; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned
=yes ;;
2931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $?
"no acceptable C compiler found in \$PATH
2934 See \`config.log' for more details" "$LINENO" 5; }
2936 # Provide some information about the compiler.
2937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2940 for ac_option
in --version -v -V -qversion; do
2941 { { ac_try
="$ac_compiler $ac_option >&5"
2943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2947 $as_echo "$ac_try_echo"; } >&5
2948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2950 if test -s conftest.err; then
2952 ... rest of stderr output deleted ...
2953 10q' conftest.err >conftest.er1
2954 cat conftest.er1 >&5
2956 rm -f conftest.er1 conftest.err
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2972 ac_clean_files_save=$ac_clean_files
2973 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2974 # Try to create an executable without -o first, disregard a.out.
2975 # It will help us diagnose broken compilers, and finding out an intuition
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2978 $as_echo_n "checking whether the C compiler works... " >&6; }
2979 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2981 # The possible output files:
2982 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2985 for ac_file in $ac_files
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2989 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2994 if { { ac_try="$ac_link_default"
2996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2997 *) ac_try_echo
=$ac_try;;
2999 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_link_default") 2>&5
3003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3004 test $ac_status = 0; }; then :
3005 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3006 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3007 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3008 # so that the user can short-circuit this test for compilers unknown to
3010 for ac_file
in $ac_files ''
3012 test -f "$ac_file" ||
continue
3014 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3017 # We found the default executable, but exeext='' is most
3021 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3023 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 # We set ac_cv_exeext here because the later test for it is not
3026 # safe: cross compilers may not add the suffix if given an `-o'
3027 # argument, so we may need to know it at that point already.
3028 # Even if this section looks crufty: it has the advantage of
3035 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3040 if test -z "$ac_file"; then :
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 $as_echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error
77 "C compiler cannot create executables
3049 See \`config.log' for more details" "$LINENO" 5; }
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3055 $as_echo_n "checking for C compiler default output file name... " >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3057 $as_echo "$ac_file" >&6; }
3058 ac_exeext
=$ac_cv_exeext
3060 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3061 ac_clean_files
=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3063 $as_echo_n "checking for suffix of executables... " >&6; }
3064 if { { ac_try
="$ac_link"
3066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link") 2>&5
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; then :
3075 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3076 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3077 # work properly (i.e., refer to `conftest.exe'), while it won't with
3079 for ac_file
in conftest.exe conftest conftest.
*; do
3080 test -f "$ac_file" ||
continue
3082 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3083 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3092 See \`config.log' for more details" "$LINENO" 5; }
3094 rm -f conftest conftest
$ac_cv_exeext
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3096 $as_echo "$ac_cv_exeext" >&6; }
3098 rm -f conftest.
$ac_ext
3099 EXEEXT
=$ac_cv_exeext
3101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3107 FILE *f = fopen ("conftest.out", "w");
3108 return ferror (f) || fclose (f) != 0;
3114 ac_clean_files
="$ac_clean_files conftest.out"
3115 # Check that the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
3119 if test "$cross_compiling" != yes; then
3120 { { ac_try
="$ac_link"
3122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link") 2>&5
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 if { ac_try='./conftest$ac_cv_exeext'
3132 { { case "(($ac_try" in
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_try") 2>&5
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; }; then
3144 if test "$cross_compiling" = maybe
; then
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $?
"cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details" "$LINENO" 5; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3156 $as_echo "$cross_compiling" >&6; }
3158 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3159 ac_clean_files
=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161 $as_echo_n "checking for suffix of object files... " >&6; }
3162 if ${ac_cv_objext+:} false
; then :
3163 $as_echo_n "(cached) " >&6
3165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3176 rm -f conftest.o conftest.obj
3177 if { { ac_try
="$ac_compile"
3179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3203 See \
`config.log' for more details" "$LINENO" 5; }
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if ${ac_cv_c_compiler_gnu+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3230 if ac_fn_c_try_compile "$LINENO"; then :
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241 if test $ac_compiler_gnu = yes; then
3246 ac_test_CFLAGS=${CFLAGS+set}
3247 ac_save_CFLAGS=$CFLAGS
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3250 if ${ac_cv_prog_cc_g+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3268 if ac_fn_c_try_compile "$LINENO"; then :
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3299 if ac_fn_c_try_compile "$LINENO"; then :
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310 $as_echo "$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3320 if test "$GCC" = yes; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328 if ${ac_cv_prog_cc_c89+:} false; then :
3329 $as_echo_n "(cached) " >&6
3331 ac_cv_prog_cc_c89=no
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3339 struct buf { int x; };
3340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3341 static char *e (p, i)
3347 static char *f (char * (*g) (char **, int), char **p, ...)
3352 s = g (p, va_arg (v,int));
3357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3358 function prototypes and stuff, but not '\xHH' hex character constants.
3359 These don't provoke an error unfortunately, instead are silently treated
3360 as 'x'. The following induces an error, until -std is added to get
3361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3362 array size at least. It's necessary to write '\x00'==0 to get something
3363 that's true only with -std. */
3364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3367 inside strings and character constants. */
3369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3371 int test (int i, double x);
3372 struct s1 {int (*f) (int a);};
3373 struct s2 {int (*f) (double a);};
3374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3380 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3388 CC="$ac_save_CC $ac_arg"
3389 if ac_fn_c_try_compile "$LINENO"; then :
3390 ac_cv_prog_cc_c89=$ac_arg
3392 rm -f core conftest.err conftest.$ac_objext
3393 test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 rm -f conftest.$ac_ext
3400 case "x$ac_cv_prog_cc_c89" in
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3403 $as_echo "none needed" >&6; } ;;
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3406 $as_echo "unsupported" >&6; } ;;
3408 CC="$CC $ac_cv_prog_cc_c89"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3410 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3412 if test "x$ac_cv_prog_cc_c89" != xno; then :
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3428 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3429 if ${am_cv_prog_cc_c_o+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 # Make sure it works both with $CC and with simple cc.
3444 # Following AC_PROG_CC_C_O, we do the test twice because some
3445 # compilers refuse to overwrite an existing .o file with -o,
3446 # though they will create one.
3447 am_cv_prog_cc_c_o=yes
3449 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3450 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } \
3454 && test -f conftest2.$ac_objext; then
3457 am_cv_prog_cc_c_o=no
3461 rm -f core conftest*
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3465 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3466 if test "$am_cv_prog_cc_c_o" != yes; then
3467 # Losing compiler, so override with the script.
3468 # FIXME: It is wrong to rewrite CC.
3469 # But if we don't then we get into trouble of one sort or another.
3470 # A longer-term fix would be to have automake use am__CC in this case,
3471 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3472 CC="$am_aux_dir/compile $CC"
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3488 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3489 # On Suns, sometimes $CPP names a directory.
3490 if test -n "$CPP" && test -d "$CPP"; then
3493 if test -z "$CPP"; then
3494 if ${ac_cv_prog_CPP+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 # Double quotes because CPP needs to be expanded
3498 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3501 for ac_c_preproc_warn_flag in '' yes
3503 # Use a header file that comes with gcc, so configuring glibc
3504 # with a fresh cross-compiler works.
3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506 # <limits.h> exists even on freestanding compilers.
3507 # On the NeXT, cc -E runs the code through the compiler's parser,
3508 # not just through cpp. "Syntax error" is here to catch this case.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3512 # include <limits.h>
3514 # include <assert.h>
3518 if ac_fn_c_try_cpp "$LINENO"; then :
3521 # Broken: fails on valid input.
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3526 # OK, works on sane cases. Now check whether nonexistent headers
3527 # can be detected and how.
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3532 if ac_fn_c_try_cpp "$LINENO"; then :
3533 # Broken: success on invalid input.
3536 # Passes both tests.
3540 rm -f conftest.err conftest.i conftest.$ac_ext
3543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544 rm -f conftest.i conftest.err conftest.
$ac_ext
3545 if $ac_preproc_ok; then :
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3558 $as_echo "$CPP" >&6; }
3560 for ac_c_preproc_warn_flag
in '' yes
3562 # Use a header file that comes with gcc, so configuring glibc
3563 # with a fresh cross-compiler works.
3564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 # <limits.h> exists even on freestanding compilers.
3566 # On the NeXT, cc -E runs the code through the compiler's parser,
3567 # not just through cpp. "Syntax error" is here to catch this case.
3568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3571 # include <limits.h>
3573 # include <assert.h>
3577 if ac_fn_c_try_cpp
"$LINENO"; then :
3580 # Broken: fails on valid input.
3583 rm -f conftest.err conftest.i conftest.
$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if ac_fn_c_try_cpp
"$LINENO"; then :
3592 # Broken: success on invalid input.
3595 # Passes both tests.
3599 rm -f conftest.err conftest.i conftest.
$ac_ext
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.i conftest.err conftest.
$ac_ext
3604 if $ac_preproc_ok; then :
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details" "$LINENO" 5; }
3614 ac_cpp
='$CPP $CPPFLAGS'
3615 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3622 if ${ac_cv_path_GREP+:} false
; then :
3623 $as_echo_n "(cached) " >&6
3625 if test -z "$GREP"; then
3626 ac_path_GREP_found
=false
3627 # Loop through the user's path and test for each of PROGNAME-LIST
3628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3629 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3632 test -z "$as_dir" && as_dir
=.
3633 for ac_prog
in grep ggrep
; do
3634 for ac_exec_ext
in '' $ac_executable_extensions; do
3635 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3636 as_fn_executable_p
"$ac_path_GREP" ||
continue
3637 # Check for GNU ac_path_GREP and select it if it is found.
3638 # Check for GNU $ac_path_GREP
3639 case `"$ac_path_GREP" --version 2>&1` in
3641 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3644 $as_echo_n 0123456789 >"conftest.in"
3647 cat "conftest.in" "conftest.in" >"conftest.tmp"
3648 mv "conftest.tmp" "conftest.in"
3649 cp "conftest.in" "conftest.nl"
3650 $as_echo 'GREP' >> "conftest.nl"
3651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3652 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3653 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3654 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3655 # Best one so far, save it but keep looking for a better one
3656 ac_cv_path_GREP
="$ac_path_GREP"
3657 ac_path_GREP_max
=$ac_count
3659 # 10*(2^10) chars as input seems more than enough
3660 test $ac_count -gt 10 && break
3662 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3665 $ac_path_GREP_found && break 3
3670 if test -z "$ac_cv_path_GREP"; then
3671 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3674 ac_cv_path_GREP
=$GREP
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3679 $as_echo "$ac_cv_path_GREP" >&6; }
3680 GREP
="$ac_cv_path_GREP"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3684 $as_echo_n "checking for egrep... " >&6; }
3685 if ${ac_cv_path_EGREP+:} false
; then :
3686 $as_echo_n "(cached) " >&6
3688 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3689 then ac_cv_path_EGREP
="$GREP -E"
3691 if test -z "$EGREP"; then
3692 ac_path_EGREP_found
=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3695 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_prog
in egrep; do
3700 for ac_exec_ext
in '' $ac_executable_extensions; do
3701 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3702 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3703 # Check for GNU ac_path_EGREP and select it if it is found.
3704 # Check for GNU $ac_path_EGREP
3705 case `"$ac_path_EGREP" --version 2>&1` in
3707 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3710 $as_echo_n 0123456789 >"conftest.in"
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 $as_echo 'EGREP' >> "conftest.nl"
3717 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3718 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3719 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3720 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_EGREP
="$ac_path_EGREP"
3723 ac_path_EGREP_max
=$ac_count
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
3728 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3731 $ac_path_EGREP_found && break 3
3736 if test -z "$ac_cv_path_EGREP"; then
3737 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3740 ac_cv_path_EGREP
=$EGREP
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3746 $as_echo "$ac_cv_path_EGREP" >&6; }
3747 EGREP
="$ac_cv_path_EGREP"
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3751 $as_echo_n "checking for ANSI C header files... " >&6; }
3752 if ${ac_cv_header_stdc+:} false
; then :
3753 $as_echo_n "(cached) " >&6
3755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3770 if ac_fn_c_try_compile
"$LINENO"; then :
3771 ac_cv_header_stdc
=yes
3773 ac_cv_header_stdc
=no
3775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3777 if test $ac_cv_header_stdc = yes; then
3778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 $EGREP "memchr" >/dev
/null
2>&1; then :
3788 ac_cv_header_stdc
=no
3794 if test $ac_cv_header_stdc = yes; then
3795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3802 $EGREP "free" >/dev
/null
2>&1; then :
3805 ac_cv_header_stdc
=no
3811 if test $ac_cv_header_stdc = yes; then
3812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3813 if test "$cross_compiling" = yes; then :
3816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3820 #if ((' ' & 0x0FF) == 0x020)
3821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3824 # define ISLOWER(c) \
3825 (('a' <= (c) && (c) <= 'i') \
3826 || ('j' <= (c) && (c) <= 'r') \
3827 || ('s' <= (c) && (c) <= 'z'))
3828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3836 for (i = 0; i < 256; i++)
3837 if (XOR (islower (i), ISLOWER (i))
3838 || toupper (i) != TOUPPER (i))
3843 if ac_fn_c_try_run
"$LINENO"; then :
3846 ac_cv_header_stdc
=no
3848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3849 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3855 $as_echo "$ac_cv_header_stdc" >&6; }
3856 if test $ac_cv_header_stdc = yes; then
3858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3863 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3864 inttypes.h stdint.h unistd.h
3866 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3867 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3869 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3870 cat >>confdefs.h
<<_ACEOF
3871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3880 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3881 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3888 if test "$MINIX" = yes; then
3890 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3893 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3896 $as_echo "#define _MINIX 1" >>confdefs.h
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3902 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3903 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3904 $as_echo_n "(cached) " >&6
3906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3909 # define __EXTENSIONS__ 1
3910 $ac_includes_default
3919 if ac_fn_c_try_compile
"$LINENO"; then :
3920 ac_cv_safe_to_define___extensions__
=yes
3922 ac_cv_safe_to_define___extensions__
=no
3924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3927 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3928 test $ac_cv_safe_to_define___extensions__ = yes &&
3929 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3931 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3933 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3935 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3937 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3941 target_alias
=${target_alias-$target}
3944 # 1.11.1: Require that version of automake.
3945 # foreign: Don't require README, INSTALL, NEWS, etc.
3946 # no-define: Don't define PACKAGE and VERSION.
3947 # no-dependencies: Don't generate automatic dependencies.
3948 # (because it breaks when using bootstrap-lean, since some of the
3949 # headers are gone at "make install" time).
3950 # subdir-objects: Build objects in sub-directories.
3951 # -Wall: Issue all automake warnings.
3952 # -Wno-portability: Don't warn about constructs supported by GNU make.
3953 # (because GCC requires GNU make anyhow).
3954 # -Wno-override: Overrides used in testsuite.
3955 am__api_version
='1.15'
3957 # Find a good install program. We prefer a C program (faster),
3958 # so one script is as good as another. But avoid the broken or
3959 # incompatible versions:
3960 # SysV /etc/install, /usr/sbin/install
3961 # SunOS /usr/etc/install
3962 # IRIX /sbin/install
3964 # AmigaOS /C/install, which installs bootblocks on floppy discs
3965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3968 # OS/2's system install, which has a completely different semantic
3969 # ./install, which can be erroneously created by make from ./install.sh.
3970 # Reject install programs that cannot install multiple files.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3972 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3973 if test -z "$INSTALL"; then
3974 if ${ac_cv_path_install+:} false
; then :
3975 $as_echo_n "(cached) " >&6
3977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir
=.
3982 # Account for people who put trailing slashes in PATH elements.
3983 case $as_dir/ in #((
3984 .
/ | .
// |
/[cC
]/* | \
3985 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3986 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3989 # OSF1 and SCO ODT 3.0 have their own names for install.
3990 # Don't use installbsd from OSF since it installs stuff as root
3992 for ac_prog
in ginstall scoinst
install; do
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3995 if test $ac_prog = install &&
3996 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3997 # AIX install. It has an incompatible calling convention.
3999 elif test $ac_prog = install &&
4000 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4001 # program-specific install script used by HP pwplus--don't use.
4004 rm -rf conftest.one conftest.two conftest.dir
4005 echo one
> conftest.one
4006 echo two
> conftest.two
4008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4009 test -s conftest.one
&& test -s conftest.two
&&
4010 test -s conftest.dir
/conftest.one
&&
4011 test -s conftest.dir
/conftest.two
4013 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4026 rm -rf conftest.one conftest.two conftest.dir
4029 if test "${ac_cv_path_install+set}" = set; then
4030 INSTALL
=$ac_cv_path_install
4032 # As a last resort, use the slow shell script. Don't cache a
4033 # value for INSTALL within a source directory, because that will
4034 # break other packages using the cache if that directory is
4035 # removed, or if the value is a relative name.
4036 INSTALL
=$ac_install_sh
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4040 $as_echo "$INSTALL" >&6; }
4042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4043 # It thinks the first close brace ends the variable substitution.
4044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4048 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4051 $as_echo_n "checking whether build environment is sane... " >&6; }
4052 # Reject unsafe characters in $srcdir or the absolute working directory
4053 # name. Accept space and tab only in the latter.
4057 *[\\\"\
#\$\&\'\`$am_lf]*)
4058 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4061 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4062 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4065 # Do 'set' in a subshell so we don't clobber the current shell's
4066 # arguments. Must try -L first in case configure is actually a
4067 # symlink; some systems play weird games with the mod time of symlinks
4068 # (eg FreeBSD returns the mod time of the symlink's containing
4072 for am_try
in 1 2; do
4073 echo "timestamp, slept: $am_has_slept" > conftest.
file
4074 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4075 if test "$*" = "X"; then
4077 set X
`ls -t "$srcdir/configure" conftest.file`
4079 if test "$*" != "X $srcdir/configure conftest.file" \
4080 && test "$*" != "X conftest.file $srcdir/configure"; then
4082 # If neither matched, then we have a broken ls. This can happen
4083 # if, for instance, CONFIG_SHELL is bash and it inherits a
4084 # broken ls alias from the environment. This has actually
4085 # happened. Such a system could not be considered "sane".
4086 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4087 alias in your environment" "$LINENO" 5
4089 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4096 test "$2" = conftest.
file
4102 as_fn_error $?
"newly created file is older than distributed files!
4103 Check your system clock" "$LINENO" 5
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106 $as_echo "yes" >&6; }
4107 # If we didn't sleep, we still need to ensure time stamps of config.status and
4108 # generated files are strictly newer.
4110 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4117 test "$program_prefix" != NONE
&&
4118 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4119 # Use a double $ so make ignores it.
4120 test "$program_suffix" != NONE
&&
4121 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4122 # Double any \ or $.
4123 # By default was `s,x,x', remove it if useless.
4124 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4125 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4127 if test x
"${MISSING+set}" != xset
; then
4130 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4132 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4135 # Use eval to expand $SHELL
4136 if eval "$MISSING --is-lightweight"; then
4137 am_missing_run
="$MISSING "
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4141 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4144 if test x
"${install_sh+set}" != xset
; then
4147 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4149 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4153 # Installed binaries are usually stripped using 'strip' when the user
4154 # run "make install-strip". However 'strip' might not be the right
4155 # tool to use in cross-compilation environments, therefore Automake
4156 # will honor the 'STRIP' environment variable to overrule this program.
4157 if test "$cross_compiling" != no
; then
4158 if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4160 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_STRIP+:} false
; then :
4164 $as_echo_n "(cached) " >&6
4166 if test -n "$STRIP"; then
4167 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir
=.
4174 for ac_exec_ext
in '' $ac_executable_extensions; do
4175 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 STRIP
=$ac_cv_prog_STRIP
4187 if test -n "$STRIP"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4189 $as_echo "$STRIP" >&6; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4197 if test -z "$ac_cv_prog_STRIP"; then
4199 # Extract the first word of "strip", so it can be a program name with args.
4200 set dummy strip
; ac_word
=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -n "$ac_ct_STRIP"; then
4207 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir
=.
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_STRIP
="strip"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4227 if test -n "$ac_ct_STRIP"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4229 $as_echo "$ac_ct_STRIP" >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4235 if test "x$ac_ct_STRIP" = x
; then
4238 case $cross_compiling:$ac_tool_warned in
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4242 ac_tool_warned
=yes ;;
4247 STRIP
="$ac_cv_prog_STRIP"
4251 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4254 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4255 if test -z "$MKDIR_P"; then
4256 if ${ac_cv_path_mkdir+:} false
; then :
4257 $as_echo_n "(cached) " >&6
4259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4260 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4263 test -z "$as_dir" && as_dir
=.
4264 for ac_prog
in mkdir gmkdir
; do
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4267 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4268 'mkdir (GNU coreutils) '* | \
4269 'mkdir (coreutils) '* | \
4270 'mkdir (fileutils) '4.1*)
4271 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4281 test -d .
/--version && rmdir .
/--version
4282 if test "${ac_cv_path_mkdir+set}" = set; then
4283 MKDIR_P
="$ac_cv_path_mkdir -p"
4285 # As a last resort, use the slow shell script. Don't cache a
4286 # value for MKDIR_P within a source directory, because that will
4287 # break other packages using the cache if that directory is
4288 # removed, or if the value is a relative name.
4289 MKDIR_P
="$ac_install_sh -d"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4293 $as_echo "$MKDIR_P" >&6; }
4295 for ac_prog
in gawk mawk nawk
awk
4297 # Extract the first word of "$ac_prog", so it can be a program name with args.
4298 set dummy
$ac_prog; ac_word
=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_prog_AWK+:} false
; then :
4302 $as_echo_n "(cached) " >&6
4304 if test -n "$AWK"; then
4305 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4311 test -z "$as_dir" && as_dir
=.
4312 for ac_exec_ext
in '' $ac_executable_extensions; do
4313 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_AWK
="$ac_prog"
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 if test -n "$AWK"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4327 $as_echo "$AWK" >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4334 test -n "$AWK" && break
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4338 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4340 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4341 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4342 $as_echo_n "(cached) " >&6
4344 cat >conftest.
make <<\_ACEOF
4347 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4349 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4350 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4352 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4354 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4358 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4360 $as_echo "yes" >&6; }
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364 $as_echo "no" >&6; }
4365 SET_MAKE
="MAKE=${MAKE-make}"
4368 rm -rf .tst
2>/dev
/null
4369 mkdir .tst
2>/dev
/null
4370 if test -d .tst
; then
4375 rmdir .tst
2>/dev
/null
4377 # Check whether --enable-silent-rules was given.
4378 if test "${enable_silent_rules+set}" = set; then :
4379 enableval
=$enable_silent_rules;
4382 case $enable_silent_rules in # (((
4383 yes) AM_DEFAULT_VERBOSITY
=0;;
4384 no
) AM_DEFAULT_VERBOSITY
=1;;
4385 *) AM_DEFAULT_VERBOSITY
=1;;
4387 am_make
=${MAKE-make}
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4389 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4390 if ${am_cv_make_support_nested_variables+:} false
; then :
4391 $as_echo_n "(cached) " >&6
4393 if $as_echo 'TRUE=$(BAR$(V))
4399 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4400 am_cv_make_support_nested_variables
=yes
4402 am_cv_make_support_nested_variables
=no
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4406 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4407 if test $am_cv_make_support_nested_variables = yes; then
4409 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4411 AM_V
=$AM_DEFAULT_VERBOSITY
4412 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4416 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4417 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4418 # is not polluted with repeated "-I."
4419 am__isrc
=' -I$(srcdir)'
4420 # test to see if srcdir already configured
4421 if test -f $srcdir/config.status
; then
4422 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4426 # test whether we have cygpath
4427 if test -z "$CYGPATH_W"; then
4428 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4429 CYGPATH_W
='cygpath -w'
4436 # Define the identity of the package.
4438 VERSION
='version-unused'
4441 # Some tools Automake needs.
4443 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4446 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4449 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4452 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4455 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4457 # For better backward compatibility. To be removed once Automake 1.9.x
4458 # dies out for good. For more background, see:
4459 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4460 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4461 mkdir_p
='$(MKDIR_P)'
4463 # We need awk for the "check" target (and possibly the TAP driver). The
4464 # system "awk" is bad on some platforms.
4465 # Always define AMTAR for backward compatibility. Yes, it's still used
4466 # in the wild :-( We should find a proper way to deprecate it ...
4470 # We'll loop over all known methods to create a tar archive until one works.
4471 _am_tools
='gnutar pax cpio none'
4473 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4480 # POSIX will say in a future version that running "rm -f" with no argument
4481 # is OK; and we want to be able to make that assumption in our Makefile
4482 # recipes. So use an aggressive probe to check that the usage we want is
4483 # actually supported "in the wild" to an acceptable degree.
4484 # See automake bug#10828.
4485 # To make any issue more visible, cause the running configure to be aborted
4486 # by default if the 'rm' program in use doesn't match our expectations; the
4487 # user can still override this though.
4488 if rm -f && rm -fr && rm -rf; then : OK
; else
4492 Your 'rm' program seems unable to run without file operands specified
4493 on the command line, even when the '-f' option is present. This is contrary
4494 to the behaviour of most rm programs out there, and not conforming with
4495 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4497 Please tell bug-automake@gnu.org about your system, including the value
4498 of your $PATH and any error possibly output before this message. This
4499 can help us improve future automake versions.
4502 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4503 echo 'Configuration will proceed anyway, since you have set the' >&2
4504 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4508 Aborting the configuration process, to ensure you take notice of the issue.
4510 You can download and install GNU coreutils to get an 'rm' implementation
4511 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4513 If you want to complete the configuration process using your problematic
4514 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4515 to "yes", and re-run configure.
4518 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4525 # By default we simply use the C compiler to build assembly code.
4527 test "${CCAS+set}" = set || CCAS
=$CC
4528 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4533 ac_cpp
='$CPP $CPPFLAGS'
4534 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4539 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if ${ac_cv_prog_CC+:} false
; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$CC"; then
4546 ac_cv_prog_CC
="$CC" # Let the user override the test.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test -n "$CC"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4568 $as_echo "$CC" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_CC"; then
4578 # Extract the first word of "gcc", so it can be a program name with args.
4579 set dummy gcc
; ac_word
=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$ac_ct_CC"; then
4586 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_ac_ct_CC
="gcc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4606 if test -n "$ac_ct_CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4608 $as_echo "$ac_ct_CC" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_CC" = x
; then
4617 case $cross_compiling:$ac_tool_warned in
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned
=yes ;;
4629 if test -z "$CC"; then
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4632 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_CC+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -n "$CC"; then
4639 ac_cv_prog_CC
="$CC" # Let the user override the test.
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 for ac_exec_ext
in '' $ac_executable_extensions; do
4647 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 if test -n "$CC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4661 $as_echo "$CC" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4670 if test -z "$CC"; then
4671 # Extract the first word of "cc", so it can be a program name with args.
4672 set dummy cc
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false
; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC
="$CC" # Let the user override the test.
4682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir
=.
4687 for ac_exec_ext
in '' $ac_executable_extensions; do
4688 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4690 ac_prog_rejected
=yes
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy
$ac_cv_prog_CC
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set CC to just the basename; use the full file name.
4710 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4716 if test -n "$CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4718 $as_echo "$CC" >&6; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4726 if test -z "$CC"; then
4727 if test -n "$ac_tool_prefix"; then
4728 for ac_prog
in cl.exe
4730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4731 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_CC+:} false
; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC
="$CC" # Let the user override the test.
4740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir
=.
4745 for ac_exec_ext
in '' $ac_executable_extensions; do
4746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 if test -n "$CC"; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4760 $as_echo "$CC" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4767 test -n "$CC" && break
4770 if test -z "$CC"; then
4772 for ac_prog
in cl.exe
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775 set dummy
$ac_prog; ac_word
=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$ac_ct_CC"; then
4782 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir
=.
4789 for ac_exec_ext
in '' $ac_executable_extensions; do
4790 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_ac_ct_CC
="$ac_prog"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4802 if test -n "$ac_ct_CC"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4804 $as_echo "$ac_ct_CC" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4811 test -n "$ac_ct_CC" && break
4814 if test "x$ac_ct_CC" = x
; then
4817 case $cross_compiling:$ac_tool_warned in
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4821 ac_tool_warned
=yes ;;
4830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4832 as_fn_error $?
"no acceptable C compiler found in \$PATH
4833 See \`config.log' for more details" "$LINENO" 5; }
4835 # Provide some information about the compiler.
4836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4839 for ac_option
in --version -v -V -qversion; do
4840 { { ac_try
="$ac_compiler $ac_option >&5"
4842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4846 $as_echo "$ac_try_echo"; } >&5
4847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4849 if test -s conftest.err; then
4851 ... rest of stderr output deleted ...
4852 10q' conftest.err >conftest.er1
4853 cat conftest.er1 >&5
4855 rm -f conftest.er1 conftest.err
4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4857 test $ac_status = 0; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4861 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4862 if ${ac_cv_c_compiler_gnu+:} false; then :
4863 $as_echo_n "(cached) " >&6
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4879 if ac_fn_c_try_compile "$LINENO"; then :
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4889 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4890 if test $ac_compiler_gnu = yes; then
4895 ac_test_CFLAGS=${CFLAGS+set}
4896 ac_save_CFLAGS=$CFLAGS
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4898 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4899 if ${ac_cv_prog_cc_g+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 ac_save_c_werror_flag=$ac_c_werror_flag
4903 ac_c_werror_flag=yes
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4917 if ac_fn_c_try_compile "$LINENO"; then :
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4932 if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_c_werror_flag=$ac_save_c_werror_flag
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4948 if ac_fn_c_try_compile "$LINENO"; then :
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 ac_c_werror_flag=$ac_save_c_werror_flag
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4959 $as_echo "$ac_cv_prog_cc_g" >&6; }
4960 if test "$ac_test_CFLAGS" = set; then
4961 CFLAGS=$ac_save_CFLAGS
4962 elif test $ac_cv_prog_cc_g = yes; then
4963 if test "$GCC" = yes; then
4969 if test "$GCC" = yes; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4976 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4977 if ${ac_cv_prog_cc_c89+:} false; then :
4978 $as_echo_n "(cached) " >&6
4980 ac_cv_prog_cc_c89=no
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4988 struct buf { int x; };
4989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4990 static char *e (p, i)
4996 static char *f (char * (*g) (char **, int), char **p, ...)
5001 s = g (p, va_arg (v,int));
5006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5007 function prototypes and stuff, but not '\xHH' hex character constants.
5008 These don't provoke an error unfortunately, instead are silently treated
5009 as 'x'. The following induces an error, until -std is added to get
5010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5011 array size at least. It's necessary to write '\x00'==0 to get something
5012 that's true only with -std. */
5013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5016 inside strings and character constants. */
5018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5020 int test (int i, double x);
5021 struct s1 {int (*f) (int a);};
5022 struct s2 {int (*f) (double a);};
5023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5034 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5037 CC="$ac_save_CC $ac_arg"
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_c89=$ac_arg
5041 rm -f core conftest.err conftest.$ac_objext
5042 test "x$ac_cv_prog_cc_c89" != "xno" && break
5044 rm -f conftest.$ac_ext
5049 case "x$ac_cv_prog_cc_c89" in
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5052 $as_echo "none needed" >&6; } ;;
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5055 $as_echo "unsupported" >&6; } ;;
5057 CC="$CC $ac_cv_prog_cc_c89"
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5059 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5061 if test "x$ac_cv_prog_cc_c89" != xno; then :
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5077 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5078 if ${am_cv_prog_cc_c_o+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5092 # Make sure it works both with $CC and with simple cc.
5093 # Following AC_PROG_CC_C_O, we do the test twice because some
5094 # compilers refuse to overwrite an existing .o file with -o,
5095 # though they will create one.
5096 am_cv_prog_cc_c_o=yes
5098 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5099 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } \
5103 && test -f conftest2.$ac_objext; then
5106 am_cv_prog_cc_c_o=no
5110 rm -f core conftest*
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5114 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5115 if test "$am_cv_prog_cc_c_o" != yes; then
5116 # Losing compiler, so override with the script.
5117 # FIXME: It is wrong to rewrite CC.
5118 # But if we don't then we get into trouble of one sort or another.
5119 # A longer-term fix would be to have automake use am__CC in this case,
5120 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5121 CC="$am_aux_dir/compile $CC"
5124 ac_cpp='$CPP $CPPFLAGS'
5125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5132 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_GDC+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$GDC"; then
5143 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 if test -n "$GDC"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5165 $as_echo "$GDC" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5173 if test -z "$ac_cv_prog_GDC"; then
5175 # Extract the first word of "gdc", so it can be a program name with args.
5176 set dummy gdc; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 if test -n "$ac_ct_GDC"; then
5183 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_GDC="gdc"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5203 if test -n "$ac_ct_GDC"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5205 $as_echo "$ac_ct_GDC" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5211 if test "x$ac_ct_GDC" = x; then
5214 case $cross_compiling:$ac_tool_warned in
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5223 GDC="$ac_cv_prog_GDC"
5226 if test -z "$GDC"; then
5227 if test -n "$ac_tool_prefix"; then
5228 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5229 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_GDC+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 if test -n "$GDC"; then
5236 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 if test -n "$GDC"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5258 $as_echo "$GDC" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5267 if test -z "$GDC"; then
5268 # Extract the first word of "gdc", so it can be a program name with args.
5269 set dummy gdc; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_GDC+:} false; then :
5273 $as_echo_n "(cached) " >&6
5275 if test -n "$GDC"; then
5276 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5287 ac_prog_rejected=yes
5290 ac_cv_prog_GDC="gdc"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 if test $ac_prog_rejected = yes; then
5299 # We found a bogon in the path, so make sure we never use it.
5300 set dummy $ac_cv_prog_GDC
5302 if test $# != 0; then
5303 # We chose a different compiler from the bogus one.
5304 # However, it has the same basename, so the bogon will be chosen
5305 # first if we set GDC to just the basename; use the full file name.
5307 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5313 if test -n "$GDC"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5315 $as_echo "$GDC" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5325 # Provide some information about the compiler.
5326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5329 { { ac_try="$ac_compiler --version >&5"
5331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5332 *) ac_try_echo
=$ac_try;;
5334 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5335 $as_echo "$ac_try_echo"; } >&5
5336 (eval "$ac_compiler --version >&5") 2>conftest.err
5338 if test -s conftest.err
; then
5340 ... rest of stderr output deleted ...
5341 10q' conftest.err
>conftest.er1
5342 cat conftest.er1
>&5
5344 rm -f conftest.er1 conftest.err
5345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5346 test $ac_status = 0; }
5348 ac_cpp
='$CPP $CPPFLAGS'
5349 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5355 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5356 if ${phobos_cv_abs_srcdir+:} false
; then :
5357 $as_echo_n "(cached) " >&6
5359 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5362 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5363 if test -d "$phobos_cv_abs_srcdir"; then :
5366 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5372 gdc_save_DFLAGS
=$GDCFLAGS
5373 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5376 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5377 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5381 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5382 cat > conftest.
$ac_ext <<_ACEOF
5386 extern(C) int main() {
5390 if ac_fn_d_try_compile
"$LINENO"; then :
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5392 $as_echo "yes" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5400 ac_cpp
='$CPP $CPPFLAGS'
5401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5406 GDCFLAGS
=$gdc_save_DFLAGS
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5415 # Check whether --enable-maintainer-mode was given.
5416 if test "${enable_maintainer_mode+set}" = set; then :
5417 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5419 USE_MAINTAINER_MODE
=no
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5424 if test $USE_MAINTAINER_MODE = yes; then
5425 MAINTAINER_MODE_TRUE
=
5426 MAINTAINER_MODE_FALSE
='#'
5428 MAINTAINER_MODE_TRUE
='#'
5429 MAINTAINER_MODE_FALSE
=
5432 MAINT
=$MAINTAINER_MODE_TRUE
5435 if test -n "$ac_tool_prefix"; then
5436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5437 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_RANLIB+:} false
; then :
5441 $as_echo_n "(cached) " >&6
5443 if test -n "$RANLIB"; then
5444 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5450 test -z "$as_dir" && as_dir
=.
5451 for ac_exec_ext
in '' $ac_executable_extensions; do
5452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 RANLIB
=$ac_cv_prog_RANLIB
5464 if test -n "$RANLIB"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5466 $as_echo "$RANLIB" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5474 if test -z "$ac_cv_prog_RANLIB"; then
5475 ac_ct_RANLIB
=$RANLIB
5476 # Extract the first word of "ranlib", so it can be a program name with args.
5477 set dummy ranlib
; ac_word
=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5481 $as_echo_n "(cached) " >&6
5483 if test -n "$ac_ct_RANLIB"; then
5484 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5490 test -z "$as_dir" && as_dir
=.
5491 for ac_exec_ext
in '' $ac_executable_extensions; do
5492 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5493 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5504 if test -n "$ac_ct_RANLIB"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5506 $as_echo "$ac_ct_RANLIB" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5512 if test "x$ac_ct_RANLIB" = x
; then
5515 case $cross_compiling:$ac_tool_warned in
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5519 ac_tool_warned
=yes ;;
5521 RANLIB
=$ac_ct_RANLIB
5524 RANLIB
="$ac_cv_prog_RANLIB"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5529 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5531 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5532 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5533 $as_echo_n "(cached) " >&6
5535 cat >conftest.
make <<\_ACEOF
5538 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5540 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5541 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5543 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5545 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5549 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5551 $as_echo "yes" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 SET_MAKE
="MAKE=${MAKE-make}"
5560 # This should be inherited in the recursive make, but ensure it is defined.
5564 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5572 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5577 macro_version
='2.2.7a'
5578 macro_revision
='1.3134'
5592 ltmain
="$ac_aux_dir/ltmain.sh"
5594 # Backslashify metacharacters that are still active within
5595 # double-quoted strings.
5596 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5598 # Same as above, but do not quote variable references.
5599 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5601 # Sed substitution to delay expansion of an escaped shell variable in a
5602 # double_quote_subst'ed string.
5603 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5605 # Sed substitution to delay expansion of an escaped single quote.
5606 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5608 # Sed substitution to avoid accidental globbing in evaled expressions
5609 no_glob_subst
='s/\*/\\\*/g'
5611 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5612 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5616 $as_echo_n "checking how to print strings... " >&6; }
5617 # Test print first, because it will be a builtin if present.
5618 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5619 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5621 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5624 # Use this function as a fallback that always works.
5625 func_fallback_echo ()
5627 eval 'cat <<_LTECHO_EOF
5631 ECHO='func_fallback_echo
'
5634 # func_echo_all arg...
5635 # Invoke $ECHO with all args, space-separated.
5642 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5643 $as_echo "printf" >&6; } ;;
5644 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5645 $as_echo "print -r" >&6; } ;;
5646 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5647 $as_echo "cat" >&6; } ;;
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5665 if ${ac_cv_path_SED+:} false; then :
5666 $as_echo_n "(cached) " >&6
5668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5669 for ac_i in 1 2 3 4 5 6 7; do
5670 ac_script="$ac_script$as_nl$ac_script"
5672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5673 { ac_script=; unset ac_script;}
5674 if test -z "$SED"; then
5675 ac_path_SED_found=false
5676 # Loop through the user's path and
test for each of PROGNAME-LIST
5677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir
=.
5682 for ac_prog
in sed gsed
; do
5683 for ac_exec_ext
in '' $ac_executable_extensions; do
5684 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5685 as_fn_executable_p
"$ac_path_SED" ||
continue
5686 # Check for GNU ac_path_SED and select it if it is found.
5687 # Check for GNU $ac_path_SED
5688 case `"$ac_path_SED" --version 2>&1` in
5690 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5693 $as_echo_n 0123456789 >"conftest.in"
5696 cat "conftest.in" "conftest.in" >"conftest.tmp"
5697 mv "conftest.tmp" "conftest.in"
5698 cp "conftest.in" "conftest.nl"
5699 $as_echo '' >> "conftest.nl"
5700 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5702 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5703 if test $ac_count -gt ${ac_path_SED_max-0}; then
5704 # Best one so far, save it but keep looking for a better one
5705 ac_cv_path_SED
="$ac_path_SED"
5706 ac_path_SED_max
=$ac_count
5708 # 10*(2^10) chars as input seems more than enough
5709 test $ac_count -gt 10 && break
5711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5714 $ac_path_SED_found && break 3
5719 if test -z "$ac_cv_path_SED"; then
5720 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5728 $as_echo "$ac_cv_path_SED" >&6; }
5729 SED
="$ac_cv_path_SED"
5732 test -z "$SED" && SED
=sed
5733 Xsed
="$SED -e 1s/^X//"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5746 $as_echo_n "checking for fgrep... " >&6; }
5747 if ${ac_cv_path_FGREP+:} false
; then :
5748 $as_echo_n "(cached) " >&6
5750 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5751 then ac_cv_path_FGREP
="$GREP -F"
5753 if test -z "$FGREP"; then
5754 ac_path_FGREP_found
=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5757 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_prog
in fgrep
; do
5762 for ac_exec_ext
in '' $ac_executable_extensions; do
5763 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5764 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5765 # Check for GNU ac_path_FGREP and select it if it is found.
5766 # Check for GNU $ac_path_FGREP
5767 case `"$ac_path_FGREP" --version 2>&1` in
5769 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5772 $as_echo_n 0123456789 >"conftest.in"
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'FGREP' >> "conftest.nl"
5779 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5780 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5781 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5782 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_FGREP
="$ac_path_FGREP"
5785 ac_path_FGREP_max
=$ac_count
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5790 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5793 $ac_path_FGREP_found && break 3
5798 if test -z "$ac_cv_path_FGREP"; then
5799 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5802 ac_cv_path_FGREP
=$FGREP
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5808 $as_echo "$ac_cv_path_FGREP" >&6; }
5809 FGREP
="$ac_cv_path_FGREP"
5812 test -z "$GREP" && GREP
=grep
5832 # Check whether --with-gnu-ld was given.
5833 if test "${with_gnu_ld+set}" = set; then :
5834 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5840 if test "$GCC" = yes; then
5841 # Check if gcc -print-prog-name=ld gives a path.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5843 $as_echo_n "checking for ld used by $CC... " >&6; }
5846 # gcc leaves a trailing carriage return which upsets mingw
5847 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5849 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5852 # Accept absolute paths.
5854 re_direlt
='/[^/][^/]*/\.\./'
5855 # Canonicalize the pathname of ld
5856 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5857 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5858 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5860 test -z "$LD" && LD
="$ac_prog"
5863 # If it fails, then pretend we aren't using GCC.
5867 # If it is relative, then search for the first ld in PATH.
5871 elif test "$with_gnu_ld" = yes; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5873 $as_echo_n "checking for GNU ld... " >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5876 $as_echo_n "checking for non-GNU ld... " >&6; }
5878 if ${lt_cv_path_LD+:} false
; then :
5879 $as_echo_n "(cached) " >&6
5881 if test -z "$LD"; then
5882 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5883 for ac_dir
in $PATH; do
5885 test -z "$ac_dir" && ac_dir
=.
5886 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5887 lt_cv_path_LD
="$ac_dir/$ac_prog"
5888 # Check to see if the program is GNU ld. I'd rather use --version,
5889 # but apparently some variants of GNU ld only accept -v.
5890 # Break only if it was the GNU/non-GNU ld that we prefer.
5891 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5892 *GNU
* |
*'with BFD'*)
5893 test "$with_gnu_ld" != no
&& break
5896 test "$with_gnu_ld" != yes && break
5903 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5908 if test -n "$LD"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5910 $as_echo "$LD" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5915 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5917 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5918 if ${lt_cv_prog_gnu_ld+:} false
; then :
5919 $as_echo_n "(cached) " >&6
5921 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5922 case `$LD -v 2>&1 </dev/null` in
5923 *GNU
* |
*'with BFD'*)
5924 lt_cv_prog_gnu_ld
=yes
5927 lt_cv_prog_gnu_ld
=no
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5932 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5933 with_gnu_ld
=$lt_cv_prog_gnu_ld
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5944 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5945 if ${lt_cv_path_NM+:} false
; then :
5946 $as_echo_n "(cached) " >&6
5948 if test -n "$NM"; then
5949 # Let the user override the test.
5952 lt_nm_to_check
="${ac_tool_prefix}nm"
5953 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5954 lt_nm_to_check
="$lt_nm_to_check nm"
5956 for lt_tmp_nm
in $lt_nm_to_check; do
5957 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5958 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5960 test -z "$ac_dir" && ac_dir
=.
5961 tmp_nm
="$ac_dir/$lt_tmp_nm"
5962 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5963 # Check to see if the nm accepts a BSD-compat flag.
5964 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5965 # nm: unknown option "B" ignored
5966 # Tru64's nm complains that /dev/null is an invalid object file
5967 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5968 */dev
/null
* |
*'Invalid file or object type'*)
5969 lt_cv_path_NM
="$tmp_nm -B"
5973 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5975 lt_cv_path_NM
="$tmp_nm -p"
5979 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5980 continue # so that we can try to find one that supports BSD flags
5989 : ${lt_cv_path_NM=no}
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5993 $as_echo "$lt_cv_path_NM" >&6; }
5994 if test "$lt_cv_path_NM" != "no"; then
5997 # Didn't find any BSD compatible name lister, look for dumpbin.
5998 if test -n "$DUMPBIN"; then :
5999 # Let the user override the test.
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog
in dumpbin
"link -dump"
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6009 $as_echo_n "(cached) " >&6
6011 if test -n "$DUMPBIN"; then
6012 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6018 test -z "$as_dir" && as_dir
=.
6019 for ac_exec_ext
in '' $ac_executable_extensions; do
6020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 DUMPBIN
=$ac_cv_prog_DUMPBIN
6032 if test -n "$DUMPBIN"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6034 $as_echo "$DUMPBIN" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6041 test -n "$DUMPBIN" && break
6044 if test -z "$DUMPBIN"; then
6045 ac_ct_DUMPBIN
=$DUMPBIN
6046 for ac_prog
in dumpbin
"link -dump"
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy
$ac_prog; ac_word
=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$ac_ct_DUMPBIN"; then
6056 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir
=.
6063 for ac_exec_ext
in '' $ac_executable_extensions; do
6064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6076 if test -n "$ac_ct_DUMPBIN"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6078 $as_echo "$ac_ct_DUMPBIN" >&6; }
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6085 test -n "$ac_ct_DUMPBIN" && break
6088 if test "x$ac_ct_DUMPBIN" = x
; then
6091 case $cross_compiling:$ac_tool_warned in
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned
=yes ;;
6097 DUMPBIN
=$ac_ct_DUMPBIN
6101 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6103 DUMPBIN
="$DUMPBIN -symbols"
6111 if test "$DUMPBIN" != ":"; then
6115 test -z "$NM" && NM
=nm
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6124 if ${lt_cv_nm_interface+:} false
; then :
6125 $as_echo_n "(cached) " >&6
6127 lt_cv_nm_interface
="BSD nm"
6128 echo "int some_variable = 0;" > conftest.
$ac_ext
6129 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6130 (eval "$ac_compile" 2>conftest.err
)
6131 cat conftest.err
>&5
6132 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6134 cat conftest.err
>&5
6135 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6136 cat conftest.out
>&5
6137 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6138 lt_cv_nm_interface
="MS dumpbin"
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6143 $as_echo "$lt_cv_nm_interface" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146 $as_echo_n "checking whether ln -s works... " >&6; }
6148 if test "$LN_S" = "ln -s"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150 $as_echo "yes" >&6; }
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153 $as_echo "no, using $LN_S" >&6; }
6156 # find the maximum length of command line arguments
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6159 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6160 $as_echo_n "(cached) " >&6
6167 # On DJGPP, this test can blow up pretty badly due to problems in libc
6168 # (any single argument exceeding 2000 bytes causes a buffer overrun
6169 # during glob expansion). Even if it were fixed, the result of this
6170 # check would be larger than it should be.
6171 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6175 # Under GNU Hurd, this test is not required because there is
6176 # no limit to the length of command line arguments.
6177 # Libtool will interpret -1 as no limit whatsoever
6178 lt_cv_sys_max_cmd_len
=-1;
6181 cygwin
* | mingw
* | cegcc
*)
6182 # On Win9x/ME, this test blows up -- it succeeds, but takes
6183 # about 5 minutes as the teststring grows exponentially.
6184 # Worse, since 9x/ME are not pre-emptively multitasking,
6185 # you end up with a "frozen" computer, even though with patience
6186 # the test eventually succeeds (with a max line length of 256k).
6187 # Instead, let's just punt: use the minimum linelength reported by
6188 # all of the supported platforms: 8192 (on NT/2K/XP).
6189 lt_cv_sys_max_cmd_len
=8192;
6193 # On MiNT this can take a long time and run out of memory.
6194 lt_cv_sys_max_cmd_len
=8192;
6198 # On AmigaOS with pdksh, this test takes hours, literally.
6199 # So we just punt and use a minimum line length of 8192.
6200 lt_cv_sys_max_cmd_len
=8192;
6203 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6204 # This has been around since 386BSD, at least. Likely further.
6205 if test -x /sbin
/sysctl
; then
6206 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6207 elif test -x /usr
/sbin
/sysctl
; then
6208 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6210 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6212 # And add a safety zone
6213 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6218 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6219 lt_cv_sys_max_cmd_len
=196608
6223 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6224 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6225 # nice to cause kernel panics so lets avoid the loop below.
6226 # First set a reasonable default.
6227 lt_cv_sys_max_cmd_len
=16384
6229 if test -x /sbin
/sysconfig
; then
6230 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6231 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6236 lt_cv_sys_max_cmd_len
=102400
6238 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6239 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6240 if test -n "$kargmax"; then
6241 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6243 lt_cv_sys_max_cmd_len
=32768
6247 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6248 if test -n "$lt_cv_sys_max_cmd_len"; then
6249 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6252 # Make teststring a little bigger before we do anything with it.
6253 # a 1K string should be a reasonable start.
6254 for i
in 1 2 3 4 5 6 7 8 ; do
6255 teststring
=$teststring$teststring
6257 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6258 # If test is not a shell built-in, we'll probably end up computing a
6259 # maximum length that is only half of the actual maximum length, but
6261 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6262 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6263 test $i != 17 # 1/2 MB should be enough
6266 teststring
=$teststring$teststring
6268 # Only check the string length outside the loop.
6269 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6271 # Add a significant safety factor because C++ compilers can tack on
6272 # massive amounts of additional arguments before passing them to the
6273 # linker. It appears as though 1/2 is a usable value.
6274 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6281 if test -n $lt_cv_sys_max_cmd_len ; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286 $as_echo "none" >&6; }
6288 max_cmd_len
=$lt_cv_sys_max_cmd_len
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6300 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6301 # Try some XSI features
6304 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6306 && eval 'test $(( 1 + 1 )) -eq 2 \
6307 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6310 $as_echo "$xsi_shell" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6314 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6316 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6318 && lt_shell_append=yes
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6320 $as_echo "$lt_shell_append" >&6; }
6323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6333 # test EBCDIC or ASCII
6334 case `echo X|tr X '\101'` in
6335 A) # ASCII based system
6336 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6337 lt_SP2NL='tr \040 \012'
6338 lt_NL2SP='tr \015\012 \040\040'
6340 *) # EBCDIC based system
6341 lt_SP2NL='tr \100 \n'
6342 lt_NL2SP='tr \r\n \100\100'
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6355 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6356 if ${lt_cv_ld_reload_flag+:} false; then :
6357 $as_echo_n "(cached
) " >&6
6359 lt_cv_ld_reload_flag='-r'
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6363 reload_flag=$lt_cv_ld_reload_flag
6364 case $reload_flag in
6366 *) reload_flag=" $reload_flag" ;;
6368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371 if test "$GCC" = yes; then
6372 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6374 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6391 $as_echo_n "checking
for $ac_word...
" >&6; }
6392 if ${ac_cv_prog_OBJDUMP+:} false; then :
6393 $as_echo_n "(cached
) " >&6
6395 if test -n "$OBJDUMP"; then
6396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6415 OBJDUMP=$ac_cv_prog_OBJDUMP
6416 if test -n "$OBJDUMP"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6418 $as_echo "$OBJDUMP" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6421 $as_echo "no
" >&6; }
6426 if test -z "$ac_cv_prog_OBJDUMP"; then
6427 ac_ct_OBJDUMP=$OBJDUMP
6428 # Extract the first word of "objdump
", so it can be a program name with args.
6429 set dummy objdump; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6431 $as_echo_n "checking
for $ac_word...
" >&6; }
6432 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6433 $as_echo_n "(cached
) " >&6
6435 if test -n "$ac_ct_OBJDUMP"; then
6436 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6455 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6456 if test -n "$ac_ct_OBJDUMP"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6458 $as_echo "$ac_ct_OBJDUMP" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6461 $as_echo "no
" >&6; }
6464 if test "x
$ac_ct_OBJDUMP" = x; then
6467 case $cross_compiling:$ac_tool_warned in
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6470 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6471 ac_tool_warned=yes ;;
6473 OBJDUMP=$ac_ct_OBJDUMP
6476 OBJDUMP="$ac_cv_prog_OBJDUMP"
6479 test -z "$OBJDUMP" && OBJDUMP=objdump
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6490 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6491 if ${lt_cv_deplibs_check_method+:} false; then :
6492 $as_echo_n "(cached
) " >&6
6494 lt_cv_file_magic_cmd='$MAGIC_CMD'
6495 lt_cv_file_magic_test_file=
6496 lt_cv_deplibs_check_method='unknown'
6497 # Need to set the preceding variable on all platforms that support
6498 # interlibrary dependencies.
6499 # 'none' -- dependencies not supported.
6500 # `unknown' -- same as none, but documents that we really don't know.
6501 # 'pass_all' -- all dependencies passed with no checks.
6502 # 'test_compile' -- check by making test program.
6503 # 'file_magic [[regex]]' -- check by looking for files in library path
6504 # which responds to the $file_magic_cmd with a given extended regex.
6505 # If you have `file' or equivalent on your system and you're not sure
6506 # whether `pass_all' will *always* work, you probably want this one.
6510 lt_cv_deplibs_check_method=pass_all
6514 lt_cv_deplibs_check_method=pass_all
6518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519 lt_cv_file_magic_cmd='/usr/bin/file -L'
6520 lt_cv_file_magic_test_file=/shlib/libc.so
6524 # func_win32_libid is a shell function defined in ltmain.sh
6525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526 lt_cv_file_magic_cmd='func_win32_libid'
6530 # Base MSYS/MinGW do not provide the 'file' command needed by
6531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532 # unless we find 'file', for example because we are cross-compiling.
6533 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6534 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536 lt_cv_file_magic_cmd='func_win32_libid'
6538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6539 lt_cv_file_magic_cmd='$OBJDUMP -f'
6544 # use the weaker test based on 'objdump'. See mingw*.
6545 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6546 lt_cv_file_magic_cmd='$OBJDUMP -f'
6549 darwin* | rhapsody*)
6550 lt_cv_deplibs_check_method=pass_all
6553 freebsd* | dragonfly*)
6554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6557 # Not sure whether the presence of OpenBSD here was a mistake.
6558 # Let's accept both of them until this is cleared up.
6559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6560 lt_cv_file_magic_cmd=/usr/bin/file
6561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6565 lt_cv_deplibs_check_method=pass_all
6570 lt_cv_deplibs_check_method=pass_all
6574 lt_cv_deplibs_check_method=pass_all
6577 hpux10.20* | hpux11*)
6578 lt_cv_file_magic_cmd=/usr/bin/file
6581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6582 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6585 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]'
6586 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6590 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6596 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6600 irix5* | irix6* | nonstopux*)
6602 *-32|*"-32 ") libmagic=32-bit;;
6603 *-n32|*"-n32 ") libmagic=N32;;
6604 *-64|*"-64 ") libmagic=64-bit;;
6605 *) libmagic=never-match;;
6607 lt_cv_deplibs_check_method=pass_all
6610 # This must be Linux ELF.
6611 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6612 lt_cv_deplibs_check_method=pass_all
6616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6625 lt_cv_file_magic_cmd=/usr/bin/file
6626 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6630 lt_cv_deplibs_check_method=pass_all
6634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6641 osf3* | osf4* | osf5*)
6642 lt_cv_deplibs_check_method=pass_all
6646 lt_cv_deplibs_check_method=pass_all
6650 lt_cv_deplibs_check_method=pass_all
6653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6654 lt_cv_deplibs_check_method=pass_all
6658 case $host_vendor in
6660 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]'
6661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6664 lt_cv_deplibs_check_method=pass_all
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6671 lt_cv_file_magic_cmd='/bin/file'
6672 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6673 lt_cv_file_magic_test_file=/lib/libc.so
6676 lt_cv_deplibs_check_method=pass_all
6679 lt_cv_deplibs_check_method=pass_all
6685 lt_cv_deplibs_check_method=pass_all
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6691 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6692 file_magic_cmd=$lt_cv_file_magic_cmd
6693 deplibs_check_method=$lt_cv_deplibs_check_method
6694 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6707 if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6709 set dummy ${ac_tool_prefix}ar; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6711 $as_echo_n "checking
for $ac_word...
" >&6; }
6712 if ${ac_cv_prog_AR+:} false; then :
6713 $as_echo_n "(cached
) " >&6
6715 if test -n "$AR"; then
6716 ac_cv_prog_AR="$AR" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_AR="${ac_tool_prefix}ar"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6736 if test -n "$AR"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6738 $as_echo "$AR" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6741 $as_echo "no
" >&6; }
6746 if test -z "$ac_cv_prog_AR"; then
6748 # Extract the first word of "ar", so it can be a program name with args.
6749 set dummy ar; ac_word=$2
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6751 $as_echo_n "checking
for $ac_word...
" >&6; }
6752 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6753 $as_echo_n "(cached
) " >&6
6755 if test -n "$ac_ct_AR"; then
6756 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_AR="ar"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6775 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6776 if test -n "$ac_ct_AR"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6778 $as_echo "$ac_ct_AR" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6781 $as_echo "no
" >&6; }
6784 if test "x
$ac_ct_AR" = x; then
6787 case $cross_compiling:$ac_tool_warned in
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6790 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6791 ac_tool_warned=yes ;;
6799 test -z "$AR" && AR=ar
6800 test -z "$AR_FLAGS" && AR_FLAGS=cru
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}strip; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6816 $as_echo_n "checking
for $ac_word...
" >&6; }
6817 if ${ac_cv_prog_STRIP+:} false; then :
6818 $as_echo_n "(cached
) " >&6
6820 if test -n "$STRIP"; then
6821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6840 STRIP=$ac_cv_prog_STRIP
6841 if test -n "$STRIP"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6843 $as_echo "$STRIP" >&6; }
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6846 $as_echo "no
" >&6; }
6851 if test -z "$ac_cv_prog_STRIP"; then
6853 # Extract the first word of "strip
", so it can be a program name with args.
6854 set dummy strip; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6856 $as_echo_n "checking
for $ac_word...
" >&6; }
6857 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6858 $as_echo_n "(cached
) " >&6
6860 if test -n "$ac_ct_STRIP"; then
6861 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_ac_ct_STRIP="strip
"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6881 if test -n "$ac_ct_STRIP"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6883 $as_echo "$ac_ct_STRIP" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6886 $as_echo "no
" >&6; }
6889 if test "x
$ac_ct_STRIP" = x; then
6892 case $cross_compiling:$ac_tool_warned in
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6895 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6896 ac_tool_warned=yes ;;
6901 STRIP="$ac_cv_prog_STRIP"
6904 test -z "$STRIP" && STRIP=:
6911 if test -n "$ac_tool_prefix"; then
6912 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6915 $as_echo_n "checking
for $ac_word...
" >&6; }
6916 if ${ac_cv_prog_RANLIB+:} false; then :
6917 $as_echo_n "(cached
) " >&6
6919 if test -n "$RANLIB"; then
6920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6939 RANLIB=$ac_cv_prog_RANLIB
6940 if test -n "$RANLIB"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6942 $as_echo "$RANLIB" >&6; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6945 $as_echo "no
" >&6; }
6950 if test -z "$ac_cv_prog_RANLIB"; then
6951 ac_ct_RANLIB=$RANLIB
6952 # Extract the first word of "ranlib
", so it can be a program name with args.
6953 set dummy ranlib; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6955 $as_echo_n "checking
for $ac_word...
" >&6; }
6956 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6957 $as_echo_n "(cached
) " >&6
6959 if test -n "$ac_ct_RANLIB"; then
6960 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6979 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6980 if test -n "$ac_ct_RANLIB"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6982 $as_echo "$ac_ct_RANLIB" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6985 $as_echo "no
" >&6; }
6988 if test "x
$ac_ct_RANLIB" = x; then
6991 case $cross_compiling:$ac_tool_warned in
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6994 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6995 ac_tool_warned=yes ;;
6997 RANLIB=$ac_ct_RANLIB
7000 RANLIB="$ac_cv_prog_RANLIB"
7003 test -z "$RANLIB" && RANLIB=:
7010 # Determine commands to create old-style static archives.
7011 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7012 old_postinstall_cmds='chmod 644 $oldlib'
7013 old_postuninstall_cmds=
7015 if test -n "$RANLIB"; then
7018 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7021 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7024 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7029 lock_old_archive_extraction=yes ;;
7031 lock_old_archive_extraction=no ;;
7072 # If no C compiler was specified, use CC.
7075 # If no C compiler flags were specified, use CFLAGS.
7076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7078 # Allow CC to be a program name with arguments.
7082 # Check for command to grab the raw symbol name followed by C symbol from nm.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7084 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7085 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7086 $as_echo_n "(cached
) " >&6
7089 # These are sane defaults that work on at least a few old systems.
7090 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7092 # Character class describing NM global symbol codes.
7093 symcode='[BCDEGRST]'
7095 # Regexp to match symbols that can be accessed directly from C.
7096 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7098 # Define system-specific variables.
7103 cygwin* | mingw* | pw32* | cegcc*)
7104 symcode='[ABCDGISTW]'
7107 if test "$host_cpu" = ia64; then
7108 symcode='[ABCDEGRST]'
7112 symcode='[BCDEGRST]'
7115 symcode='[BCDEGQRST]'
7126 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7134 # If we're using GNU nm, then use its standard symbol codes.
7135 case `$NM -V 2>&1` in
7136 *GNU* | *'with BFD'*)
7137 symcode='[ABCDGIRSTW]' ;;
7140 # Transform an extracted symbol line into a proper C declaration.
7141 # Some systems (esp. on ia64) link data and code symbols differently,
7142 # so use this general approach.
7143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7145 # Transform an extracted symbol line into symbol name and symbol address
7146 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7147 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'"
7149 # Handle CRLF in mingw tool chain
7153 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7157 # Try without a prefix underscore, then with it.
7158 for ac_symprfx in "" "_
"; do
7160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7161 symxfrm="\\1 $ac_symprfx\\2 \\2"
7163 # Write the raw and C identifiers.
7164 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7165 # Fake it for dumpbin and say T for any non-static function
7166 # and D for any global variable.
7167 # Also find C++ and __fastcall symbols from MSVC++,
7168 # which start with @ or ?.
7169 lt_cv_sys_global_symbol_pipe="$AWK '"\
7170 " {last_section=section; section=\$ 3};"\
7171 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7172 " \$ 0!~/External *\|/{next};"\
7173 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7174 " {if(hide[section]) next};"\
7175 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7176 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7177 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7178 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7179 " ' prfx
=^
$ac_symprfx"
7181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7184 # Check to see that the pipe works correctly.
7188 cat > conftest.$ac_ext <<_LT_EOF
7193 void nm_test_func(void);
7194 void nm_test_func(void){}
7198 int main(){nm_test_var='a';nm_test_func();return(0);}
7201 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 # Now try to grab the symbols.
7208 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7209 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7212 test $ac_status = 0; } && test -s "$nlist"; then
7213 # Try sorting and uniquifying the output.
7214 if sort "$nlist" | uniq > "$nlist"T; then
7215 mv -f "$nlist"T "$nlist"
7220 # Make sure that we snagged all the symbols we need.
7221 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7222 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7223 cat <<_LT_EOF > conftest.$ac_ext
7229 # Now generate the symbol file.
7230 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7232 cat <<_LT_EOF >> conftest.$ac_ext
7234 /* The mapping between symbol names and symbols. */
7239 lt__PROGRAM__LTX_preloaded_symbols[] =
7241 { "@PROGRAM@
", (void *) 0 },
7243 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7244 cat <<\_LT_EOF >> conftest.$ac_ext
7248 /* This works around a problem in FreeBSD linker */
7249 #ifdef FREEBSD_WORKAROUND
7250 static const void *lt_preloaded_setup() {
7251 return lt__PROGRAM__LTX_preloaded_symbols;
7259 # Now try linking the two files.
7260 mv conftest.$ac_objext conftstm.$ac_objext
7261 lt_save_LIBS="$LIBS"
7262 lt_save_CFLAGS="$CFLAGS"
7263 LIBS="conftstm.
$ac_objext"
7264 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7265 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7266 (eval $ac_link) 2>&5
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7269 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7272 LIBS="$lt_save_LIBS"
7273 CFLAGS="$lt_save_CFLAGS"
7275 echo "cannot
find nm_test_func
in $nlist" >&5
7278 echo "cannot
find nm_test_var
in $nlist" >&5
7281 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7284 echo "$progname: failed program was
:" >&5
7285 cat conftest.$ac_ext >&5
7287 rm -rf conftest* conftst*
7289 # Do not use the global_symbol_pipe unless it works.
7290 if test "$pipe_works" = yes; then
7293 lt_cv_sys_global_symbol_pipe=
7299 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7300 lt_cv_sys_global_symbol_to_cdecl=
7302 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7304 $as_echo "failed
" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7307 $as_echo "ok
" >&6; }
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333 enableval=$enable_libtool_lock;
7336 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7338 # Some flags need to be propagated to the compiler or linker for good
7342 # Find out which ABI we are using.
7343 echo 'int i;' > conftest.$ac_ext
7344 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 case `/usr/bin/file conftest.$ac_objext` in
7361 # Find out which ABI we are using.
7362 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7363 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test "$lt_cv_prog_gnu_ld" = yes; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7371 LD="${LD-ld} -melf32bsmip"
7374 LD="${LD-ld} -melf32bmipn32"
7377 LD="${LD-ld} -melf64bmip"
7381 case `/usr/bin/file conftest.$ac_objext` in
7397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7409 x86_64-*kfreebsd*-gnu)
7410 LD="${LD-ld} -m elf_i386_fbsd
"
7413 case `/usr/bin/file conftest.o` in
7415 LD="${LD-ld} -m elf32_x86_64
"
7418 LD="${LD-ld} -m elf_i386
"
7422 powerpc64le-*linux*)
7423 LD="${LD-ld} -m elf32lppclinux
"
7426 LD="${LD-ld} -m elf32ppclinux
"
7429 LD="${LD-ld} -m elf_s390
"
7432 LD="${LD-ld} -m elf32_sparc
"
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_x86_64_fbsd
"
7442 LD="${LD-ld} -m elf_x86_64
"
7445 LD="${LD-ld} -m elf64lppc
"
7448 LD="${LD-ld} -m elf64ppc
"
7450 s390*-*linux*|s390*-*tpf*)
7451 LD="${LD-ld} -m elf64_s390
"
7454 LD="${LD-ld} -m elf64_sparc
"
7464 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7465 SAVE_CFLAGS="$CFLAGS"
7466 CFLAGS="$CFLAGS -belf"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7468 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7469 if ${lt_cv_cc_needs_belf+:} false; then :
7470 $as_echo_n "(cached
) " >&6
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7489 if ac_fn_c_try_link "$LINENO"; then :
7490 lt_cv_cc_needs_belf=yes
7492 lt_cv_cc_needs_belf=no
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7504 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7505 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7506 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7507 CFLAGS="$SAVE_CFLAGS"
7511 # Find out which ABI we are using.
7512 echo 'int i;' > conftest.$ac_ext
7513 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7514 (eval $ac_compile) 2>&5
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 case `/usr/bin/file conftest.o` in
7520 case $lt_cv_prog_gnu_ld in
7521 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7523 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7535 need_locks="$enable_libtool_lock"
7539 rhapsody* | darwin*)
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7544 $as_echo_n "checking
for $ac_word...
" >&6; }
7545 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7546 $as_echo_n "(cached
) " >&6
7548 if test -n "$DSYMUTIL"; then
7549 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7568 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7569 if test -n "$DSYMUTIL"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7571 $as_echo "$DSYMUTIL" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7574 $as_echo "no
" >&6; }
7579 if test -z "$ac_cv_prog_DSYMUTIL"; then
7580 ac_ct_DSYMUTIL=$DSYMUTIL
7581 # Extract the first word of "dsymutil
", so it can be a program name with args.
7582 set dummy dsymutil; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7584 $as_echo_n "checking
for $ac_word...
" >&6; }
7585 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7586 $as_echo_n "(cached
) " >&6
7588 if test -n "$ac_ct_DSYMUTIL"; then
7589 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7608 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7609 if test -n "$ac_ct_DSYMUTIL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7611 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7614 $as_echo "no
" >&6; }
7617 if test "x
$ac_ct_DSYMUTIL" = x; then
7620 case $cross_compiling:$ac_tool_warned in
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7623 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7624 ac_tool_warned=yes ;;
7626 DSYMUTIL=$ac_ct_DSYMUTIL
7629 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7636 $as_echo_n "checking
for $ac_word...
" >&6; }
7637 if ${ac_cv_prog_NMEDIT+:} false; then :
7638 $as_echo_n "(cached
) " >&6
7640 if test -n "$NMEDIT"; then
7641 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7660 NMEDIT=$ac_cv_prog_NMEDIT
7661 if test -n "$NMEDIT"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7663 $as_echo "$NMEDIT" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7666 $as_echo "no
" >&6; }
7671 if test -z "$ac_cv_prog_NMEDIT"; then
7672 ac_ct_NMEDIT=$NMEDIT
7673 # Extract the first word of "nmedit
", so it can be a program name with args.
7674 set dummy nmedit; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7676 $as_echo_n "checking
for $ac_word...
" >&6; }
7677 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7678 $as_echo_n "(cached
) " >&6
7680 if test -n "$ac_ct_NMEDIT"; then
7681 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7700 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7701 if test -n "$ac_ct_NMEDIT"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7703 $as_echo "$ac_ct_NMEDIT" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7706 $as_echo "no
" >&6; }
7709 if test "x
$ac_ct_NMEDIT" = x; then
7712 case $cross_compiling:$ac_tool_warned in
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7715 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7716 ac_tool_warned=yes ;;
7718 NMEDIT=$ac_ct_NMEDIT
7721 NMEDIT="$ac_cv_prog_NMEDIT"
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7728 $as_echo_n "checking
for $ac_word...
" >&6; }
7729 if ${ac_cv_prog_LIPO+:} false; then :
7730 $as_echo_n "(cached
) " >&6
7732 if test -n "$LIPO"; then
7733 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7752 LIPO=$ac_cv_prog_LIPO
7753 if test -n "$LIPO"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7755 $as_echo "$LIPO" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7758 $as_echo "no
" >&6; }
7763 if test -z "$ac_cv_prog_LIPO"; then
7765 # Extract the first word of "lipo
", so it can be a program name with args.
7766 set dummy lipo; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7768 $as_echo_n "checking
for $ac_word...
" >&6; }
7769 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7770 $as_echo_n "(cached
) " >&6
7772 if test -n "$ac_ct_LIPO"; then
7773 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_ac_ct_LIPO="lipo
"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7792 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7793 if test -n "$ac_ct_LIPO"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7795 $as_echo "$ac_ct_LIPO" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7798 $as_echo "no
" >&6; }
7801 if test "x
$ac_ct_LIPO" = x; then
7804 case $cross_compiling:$ac_tool_warned in
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7807 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7808 ac_tool_warned=yes ;;
7813 LIPO="$ac_cv_prog_LIPO"
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}otool; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7820 $as_echo_n "checking
for $ac_word...
" >&6; }
7821 if ${ac_cv_prog_OTOOL+:} false; then :
7822 $as_echo_n "(cached
) " >&6
7824 if test -n "$OTOOL"; then
7825 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7844 OTOOL=$ac_cv_prog_OTOOL
7845 if test -n "$OTOOL"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7847 $as_echo "$OTOOL" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7850 $as_echo "no
" >&6; }
7855 if test -z "$ac_cv_prog_OTOOL"; then
7857 # Extract the first word of "otool
", so it can be a program name with args.
7858 set dummy otool; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7860 $as_echo_n "checking
for $ac_word...
" >&6; }
7861 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7862 $as_echo_n "(cached
) " >&6
7864 if test -n "$ac_ct_OTOOL"; then
7865 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_ac_ct_OTOOL="otool
"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7884 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7885 if test -n "$ac_ct_OTOOL"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7887 $as_echo "$ac_ct_OTOOL" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7890 $as_echo "no
" >&6; }
7893 if test "x
$ac_ct_OTOOL" = x; then
7896 case $cross_compiling:$ac_tool_warned in
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7899 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7900 ac_tool_warned=yes ;;
7905 OTOOL="$ac_cv_prog_OTOOL"
7908 if test -n "$ac_tool_prefix"; then
7909 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7910 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7912 $as_echo_n "checking
for $ac_word...
" >&6; }
7913 if ${ac_cv_prog_OTOOL64+:} false; then :
7914 $as_echo_n "(cached
) " >&6
7916 if test -n "$OTOOL64"; then
7917 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir=.
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7936 OTOOL64=$ac_cv_prog_OTOOL64
7937 if test -n "$OTOOL64"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7939 $as_echo "$OTOOL64" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7942 $as_echo "no
" >&6; }
7947 if test -z "$ac_cv_prog_OTOOL64"; then
7948 ac_ct_OTOOL64=$OTOOL64
7949 # Extract the first word of "otool64
", so it can be a program name with args.
7950 set dummy otool64; ac_word=$2
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7952 $as_echo_n "checking
for $ac_word...
" >&6; }
7953 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7954 $as_echo_n "(cached
) " >&6
7956 if test -n "$ac_ct_OTOOL64"; then
7957 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7976 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7977 if test -n "$ac_ct_OTOOL64"; then
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7979 $as_echo "$ac_ct_OTOOL64" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7982 $as_echo "no
" >&6; }
7985 if test "x
$ac_ct_OTOOL64" = x; then
7988 case $cross_compiling:$ac_tool_warned in
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7991 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7992 ac_tool_warned=yes ;;
7994 OTOOL64=$ac_ct_OTOOL64
7997 OTOOL64="$ac_cv_prog_OTOOL64"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8027 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8028 if ${lt_cv_apple_cc_single_mod+:} false; then :
8029 $as_echo_n "(cached
) " >&6
8031 lt_cv_apple_cc_single_mod=no
8032 if test -z "${LT_MULTI_MODULE}"; then
8033 # By default we will add the -single_module flag. You can override
8034 # by either setting the environment variable LT_MULTI_MODULE
8035 # non-empty at configure time, or by adding -multi_module to the
8037 rm -rf libconftest.dylib*
8038 echo "int foo
(void
){return 1;}" > conftest.c
8039 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8040 -dynamiclib -Wl,-single_module conftest.c
" >&5
8041 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8042 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8044 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8045 lt_cv_apple_cc_single_mod=yes
8047 cat conftest.err >&5
8049 rm -rf libconftest.dylib*
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8054 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8056 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8057 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8058 $as_echo_n "(cached
) " >&6
8060 lt_cv_ld_exported_symbols_list=no
8061 save_LDFLAGS=$LDFLAGS
8062 echo "_main
" > conftest.sym
8063 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 lt_cv_ld_exported_symbols_list=yes
8078 lt_cv_ld_exported_symbols_list=no
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LDFLAGS="$save_LDFLAGS"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8086 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8088 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8089 if ${lt_cv_ld_force_load+:} false; then :
8090 $as_echo_n "(cached
) " >&6
8092 lt_cv_ld_force_load=no
8093 cat > conftest.c << _LT_EOF
8094 int forced_loaded() { return 2;}
8096 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8097 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8098 echo "$AR cru libconftest.a conftest.o
" >&5
8099 $AR cru libconftest.a conftest.o 2>&5
8100 cat > conftest.c << _LT_EOF
8101 int main() { return 0;}
8103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8106 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8107 lt_cv_ld_force_load=yes
8109 cat conftest.err >&5
8111 rm -f conftest.err libconftest.a conftest conftest.c
8112 rm -rf conftest.dSYM
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8116 $as_echo "$lt_cv_ld_force_load" >&6; }
8118 rhapsody* | darwin1.[012])
8119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8122 darwin*) # darwin 5.x on
8123 # if running on 10.5 or later, the deployment target defaults
8124 # to the OS version, if on x86, and 10.4, the deployment
8125 # target defaults to 10.4. Don't you love it?
8126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8137 _lt_dar_single_mod='$single_module'
8139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8145 _lt_dsymutil='~$DSYMUTIL $lib || :'
8152 for ac_header in dlfcn.h
8154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8156 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8157 cat >>confdefs.h <<_ACEOF
8158 #define HAVE_DLFCN_H 1
8178 # Check whether --enable-shared was given.
8179 if test "${enable_shared+set}" = set; then :
8180 enableval=$enable_shared; p=${PACKAGE-default}
8182 yes) enable_shared=yes ;;
8183 no) enable_shared=no ;;
8186 # Look at the argument we got. We use all the common list separators.
8187 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8188 for pkg in $enableval; do
8190 if test "X
$pkg" = "X
$p"; then
8209 # Check whether --enable-static was given.
8210 if test "${enable_static+set}" = set; then :
8211 enableval=$enable_static; p=${PACKAGE-default}
8213 yes) enable_static=yes ;;
8214 no) enable_static=no ;;
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for pkg in $enableval; do
8221 if test "X
$pkg" = "X
$p"; then
8241 # Check whether --with-pic was given.
8242 if test "${with_pic+set}" = set; then :
8243 withval=$with_pic; pic_mode="$withval"
8249 test -z "$pic_mode" && pic_mode=default
8257 # Check whether --enable-fast-install was given.
8258 if test "${enable_fast_install+set}" = set; then :
8259 enableval=$enable_fast_install; p=${PACKAGE-default}
8261 yes) enable_fast_install=yes ;;
8262 no) enable_fast_install=no ;;
8264 enable_fast_install=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8269 if test "X
$pkg" = "X
$p"; then
8270 enable_fast_install=yes
8277 enable_fast_install=yes
8290 # This can be used to rebuild libtool when needed
8291 LIBTOOL_DEPS="$ltmain"
8293 # Always use our own libtool.
8294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8321 test -z "$LN_S" && LN_S="ln -s"
8336 if test -n "${ZSH_VERSION+set}" ; then
8337 setopt NO_GLOB_SUBST
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8341 $as_echo_n "checking
for objdir...
" >&6; }
8342 if ${lt_cv_objdir+:} false; then :
8343 $as_echo_n "(cached
) " >&6
8345 rm -f .libs 2>/dev/null
8346 mkdir .libs 2>/dev/null
8347 if test -d .libs; then
8350 # MS-DOS does not allow filenames that begin with a dot.
8353 rmdir .libs 2>/dev/null
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8356 $as_echo "$lt_cv_objdir" >&6; }
8357 objdir=$lt_cv_objdir
8363 cat >>confdefs.h <<_ACEOF
8364 #define LT_OBJDIR "$lt_cv_objdir/"
8372 # AIX sometimes has problems with the GCC collect2 program. For some
8373 # reason, if we set the COLLECT_NAMES environment variable, the problems
8374 # vanish in a puff of smoke.
8375 if test "X
${COLLECT_NAMES+set}" != Xset; then
8377 export COLLECT_NAMES
8384 can_build_shared=yes
8386 # All known linkers require a `.a' archive for static linking (except MSVC,
8387 # which needs '.lib').
8390 with_gnu_ld="$lt_cv_prog_gnu_ld"
8393 old_CFLAGS="$CFLAGS"
8395 # Set sane defaults for various variables
8396 test -z "$CC" && CC=cc
8397 test -z "$LTCC" && LTCC=$CC
8398 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8399 test -z "$LD" && LD=ld
8400 test -z "$ac_objext" && ac_objext=o
8402 for cc_temp in $compiler""; do
8404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8410 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8413 # Only perform the check for file, if the check method requires it
8414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8415 case $deplibs_check_method in
8417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8419 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8420 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8421 $as_echo_n "(cached
) " >&6
8425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8428 lt_save_MAGIC_CMD="$MAGIC_CMD"
8429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8430 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8431 for ac_dir in $ac_dummy; do
8433 test -z "$ac_dir" && ac_dir=.
8434 if test -f $ac_dir/${ac_tool_prefix}file; then
8435 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8436 if test -n "$file_magic_test_file"; then
8437 case $deplibs_check_method in
8439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8442 $EGREP "$file_magic_regex" > /dev/null; then
8447 *** Warning: the command libtool uses to detect shared libraries,
8448 *** $file_magic_cmd, produces output that libtool cannot recognize.
8449 *** The result is that libtool may fail to recognize shared libraries
8450 *** as such. This will affect the creation of libtool libraries that
8451 *** depend on shared libraries, but programs linked with such libtool
8452 *** libraries will work regardless of this problem. Nevertheless, you
8453 *** may want to report the problem to your system manager and/or to
8454 *** bug-libtool@gnu.org
8464 MAGIC_CMD="$lt_save_MAGIC_CMD"
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if test -n "$MAGIC_CMD"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8472 $as_echo "$MAGIC_CMD" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8475 $as_echo "no
" >&6; }
8482 if test -z "$lt_cv_path_MAGIC_CMD"; then
8483 if test -n "$ac_tool_prefix"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8485 $as_echo_n "checking
for file...
" >&6; }
8486 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8487 $as_echo_n "(cached
) " >&6
8491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8494 lt_save_MAGIC_CMD="$MAGIC_CMD"
8495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8496 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8497 for ac_dir in $ac_dummy; do
8499 test -z "$ac_dir" && ac_dir=.
8500 if test -f $ac_dir/file; then
8501 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8502 if test -n "$file_magic_test_file"; then
8503 case $deplibs_check_method in
8505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8508 $EGREP "$file_magic_regex" > /dev/null; then
8513 *** Warning: the command libtool uses to detect shared libraries,
8514 *** $file_magic_cmd, produces output that libtool cannot recognize.
8515 *** The result is that libtool may fail to recognize shared libraries
8516 *** as such. This will affect the creation of libtool libraries that
8517 *** depend on shared libraries, but programs linked with such libtool
8518 *** libraries will work regardless of this problem. Nevertheless, you
8519 *** may want to report the problem to your system manager and/or to
8520 *** bug-libtool@gnu.org
8530 MAGIC_CMD="$lt_save_MAGIC_CMD"
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if test -n "$MAGIC_CMD"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8538 $as_echo "$MAGIC_CMD" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8541 $as_echo "no
" >&6; }
8554 # Use C for the default configuration in the libtool script
8558 ac_cpp='$CPP $CPPFLAGS'
8559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564 # Source file extension for C test sources.
8567 # Object file extension for compiled C test sources.
8571 # Code to be used in simple compile tests
8572 lt_simple_compile_test_code="int some_variable
= 0;"
8574 # Code to be used in simple link tests
8575 lt_simple_link_test_code='int main(){return(0);}'
8583 # If no C compiler was specified, use CC.
8586 # If no C compiler flags were specified, use CFLAGS.
8587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8589 # Allow CC to be a program name with arguments.
8592 # Save the default compiler, since it gets overwritten when the other
8593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8594 compiler_DEFAULT=$CC
8596 # save warnings/boilerplate of simple test code
8597 ac_outfile=conftest.$ac_objext
8598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600 _lt_compiler_boilerplate=`cat conftest.err`
8603 ac_outfile=conftest.$ac_objext
8604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8606 _lt_linker_boilerplate=`cat conftest.err`
8611 ## There is no encapsulation within the following macros, do not change
8612 ## the running order or otherwise move them around unless you know exactly
8613 ## what you are doing...
8614 if test -n "$compiler"; then
8616 lt_prog_compiler_no_builtin_flag=
8618 if test "$GCC" = yes; then
8619 case $cc_basename in
8621 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8623 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8627 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8628 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8629 $as_echo_n "(cached
) " >&6
8631 lt_cv_prog_compiler_rtti_exceptions=no
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8634 lt_compiler_flag="-fno-rtti -fno-exceptions"
8635 # Insert the option either (1) after the last *FLAGS variable, or
8636 # (2) before a word containing "conftest.
", or (3) at the end.
8637 # Note that $ac_compile itself does not contain backslashes and begins
8638 # with a dollar sign (not a hyphen), so the echo should work correctly.
8639 # The option is referenced via a variable to avoid confusing sed.
8640 lt_compile=`echo "$ac_compile" | $SED \
8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8643 -e 's:$: $lt_compiler_flag:'`
8644 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8645 (eval "$lt_compile" 2>conftest.err)
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8649 if (exit $ac_status) && test -s "$ac_outfile"; then
8650 # The compiler can only warn and ignore the option if not recognized
8651 # So say no if there are warnings other than the usual output.
8652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8655 lt_cv_prog_compiler_rtti_exceptions=yes
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8677 lt_prog_compiler_wl=
8678 lt_prog_compiler_pic=
8679 lt_prog_compiler_static=
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8682 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8684 if test "$GCC" = yes; then
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_static='-static'
8690 # All AIX code is PIC.
8691 if test "$host_cpu" = ia64; then
8692 # AIX 5 now supports IA64 processor
8693 lt_prog_compiler_static='-Bstatic'
8695 lt_prog_compiler_pic='-fPIC'
8701 # see comment about AmigaOS4 .so support
8702 lt_prog_compiler_pic='-fPIC'
8705 # FIXME: we need at least 68020 code to build shared libraries, but
8706 # adding the `-m68020' flag to GCC prevents building anything better,
8708 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8713 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8714 # PIC is the default for these OSes.
8717 mingw* | cygwin* | pw32* | os2* | cegcc*)
8718 # This hack is so that the source file can tell whether it is being
8719 # built for inclusion in a dll (and should export symbols for example).
8720 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8721 # (--disable-auto-import) libraries
8722 lt_prog_compiler_pic='-DDLL_EXPORT'
8725 darwin* | rhapsody*)
8726 # PIC is the default on this platform
8727 # Common symbols not allowed in MH_DYLIB files
8728 lt_prog_compiler_pic='-fno-common'
8732 # PIC is the default for Haiku.
8733 # The "-static" flag exists, but is broken.
8734 lt_prog_compiler_static=
8738 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8739 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8740 # sets the default TLS model and affects inlining.
8746 lt_prog_compiler_pic='-fPIC'
8752 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8753 # Instead, we relocate shared libraries at runtime.
8757 # Just because we use GCC doesn't mean we suddenly get shared libraries
8758 # on systems that don't support them.
8759 lt_prog_compiler_can_build_shared=no
8764 # QNX uses GNU C++, but need to define -shared option too, otherwise
8766 lt_prog_compiler_pic='-fPIC -shared'
8770 if test -d /usr/nec; then
8771 lt_prog_compiler_pic=-Kconform_pic
8776 lt_prog_compiler_pic='-fPIC'
8780 case $cc_basename in
8781 nvcc*) # Cuda Compiler Driver 2.2
8782 lt_prog_compiler_wl='-Xlinker '
8783 lt_prog_compiler_pic='-Xcompiler -fPIC'
8787 # PORTME Check for flag to pass linker flags through the system compiler.
8790 lt_prog_compiler_wl='-Wl,'
8791 if test "$host_cpu" = ia64; then
8792 # AIX 5 now supports IA64 processor
8793 lt_prog_compiler_static='-Bstatic'
8795 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8799 mingw* | cygwin* | pw32* | os2* | cegcc*)
8800 # This hack is so that the source file can tell whether it is being
8801 # built for inclusion in a dll (and should export symbols for example).
8802 lt_prog_compiler_pic='-DDLL_EXPORT'
8805 hpux9* | hpux10* | hpux11*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8814 lt_prog_compiler_pic='+Z'
8817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8818 lt_prog_compiler_static='${wl}-a ${wl}archive'
8821 irix5* | irix6* | nonstopux*)
8822 lt_prog_compiler_wl='-Wl,'
8823 # PIC (with -KPIC) is the default.
8824 lt_prog_compiler_static='-non_shared'
8827 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8828 case $cc_basename in
8829 # old Intel for x86_64 which still supported -KPIC.
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-KPIC'
8833 lt_prog_compiler_static='-static'
8835 # icc used to be incompatible with GCC.
8836 # ICC 10 doesn't accept -KPIC any more.
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-fPIC'
8840 lt_prog_compiler_static='-static'
8842 # Lahey Fortran 8.1.
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='--shared'
8846 lt_prog_compiler_static='--static'
8848 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8849 # Portland Group compilers (*not* the Pentium gcc compiler,
8850 # which looks to be a dead project)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-fpic'
8853 lt_prog_compiler_static='-Bstatic'
8856 lt_prog_compiler_wl='-Wl,'
8857 # All Alpha code is PIC.
8858 lt_prog_compiler_static='-non_shared'
8860 xl* | bgxl* | bgf* | mpixl*)
8861 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_pic='-qpic'
8864 lt_prog_compiler_static='-qstaticlink'
8867 case `$CC -V 2>&1 | sed 5q` in
8868 *Sun\ F* | *Sun*Fortran*)
8869 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_wl=''
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8878 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8893 lt_prog_compiler_pic='-fPIC -shared'
8896 osf3* | osf4* | osf5*)
8897 lt_prog_compiler_wl='-Wl,'
8898 # All OSF/1 code is PIC.
8899 lt_prog_compiler_static='-non_shared'
8903 lt_prog_compiler_static='-non_shared'
8907 lt_prog_compiler_pic='-KPIC'
8908 lt_prog_compiler_static='-Bstatic'
8909 case $cc_basename in
8911 lt_prog_compiler_wl='-Qoption ld ';;
8913 lt_prog_compiler_wl='-Wl,';;
8918 lt_prog_compiler_wl='-Qoption ld '
8919 lt_prog_compiler_pic='-PIC'
8920 lt_prog_compiler_static='-Bstatic'
8923 sysv4 | sysv4.2uw2* | sysv4.3*)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-KPIC'
8926 lt_prog_compiler_static='-Bstatic'
8930 if test -d /usr/nec ;then
8931 lt_prog_compiler_pic='-Kconform_pic'
8932 lt_prog_compiler_static='-Bstatic'
8936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='-KPIC'
8939 lt_prog_compiler_static='-Bstatic'
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_can_build_shared=no
8948 lt_prog_compiler_pic='-pic'
8949 lt_prog_compiler_static='-Bstatic'
8953 lt_prog_compiler_can_build_shared=no
8959 # For platforms which do not support PIC, -DPIC is meaningless:
8961 lt_prog_compiler_pic=
8964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8968 $as_echo "$lt_prog_compiler_pic" >&6; }
8976 # Check to make sure the PIC flag actually works.
8978 if test -n "$lt_prog_compiler_pic"; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8980 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8981 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8982 $as_echo_n "(cached
) " >&6
8984 lt_cv_prog_compiler_pic_works=no
8985 ac_outfile=conftest.$ac_objext
8986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8987 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8988 # Insert the option either (1) after the last *FLAGS variable, or
8989 # (2) before a word containing "conftest.
", or (3) at the end.
8990 # Note that $ac_compile itself does not contain backslashes and begins
8991 # with a dollar sign (not a hyphen), so the echo should work correctly.
8992 # The option is referenced via a variable to avoid confusing sed.
8993 lt_compile=`echo "$ac_compile" | $SED \
8994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8996 -e 's:$: $lt_compiler_flag:'`
8997 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8998 (eval "$lt_compile" 2>conftest.err)
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9002 if (exit $ac_status) && test -s "$ac_outfile"; then
9003 # The compiler can only warn and ignore the option if not recognized
9004 # So say no if there are warnings other than the usual output.
9005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9008 lt_cv_prog_compiler_pic_works=yes
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9015 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9017 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9018 case $lt_prog_compiler_pic in
9020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9023 lt_prog_compiler_pic=
9024 lt_prog_compiler_can_build_shared=no
9035 # Check to make sure the static flag actually works.
9037 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9039 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9040 if ${lt_cv_prog_compiler_static_works+:} false; then :
9041 $as_echo_n "(cached
) " >&6
9043 lt_cv_prog_compiler_static_works=no
9044 save_LDFLAGS="$LDFLAGS"
9045 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9046 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9047 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9048 # The linker can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 if test -s conftest.err; then
9051 # Append any errors to the config.log.
9052 cat conftest.err 1>&5
9053 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9055 if diff conftest.exp conftest.er2 >/dev/null; then
9056 lt_cv_prog_compiler_static_works=yes
9059 lt_cv_prog_compiler_static_works=yes
9063 LDFLAGS="$save_LDFLAGS"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9067 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9069 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9072 lt_prog_compiler_static=
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9082 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9083 if ${lt_cv_prog_compiler_c_o+:} false; then :
9084 $as_echo_n "(cached
) " >&6
9086 lt_cv_prog_compiler_c_o=no
9087 $RM -r conftest 2>/dev/null
9091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9093 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9094 # Insert the option either (1) after the last *FLAGS variable, or
9095 # (2) before a word containing "conftest.
", or (3) at the end.
9096 # Note that $ac_compile itself does not contain backslashes and begins
9097 # with a dollar sign (not a hyphen), so the echo should work correctly.
9098 lt_compile=`echo "$ac_compile" | $SED \
9099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101 -e 's:$: $lt_compiler_flag:'`
9102 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9103 (eval "$lt_compile" 2>out/conftest.err)
9105 cat out/conftest.err >&5
9106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9109 # The compiler can only warn and ignore the option if not recognized
9110 # So say no if there are warnings
9111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler_c_o=yes
9119 # SGI C++ compiler will create directory out/ii_files/ for
9120 # template instantiation
9121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122 $RM out/* && rmdir out
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9137 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9138 if ${lt_cv_prog_compiler_c_o+:} false; then :
9139 $as_echo_n "(cached
) " >&6
9141 lt_cv_prog_compiler_c_o=no
9142 $RM -r conftest 2>/dev/null
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9149 # Insert the option either (1) after the last *FLAGS variable, or
9150 # (2) before a word containing "conftest.
", or (3) at the end.
9151 # Note that $ac_compile itself does not contain backslashes and begins
9152 # with a dollar sign (not a hyphen), so the echo should work correctly.
9153 lt_compile=`echo "$ac_compile" | $SED \
9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156 -e 's:$: $lt_compiler_flag:'`
9157 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9158 (eval "$lt_compile" 2>out/conftest.err)
9160 cat out/conftest.err >&5
9161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9162 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164 # The compiler can only warn and ignore the option if not recognized
9165 # So say no if there are warnings
9166 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9167 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9168 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9169 lt_cv_prog_compiler_c_o=yes
9174 # SGI C++ compiler will create directory out/ii_files/ for
9175 # template instantiation
9176 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9177 $RM out/* && rmdir out
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9184 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9189 hard_links="nottested
"
9190 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9191 # do not overwrite the value of need_locks provided by the user
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9193 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198 ln conftest.a conftest.b 2>&5 || hard_links=no
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9201 $as_echo "$hard_links" >&6; }
9202 if test "$hard_links" = no; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9204 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9217 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9220 allow_undefined_flag=
9221 always_export_symbols=no
9223 archive_expsym_cmds=
9224 compiler_needs_object=no
9225 enable_shared_with_static_runtimes=no
9226 export_dynamic_flag_spec=
9227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9228 hardcode_automatic=no
9230 hardcode_direct_absolute=no
9231 hardcode_libdir_flag_spec=
9232 hardcode_libdir_flag_spec_ld=
9233 hardcode_libdir_separator=
9235 hardcode_shlibpath_var=unsupported
9237 link_all_deplibs=unknown
9240 old_archive_from_new_cmds=
9241 old_archive_from_expsyms_cmds=
9242 thread_safe_flag_spec=
9243 whole_archive_flag_spec=
9244 # include_expsyms should be a list of space-separated symbols to be *always*
9245 # included in the symbol list
9247 # exclude_expsyms can be an extended regexp of symbols to exclude
9248 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9249 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9250 # as well as any symbol that contains `d'.
9251 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9252 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9253 # platforms (ab)use it in PIC code, but their linkers get confused if
9254 # the symbol is explicitly referenced. Since portable code cannot
9255 # rely on this symbol name, it's probably fine to never include it in
9256 # preloaded symbol tables.
9257 # Exclude shared library initialization/finalization symbols.
9258 extract_expsyms_cmds=
9261 cygwin* | mingw* | pw32* | cegcc*)
9262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9263 # When not using gcc, we currently assume that we are using
9264 # Microsoft Visual C++.
9265 if test "$GCC" != yes; then
9270 # we just hope/assume this is gcc and not c89 (= MSVC++)
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface=no
9283 if test "$with_gnu_ld" = yes; then
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9292 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9293 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9295 lt_use_gnu_ld_interface=yes
9300 lt_use_gnu_ld_interface=yes
9305 if test "$lt_use_gnu_ld_interface" = yes; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var=LD_RUN_PATH
9313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314 export_dynamic_flag_spec='${wl}--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9317 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9319 whole_archive_flag_spec=
9321 supports_anon_versioning=no
9322 case `$LD -v 2>&1` in
9323 *GNU\ gold*) supports_anon_versioning=yes ;;
9324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9327 *\ 2.11.*) ;; # other 2.11 versions
9328 *) supports_anon_versioning=yes ;;
9331 # See if GNU ld supports shared libraries.
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test "$host_cpu" != ia64; then
9339 *** Warning: the GNU linker, at least up to release 2.19, is reported
9340 *** to be unable to reliably create shared libraries on AIX.
9341 *** Therefore, libtool is disabling shared libraries support. If you
9342 *** really care for shared libraries, you may want to install binutils
9343 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344 *** You will then need to restart the configuration process.
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 archive_expsym_cmds=''
9358 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)'
9359 hardcode_libdir_flag_spec
='-L$libdir'
9360 hardcode_minus_L
=yes
9366 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9367 allow_undefined_flag
=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 cygwin
* | mingw
* | pw32
* | cegcc
*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec
='-L$libdir'
9380 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9381 allow_undefined_flag
=unsupported
9382 always_export_symbols
=no
9383 enable_shared_with_static_runtimes
=yes
9384 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9386 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9387 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9388 # If the export-symbols file already is a .def file (1st line
9389 # is EXPORTS), use it as is; otherwise, prepend...
9390 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9391 cp $export_symbols $output_objdir/$soname.def;
9393 echo EXPORTS > $output_objdir/$soname.def;
9394 cat $export_symbols >> $output_objdir/$soname.def;
9396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9403 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9404 link_all_deplibs
=yes
9409 hardcode_shlibpath_var
=no
9410 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9411 export_dynamic_flag_spec
='${wl}-E'
9412 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9413 # Instead, shared libraries are loaded at an image base (0x10000000 by
9414 # default) and relocated if they conflict, which is a slow very memory
9415 # consuming and fragmenting process. To avoid this, we pick a random,
9416 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9417 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9418 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9419 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'
9422 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9424 if test "$host_os" = linux-dietlibc
; then
9425 case $cc_basename in
9426 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9429 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9430 && test "$tmp_diet" = no
9432 tmp_addflag
=' $pic_flag'
9433 tmp_sharedflag
='-shared'
9434 case $cc_basename,$host_cpu in
9435 pgcc
*) # Portland Group C compiler
9436 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'
9437 tmp_addflag
=' $pic_flag'
9439 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9440 # Portland Group f77 and f90 compilers
9441 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'
9442 tmp_addflag
=' $pic_flag -Mnomain' ;;
9443 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9444 tmp_addflag
=' -i_dynamic' ;;
9445 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9446 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9447 ifc
* | ifort
*) # Intel Fortran compiler
9448 tmp_addflag
=' -nofor_main' ;;
9449 lf95
*) # Lahey Fortran 8.1
9450 whole_archive_flag_spec
=
9451 tmp_sharedflag
='--shared' ;;
9452 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9453 tmp_sharedflag
='-qmkshrobj'
9455 nvcc
*) # Cuda Compiler Driver 2.2
9456 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'
9457 compiler_needs_object
=yes
9460 case `$CC -V 2>&1 | sed 5q` in
9461 *Sun\ C
*) # Sun C 5.9
9462 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'
9463 compiler_needs_object
=yes
9464 tmp_sharedflag
='-G' ;;
9465 *Sun\ F
*) # Sun Fortran 8.3
9466 tmp_sharedflag
='-G' ;;
9468 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470 if test "x$supports_anon_versioning" = xyes
; then
9471 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9472 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9473 echo "local: *; };" >> $output_objdir/$libname.ver~
9474 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9477 case $cc_basename in
9478 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9479 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9480 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9481 hardcode_libdir_flag_spec
=
9482 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9483 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9484 if test "x$supports_anon_versioning" = xyes
; then
9485 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9486 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9487 echo "local: *; };" >> $output_objdir/$libname.ver~
9488 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9498 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9499 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9502 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9512 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9513 *** create shared libraries on Solaris systems. Therefore, libtool
9514 *** is disabling shared libraries support. We urge you to upgrade GNU
9515 *** binutils to release 2.9.1 or newer. Another option is to modify
9516 *** your PATH or compiler configuration so that the native linker is
9517 *** used, and then restart.
9520 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9521 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9529 case `$LD -v 2>&1` in
9530 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9534 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9535 *** reliably create shared libraries on SCO systems. Therefore, libtool
9536 *** is disabling shared libraries support. We urge you to upgrade GNU
9537 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9538 *** your PATH or compiler configuration so that the native linker is
9539 *** used, and then restart.
9544 # For security reasons, it is highly recommended that you always
9545 # use absolute paths for naming shared libraries, and exclude the
9546 # DT_RUNPATH tag from executables and libraries. But doing so
9547 # requires that you compile everything twice, which is a pain.
9548 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9549 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9550 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_shlibpath_var
=no
9567 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9568 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9576 if test "$ld_shlibs" = no
; then
9578 hardcode_libdir_flag_spec
=
9579 export_dynamic_flag_spec
=
9580 whole_archive_flag_spec
=
9583 # PORTME fill in a description of your system's linker (not GNU ld)
9586 allow_undefined_flag
=unsupported
9587 always_export_symbols
=yes
9588 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'
9589 # Note: this linker hardcodes the directories in LIBPATH if there
9590 # are no directories specified by -L.
9591 hardcode_minus_L
=yes
9592 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9593 # Neither direct hardcoding nor static linking is supported with a
9595 hardcode_direct
=unsupported
9600 if test "$host_cpu" = ia64
; then
9601 # On IA64, the linker does run time linking by default, so we don't
9602 # have to do anything special.
9603 aix_use_runtimelinking
=no
9604 exp_sym_flag
='-Bexport'
9607 # If we're using GNU nm, then we don't want the "-C" option.
9608 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9609 # Also, AIX nm treats weak defined symbols like other global
9610 # defined symbols, whereas GNU nm marks them as "W".
9611 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9612 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'
9614 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'
9616 aix_use_runtimelinking
=no
9618 # Test if we are trying to use run time linking or normal
9619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9620 # need to do runtime linking.
9621 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9622 for ld_flag
in $LDFLAGS; do
9623 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9624 aix_use_runtimelinking
=yes
9631 exp_sym_flag
='-bexport'
9632 no_entry_flag
='-bnoentry'
9635 # When large executables or shared objects are built, AIX ld can
9636 # have problems creating the table of contents. If linking a library
9637 # or program results in "error TOC overflow" add -mminimal-toc to
9638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643 hardcode_direct_absolute
=yes
9644 hardcode_libdir_separator
=':'
9645 link_all_deplibs
=yes
9646 file_list_spec
='${wl}-f,'
9648 if test "$GCC" = yes; then
9649 case $host_os in aix4.
[012]|aix4.
[012].
*)
9650 # We only want to do this on AIX 4.2 and lower, the check
9651 # below for broken collect2 doesn't work under 4.3+
9652 collect2name
=`${CC} -print-prog-name=collect2`
9653 if test -f "$collect2name" &&
9654 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9656 # We have reworked collect2
9659 # We have old collect2
9660 hardcode_direct
=unsupported
9661 # It fails to find uninstalled libraries when the uninstalled
9662 # path is not listed in the libpath. Setting hardcode_minus_L
9663 # to unsupported forces relinking
9664 hardcode_minus_L
=yes
9665 hardcode_libdir_flag_spec
='-L$libdir'
9666 hardcode_libdir_separator
=
9670 shared_flag
='-shared'
9671 if test "$aix_use_runtimelinking" = yes; then
9672 shared_flag
="$shared_flag "'${wl}-G'
9676 if test "$host_cpu" = ia64
; then
9677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9678 # chokes on -Wl,-G. The following line is correct:
9681 if test "$aix_use_runtimelinking" = yes; then
9682 shared_flag
='${wl}-G'
9684 shared_flag
='${wl}-bM:SRE'
9689 export_dynamic_flag_spec
='${wl}-bexpall'
9690 # It seems that -bexpall does not export symbols beginning with
9691 # underscore (_), so it is better to generate a list of symbols to export.
9692 always_export_symbols
=yes
9693 if test "$aix_use_runtimelinking" = yes; then
9694 # Warning - without using the other runtime loading flags (-brtl),
9695 # -berok will link without error, but may produce a broken library.
9696 allow_undefined_flag
='-berok'
9697 # Determine the default libpath from the value encoded in an
9699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9710 if ac_fn_c_try_link
"$LINENO"; then :
9712 lt_aix_libpath_sed
='
9713 /Import File Strings/,/^$/ {
9719 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720 # Check for a 64-bit object if we didn't find anything.
9721 if test -z "$aix_libpath"; then
9722 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725 rm -f core conftest.err conftest.
$ac_objext \
9726 conftest
$ac_exeext conftest.
$ac_ext
9727 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9729 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9730 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"
9732 if test "$host_cpu" = ia64
; then
9733 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9734 allow_undefined_flag
="-z nodefs"
9735 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"
9737 # Determine the default libpath from the value encoded in an
9739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9750 if ac_fn_c_try_link
"$LINENO"; then :
9752 lt_aix_libpath_sed
='
9753 /Import File Strings/,/^$/ {
9759 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9760 # Check for a 64-bit object if we didn't find anything.
9761 if test -z "$aix_libpath"; then
9762 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9765 rm -f core conftest.err conftest.
$ac_objext \
9766 conftest
$ac_exeext conftest.
$ac_ext
9767 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9769 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9770 # Warning - without using the other run time loading flags,
9771 # -berok will link without error, but may produce a broken library.
9772 no_undefined_flag
=' ${wl}-bernotok'
9773 allow_undefined_flag
=' ${wl}-berok'
9774 if test "$with_gnu_ld" = yes; then
9775 # We only use this code for GNU lds that support --whole-archive.
9776 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9778 # Exported symbols can be pulled into shared objects from archives
9779 whole_archive_flag_spec
='$convenience'
9781 archive_cmds_need_lc
=yes
9782 # This is similar to how AIX traditionally builds its shared libraries.
9783 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'
9791 # see comment about AmigaOS4 .so support
9792 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 archive_expsym_cmds
=''
9796 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)'
9797 hardcode_libdir_flag_spec
='-L$libdir'
9798 hardcode_minus_L
=yes
9804 export_dynamic_flag_spec
=-rdynamic
9807 cygwin
* | mingw
* | pw32
* | cegcc
*)
9808 # When not using gcc, we currently assume that we are using
9809 # Microsoft Visual C++.
9810 # hardcode_libdir_flag_spec is actually meaningless, as there is
9811 # no search path for DLLs.
9812 hardcode_libdir_flag_spec
=' '
9813 allow_undefined_flag
=unsupported
9814 # Tell ltmain to make .lib files, not .a files.
9816 # Tell ltmain to make .dll files, not .so files.
9818 # FIXME: Setting linknames here is a bad hack.
9819 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9820 # The linker will automatically build a .lib file if we build a DLL.
9821 old_archive_from_new_cmds
='true'
9822 # FIXME: Should let the user specify the lib program.
9823 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9824 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9825 enable_shared_with_static_runtimes
=yes
9828 darwin
* | rhapsody
*)
9831 archive_cmds_need_lc
=no
9833 hardcode_automatic
=yes
9834 hardcode_shlibpath_var
=unsupported
9835 if test "$lt_cv_ld_force_load" = "yes"; then
9836 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\"`'
9838 whole_archive_flag_spec
=''
9840 link_all_deplibs
=yes
9841 allow_undefined_flag
="$_lt_dar_allow_undefined"
9842 case $cc_basename in
9843 ifort
*) _lt_dar_can_shared
=yes ;;
9844 *) _lt_dar_can_shared
=$GCC ;;
9846 if test "$_lt_dar_can_shared" = "yes"; then
9847 output_verbose_link_cmd
=func_echo_all
9848 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9849 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9850 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}"
9851 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}"
9860 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9861 hardcode_libdir_flag_spec
='-L$libdir'
9862 hardcode_shlibpath_var
=no
9865 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9866 # support. Future versions do this automatically, but an explicit c++rt0.o
9867 # does not break anything, and helps significantly (at the cost of a little
9870 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9871 hardcode_libdir_flag_spec
='-R$libdir'
9873 hardcode_shlibpath_var
=no
9876 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9878 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_minus_L
=yes
9881 hardcode_shlibpath_var
=no
9884 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9885 freebsd
* | dragonfly
*)
9886 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9887 hardcode_libdir_flag_spec
='-R$libdir'
9889 hardcode_shlibpath_var
=no
9893 if test "$GCC" = yes; then
9894 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'
9896 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'
9898 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9899 hardcode_libdir_separator
=:
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L
=yes
9905 export_dynamic_flag_spec
='${wl}-E'
9909 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9910 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9914 if test "$with_gnu_ld" = no
; then
9915 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9916 hardcode_libdir_flag_spec_ld
='+b $libdir'
9917 hardcode_libdir_separator
=:
9919 hardcode_direct_absolute
=yes
9920 export_dynamic_flag_spec
='${wl}-E'
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L
=yes
9928 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9931 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9937 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950 # Older versions of the 11.00 compiler do not understand -b yet
9951 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9953 $as_echo_n "checking if $CC understands -b... " >&6; }
9954 if ${lt_cv_prog_compiler__b+:} false
; then :
9955 $as_echo_n "(cached) " >&6
9957 lt_cv_prog_compiler__b
=no
9958 save_LDFLAGS
="$LDFLAGS"
9959 LDFLAGS
="$LDFLAGS -b"
9960 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9961 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9962 # The linker can only warn and ignore the option if not recognized
9963 # So say no if there are warnings
9964 if test -s conftest.err
; then
9965 # Append any errors to the config.log.
9966 cat conftest.err
1>&5
9967 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9968 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9969 if diff conftest.exp conftest.er2
>/dev
/null
; then
9970 lt_cv_prog_compiler__b
=yes
9973 lt_cv_prog_compiler__b
=yes
9977 LDFLAGS
="$save_LDFLAGS"
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9981 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9983 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9984 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9992 if test "$with_gnu_ld" = no
; then
9993 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9994 hardcode_libdir_separator
=:
9999 hardcode_shlibpath_var
=no
10002 hardcode_direct
=yes
10003 hardcode_direct_absolute
=yes
10004 export_dynamic_flag_spec
='${wl}-E'
10006 # hardcode_minus_L: Not really in the search PATH,
10007 # but as the default location of the library.
10008 hardcode_minus_L
=yes
10014 irix5
* | irix6
* | nonstopux
*)
10015 if test "$GCC" = yes; then
10016 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'
10017 # Try to use the -exported_symbol ld option, if it does not
10018 # work, assume that -exports_file does not work either and
10019 # implicitly export all symbols.
10020 save_LDFLAGS
="$LDFLAGS"
10021 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10026 if ac_fn_c_try_link
"$LINENO"; then :
10027 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'
10030 rm -f core conftest.err conftest.
$ac_objext \
10031 conftest
$ac_exeext conftest.
$ac_ext
10032 LDFLAGS
="$save_LDFLAGS"
10034 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'
10035 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'
10037 archive_cmds_need_lc
='no'
10038 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10039 hardcode_libdir_separator
=:
10041 link_all_deplibs
=yes
10045 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10046 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10048 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10050 hardcode_libdir_flag_spec
='-R$libdir'
10051 hardcode_direct
=yes
10052 hardcode_shlibpath_var
=no
10056 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_direct
=yes
10058 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10059 hardcode_libdir_separator
=:
10060 hardcode_shlibpath_var
=no
10067 if test -f /usr
/libexec
/ld.so
; then
10068 hardcode_direct
=yes
10069 hardcode_shlibpath_var
=no
10070 hardcode_direct_absolute
=yes
10071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10072 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10074 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10075 export_dynamic_flag_spec
='${wl}-E'
10078 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10079 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec
='-R$libdir'
10083 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10094 hardcode_libdir_flag_spec
='-L$libdir'
10095 hardcode_minus_L
=yes
10096 allow_undefined_flag
=unsupported
10097 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'
10098 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10102 if test "$GCC" = yes; then
10103 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10104 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'
10106 allow_undefined_flag
=' -expect_unresolved \*'
10107 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'
10109 archive_cmds_need_lc
='no'
10110 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10111 hardcode_libdir_separator
=:
10114 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10115 if test "$GCC" = yes; then
10116 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10117 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'
10118 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10120 allow_undefined_flag
=' -expect_unresolved \*'
10121 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'
10122 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~
10123 $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'
10125 # Both c and cxx compiler support -rpath directly
10126 hardcode_libdir_flag_spec
='-rpath $libdir'
10128 archive_cmds_need_lc
='no'
10129 hardcode_libdir_separator
=:
10133 no_undefined_flag
=' -z defs'
10134 if test "$GCC" = yes; then
10136 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10138 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10140 case `$CC -V 2>&1` in
10143 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10149 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10151 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10155 hardcode_libdir_flag_spec
='-R$libdir'
10156 hardcode_shlibpath_var
=no
10158 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10160 # The compiler driver will combine and reorder linker options,
10161 # but understands `-z linker_flag'. GCC discards it without `$wl',
10162 # but is careful enough not to reorder.
10163 # Supported since Solaris 2.6 (maybe 2.5.1?)
10164 if test "$GCC" = yes; then
10165 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10167 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10171 link_all_deplibs
=yes
10175 if test "x$host_vendor" = xsequent
; then
10176 # Use $CC to link under sequent, because it throws in some extra .o
10177 # files that make .init and .fini sections work.
10178 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10182 hardcode_libdir_flag_spec
='-L$libdir'
10183 hardcode_direct
=yes
10184 hardcode_minus_L
=yes
10185 hardcode_shlibpath_var
=no
10189 case $host_vendor in
10191 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192 hardcode_direct
=yes # is this really true???
10195 ## LD is ld it makes a PLAMLIB
10196 ## CC just makes a GrossModule.
10197 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10198 reload_cmds
='$CC -r -o $output$reload_objs'
10202 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10206 runpath_var
='LD_RUN_PATH'
10207 hardcode_shlibpath_var
=no
10211 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_shlibpath_var
=no
10213 export_dynamic_flag_spec
='-Bexport'
10217 if test -d /usr
/nec
; then
10218 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_shlibpath_var
=no
10220 runpath_var
=LD_RUN_PATH
10221 hardcode_runpath_var
=yes
10226 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10227 no_undefined_flag
='${wl}-z,text'
10228 archive_cmds_need_lc
=no
10229 hardcode_shlibpath_var
=no
10230 runpath_var
='LD_RUN_PATH'
10232 if test "$GCC" = yes; then
10233 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 sysv5
* | sco3.2v5
* | sco5v6
*)
10242 # Note: We can NOT use -z defs as we might desire, because we do not
10243 # link with -lc, and that would cause any symbols used from libc to
10244 # always be unresolved, which means just about no library would
10245 # ever link correctly. If we're not using GNU ld we use -z text
10246 # though, which does catch some bad symbols but isn't as heavy-handed
10248 no_undefined_flag
='${wl}-z,text'
10249 allow_undefined_flag
='${wl}-z,nodefs'
10250 archive_cmds_need_lc
=no
10251 hardcode_shlibpath_var
=no
10252 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10253 hardcode_libdir_separator
=':'
10254 link_all_deplibs
=yes
10255 export_dynamic_flag_spec
='${wl}-Bexport'
10256 runpath_var
='LD_RUN_PATH'
10258 if test "$GCC" = yes; then
10259 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_libdir_flag_spec
='-L$libdir'
10270 hardcode_shlibpath_var
=no
10278 if test x
$host_vendor = xsni
; then
10280 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10281 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10288 $as_echo "$ld_shlibs" >&6; }
10289 test "$ld_shlibs" = no
&& can_build_shared
=no
10291 with_gnu_ld
=$with_gnu_ld
10308 # Do we need to explicitly link libc?
10310 case "x$archive_cmds_need_lc" in
10312 # Assume -lc should be added
10313 archive_cmds_need_lc
=yes
10315 if test "$enable_shared" = yes && test "$GCC" = yes; then
10316 case $archive_cmds in
10318 # FIXME: we may have to deal with multi-command sequences.
10321 # Test whether the compiler implicitly links with -lc since on some
10322 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10323 # to ld, don't add -lc before -lgcc.
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10325 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10326 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10327 $as_echo_n "(cached) " >&6
10330 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10333 (eval $ac_compile) 2>&5
10335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10336 test $ac_status = 0; } 2>conftest.err
; then
10339 libobjs
=conftest.
$ac_objext
10341 wl
=$lt_prog_compiler_wl
10342 pic_flag
=$lt_prog_compiler_pic
10348 lt_save_allow_undefined_flag
=$allow_undefined_flag
10349 allow_undefined_flag
=
10350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10351 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10354 test $ac_status = 0; }
10356 lt_cv_archive_cmds_need_lc
=no
10358 lt_cv_archive_cmds_need_lc
=yes
10360 allow_undefined_flag
=$lt_save_allow_undefined_flag
10362 cat conftest.err
1>&5
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10368 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10369 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10533 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10535 if test "$GCC" = yes; then
10537 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10538 *) lt_awk_arg
="/^libraries:/" ;;
10541 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10542 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10544 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10545 case $lt_search_path_spec in
10547 # if the path contains ";" then we assume it to be the separator
10548 # otherwise default to the standard path separator (i.e. ":") - it is
10549 # assumed that no part of a normal pathname contains ";" but that should
10550 # okay in the real world where ";" in dirpaths is itself problematic.
10551 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10554 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10557 # Ok, now we have the path, separated by spaces, we can step through it
10558 # and add multilib dir if necessary.
10559 lt_tmp_lt_search_path_spec
=
10560 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10561 for lt_sys_path
in $lt_search_path_spec; do
10562 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10563 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10565 test -d "$lt_sys_path" && \
10566 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10569 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10570 BEGIN {RS=" "; FS="/|\n";} {
10573 for (lt_i = NF; lt_i > 0; lt_i--) {
10574 if ($lt_i != "" && $lt_i != ".") {
10575 if ($lt_i == "..") {
10578 if (lt_count == 0) {
10579 lt_foo="/" $lt_i lt_foo;
10586 if (lt_foo != "") { lt_freq[lt_foo]++; }
10587 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10589 # AWK program above erroneously prepends '/' to C:/dos/paths
10592 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10593 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10595 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10597 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10599 library_names_spec
=
10600 libname_spec
='lib$name'
10604 postuninstall_cmds
=
10608 shlibpath_overrides_runpath
=unknown
10610 dynamic_linker
="$host_os ld.so"
10611 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10612 need_lib_prefix
=unknown
10613 hardcode_into_libs
=no
10615 # when you set need_version to no, make sure it does not cause -set_version
10616 # flags to be left without arguments
10617 need_version
=unknown
10622 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10623 shlibpath_var
=LIBPATH
10625 # AIX 3 has no versioning support, so we append a major version to the name.
10626 soname_spec
='${libname}${release}${shared_ext}$major'
10633 hardcode_into_libs
=yes
10634 if test "$host_cpu" = ia64
; then
10635 # AIX 5 supports IA64
10636 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10637 shlibpath_var
=LD_LIBRARY_PATH
10639 # With GCC up to 2.95.x, collect2 would create an import file
10640 # for dependence libraries. The import file would start with
10641 # the line `#! .'. This would cause the generated library to
10642 # depend on `.', always an invalid library. This was fixed in
10643 # development snapshots of GCC prior to 3.0.
10645 aix4 | aix4.
[01] | aix4.
[01].
*)
10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10648 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10651 can_build_shared
=no
10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10656 # soname into executable. Probably we can add versioning support to
10657 # collect2, so additional links can be useful in future.
10658 if test "$aix_use_runtimelinking" = yes; then
10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10660 # instead of lib<name>.a to let people know that these are not
10661 # typical AIX shared libraries.
10662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 # We preserve .a as extension for shared libraries through AIX4.2
10665 # and later when we are not doing run time linking.
10666 library_names_spec
='${libname}${release}.a $libname.a'
10667 soname_spec
='${libname}${release}${shared_ext}$major'
10669 shlibpath_var
=LIBPATH
10676 # Since July 2007 AmigaOS4 officially supports .so libraries.
10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10678 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 library_names_spec
='$libname.ixlibrary $libname.a'
10682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10683 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'
10689 library_names_spec
='${libname}${shared_ext}'
10690 dynamic_linker
="$host_os ld.so"
10691 shlibpath_var
=LIBRARY_PATH
10697 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698 soname_spec
='${libname}${release}${shared_ext}$major'
10699 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10700 shlibpath_var
=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10702 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10703 # the default ld.so.conf also contains /usr/contrib/lib and
10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10705 # libtool to hard-code these into programs
10708 cygwin
* | mingw
* | pw32
* | cegcc
*)
10709 version_type
=windows
10714 case $GCC,$host_os in
10715 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10716 library_names_spec
='$libname.dll.a'
10717 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10718 postinstall_cmds
='base_file=`basename \${file}`~
10719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10720 dldir=$destdir/`dirname \$dlpath`~
10721 test -d \$dldir || mkdir -p \$dldir~
10722 $install_prog $dir/$dlname \$dldir/$dlname~
10723 chmod a+x \$dldir/$dlname~
10724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10727 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10730 shlibpath_overrides_runpath
=yes
10734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10735 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10737 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10740 # MinGW DLLs use traditional 'lib' prefix
10741 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10744 # pw32 DLLs use 'pw' prefix rather than 'lib'
10745 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10754 dynamic_linker
='Win32 ld.exe'
10755 # FIXME: first we should search . and the directory the executable is in
10759 darwin
* | rhapsody
*)
10760 dynamic_linker
="$host_os dyld"
10761 version_type
=darwin
10764 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10765 soname_spec
='${libname}${release}${major}$shared_ext'
10766 shlibpath_overrides_runpath
=yes
10767 shlibpath_var
=DYLD_LIBRARY_PATH
10768 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10770 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10771 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10779 soname_spec
='${libname}${release}${shared_ext}$major'
10780 shlibpath_var
=LD_LIBRARY_PATH
10783 freebsd
* | dragonfly
*)
10784 # DragonFly does not have aout. When/if they implement a new
10785 # versioning mechanism, adjust this.
10786 if test -x /usr
/bin
/objformat
; then
10787 objformat
=`/usr/bin/objformat`
10790 freebsd
[23].
*) objformat
=aout
;;
10791 *) objformat
=elf
;;
10794 version_type
=freebsd-
$objformat
10795 case $version_type in
10797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10802 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10806 shlibpath_var
=LD_LIBRARY_PATH
10809 shlibpath_overrides_runpath
=yes
10811 freebsd3.
[01]* | freebsdelf3.
[01]*)
10812 shlibpath_overrides_runpath
=yes
10813 hardcode_into_libs
=yes
10815 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10816 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10817 shlibpath_overrides_runpath
=no
10818 hardcode_into_libs
=yes
10820 *) # from 4.6 on, and DragonFly
10821 shlibpath_overrides_runpath
=yes
10822 hardcode_into_libs
=yes
10831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10832 soname_spec
='${libname}${release}${shared_ext}$major'
10833 shlibpath_var
=LD_LIBRARY_PATH
10834 hardcode_into_libs
=yes
10841 dynamic_linker
="$host_os runtime_loader"
10842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10843 soname_spec
='${libname}${release}${shared_ext}$major'
10844 shlibpath_var
=LIBRARY_PATH
10845 shlibpath_overrides_runpath
=yes
10846 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10847 hardcode_into_libs
=yes
10850 hpux9
* | hpux10
* | hpux11
*)
10851 # Give a soname corresponding to the major version so that dld.sl refuses to
10852 # link against other versions.
10859 hardcode_into_libs
=yes
10860 dynamic_linker
="$host_os dld.so"
10861 shlibpath_var
=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec
='${libname}${release}${shared_ext}$major'
10865 if test "X$HPUX_IA64_MODE" = X32
; then
10866 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10868 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10870 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10874 hardcode_into_libs
=yes
10875 dynamic_linker
="$host_os dld.sl"
10876 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10877 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec
='${libname}${release}${shared_ext}$major'
10880 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10881 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10885 dynamic_linker
="$host_os dld.sl"
10886 shlibpath_var
=SHLIB_PATH
10887 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10888 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 soname_spec
='${libname}${release}${shared_ext}$major'
10892 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10893 postinstall_cmds
='chmod 555 $lib'
10894 # or fails outright, so override atomically:
10895 install_override_mode
=555
10902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10903 soname_spec
='${libname}${release}${shared_ext}$major'
10904 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10905 shlibpath_var
=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath
=no
10907 hardcode_into_libs
=yes
10910 irix5
* | irix6
* | nonstopux
*)
10912 nonstopux
*) version_type
=nonstopux
;;
10914 if test "$lt_cv_prog_gnu_ld" = yes; then
10922 soname_spec
='${libname}${release}${shared_ext}$major'
10923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 irix5
* | nonstopux
*)
10926 libsuff
= shlibsuff
=
10929 case $LD in # libtool.m4 will add one of these switches to LD
10930 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10931 libsuff
= shlibsuff
= libmagic
=32-bit;;
10932 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10933 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10934 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10935 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10936 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10940 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10941 shlibpath_overrides_runpath
=no
10942 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10943 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10944 hardcode_into_libs
=yes
10947 # No shared lib support for Linux oldld, aout, or coff.
10948 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10952 # This must be Linux ELF.
10954 # uclinux* changes (here and below) have been submitted to the libtool
10955 # project, but have not yet been accepted: they are GCC-local changes
10956 # for the time being. (See
10957 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10958 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
10962 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec
='${libname}${release}${shared_ext}$major'
10964 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10965 shlibpath_var
=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath
=no
10968 # Some binutils ld are patched to set DT_RUNPATH
10969 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10970 $as_echo_n "(cached) " >&6
10972 lt_cv_shlibpath_overrides_runpath
=no
10973 save_LDFLAGS
=$LDFLAGS
10974 save_libdir
=$libdir
10975 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10976 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10988 if ac_fn_c_try_link
"$LINENO"; then :
10989 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10990 lt_cv_shlibpath_overrides_runpath
=yes
10993 rm -f core conftest.err conftest.
$ac_objext \
10994 conftest
$ac_exeext conftest.
$ac_ext
10995 LDFLAGS
=$save_LDFLAGS
10996 libdir
=$save_libdir
11000 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11002 # This implies no fast_install, which is unacceptable.
11003 # Some rework will be needed to allow for fast_install
11004 # before this can be enabled.
11005 hardcode_into_libs
=yes
11007 # Append ld.so.conf contents to the search path
11008 if test -f /etc
/ld.so.conf
; then
11009 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' ' '`
11010 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11013 # We used to test for /lib/ld.so.1 and disable shared libraries on
11014 # powerpc, because MkLinux only supported shared libraries with the
11015 # GNU dynamic linker. Since this was broken with cross compilers,
11016 # most powerpc-linux boxes support dynamic linking these days and
11017 # people can always --disable-shared, the test was removed, and we
11018 # assume the GNU/Linux dynamic linker is in use.
11019 dynamic_linker
='GNU/Linux ld.so'
11026 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11029 dynamic_linker
='NetBSD (a.out) ld.so'
11031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11032 soname_spec
='${libname}${release}${shared_ext}$major'
11033 dynamic_linker
='NetBSD ld.elf_so'
11035 shlibpath_var
=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath
=yes
11037 hardcode_into_libs
=yes
11042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 shlibpath_var
=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath
=yes
11051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec
='${libname}${release}${shared_ext}$major'
11053 shlibpath_var
=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath
=no
11055 hardcode_into_libs
=yes
11056 dynamic_linker
='ldqnx.so'
11061 sys_lib_dlsearch_path_spec
="/usr/lib"
11063 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11065 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11066 *) need_version
=no
;;
11068 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11069 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11070 shlibpath_var
=LD_LIBRARY_PATH
11071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11073 openbsd2.
[89] | openbsd2.
[89].
*)
11074 shlibpath_overrides_runpath
=no
11077 shlibpath_overrides_runpath
=yes
11081 shlibpath_overrides_runpath
=yes
11086 libname_spec
='$name'
11089 library_names_spec
='$libname${shared_ext} $libname.a'
11090 dynamic_linker
='OS/2 ld.exe'
11091 shlibpath_var
=LIBPATH
11094 osf3
* | osf4
* | osf5
*)
11098 soname_spec
='${libname}${release}${shared_ext}$major'
11099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 shlibpath_var
=LD_LIBRARY_PATH
11101 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11102 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec
='${libname}${release}${shared_ext}$major'
11115 shlibpath_var
=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath
=yes
11117 hardcode_into_libs
=yes
11118 # ldd complains unless libraries are executable
11119 postinstall_cmds
='chmod +x $lib'
11124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11126 shlibpath_var
=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath
=yes
11128 if test "$with_gnu_ld" = yes; then
11136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137 soname_spec
='${libname}${release}${shared_ext}$major'
11138 shlibpath_var
=LD_LIBRARY_PATH
11139 case $host_vendor in
11141 shlibpath_overrides_runpath
=no
11143 runpath_var
=LD_RUN_PATH
11151 shlibpath_overrides_runpath
=no
11152 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11158 if test -d /usr
/nec
;then
11160 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11161 soname_spec
='$libname${shared_ext}.$major'
11162 shlibpath_var
=LD_LIBRARY_PATH
11166 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11167 version_type
=freebsd-elf
11170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11171 soname_spec
='${libname}${release}${shared_ext}$major'
11172 shlibpath_var
=LD_LIBRARY_PATH
11173 shlibpath_overrides_runpath
=yes
11174 hardcode_into_libs
=yes
11175 if test "$with_gnu_ld" = yes; then
11176 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11178 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11181 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11185 sys_lib_dlsearch_path_spec
='/usr/lib'
11189 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 shlibpath_var
=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath
=no
11196 hardcode_into_libs
=yes
11201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202 soname_spec
='${libname}${release}${shared_ext}$major'
11203 shlibpath_var
=LD_LIBRARY_PATH
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11211 $as_echo "$dynamic_linker" >&6; }
11212 test "$dynamic_linker" = no
&& can_build_shared
=no
11214 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11215 if test "$GCC" = yes; then
11216 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11219 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11220 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11222 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11223 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11318 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11320 if test -n "$hardcode_libdir_flag_spec" ||
11321 test -n "$runpath_var" ||
11322 test "X$hardcode_automatic" = "Xyes" ; then
11324 # We can hardcode non-existent directories.
11325 if test "$hardcode_direct" != no
&&
11326 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11327 # have to relink, otherwise we might link with an installed library
11328 # when we should be linking with a yet-to-be-installed one
11329 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11330 test "$hardcode_minus_L" != no
; then
11331 # Linking always hardcodes the temporary library directory.
11332 hardcode_action
=relink
11334 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11335 hardcode_action
=immediate
11338 # We cannot hardcode anything, or else we can only hardcode existing
11340 hardcode_action
=unsupported
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11343 $as_echo "$hardcode_action" >&6; }
11345 if test "$hardcode_action" = relink ||
11346 test "$inherit_rpath" = yes; then
11347 # Fast installation is not supported
11348 enable_fast_install
=no
11349 elif test "$shlibpath_overrides_runpath" = yes ||
11350 test "$enable_shared" = no
; then
11351 # Fast installation is not necessary
11352 enable_fast_install
=needless
11360 if test "x$enable_dlopen" != xyes
; then
11361 enable_dlopen
=unknown
11362 enable_dlopen_self
=unknown
11363 enable_dlopen_self_static
=unknown
11370 lt_cv_dlopen
="load_add_on"
11372 lt_cv_dlopen_self
=yes
11375 mingw
* | pw32
* | cegcc
*)
11376 lt_cv_dlopen
="LoadLibrary"
11381 lt_cv_dlopen
="dlopen"
11386 # if libdl is installed we need to link against it
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11389 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11390 $as_echo_n "(cached) " >&6
11392 ac_check_lib_save_LIBS
=$LIBS
11394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11412 if ac_fn_c_try_link
"$LINENO"; then :
11413 ac_cv_lib_dl_dlopen
=yes
11415 ac_cv_lib_dl_dlopen
=no
11417 rm -f core conftest.err conftest.
$ac_objext \
11418 conftest
$ac_exeext conftest.
$ac_ext
11419 LIBS
=$ac_check_lib_save_LIBS
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11423 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11424 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11427 lt_cv_dlopen
="dyld"
11429 lt_cv_dlopen_self
=yes
11436 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11437 if test "x$ac_cv_func_shl_load" = xyes
; then :
11438 lt_cv_dlopen
="shl_load"
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11441 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11442 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11443 $as_echo_n "(cached) " >&6
11445 ac_check_lib_save_LIBS
=$LIBS
11447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11460 return shl_load ();
11465 if ac_fn_c_try_link
"$LINENO"; then :
11466 ac_cv_lib_dld_shl_load
=yes
11468 ac_cv_lib_dld_shl_load
=no
11470 rm -f core conftest.err conftest.
$ac_objext \
11471 conftest
$ac_exeext conftest.
$ac_ext
11472 LIBS
=$ac_check_lib_save_LIBS
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11475 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11476 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11477 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11479 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11480 if test "x$ac_cv_func_dlopen" = xyes
; then :
11481 lt_cv_dlopen
="dlopen"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11484 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11485 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11486 $as_echo_n "(cached) " >&6
11488 ac_check_lib_save_LIBS
=$LIBS
11490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11508 if ac_fn_c_try_link
"$LINENO"; then :
11509 ac_cv_lib_dl_dlopen
=yes
11511 ac_cv_lib_dl_dlopen
=no
11513 rm -f core conftest.err conftest.
$ac_objext \
11514 conftest
$ac_exeext conftest.
$ac_ext
11515 LIBS
=$ac_check_lib_save_LIBS
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11519 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11520 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11523 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11524 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11525 $as_echo_n "(cached) " >&6
11527 ac_check_lib_save_LIBS
=$LIBS
11528 LIBS
="-lsvld $LIBS"
11529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h. */
11532 /* Override any GCC internal prototype to avoid an error.
11533 Use char because int might match the return type of a GCC
11534 builtin and then its argument prototype would still apply. */
11547 if ac_fn_c_try_link
"$LINENO"; then :
11548 ac_cv_lib_svld_dlopen
=yes
11550 ac_cv_lib_svld_dlopen
=no
11552 rm -f core conftest.err conftest.
$ac_objext \
11553 conftest
$ac_exeext conftest.
$ac_ext
11554 LIBS
=$ac_check_lib_save_LIBS
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11557 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11558 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11559 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11562 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11563 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11564 $as_echo_n "(cached) " >&6
11566 ac_check_lib_save_LIBS
=$LIBS
11568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11571 /* Override any GCC internal prototype to avoid an error.
11572 Use char because int might match the return type of a GCC
11573 builtin and then its argument prototype would still apply. */
11581 return dld_link ();
11586 if ac_fn_c_try_link
"$LINENO"; then :
11587 ac_cv_lib_dld_dld_link
=yes
11589 ac_cv_lib_dld_dld_link
=no
11591 rm -f core conftest.err conftest.
$ac_objext \
11592 conftest
$ac_exeext conftest.
$ac_ext
11593 LIBS
=$ac_check_lib_save_LIBS
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11596 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11597 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11598 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11619 if test "x$lt_cv_dlopen" != xno
; then
11625 case $lt_cv_dlopen in
11627 save_CPPFLAGS
="$CPPFLAGS"
11628 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11630 save_LDFLAGS
="$LDFLAGS"
11631 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11634 LIBS
="$lt_cv_dlopen_libs $LIBS"
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11637 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11638 if ${lt_cv_dlopen_self+:} false
; then :
11639 $as_echo_n "(cached) " >&6
11641 if test "$cross_compiling" = yes; then :
11642 lt_cv_dlopen_self
=cross
11644 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11645 lt_status
=$lt_dlunknown
11646 cat > conftest.
$ac_ext <<_LT_EOF
11647 #line 11647 "configure"
11648 #include "confdefs.h"
11657 # define LT_DLGLOBAL RTLD_GLOBAL
11660 # define LT_DLGLOBAL DL_GLOBAL
11662 # define LT_DLGLOBAL 0
11666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11667 find out it does not work in some platform. */
11668 #ifndef LT_DLLAZY_OR_NOW
11670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11673 # define LT_DLLAZY_OR_NOW DL_LAZY
11676 # define LT_DLLAZY_OR_NOW RTLD_NOW
11679 # define LT_DLLAZY_OR_NOW DL_NOW
11681 # define LT_DLLAZY_OR_NOW 0
11688 /* When -fvisbility=hidden is used, assume the code has been annotated
11689 correspondingly for the symbols needed. */
11690 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11691 void fnord () __attribute__((visibility("default")));
11694 void fnord () { int i=42; }
11697 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11698 int status = $lt_dlunknown;
11702 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11705 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11706 else puts (dlerror ());
11708 /* dlclose (self); */
11716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11717 (eval $ac_link) 2>&5
11719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11721 (.
/conftest
; exit; ) >&5 2>/dev
/null
11723 case x
$lt_status in
11724 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11725 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11726 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11729 # compilation failed
11730 lt_cv_dlopen_self
=no
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11738 $as_echo "$lt_cv_dlopen_self" >&6; }
11740 if test "x$lt_cv_dlopen_self" = xyes
; then
11741 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11743 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11744 if ${lt_cv_dlopen_self_static+:} false
; then :
11745 $as_echo_n "(cached) " >&6
11747 if test "$cross_compiling" = yes; then :
11748 lt_cv_dlopen_self_static
=cross
11750 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11751 lt_status
=$lt_dlunknown
11752 cat > conftest.
$ac_ext <<_LT_EOF
11753 #line 11753 "configure"
11754 #include "confdefs.h"
11763 # define LT_DLGLOBAL RTLD_GLOBAL
11766 # define LT_DLGLOBAL DL_GLOBAL
11768 # define LT_DLGLOBAL 0
11772 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11773 find out it does not work in some platform. */
11774 #ifndef LT_DLLAZY_OR_NOW
11776 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11779 # define LT_DLLAZY_OR_NOW DL_LAZY
11782 # define LT_DLLAZY_OR_NOW RTLD_NOW
11785 # define LT_DLLAZY_OR_NOW DL_NOW
11787 # define LT_DLLAZY_OR_NOW 0
11794 /* When -fvisbility=hidden is used, assume the code has been annotated
11795 correspondingly for the symbols needed. */
11796 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11797 void fnord () __attribute__((visibility("default")));
11800 void fnord () { int i=42; }
11803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11804 int status = $lt_dlunknown;
11808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11811 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11812 else puts (dlerror ());
11814 /* dlclose (self); */
11822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11823 (eval $ac_link) 2>&5
11825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11826 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11827 (.
/conftest
; exit; ) >&5 2>/dev
/null
11829 case x
$lt_status in
11830 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11831 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11832 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11835 # compilation failed
11836 lt_cv_dlopen_self_static
=no
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11844 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11847 CPPFLAGS
="$save_CPPFLAGS"
11848 LDFLAGS
="$save_LDFLAGS"
11853 case $lt_cv_dlopen_self in
11854 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11855 *) enable_dlopen_self
=unknown
;;
11858 case $lt_cv_dlopen_self_static in
11859 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11860 *) enable_dlopen_self_static
=unknown
;;
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11883 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11884 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11885 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11886 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11890 # FIXME - insert some real tests, host_os isn't really good enough
11893 if test -n "$STRIP" ; then
11894 striplib
="$STRIP -x"
11895 old_striplib
="$STRIP -S"
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11921 # Report which library types will actually be built
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11923 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11925 $as_echo "$can_build_shared" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11928 $as_echo_n "checking whether to build shared libraries... " >&6; }
11929 test "$can_build_shared" = "no" && enable_shared
=no
11931 # On AIX, shared libraries and static libraries use the same namespace, and
11932 # are all built from PIC.
11935 test "$enable_shared" = yes && enable_static
=no
11936 if test -n "$RANLIB"; then
11937 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11938 postinstall_cmds
='$RANLIB $lib'
11943 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11944 test "$enable_shared" = yes && enable_static
=no
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11949 $as_echo "$enable_shared" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11952 $as_echo_n "checking whether to build static libraries... " >&6; }
11953 # Make sure either enable_shared or enable_static is yes.
11954 test "$enable_shared" = yes || enable_static
=yes
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11956 $as_echo "$enable_static" >&6; }
11963 ac_cpp
='$CPP $CPPFLAGS'
11964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11982 ac_config_commands
="$ac_config_commands libtool"
11987 # Only expand once:
11993 gdc_save_DFLAGS
=$GDCFLAGS
11994 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11997 # Source file extension for D test sources.
12000 # Object file extension for compiled D test sources.
12004 # Code to be used in simple compile tests
12005 lt_simple_compile_test_code
="\
12007 shared int some_variable = 0;
12010 # Code to be used in simple link tests
12011 lt_simple_link_test_code
="\
12013 extern(C) int main() { return 0; }
12016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12023 # If no C compiler was specified, use CC.
12026 # If no C compiler flags were specified, use CFLAGS.
12027 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12029 # Allow CC to be a program name with arguments.
12033 # save warnings/boilerplate of simple test code
12034 ac_outfile
=conftest.
$ac_objext
12035 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12036 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12037 _lt_compiler_boilerplate
=`cat conftest.err`
12040 ac_outfile
=conftest.
$ac_objext
12041 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12042 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12043 _lt_linker_boilerplate
=`cat conftest.err`
12047 # Allow CC to be a program name with arguments.
12049 lt_save_CFLAGS
=$CFLAGS
12057 for cc_temp
in $compiler""; do
12059 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12060 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12065 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12068 # GDC did not exist at the time GCC didn't implicitly link libc in.
12069 archive_cmds_need_lc_D
=no
12071 old_archive_cmds_D
=$old_archive_cmds
12072 reload_flag_D
=$reload_flag
12073 reload_cmds_D
=$reload_cmds
12076 ## There is no encapsulation within the following macros, do not change
12077 ## the running order or otherwise move them around unless you know exactly
12078 ## what you are doing...
12079 if test -n "$compiler"; then
12081 lt_prog_compiler_no_builtin_flag_D
=
12083 if test "$GCC" = yes; then
12084 case $cc_basename in
12086 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12088 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12092 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12093 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12094 $as_echo_n "(cached) " >&6
12096 lt_cv_prog_compiler_rtti_exceptions
=no
12097 ac_outfile
=conftest.
$ac_objext
12098 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12099 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12100 # Insert the option either (1) after the last *FLAGS variable, or
12101 # (2) before a word containing "conftest.", or (3) at the end.
12102 # Note that $ac_compile itself does not contain backslashes and begins
12103 # with a dollar sign (not a hyphen), so the echo should work correctly.
12104 # The option is referenced via a variable to avoid confusing sed.
12105 lt_compile
=`echo "$ac_compile" | $SED \
12106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12108 -e 's:$: $lt_compiler_flag:'`
12109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12110 (eval "$lt_compile" 2>conftest.err
)
12112 cat conftest.err
>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 if (exit $ac_status) && test -s "$ac_outfile"; then
12115 # The compiler can only warn and ignore the option if not recognized
12116 # So say no if there are warnings other than the usual output.
12117 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12118 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12119 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12120 lt_cv_prog_compiler_rtti_exceptions
=yes
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12127 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12129 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12130 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12139 lt_prog_compiler_wl_D
=
12140 lt_prog_compiler_pic_D
=
12141 lt_prog_compiler_static_D
=
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12146 if test "$GCC" = yes; then
12147 lt_prog_compiler_wl_D
='-Wl,'
12148 lt_prog_compiler_static_D
='-static'
12152 # All AIX code is PIC.
12153 if test "$host_cpu" = ia64
; then
12154 # AIX 5 now supports IA64 processor
12155 lt_prog_compiler_static_D
='-Bstatic'
12157 lt_prog_compiler_pic_D
='-fPIC'
12163 # see comment about AmigaOS4 .so support
12164 lt_prog_compiler_pic_D
='-fPIC'
12167 # FIXME: we need at least 68020 code to build shared libraries, but
12168 # adding the `-m68020' flag to GCC prevents building anything better,
12170 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12175 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12176 # PIC is the default for these OSes.
12179 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12180 # This hack is so that the source file can tell whether it is being
12181 # built for inclusion in a dll (and should export symbols for example).
12182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12183 # (--disable-auto-import) libraries
12184 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12187 darwin
* | rhapsody
*)
12188 # PIC is the default on this platform
12189 # Common symbols not allowed in MH_DYLIB files
12190 lt_prog_compiler_pic_D
='-fno-common'
12194 # PIC is the default for Haiku.
12195 # The "-static" flag exists, but is broken.
12196 lt_prog_compiler_static_D
=
12200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12202 # sets the default TLS model and affects inlining.
12208 lt_prog_compiler_pic_D
='-fPIC'
12214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12215 # Instead, we relocate shared libraries at runtime.
12219 # Just because we use GCC doesn't mean we suddenly get shared libraries
12220 # on systems that don't support them.
12221 lt_prog_compiler_can_build_shared_D
=no
12226 # QNX uses GNU C++, but need to define -shared option too, otherwise
12227 # it will coredump.
12228 lt_prog_compiler_pic_D
='-fPIC -shared'
12232 if test -d /usr
/nec
; then
12233 lt_prog_compiler_pic_D
=-Kconform_pic
12238 lt_prog_compiler_pic_D
='-fPIC'
12242 case $cc_basename in
12243 nvcc
*) # Cuda Compiler Driver 2.2
12244 lt_prog_compiler_wl_D
='-Xlinker '
12245 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12249 # PORTME Check for flag to pass linker flags through the system compiler.
12252 lt_prog_compiler_wl_D
='-Wl,'
12253 if test "$host_cpu" = ia64
; then
12254 # AIX 5 now supports IA64 processor
12255 lt_prog_compiler_static_D
='-Bstatic'
12257 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12261 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12262 # This hack is so that the source file can tell whether it is being
12263 # built for inclusion in a dll (and should export symbols for example).
12264 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12267 hpux9
* | hpux10
* | hpux11
*)
12268 lt_prog_compiler_wl_D
='-Wl,'
12269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12270 # not for PA HP-UX.
12276 lt_prog_compiler_pic_D
='+Z'
12279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12280 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12283 irix5
* | irix6
* | nonstopux
*)
12284 lt_prog_compiler_wl_D
='-Wl,'
12285 # PIC (with -KPIC) is the default.
12286 lt_prog_compiler_static_D
='-non_shared'
12289 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12290 case $cc_basename in
12291 # old Intel for x86_64 which still supported -KPIC.
12293 lt_prog_compiler_wl_D
='-Wl,'
12294 lt_prog_compiler_pic_D
='-KPIC'
12295 lt_prog_compiler_static_D
='-static'
12297 # icc used to be incompatible with GCC.
12298 # ICC 10 doesn't accept -KPIC any more.
12300 lt_prog_compiler_wl_D
='-Wl,'
12301 lt_prog_compiler_pic_D
='-fPIC'
12302 lt_prog_compiler_static_D
='-static'
12304 # Lahey Fortran 8.1.
12306 lt_prog_compiler_wl_D
='-Wl,'
12307 lt_prog_compiler_pic_D
='--shared'
12308 lt_prog_compiler_static_D
='--static'
12310 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12311 # Portland Group compilers (*not* the Pentium gcc compiler,
12312 # which looks to be a dead project)
12313 lt_prog_compiler_wl_D
='-Wl,'
12314 lt_prog_compiler_pic_D
='-fpic'
12315 lt_prog_compiler_static_D
='-Bstatic'
12318 lt_prog_compiler_wl_D
='-Wl,'
12319 # All Alpha code is PIC.
12320 lt_prog_compiler_static_D
='-non_shared'
12322 xl
* | bgxl
* | bgf
* | mpixl
*)
12323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12324 lt_prog_compiler_wl_D
='-Wl,'
12325 lt_prog_compiler_pic_D
='-qpic'
12326 lt_prog_compiler_static_D
='-qstaticlink'
12329 case `$CC -V 2>&1 | sed 5q` in
12330 *Sun\ F
* |
*Sun
*Fortran
*)
12331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12332 lt_prog_compiler_pic_D
='-KPIC'
12333 lt_prog_compiler_static_D
='-Bstatic'
12334 lt_prog_compiler_wl_D
=''
12338 lt_prog_compiler_pic_D
='-KPIC'
12339 lt_prog_compiler_static_D
='-Bstatic'
12340 lt_prog_compiler_wl_D
='-Wl,'
12348 lt_prog_compiler_pic_D
='-KPIC'
12349 lt_prog_compiler_static_D
='-Bstatic'
12353 # QNX uses GNU C++, but need to define -shared option too, otherwise
12354 # it will coredump.
12355 lt_prog_compiler_pic_D
='-fPIC -shared'
12358 osf3
* | osf4
* | osf5
*)
12359 lt_prog_compiler_wl_D
='-Wl,'
12360 # All OSF/1 code is PIC.
12361 lt_prog_compiler_static_D
='-non_shared'
12365 lt_prog_compiler_static_D
='-non_shared'
12369 lt_prog_compiler_pic_D
='-KPIC'
12370 lt_prog_compiler_static_D
='-Bstatic'
12371 case $cc_basename in
12372 f77
* | f90
* | f95
*)
12373 lt_prog_compiler_wl_D
='-Qoption ld ';;
12375 lt_prog_compiler_wl_D
='-Wl,';;
12380 lt_prog_compiler_wl_D
='-Qoption ld '
12381 lt_prog_compiler_pic_D
='-PIC'
12382 lt_prog_compiler_static_D
='-Bstatic'
12385 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12386 lt_prog_compiler_wl_D
='-Wl,'
12387 lt_prog_compiler_pic_D
='-KPIC'
12388 lt_prog_compiler_static_D
='-Bstatic'
12392 if test -d /usr
/nec
;then
12393 lt_prog_compiler_pic_D
='-Kconform_pic'
12394 lt_prog_compiler_static_D
='-Bstatic'
12398 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12399 lt_prog_compiler_wl_D
='-Wl,'
12400 lt_prog_compiler_pic_D
='-KPIC'
12401 lt_prog_compiler_static_D
='-Bstatic'
12405 lt_prog_compiler_wl_D
='-Wl,'
12406 lt_prog_compiler_can_build_shared_D
=no
12410 lt_prog_compiler_pic_D
='-pic'
12411 lt_prog_compiler_static_D
='-Bstatic'
12415 lt_prog_compiler_can_build_shared_D
=no
12421 # For platforms which do not support PIC, -DPIC is meaningless:
12423 lt_prog_compiler_pic_D
=
12426 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12430 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12435 # Check to make sure the PIC flag actually works.
12437 if test -n "$lt_prog_compiler_pic_D"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12439 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12440 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12441 $as_echo_n "(cached) " >&6
12443 lt_cv_prog_compiler_pic_works_D
=no
12444 ac_outfile
=conftest.
$ac_objext
12445 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12446 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12447 # Insert the option either (1) after the last *FLAGS variable, or
12448 # (2) before a word containing "conftest.", or (3) at the end.
12449 # Note that $ac_compile itself does not contain backslashes and begins
12450 # with a dollar sign (not a hyphen), so the echo should work correctly.
12451 # The option is referenced via a variable to avoid confusing sed.
12452 lt_compile
=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>conftest.err
)
12459 cat conftest.err
>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s "$ac_outfile"; then
12462 # The compiler can only warn and ignore the option if not recognized
12463 # So say no if there are warnings other than the usual output.
12464 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12465 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12466 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12467 lt_cv_prog_compiler_pic_works_D
=yes
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12474 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12476 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12477 case $lt_prog_compiler_pic_D in
12479 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12482 lt_prog_compiler_pic_D
=
12483 lt_prog_compiler_can_build_shared_D
=no
12491 # Check to make sure the static flag actually works.
12493 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12495 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12496 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12497 $as_echo_n "(cached) " >&6
12499 lt_cv_prog_compiler_static_works_D
=no
12500 save_LDFLAGS
="$LDFLAGS"
12501 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12502 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12503 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12504 # The linker can only warn and ignore the option if not recognized
12505 # So say no if there are warnings
12506 if test -s conftest.err
; then
12507 # Append any errors to the config.log.
12508 cat conftest.err
1>&5
12509 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12510 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12511 if diff conftest.exp conftest.er2
>/dev
/null
; then
12512 lt_cv_prog_compiler_static_works_D
=yes
12515 lt_cv_prog_compiler_static_works_D
=yes
12519 LDFLAGS
="$save_LDFLAGS"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12523 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12525 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12528 lt_prog_compiler_static_D
=
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12535 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12536 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12537 $as_echo_n "(cached) " >&6
12539 lt_cv_prog_compiler_c_o_D
=no
12540 $RM -r conftest
2>/dev
/null
12544 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12546 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12547 # Insert the option either (1) after the last *FLAGS variable, or
12548 # (2) before a word containing "conftest.", or (3) at the end.
12549 # Note that $ac_compile itself does not contain backslashes and begins
12550 # with a dollar sign (not a hyphen), so the echo should work correctly.
12551 lt_compile
=`echo "$ac_compile" | $SED \
12552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12554 -e 's:$: $lt_compiler_flag:'`
12555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12556 (eval "$lt_compile" 2>out
/conftest.err
)
12558 cat out
/conftest.err
>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12562 # The compiler can only warn and ignore the option if not recognized
12563 # So say no if there are warnings
12564 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12565 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12566 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12567 lt_cv_prog_compiler_c_o_D
=yes
12572 # SGI C++ compiler will create directory out/ii_files/ for
12573 # template instantiation
12574 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12575 $RM out
/* && rmdir out
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12582 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12588 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12589 $as_echo_n "(cached) " >&6
12591 lt_cv_prog_compiler_c_o_D
=no
12592 $RM -r conftest
2>/dev
/null
12596 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12598 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12599 # Insert the option either (1) after the last *FLAGS variable, or
12600 # (2) before a word containing "conftest.", or (3) at the end.
12601 # Note that $ac_compile itself does not contain backslashes and begins
12602 # with a dollar sign (not a hyphen), so the echo should work correctly.
12603 lt_compile
=`echo "$ac_compile" | $SED \
12604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12606 -e 's:$: $lt_compiler_flag:'`
12607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12608 (eval "$lt_compile" 2>out
/conftest.err
)
12610 cat out
/conftest.err
>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12614 # The compiler can only warn and ignore the option if not recognized
12615 # So say no if there are warnings
12616 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12617 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12618 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12619 lt_cv_prog_compiler_c_o_D
=yes
12624 # SGI C++ compiler will create directory out/ii_files/ for
12625 # template instantiation
12626 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12627 $RM out
/* && rmdir out
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12634 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12639 hard_links
="nottested"
12640 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12641 # do not overwrite the value of need_locks provided by the user
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12643 $as_echo_n "checking if we can lock with hard links... " >&6; }
12646 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12648 ln conftest.a conftest.b
2>&5 || hard_links
=no
12649 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12651 $as_echo "$hard_links" >&6; }
12652 if test "$hard_links" = no
; then
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12654 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12664 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12667 allow_undefined_flag_D
=
12668 always_export_symbols_D
=no
12670 archive_expsym_cmds_D
=
12671 compiler_needs_object_D
=no
12672 enable_shared_with_static_runtimes_D
=no
12673 export_dynamic_flag_spec_D
=
12674 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12675 hardcode_automatic_D
=no
12676 hardcode_direct_D
=no
12677 hardcode_direct_absolute_D
=no
12678 hardcode_libdir_flag_spec_D
=
12679 hardcode_libdir_flag_spec_ld_D
=
12680 hardcode_libdir_separator_D
=
12681 hardcode_minus_L_D
=no
12682 hardcode_shlibpath_var_D
=unsupported
12684 link_all_deplibs_D
=unknown
12686 module_expsym_cmds_D
=
12687 old_archive_from_new_cmds_D
=
12688 old_archive_from_expsyms_cmds_D
=
12689 thread_safe_flag_spec_D
=
12690 whole_archive_flag_spec_D
=
12691 # include_expsyms should be a list of space-separated symbols to be *always*
12692 # included in the symbol list
12694 # exclude_expsyms can be an extended regexp of symbols to exclude
12695 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12696 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12697 # as well as any symbol that contains `d'.
12698 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12699 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12700 # platforms (ab)use it in PIC code, but their linkers get confused if
12701 # the symbol is explicitly referenced. Since portable code cannot
12702 # rely on this symbol name, it's probably fine to never include it in
12703 # preloaded symbol tables.
12704 # Exclude shared library initialization/finalization symbols.
12705 extract_expsyms_cmds
=
12708 cygwin
* | mingw
* | pw32
* | cegcc
*)
12709 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12710 # When not using gcc, we currently assume that we are using
12711 # Microsoft Visual C++.
12712 if test "$GCC" != yes; then
12717 # we just hope/assume this is gcc and not c89 (= MSVC++)
12727 # On some targets, GNU ld is compatible enough with the native linker
12728 # that we're better off using the native interface for both.
12729 lt_use_gnu_ld_interface
=no
12730 if test "$with_gnu_ld" = yes; then
12733 # The AIX port of GNU ld has always aspired to compatibility
12734 # with the native linker. However, as the warning in the GNU ld
12735 # block says, versions before 2.19.5* couldn't really create working
12736 # shared libraries, regardless of the interface used.
12737 case `$LD -v 2>&1` in
12738 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12739 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12740 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12742 lt_use_gnu_ld_interface
=yes
12747 lt_use_gnu_ld_interface
=yes
12752 if test "$lt_use_gnu_ld_interface" = yes; then
12753 # If archive_cmds runs LD, not CC, wlarc should be empty
12756 # Set some defaults for GNU ld with shared library support. These
12757 # are reset later if shared libraries are not supported. Putting them
12758 # here allows them to be overridden if necessary.
12759 runpath_var
=LD_RUN_PATH
12760 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12761 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12762 # ancient GNU ld didn't support --whole-archive et. al.
12763 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12764 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12766 whole_archive_flag_spec_D
=
12768 supports_anon_versioning
=no
12769 case `$LD -v 2>&1` in
12770 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12771 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12772 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12773 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12774 *\
2.11.
*) ;; # other 2.11 versions
12775 *) supports_anon_versioning
=yes ;;
12778 # See if GNU ld supports shared libraries.
12781 # On AIX/PPC, the GNU linker is very broken
12782 if test "$host_cpu" != ia64
; then
12786 *** Warning: the GNU linker, at least up to release 2.19, is reported
12787 *** to be unable to reliably create shared libraries on AIX.
12788 *** Therefore, libtool is disabling shared libraries support. If you
12789 *** really care for shared libraries, you may want to install binutils
12790 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12791 *** You will then need to restart the configuration process.
12800 # see comment about AmigaOS4 .so support
12801 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_D
=''
12805 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)'
12806 hardcode_libdir_flag_spec_D
='-L$libdir'
12807 hardcode_minus_L_D
=yes
12813 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12814 allow_undefined_flag_D
=unsupported
12815 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12816 # support --undefined. This deserves some investigation. FIXME
12817 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 cygwin
* | mingw
* | pw32
* | cegcc
*)
12824 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12825 # as there is no search path for DLLs.
12826 hardcode_libdir_flag_spec_D
='-L$libdir'
12827 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12828 allow_undefined_flag_D
=unsupported
12829 always_export_symbols_D
=no
12830 enable_shared_with_static_runtimes_D
=yes
12831 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12833 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12834 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12835 # If the export-symbols file already is a .def file (1st line
12836 # is EXPORTS), use it as is; otherwise, prepend...
12837 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12838 cp $export_symbols $output_objdir/$soname.def;
12840 echo EXPORTS > $output_objdir/$soname.def;
12841 cat $export_symbols >> $output_objdir/$soname.def;
12843 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12850 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851 link_all_deplibs_D
=yes
12855 hardcode_direct_D
=no
12856 hardcode_shlibpath_var_D
=no
12857 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_D
='${wl}-E'
12859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860 # Instead, shared libraries are loaded at an image base (0x10000000 by
12861 # default) and relocated if they conflict, which is a slow very memory
12862 # consuming and fragmenting process. To avoid this, we pick a random,
12863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12865 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'
12866 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'
12869 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
12871 if test "$host_os" = linux-dietlibc
; then
12872 case $cc_basename in
12873 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12876 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12877 && test "$tmp_diet" = no
12879 tmp_addflag
=' $pic_flag'
12880 tmp_sharedflag
='-shared'
12881 case $cc_basename,$host_cpu in
12882 pgcc
*) # Portland Group C compiler
12883 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'
12884 tmp_addflag
=' $pic_flag'
12886 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12887 # Portland Group f77 and f90 compilers
12888 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'
12889 tmp_addflag
=' $pic_flag -Mnomain' ;;
12890 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12891 tmp_addflag
=' -i_dynamic' ;;
12892 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12893 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12894 ifc
* | ifort
*) # Intel Fortran compiler
12895 tmp_addflag
=' -nofor_main' ;;
12896 lf95
*) # Lahey Fortran 8.1
12897 whole_archive_flag_spec_D
=
12898 tmp_sharedflag
='--shared' ;;
12899 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12900 tmp_sharedflag
='-qmkshrobj'
12902 nvcc
*) # Cuda Compiler Driver 2.2
12903 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'
12904 compiler_needs_object_D
=yes
12907 case `$CC -V 2>&1 | sed 5q` in
12908 *Sun\ C
*) # Sun C 5.9
12909 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'
12910 compiler_needs_object_D
=yes
12911 tmp_sharedflag
='-G' ;;
12912 *Sun\ F
*) # Sun Fortran 8.3
12913 tmp_sharedflag
='-G' ;;
12915 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917 if test "x$supports_anon_versioning" = xyes
; then
12918 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12920 echo "local: *; };" >> $output_objdir/$libname.ver~
12921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12924 case $cc_basename in
12925 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12926 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12927 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
12928 hardcode_libdir_flag_spec_D
=
12929 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
12930 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12931 if test "x$supports_anon_versioning" = xyes
; then
12932 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12934 echo "local: *; };" >> $output_objdir/$libname.ver~
12935 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12945 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12946 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12949 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12950 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12955 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12960 *** create shared libraries on Solaris systems. Therefore, libtool
12961 *** is disabling shared libraries support. We urge you to upgrade GNU
12962 *** binutils to release 2.9.1 or newer. Another option is to modify
12963 *** your PATH or compiler configuration so that the native linker is
12964 *** used, and then restart.
12967 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12968 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12969 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12976 case `$LD -v 2>&1` in
12977 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12981 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12982 *** reliably create shared libraries on SCO systems. Therefore, libtool
12983 *** is disabling shared libraries support. We urge you to upgrade GNU
12984 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12985 *** your PATH or compiler configuration so that the native linker is
12986 *** used, and then restart.
12991 # For security reasons, it is highly recommended that you always
12992 # use absolute paths for naming shared libraries, and exclude the
12993 # DT_RUNPATH tag from executables and libraries. But doing so
12994 # requires that you compile everything twice, which is a pain.
12995 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12996 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12997 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12998 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13007 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13009 hardcode_direct_D
=yes
13010 hardcode_shlibpath_var_D
=no
13014 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13015 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13023 if test "$ld_shlibs_D" = no
; then
13025 hardcode_libdir_flag_spec_D
=
13026 export_dynamic_flag_spec_D
=
13027 whole_archive_flag_spec_D
=
13030 # PORTME fill in a description of your system's linker (not GNU ld)
13033 allow_undefined_flag_D
=unsupported
13034 always_export_symbols_D
=yes
13035 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'
13036 # Note: this linker hardcodes the directories in LIBPATH if there
13037 # are no directories specified by -L.
13038 hardcode_minus_L_D
=yes
13039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13040 # Neither direct hardcoding nor static linking is supported with a
13042 hardcode_direct_D
=unsupported
13047 if test "$host_cpu" = ia64
; then
13048 # On IA64, the linker does run time linking by default, so we don't
13049 # have to do anything special.
13050 aix_use_runtimelinking
=no
13051 exp_sym_flag
='-Bexport'
13054 # If we're using GNU nm, then we don't want the "-C" option.
13055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13056 # Also, AIX nm treats weak defined symbols like other global
13057 # defined symbols, whereas GNU nm marks them as "W".
13058 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13059 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'
13061 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'
13063 aix_use_runtimelinking
=no
13065 # Test if we are trying to use run time linking or normal
13066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13067 # need to do runtime linking.
13068 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13069 for ld_flag
in $LDFLAGS; do
13070 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13071 aix_use_runtimelinking
=yes
13078 exp_sym_flag
='-bexport'
13079 no_entry_flag
='-bnoentry'
13082 # When large executables or shared objects are built, AIX ld can
13083 # have problems creating the table of contents. If linking a library
13084 # or program results in "error TOC overflow" add -mminimal-toc to
13085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13089 hardcode_direct_D
=yes
13090 hardcode_direct_absolute_D
=yes
13091 hardcode_libdir_separator_D
=':'
13092 link_all_deplibs_D
=yes
13093 file_list_spec_D
='${wl}-f,'
13095 if test "$GCC" = yes; then
13096 case $host_os in aix4.
[012]|aix4.
[012].
*)
13097 # We only want to do this on AIX 4.2 and lower, the check
13098 # below for broken collect2 doesn't work under 4.3+
13099 collect2name
=`${CC} -print-prog-name=collect2`
13100 if test -f "$collect2name" &&
13101 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13103 # We have reworked collect2
13106 # We have old collect2
13107 hardcode_direct_D
=unsupported
13108 # It fails to find uninstalled libraries when the uninstalled
13109 # path is not listed in the libpath. Setting hardcode_minus_L
13110 # to unsupported forces relinking
13111 hardcode_minus_L_D
=yes
13112 hardcode_libdir_flag_spec_D
='-L$libdir'
13113 hardcode_libdir_separator_D
=
13117 shared_flag
='-shared'
13118 if test "$aix_use_runtimelinking" = yes; then
13119 shared_flag
="$shared_flag "'${wl}-G'
13123 if test "$host_cpu" = ia64
; then
13124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13125 # chokes on -Wl,-G. The following line is correct:
13128 if test "$aix_use_runtimelinking" = yes; then
13129 shared_flag
='${wl}-G'
13131 shared_flag
='${wl}-bM:SRE'
13136 export_dynamic_flag_spec_D
='${wl}-bexpall'
13137 # It seems that -bexpall does not export symbols beginning with
13138 # underscore (_), so it is better to generate a list of symbols to export.
13139 always_export_symbols_D
=yes
13140 if test "$aix_use_runtimelinking" = yes; then
13141 # Warning - without using the other runtime loading flags (-brtl),
13142 # -berok will link without error, but may produce a broken library.
13143 allow_undefined_flag_D
='-berok'
13144 # Determine the default libpath from the value encoded in an
13145 # empty executable.
13146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13157 if ac_fn_c_try_link
"$LINENO"; then :
13159 lt_aix_libpath_sed
='
13160 /Import File Strings/,/^$/ {
13166 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13167 # Check for a 64-bit object if we didn't find anything.
13168 if test -z "$aix_libpath"; then
13169 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13172 rm -f core conftest.err conftest.
$ac_objext \
13173 conftest
$ac_exeext conftest.
$ac_ext
13174 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13176 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13177 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"
13179 if test "$host_cpu" = ia64
; then
13180 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13181 allow_undefined_flag_D
="-z nodefs"
13182 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"
13184 # Determine the default libpath from the value encoded in an
13185 # empty executable.
13186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13197 if ac_fn_c_try_link
"$LINENO"; then :
13199 lt_aix_libpath_sed
='
13200 /Import File Strings/,/^$/ {
13206 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13207 # Check for a 64-bit object if we didn't find anything.
13208 if test -z "$aix_libpath"; then
13209 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212 rm -f core conftest.err conftest.
$ac_objext \
13213 conftest
$ac_exeext conftest.
$ac_ext
13214 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13216 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13217 # Warning - without using the other run time loading flags,
13218 # -berok will link without error, but may produce a broken library.
13219 no_undefined_flag_D
=' ${wl}-bernotok'
13220 allow_undefined_flag_D
=' ${wl}-berok'
13221 if test "$with_gnu_ld" = yes; then
13222 # We only use this code for GNU lds that support --whole-archive.
13223 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13225 # Exported symbols can be pulled into shared objects from archives
13226 whole_archive_flag_spec_D
='$convenience'
13228 archive_cmds_need_lc_D
=yes
13229 # This is similar to how AIX traditionally builds its shared libraries.
13230 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'
13238 # see comment about AmigaOS4 .so support
13239 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 archive_expsym_cmds_D
=''
13243 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)'
13244 hardcode_libdir_flag_spec_D
='-L$libdir'
13245 hardcode_minus_L_D
=yes
13251 export_dynamic_flag_spec_D
=-rdynamic
13254 cygwin
* | mingw
* | pw32
* | cegcc
*)
13255 # When not using gcc, we currently assume that we are using
13256 # Microsoft Visual C++.
13257 # hardcode_libdir_flag_spec is actually meaningless, as there is
13258 # no search path for DLLs.
13259 hardcode_libdir_flag_spec_D
=' '
13260 allow_undefined_flag_D
=unsupported
13261 # Tell ltmain to make .lib files, not .a files.
13263 # Tell ltmain to make .dll files, not .so files.
13265 # FIXME: Setting linknames here is a bad hack.
13266 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13267 # The linker will automatically build a .lib file if we build a DLL.
13268 old_archive_from_new_cmds_D
='true'
13269 # FIXME: Should let the user specify the lib program.
13270 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13271 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13272 enable_shared_with_static_runtimes_D
=yes
13275 darwin
* | rhapsody
*)
13278 archive_cmds_need_lc_D
=no
13279 hardcode_direct_D
=no
13280 hardcode_automatic_D
=yes
13281 hardcode_shlibpath_var_D
=unsupported
13282 if test "$lt_cv_ld_force_load" = "yes"; then
13283 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\"`'
13285 whole_archive_flag_spec_D
=''
13287 link_all_deplibs_D
=yes
13288 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13289 case $cc_basename in
13290 ifort
*) _lt_dar_can_shared
=yes ;;
13291 *) _lt_dar_can_shared
=$GCC ;;
13293 if test "$_lt_dar_can_shared" = "yes"; then
13294 output_verbose_link_cmd
=func_echo_all
13295 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}"
13296 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13297 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}"
13298 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}"
13307 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13308 hardcode_libdir_flag_spec_D
='-L$libdir'
13309 hardcode_shlibpath_var_D
=no
13312 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13313 # support. Future versions do this automatically, but an explicit c++rt0.o
13314 # does not break anything, and helps significantly (at the cost of a little
13317 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13318 hardcode_libdir_flag_spec_D
='-R$libdir'
13319 hardcode_direct_D
=yes
13320 hardcode_shlibpath_var_D
=no
13323 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13325 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13326 hardcode_direct_D
=yes
13327 hardcode_minus_L_D
=yes
13328 hardcode_shlibpath_var_D
=no
13331 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13332 freebsd
* | dragonfly
*)
13333 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13334 hardcode_libdir_flag_spec_D
='-R$libdir'
13335 hardcode_direct_D
=yes
13336 hardcode_shlibpath_var_D
=no
13340 if test "$GCC" = yes; then
13341 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'
13343 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'
13345 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13346 hardcode_libdir_separator_D
=:
13347 hardcode_direct_D
=yes
13349 # hardcode_minus_L: Not really in the search PATH,
13350 # but as the default location of the library.
13351 hardcode_minus_L_D
=yes
13352 export_dynamic_flag_spec_D
='${wl}-E'
13356 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13357 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13359 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13361 if test "$with_gnu_ld" = no
; then
13362 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13363 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13364 hardcode_libdir_separator_D
=:
13365 hardcode_direct_D
=yes
13366 hardcode_direct_absolute_D
=yes
13367 export_dynamic_flag_spec_D
='${wl}-E'
13368 # hardcode_minus_L: Not really in the search PATH,
13369 # but as the default location of the library.
13370 hardcode_minus_L_D
=yes
13375 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13378 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13381 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13384 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13396 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13400 if test "$with_gnu_ld" = no
; then
13401 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13402 hardcode_libdir_separator_D
=:
13406 hardcode_direct_D
=no
13407 hardcode_shlibpath_var_D
=no
13410 hardcode_direct_D
=yes
13411 hardcode_direct_absolute_D
=yes
13412 export_dynamic_flag_spec_D
='${wl}-E'
13414 # hardcode_minus_L: Not really in the search PATH,
13415 # but as the default location of the library.
13416 hardcode_minus_L_D
=yes
13422 irix5
* | irix6
* | nonstopux
*)
13423 if test "$GCC" = yes; then
13424 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'
13425 # Try to use the -exported_symbol ld option, if it does not
13426 # work, assume that -exports_file does not work either and
13427 # implicitly export all symbols.
13428 save_LDFLAGS
="$LDFLAGS"
13429 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13434 if ac_fn_c_try_link
"$LINENO"; then :
13435 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'
13438 rm -f core conftest.err conftest.
$ac_objext \
13439 conftest
$ac_exeext conftest.
$ac_ext
13440 LDFLAGS
="$save_LDFLAGS"
13442 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'
13443 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'
13445 archive_cmds_need_lc_D
='no'
13446 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13447 hardcode_libdir_separator_D
=:
13448 inherit_rpath_D
=yes
13449 link_all_deplibs_D
=yes
13453 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13454 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13456 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13458 hardcode_libdir_flag_spec_D
='-R$libdir'
13459 hardcode_direct_D
=yes
13460 hardcode_shlibpath_var_D
=no
13464 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_direct_D
=yes
13466 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13467 hardcode_libdir_separator_D
=:
13468 hardcode_shlibpath_var_D
=no
13475 if test -f /usr
/libexec
/ld.so
; then
13476 hardcode_direct_D
=yes
13477 hardcode_shlibpath_var_D
=no
13478 hardcode_direct_absolute_D
=yes
13479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13480 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13481 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13482 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13483 export_dynamic_flag_spec_D
='${wl}-E'
13486 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13487 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13488 hardcode_libdir_flag_spec_D
='-R$libdir'
13491 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13492 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13502 hardcode_libdir_flag_spec_D
='-L$libdir'
13503 hardcode_minus_L_D
=yes
13504 allow_undefined_flag_D
=unsupported
13505 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'
13506 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13510 if test "$GCC" = yes; then
13511 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13512 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'
13514 allow_undefined_flag_D
=' -expect_unresolved \*'
13515 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'
13517 archive_cmds_need_lc_D
='no'
13518 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13519 hardcode_libdir_separator_D
=:
13522 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13523 if test "$GCC" = yes; then
13524 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13525 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'
13526 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13528 allow_undefined_flag_D
=' -expect_unresolved \*'
13529 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'
13530 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~
13531 $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'
13533 # Both c and cxx compiler support -rpath directly
13534 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13536 archive_cmds_need_lc_D
='no'
13537 hardcode_libdir_separator_D
=:
13541 no_undefined_flag_D
=' -z defs'
13542 if test "$GCC" = yes; then
13544 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13545 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13546 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13548 case `$CC -V 2>&1` in
13551 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13553 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13557 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13558 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13559 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13563 hardcode_libdir_flag_spec_D
='-R$libdir'
13564 hardcode_shlibpath_var_D
=no
13566 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13568 # The compiler driver will combine and reorder linker options,
13569 # but understands `-z linker_flag'. GCC discards it without `$wl',
13570 # but is careful enough not to reorder.
13571 # Supported since Solaris 2.6 (maybe 2.5.1?)
13572 if test "$GCC" = yes; then
13573 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13575 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13579 link_all_deplibs_D
=yes
13583 if test "x$host_vendor" = xsequent
; then
13584 # Use $CC to link under sequent, because it throws in some extra .o
13585 # files that make .init and .fini sections work.
13586 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13588 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13590 hardcode_libdir_flag_spec_D
='-L$libdir'
13591 hardcode_direct_D
=yes
13592 hardcode_minus_L_D
=yes
13593 hardcode_shlibpath_var_D
=no
13597 case $host_vendor in
13599 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13600 hardcode_direct_D
=yes # is this really true???
13603 ## LD is ld it makes a PLAMLIB
13604 ## CC just makes a GrossModule.
13605 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13606 reload_cmds_D
='$CC -r -o $output$reload_objs'
13607 hardcode_direct_D
=no
13610 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13614 runpath_var
='LD_RUN_PATH'
13615 hardcode_shlibpath_var_D
=no
13619 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_shlibpath_var_D
=no
13621 export_dynamic_flag_spec_D
='-Bexport'
13625 if test -d /usr
/nec
; then
13626 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_shlibpath_var_D
=no
13628 runpath_var
=LD_RUN_PATH
13629 hardcode_runpath_var
=yes
13634 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13635 no_undefined_flag_D
='${wl}-z,text'
13636 archive_cmds_need_lc_D
=no
13637 hardcode_shlibpath_var_D
=no
13638 runpath_var
='LD_RUN_PATH'
13640 if test "$GCC" = yes; then
13641 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13645 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13649 sysv5
* | sco3.2v5
* | sco5v6
*)
13650 # Note: We can NOT use -z defs as we might desire, because we do not
13651 # link with -lc, and that would cause any symbols used from libc to
13652 # always be unresolved, which means just about no library would
13653 # ever link correctly. If we're not using GNU ld we use -z text
13654 # though, which does catch some bad symbols but isn't as heavy-handed
13656 no_undefined_flag_D
='${wl}-z,text'
13657 allow_undefined_flag_D
='${wl}-z,nodefs'
13658 archive_cmds_need_lc_D
=no
13659 hardcode_shlibpath_var_D
=no
13660 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13661 hardcode_libdir_separator_D
=':'
13662 link_all_deplibs_D
=yes
13663 export_dynamic_flag_spec_D
='${wl}-Bexport'
13664 runpath_var
='LD_RUN_PATH'
13666 if test "$GCC" = yes; then
13667 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13671 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13677 hardcode_libdir_flag_spec_D
='-L$libdir'
13678 hardcode_shlibpath_var_D
=no
13686 if test x
$host_vendor = xsni
; then
13688 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13689 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13696 $as_echo "$ld_shlibs_D" >&6; }
13697 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13699 with_gnu_ld_D
=$with_gnu_ld
13707 # Do we need to explicitly link libc?
13709 case "x$archive_cmds_need_lc_D" in
13711 # Assume -lc should be added
13712 archive_cmds_need_lc_D
=yes
13714 if test "$enable_shared" = yes && test "$GCC" = yes; then
13715 case $archive_cmds_D in
13717 # FIXME: we may have to deal with multi-command sequences.
13720 # Test whether the compiler implicitly links with -lc since on some
13721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13722 # to ld, don't add -lc before -lgcc.
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13724 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13725 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13726 $as_echo_n "(cached) " >&6
13729 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13732 (eval $ac_compile) 2>&5
13734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; } 2>conftest.err
; then
13738 libobjs
=conftest.
$ac_objext
13740 wl
=$lt_prog_compiler_wl_D
13741 pic_flag
=$lt_prog_compiler_pic_D
13747 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13748 allow_undefined_flag_D
=
13749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13750 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }
13755 lt_cv_archive_cmds_need_lc_D
=no
13757 lt_cv_archive_cmds_need_lc_D
=yes
13759 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13761 cat conftest.err
1>&5
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13767 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13768 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13839 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13841 if test -n "$hardcode_libdir_flag_spec_D" ||
13842 test -n "$runpath_var_D" ||
13843 test "X$hardcode_automatic_D" = "Xyes" ; then
13845 # We can hardcode non-existent directories.
13846 if test "$hardcode_direct_D" != no
&&
13847 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13848 # have to relink, otherwise we might link with an installed library
13849 # when we should be linking with a yet-to-be-installed one
13850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13851 test "$hardcode_minus_L_D" != no
; then
13852 # Linking always hardcodes the temporary library directory.
13853 hardcode_action_D
=relink
13855 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13856 hardcode_action_D
=immediate
13859 # We cannot hardcode anything, or else we can only hardcode existing
13861 hardcode_action_D
=unsupported
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13864 $as_echo "$hardcode_action_D" >&6; }
13866 if test "$hardcode_action_D" = relink ||
13867 test "$inherit_rpath_D" = yes; then
13868 # Fast installation is not supported
13869 enable_fast_install
=no
13870 elif test "$shlibpath_overrides_runpath" = yes ||
13871 test "$enable_shared" = no
; then
13872 # Fast installation is not necessary
13873 enable_fast_install
=needless
13885 ac_cpp
='$CPP $CPPFLAGS'
13886 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13887 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13888 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13893 CFLAGS
=$lt_save_CFLAGS
13895 GDCFLAGS
=$gdc_save_DFLAGS
13898 # libtool variables for Phobos shared and position-independent compiles.
13900 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13901 # creating shared objects. Default: -fversion=Shared.
13903 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13904 # creating position-independent objects. This varies with the target
13905 # hardware and operating system, but is often: -fPIC.
13907 # The distinction between pic and shared compilation flags is not present in
13908 # libtool, and so we make it here. How it is handled is that in shared
13909 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13910 # ensure that conditional compilation of shared runtime code is compiled in.
13911 # The original PIC flags are then used in the compilation of every object.
13913 # Why are objects destined for libgphobos.a compiled with -fPIC?
13914 # Because -fPIC is not harmful to use for objects destined for static
13915 # libraries. In addition, using -fPIC will allow the use of static
13916 # libgphobos.a in the creation of other D shared libraries.
13917 if test "$enable_shared" = yes; then
13918 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
13919 phobos_compiler_shared_flag
="-fversion=Shared"
13921 phobos_compiler_pic_flag
=
13922 phobos_compiler_shared_flag
=
13927 # Override the libtool's pic_flag and pic_mode.
13928 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13929 # NB: this impacts --with-pic and --without-pic.
13930 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
13933 # Determine what GCC version number to use in filesystem paths.
13935 get_gcc_base_ver
="cat"
13937 # Check whether --with-gcc-major-version-only was given.
13938 if test "${with_gcc_major_version_only+set}" = set; then :
13939 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13940 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13948 # libphobos/libdruntime specific options and feature detection
13950 # These need to be absolute paths, yet at the same time need to
13951 # canonicalize only relative paths, because then amd will not unmount
13952 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13953 libphobos_builddir
=`${PWDCMD-pwd}`
13955 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
13956 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13962 if test ${multilib} = yes; then
13963 multilib_arg
="--enable-multilib"
13969 # Check whether --enable-werror was given.
13970 if test "${enable_werror+set}" = set; then :
13971 enableval
=$enable_werror;
13975 if test "x$enable_werror" = "xyes"; then
13976 WERROR_FLAG
="-Werror"
13980 # Check whether --enable-druntime-gc was given.
13981 if test "${enable_druntime_gc+set}" = set; then :
13982 enableval
=$enable_druntime_gc; enable_druntime_gc
=no
13984 enable_druntime_gc
=yes
13988 if test "$enable_druntime_gc" = "yes"; then
13989 DRUNTIME_GC_ENABLE_TRUE
=
13990 DRUNTIME_GC_ENABLE_FALSE
='#'
13992 DRUNTIME_GC_ENABLE_TRUE
='#'
13993 DRUNTIME_GC_ENABLE_FALSE
=
13998 druntime_target_cpu_parsed
=""
13999 case "$target_cpu" in
14001 druntime_target_cpu_parsed
="aarch64"
14003 arm
*) druntime_target_cpu_parsed
="arm"
14005 mips
*) druntime_target_cpu_parsed
="mips"
14007 powerpc
) druntime_target_cpu_parsed
="powerpc"
14010 druntime_target_cpu_parsed
="powerpc64"
14013 druntime_target_cpu_parsed
="x86"
14016 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14017 DRUNTIME_CPU_AARCH64_TRUE
=
14018 DRUNTIME_CPU_AARCH64_FALSE
='#'
14020 DRUNTIME_CPU_AARCH64_TRUE
='#'
14021 DRUNTIME_CPU_AARCH64_FALSE
=
14024 if test "$druntime_target_cpu_parsed" = "arm"; then
14025 DRUNTIME_CPU_ARM_TRUE
=
14026 DRUNTIME_CPU_ARM_FALSE
='#'
14028 DRUNTIME_CPU_ARM_TRUE
='#'
14029 DRUNTIME_CPU_ARM_FALSE
=
14032 if test "$druntime_target_cpu_parsed" = "mips"; then
14033 DRUNTIME_CPU_MIPS_TRUE
=
14034 DRUNTIME_CPU_MIPS_FALSE
='#'
14036 DRUNTIME_CPU_MIPS_TRUE
='#'
14037 DRUNTIME_CPU_MIPS_FALSE
=
14040 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14041 DRUNTIME_CPU_POWERPC_TRUE
=
14042 DRUNTIME_CPU_POWERPC_FALSE
='#'
14044 DRUNTIME_CPU_POWERPC_TRUE
='#'
14045 DRUNTIME_CPU_POWERPC_FALSE
=
14048 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14049 DRUNTIME_CPU_POWERPC64_TRUE
=
14050 DRUNTIME_CPU_POWERPC64_FALSE
='#'
14052 DRUNTIME_CPU_POWERPC64_TRUE
='#'
14053 DRUNTIME_CPU_POWERPC64_FALSE
=
14056 if test "$druntime_target_cpu_parsed" = "x86"; then
14057 DRUNTIME_CPU_X86_TRUE
=
14058 DRUNTIME_CPU_X86_FALSE
='#'
14060 DRUNTIME_CPU_X86_TRUE
='#'
14061 DRUNTIME_CPU_X86_FALSE
=
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14067 $as_echo_n "checking for target OS... " >&6; }
14068 if ${druntime_cv_target_os+:} false
; then :
14069 $as_echo_n "(cached) " >&6
14071 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14074 $as_echo "$druntime_cv_target_os" >&6; }
14075 if test -z "$druntime_cv_target_os"; then :
14076 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14081 # Check whether --enable-unix was given.
14082 if test "${enable_unix+set}" = set; then :
14083 enableval
=$enable_unix; :
14089 case "$druntime_cv_target_os" in
14090 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*) d_have_unix
=1 ;;
14092 if test -n "$d_have_unix" && test "$enable_unix" = auto
; then
14095 if test "$enable_unix" = "yes"; then
14096 DRUNTIME_OS_UNIX_TRUE
=
14097 DRUNTIME_OS_UNIX_FALSE
='#'
14099 DRUNTIME_OS_UNIX_TRUE
='#'
14100 DRUNTIME_OS_UNIX_FALSE
=
14107 druntime_target_os_parsed
=""
14108 case "$druntime_cv_target_os" in
14109 aix
*) druntime_target_os_parsed
="aix"
14112 druntime_target_os_parsed
="android"
14114 darwin
*) druntime_target_os_parsed
="darwin"
14117 druntime_target_os_parsed
="dragonflybsd"
14119 freebsd
*|k
*bsd
*-gnu)
14120 druntime_target_os_parsed
="freebsd"
14123 druntime_target_os_parsed
="openbsd"
14126 druntime_target_os_parsed
="netbsd"
14128 linux
*) druntime_target_os_parsed
="linux"
14130 mingw
*) druntime_target_os_parsed
="mingw"
14132 *solaris
*) druntime_target_os_parsed
="solaris"
14134 if test "$druntime_target_os_parsed" = "aix"; then
14135 DRUNTIME_OS_AIX_TRUE
=
14136 DRUNTIME_OS_AIX_FALSE
='#'
14138 DRUNTIME_OS_AIX_TRUE
='#'
14139 DRUNTIME_OS_AIX_FALSE
=
14142 if test "$druntime_target_os_parsed" = "android"; then
14143 DRUNTIME_OS_ANDROID_TRUE
=
14144 DRUNTIME_OS_ANDROID_FALSE
='#'
14146 DRUNTIME_OS_ANDROID_TRUE
='#'
14147 DRUNTIME_OS_ANDROID_FALSE
=
14150 if test "$druntime_target_os_parsed" = "darwin"; then
14151 DRUNTIME_OS_DARWIN_TRUE
=
14152 DRUNTIME_OS_DARWIN_FALSE
='#'
14154 DRUNTIME_OS_DARWIN_TRUE
='#'
14155 DRUNTIME_OS_DARWIN_FALSE
=
14158 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14159 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14160 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14162 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14163 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14166 if test "$druntime_target_os_parsed" = "freebsd"; then
14167 DRUNTIME_OS_FREEBSD_TRUE
=
14168 DRUNTIME_OS_FREEBSD_FALSE
='#'
14170 DRUNTIME_OS_FREEBSD_TRUE
='#'
14171 DRUNTIME_OS_FREEBSD_FALSE
=
14174 if test "$druntime_target_os_parsed" = "netbsd"; then
14175 DRUNTIME_OS_NETBSD_TRUE
=
14176 DRUNTIME_OS_NETBSD_FALSE
='#'
14178 DRUNTIME_OS_NETBSD_TRUE
='#'
14179 DRUNTIME_OS_NETBSD_FALSE
=
14182 if test "$druntime_target_os_parsed" = "openbsd"; then
14183 DRUNTIME_OS_OPENBSD_TRUE
=
14184 DRUNTIME_OS_OPENBSD_FALSE
='#'
14186 DRUNTIME_OS_OPENBSD_TRUE
='#'
14187 DRUNTIME_OS_OPENBSD_FALSE
=
14190 if test "$druntime_target_os_parsed" = "linux"; then
14191 DRUNTIME_OS_LINUX_TRUE
=
14192 DRUNTIME_OS_LINUX_FALSE
='#'
14194 DRUNTIME_OS_LINUX_TRUE
='#'
14195 DRUNTIME_OS_LINUX_FALSE
=
14198 if test "$druntime_target_os_parsed" = "mingw"; then
14199 DRUNTIME_OS_MINGW_TRUE
=
14200 DRUNTIME_OS_MINGW_FALSE
='#'
14202 DRUNTIME_OS_MINGW_TRUE
='#'
14203 DRUNTIME_OS_MINGW_FALSE
=
14206 if test "$druntime_target_os_parsed" = "solaris"; then
14207 DRUNTIME_OS_SOLARIS_TRUE
=
14208 DRUNTIME_OS_SOLARIS_FALSE
='#'
14210 DRUNTIME_OS_SOLARIS_TRUE
='#'
14211 DRUNTIME_OS_SOLARIS_FALSE
=
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14218 $as_echo_n "checking for thread model used by GDC... " >&6; }
14219 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14221 $as_echo "$d_thread_model" >&6; }
14223 # Map from thread model to thread interface.
14225 case $d_thread_model in
14226 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14227 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14228 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14229 single
) DCFG_THREAD_MODEL
="Single" ;;
14230 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14231 # TODO: These targets need porting.
14232 dce|mipssde|rtems|tpf|vxworks
)
14233 DCFG_THREAD_MODEL
="Single" ;;
14234 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14241 ac_cpp
='$CPP $CPPFLAGS'
14242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14247 $as_echo_n "checking for ARM unwinder... " >&6; }
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <unwind.h>
14255 #if __ARM_EABI_UNWINDER__
14263 if ac_fn_c_try_compile
"$LINENO"; then :
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14265 $as_echo "no" >&6; }
14266 DCFG_ARM_EABI_UNWINDER
=false
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14269 $as_echo "yes" >&6; }
14270 DCFG_ARM_EABI_UNWINDER
=true
14272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14274 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14275 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14276 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14278 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14279 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14283 ac_cpp
='$CPP $CPPFLAGS'
14284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14291 ac_cpp
='$CPP $CPPFLAGS'
14292 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14297 $as_echo_n "checking for minfo section bracketing... " >&6; }
14298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14301 void* module_info_ptr __attribute__((section ("minfo")));
14302 extern void* __start_minfo __attribute__((visibility ("hidden")));
14303 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14307 // Never run, just to prevent compiler from optimizing access
14308 return &__start_minfo == &__stop_minfo;
14312 if ac_fn_c_try_link
"$LINENO"; then :
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314 $as_echo "yes" >&6; }
14315 DCFG_MINFO_BRACKETING
=true
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319 DCFG_MINFO_BRACKETING
=false
14321 rm -f core conftest.err conftest.
$ac_objext \
14322 conftest
$ac_exeext conftest.
$ac_ext
14324 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14325 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14326 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14328 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14329 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14333 ac_cpp
='$CPP $CPPFLAGS'
14334 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14341 ac_cpp
='$CPP $CPPFLAGS'
14342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14346 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>
14348 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14349 DCFG_DLPI_TLS_MODID
=true
14351 DCFG_DLPI_TLS_MODID
=false
14356 ac_cpp
='$CPP $CPPFLAGS'
14357 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14358 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14359 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14364 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14365 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14366 # relocs. Work around by disabling TLS transitions. Not necessary
14367 # on 32-bit x86, but cannot be distinguished reliably in specs.
14368 druntime_ld_prog
=`$CC -print-prog-name=ld`
14370 druntime_ld_relax_transtls
=no
14371 if test -n "$druntime_ld_prog" \
14372 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14373 druntime_ld_gld
=yes
14375 echo 'int main (void) { return 0; }' > conftest.c
14376 save_LDFLAGS
="$LDFLAGS"
14377 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14378 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14379 druntime_ld_relax_transtls
=yes
14381 LDFLAGS
="$save_LDFLAGS"
14382 rm -f conftest.c conftest
14384 if test "$druntime_ld_relax_transtls" = "yes"; then
14385 OS_LINK_SPEC
='-z relax=transtls'
14393 ac_cpp
='$CPP $CPPFLAGS'
14394 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14395 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14396 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14398 DCFG_HAVE_QSORT_R
=false
14399 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14400 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14401 DCFG_HAVE_QSORT_R
=true
14406 ac_cpp
='$CPP $CPPFLAGS'
14407 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14408 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14409 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14415 gdc_save_DFLAGS
=$GDCFLAGS
14416 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14419 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14420 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421 ac_compiler_gnu
=yes
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14424 $as_echo_n "checking for library containing malloc... " >&6; }
14425 if ${ac_cv_search_malloc+:} false
; then :
14426 $as_echo_n "(cached) " >&6
14428 ac_func_search_save_LIBS
=$LIBS
14429 cat > conftest.
$ac_ext <<_ACEOF
14431 extern(C) int malloc();
14433 extern(C) int main() {
14434 malloc(); return 0;
14437 for ac_lib
in '' c
; do
14438 if test -z "$ac_lib"; then
14439 ac_res
="none required"
14442 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14444 if ac_fn_d_try_link
"$LINENO"; then :
14445 ac_cv_search_malloc
=$ac_res
14447 rm -f core conftest.err conftest.
$ac_objext \
14449 if ${ac_cv_search_malloc+:} false
; then :
14453 if ${ac_cv_search_malloc+:} false
; then :
14456 ac_cv_search_malloc
=no
14458 rm conftest.
$ac_ext
14459 LIBS
=$ac_func_search_save_LIBS
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14462 $as_echo "$ac_cv_search_malloc" >&6; }
14463 ac_res
=$ac_cv_search_malloc
14464 if test "$ac_res" != no
; then :
14465 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14470 enable_thread_lib
=yes
14471 # Check whether --enable-thread-lib was given.
14472 if test "${enable_thread_lib+set}" = set; then :
14473 enableval
=$enable_thread_lib;
14477 if test "x$enable_thread_lib" = "xyes"; then :
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14480 $as_echo_n "checking for library containing pthread_create... " >&6; }
14481 if ${ac_cv_search_pthread_create+:} false
; then :
14482 $as_echo_n "(cached) " >&6
14484 ac_func_search_save_LIBS
=$LIBS
14485 cat > conftest.
$ac_ext <<_ACEOF
14487 extern(C) int pthread_create();
14489 extern(C) int main() {
14490 pthread_create(); return 0;
14493 for ac_lib
in '' pthread
; do
14494 if test -z "$ac_lib"; then
14495 ac_res
="none required"
14498 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14500 if ac_fn_d_try_link
"$LINENO"; then :
14501 ac_cv_search_pthread_create
=$ac_res
14503 rm -f core conftest.err conftest.
$ac_objext \
14505 if ${ac_cv_search_pthread_create+:} false
; then :
14509 if ${ac_cv_search_pthread_create+:} false
; then :
14512 ac_cv_search_pthread_create
=no
14514 rm conftest.
$ac_ext
14515 LIBS
=$ac_func_search_save_LIBS
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14518 $as_echo "$ac_cv_search_pthread_create" >&6; }
14519 ac_res
=$ac_cv_search_pthread_create
14520 if test "$ac_res" != no
; then :
14521 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14528 if test "x$enable_thread_lib" = "xno"; then :
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14531 $as_echo_n "checking for thread library... " >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14533 $as_echo "disabled" >&6; }
14537 as_ac_Lib
=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14539 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14540 if eval \
${$as_ac_Lib+:} false
; then :
14541 $as_echo_n "(cached) " >&6
14543 ac_check_lib_save_LIBS
=$LIBS
14544 LIBS
="-l$enable_thread_lib $LIBS"
14545 cat > conftest.
$ac_ext <<_ACEOF
14547 extern(C) int pthread_create();
14549 extern(C) int main() {
14550 pthread_create(); return 0;
14553 if ac_fn_d_try_link
"$LINENO"; then :
14554 eval "$as_ac_Lib=yes"
14556 eval "$as_ac_Lib=no"
14558 rm -f core conftest.err conftest.
$ac_objext \
14559 conftest
$ac_exeext conftest.
$ac_ext
14560 LIBS
=$ac_check_lib_save_LIBS
14562 eval ac_res
=\$
$as_ac_Lib
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14564 $as_echo "$ac_res" >&6; }
14565 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
14566 cat >>confdefs.h
<<_ACEOF
14567 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14570 LIBS
="-l$enable_thread_lib $LIBS"
14574 as_fn_error $?
"Thread library not found" "$LINENO" 5
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14584 $as_echo_n "checking for library containing cosf... " >&6; }
14585 if ${ac_cv_search_cosf+:} false
; then :
14586 $as_echo_n "(cached) " >&6
14588 ac_func_search_save_LIBS
=$LIBS
14589 cat > conftest.
$ac_ext <<_ACEOF
14591 extern(C) int cosf();
14593 extern(C) int main() {
14597 for ac_lib
in '' m
; do
14598 if test -z "$ac_lib"; then
14599 ac_res
="none required"
14602 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14604 if ac_fn_d_try_link
"$LINENO"; then :
14605 ac_cv_search_cosf
=$ac_res
14607 rm -f core conftest.err conftest.
$ac_objext \
14609 if ${ac_cv_search_cosf+:} false
; then :
14613 if ${ac_cv_search_cosf+:} false
; then :
14616 ac_cv_search_cosf
=no
14618 rm conftest.
$ac_ext
14619 LIBS
=$ac_func_search_save_LIBS
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14622 $as_echo "$ac_cv_search_cosf" >&6; }
14623 ac_res
=$ac_cv_search_cosf
14624 if test "$ac_res" != no
; then :
14625 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14630 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14631 if ${ac_cv_search_clock_gettime+:} false
; then :
14632 $as_echo_n "(cached) " >&6
14634 ac_func_search_save_LIBS
=$LIBS
14635 cat > conftest.
$ac_ext <<_ACEOF
14637 extern(C) int clock_gettime();
14639 extern(C) int main() {
14640 clock_gettime(); return 0;
14643 for ac_lib
in '' rt
; do
14644 if test -z "$ac_lib"; then
14645 ac_res
="none required"
14648 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14650 if ac_fn_d_try_link
"$LINENO"; then :
14651 ac_cv_search_clock_gettime
=$ac_res
14653 rm -f core conftest.err conftest.
$ac_objext \
14655 if ${ac_cv_search_clock_gettime+:} false
; then :
14659 if ${ac_cv_search_clock_gettime+:} false
; then :
14662 ac_cv_search_clock_gettime
=no
14664 rm conftest.
$ac_ext
14665 LIBS
=$ac_func_search_save_LIBS
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14668 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14669 ac_res
=$ac_cv_search_clock_gettime
14670 if test "$ac_res" != no
; then :
14671 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14676 # This checks to see if the host supports the compiler-generated builtins
14677 # for atomic operations for various integral sizes. Note, this is intended
14678 # to be an all-or-nothing switch, so all the atomic operations that are
14679 # used should be checked.
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14681 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14682 if ${druntime_cv_atomic_byte+:} false
; then :
14683 $as_echo_n "(cached) " >&6
14686 cat > conftest.
$ac_ext <<_ACEOF
14688 import gcc.builtins;
14690 extern(C) int main() {
14694 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14695 __atomic_load_1(&c1, 5);
14696 __atomic_store_1(&c1, c2, 5);
14701 if ac_fn_d_try_link
"$LINENO"; then :
14702 druntime_cv_atomic_byte
=yes
14704 druntime_cv_atomic_byte
=no
14706 rm -f core conftest.err conftest.
$ac_objext \
14707 conftest
$ac_exeext conftest.
$ac_ext
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14712 $as_echo "$druntime_cv_atomic_byte" >&6; }
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14715 $as_echo_n "checking for atomic builtins for short... " >&6; }
14716 if ${druntime_cv_atomic_short+:} false
; then :
14717 $as_echo_n "(cached) " >&6
14720 cat > conftest.
$ac_ext <<_ACEOF
14722 import gcc.builtins;
14724 extern(C) int main() {
14728 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14729 __atomic_load_2(&c1, 5);
14730 __atomic_store_2(&c1, c2, 5);
14735 if ac_fn_d_try_link
"$LINENO"; then :
14736 druntime_cv_atomic_short
=yes
14738 druntime_cv_atomic_short
=no
14740 rm -f core conftest.err conftest.
$ac_objext \
14741 conftest
$ac_exeext conftest.
$ac_ext
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14746 $as_echo "$druntime_cv_atomic_short" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14749 $as_echo_n "checking for atomic builtins for int... " >&6; }
14750 if ${druntime_cv_atomic_int+:} false
; then :
14751 $as_echo_n "(cached) " >&6
14754 cat > conftest.
$ac_ext <<_ACEOF
14756 import gcc.builtins;
14758 extern(C) int main() {
14762 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14763 __atomic_load_4(&c1, 5);
14764 __atomic_store_4(&c1, c2, 5);
14769 if ac_fn_d_try_link
"$LINENO"; then :
14770 druntime_cv_atomic_int
=yes
14772 druntime_cv_atomic_int
=no
14774 rm -f core conftest.err conftest.
$ac_objext \
14775 conftest
$ac_exeext conftest.
$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14780 $as_echo "$druntime_cv_atomic_int" >&6; }
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14783 $as_echo_n "checking for atomic builtins for long... " >&6; }
14784 if ${druntime_cv_atomic_long+:} false
; then :
14785 $as_echo_n "(cached) " >&6
14788 cat > conftest.
$ac_ext <<_ACEOF
14790 import gcc.builtins;
14792 extern(C) int main() {
14796 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14797 __atomic_load_8(&c1, 5);
14798 __atomic_store_8(&c1, c2, 5);
14803 if ac_fn_d_try_link
"$LINENO"; then :
14804 druntime_cv_atomic_long
=yes
14806 druntime_cv_atomic_long
=no
14808 rm -f core conftest.err conftest.
$ac_objext \
14809 conftest
$ac_exeext conftest.
$ac_ext
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14814 $as_echo "$druntime_cv_atomic_long" >&6; }
14816 # Have atomic builtin support if all but the long test above passes.
14817 DCFG_HAVE_ATOMIC_BUILTINS
=false
14818 if test "$druntime_cv_atomic_byte" = yes \
14819 && test "$druntime_cv_atomic_short" = yes \
14820 && test "$druntime_cv_atomic_int" = yes; then \
14821 DCFG_HAVE_ATOMIC_BUILTINS
=true
14824 # Have 64-bit atomic support if the long test above passes.
14825 DCFG_HAVE_64BIT_ATOMICS
=false
14826 if test "$druntime_cv_atomic_long" = yes; then
14827 DCFG_HAVE_64BIT_ATOMICS
=true
14834 ac_cpp
='$CPP $CPPFLAGS'
14835 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14836 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14837 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14840 GDCFLAGS
=$gdc_save_DFLAGS
14845 # Check whether --with-libatomic was given.
14846 if test "${with_libatomic+set}" = set; then :
14847 withval
=$with_libatomic;
14851 DCFG_HAVE_LIBATOMIC
=false
14853 if test "x$with_libatomic" != "xno"; then :
14855 DCFG_HAVE_LIBATOMIC
=true
14856 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14861 $as_echo_n "checking for libatomic... " >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14863 $as_echo "disabled" >&6; }
14872 ac_cpp
='$CPP $CPPFLAGS'
14873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14877 BACKTRACE_SUPPORTED
=false
14878 BACKTRACE_USES_MALLOC
=false
14879 BACKTRACE_SUPPORTS_THREADS
=false
14883 # Check whether --with-libbacktrace was given.
14884 if test "${with_libbacktrace+set}" = set; then :
14885 withval
=$with_libbacktrace;
14889 if test "x$with_libbacktrace" != "xno"; then :
14891 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14893 gdc_save_CPPFLAGS
=$CPPFLAGS
14894 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
14896 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14897 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14898 have_libbacktrace_h
=true
14900 have_libbacktrace_h
=false
14905 if $have_libbacktrace_h; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14907 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14909 /* end confdefs.h. */
14911 #include <backtrace-supported.h>
14912 #if BACKTRACE_SUPPORTED
14913 FOUND_LIBBACKTRACE_RESULT_GDC
14917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14918 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14919 BACKTRACE_SUPPORTED
=true
14921 BACKTRACE_SUPPORTED
=false
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14926 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14929 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14933 #include <backtrace-supported.h>
14934 #if BACKTRACE_USES_MALLOC
14935 FOUND_LIBBACKTRACE_RESULT_GDC
14939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14940 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14941 BACKTRACE_USES_MALLOC
=true
14943 BACKTRACE_USES_MALLOC
=false
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14948 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14951 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14955 #include <backtrace-supported.h>
14956 #if BACKTRACE_SUPPORTS_THREADS
14957 FOUND_LIBBACKTRACE_RESULT_GDC
14961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14962 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14963 BACKTRACE_SUPPORTS_THREADS
=true
14965 BACKTRACE_SUPPORTS_THREADS
=false
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14970 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14972 CPPFLAGS
=$gdc_save_CPPFLAGS
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14977 $as_echo_n "checking for libbacktrace... " >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14979 $as_echo "disabled" >&6; }
14988 ac_cpp
='$CPP $CPPFLAGS'
14989 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14995 # Libtool has already checked this, so re-use the inferred dlopen lib.
14996 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14998 LIBS
="$LIBS $lt_cv_dlopen_libs"
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
15004 $as_echo_n "checking for socket libraries... " >&6; }
15005 if ${druntime_cv_lib_sockets+:} false
; then :
15006 $as_echo_n "(cached) " >&6
15008 druntime_cv_lib_sockets
=
15009 druntime_check_both
=no
15010 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15011 if test "x$ac_cv_func_connect" = xyes
; then :
15012 druntime_check_socket
=no
15014 druntime_check_socket
=yes
15017 if test "$druntime_check_socket" = "yes"; then
15018 unset ac_cv_func_connect
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15020 $as_echo_n "checking for main in -lsocket... " >&6; }
15021 if ${ac_cv_lib_socket_main+:} false
; then :
15022 $as_echo_n "(cached) " >&6
15024 ac_check_lib_save_LIBS
=$LIBS
15025 LIBS
="-lsocket $LIBS"
15026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15038 if ac_fn_c_try_link
"$LINENO"; then :
15039 ac_cv_lib_socket_main
=yes
15041 ac_cv_lib_socket_main
=no
15043 rm -f core conftest.err conftest.
$ac_objext \
15044 conftest
$ac_exeext conftest.
$ac_ext
15045 LIBS
=$ac_check_lib_save_LIBS
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15048 $as_echo "$ac_cv_lib_socket_main" >&6; }
15049 if test "x$ac_cv_lib_socket_main" = xyes
; then :
15050 druntime_cv_lib_sockets
="-lsocket"
15052 druntime_check_both
=yes
15056 if test "$druntime_check_both" = "yes"; then
15057 druntime_old_libs
=$LIBS
15058 LIBS
="$LIBS -lsocket -lnsl"
15059 unset ac_cv_func_accept
15060 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15061 if test "x$ac_cv_func_accept" = xyes
; then :
15062 druntime_check_nsl
=no
15063 druntime_cv_lib_sockets
="-lsocket -lnsl"
15066 unset ac_cv_func_accept
15067 LIBS
=$druntime_old_libs
15069 unset ac_cv_func_gethostbyname
15070 druntime_old_libs
="$LIBS"
15071 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15072 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15076 $as_echo_n "checking for main in -lnsl... " >&6; }
15077 if ${ac_cv_lib_nsl_main+:} false
; then :
15078 $as_echo_n "(cached) " >&6
15080 ac_check_lib_save_LIBS
=$LIBS
15082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15094 if ac_fn_c_try_link
"$LINENO"; then :
15095 ac_cv_lib_nsl_main
=yes
15097 ac_cv_lib_nsl_main
=no
15099 rm -f core conftest.err conftest.
$ac_objext \
15100 conftest
$ac_exeext conftest.
$ac_ext
15101 LIBS
=$ac_check_lib_save_LIBS
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15104 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15105 if test "x$ac_cv_lib_nsl_main" = xyes
; then :
15106 druntime_cv_lib_sockets
="$druntime_cv_lib_sockets -lnsl"
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15114 $as_echo "$druntime_cv_lib_sockets" >&6; }
15115 LIBS
="$LIBS $druntime_cv_lib_sockets"
15119 ac_cpp
='$CPP $CPPFLAGS'
15120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15127 # Check whether --with-target-system-zlib was given.
15128 if test "${with_target_system_zlib+set}" = set; then :
15129 withval
=$with_target_system_zlib;
15131 with_target_system_zlib
=no
15135 case "$with_target_system_zlib" in
15137 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15141 $as_echo_n "checking for system zlib... " >&6; }
15144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15150 gzopen("none", "rb")
15155 if ac_fn_c_try_link
"$LINENO"; then :
15157 if test "$cross_compiling" = yes; then :
15158 system_zlib_found
=no
15161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15166 gzFile file = gzopen("none", "rb");
15171 if ac_fn_c_try_run
"$LINENO"; then :
15172 system_zlib_found
=yes
15174 system_zlib_found
=no
15176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15182 system_zlib_found
=no
15184 rm -f core conftest.err conftest.
$ac_objext \
15185 conftest
$ac_exeext conftest.
$ac_ext
15188 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15190 $as_echo "found" >&6; }
15192 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15193 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15196 $as_echo "just compiled" >&6; }
15197 LIBZ
=..
/..
/zlib
/libz_convenience.la
15202 ac_cpp
='$CPP $CPPFLAGS'
15203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15212 $as_echo_n "checking D GCC version... " >&6; }
15213 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15215 $as_echo "$gcc_version" >&6; }
15219 # Check whether --with-cross-host was given.
15220 if test "${with_cross_host+set}" = set; then :
15221 withval
=$with_cross_host;
15225 libphobos_toolexecdir
=no
15226 libphobos_toolexeclibdir
=no
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15229 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15230 # Check whether --enable-version-specific-runtime-libs was given.
15231 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15232 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15233 yes) version_specific_libs
=yes ;;
15234 no
) version_specific_libs
=no
;;
15235 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15238 version_specific_libs
=no
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15242 $as_echo "$version_specific_libs" >&6; }
15245 # Check whether --with-toolexeclibdir was given.
15246 if test "${with_toolexeclibdir+set}" = set; then :
15247 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15251 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
15255 with_toolexeclibdir
=no
15260 # Version-specific runtime libs processing.
15261 if test $version_specific_libs = yes; then
15262 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15263 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15265 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15266 # Install a library built with a cross compiler in tooldir, not libdir.
15267 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15268 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15269 case ${with_toolexeclibdir} in
15271 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15274 libphobos_toolexeclibdir
=${with_toolexeclibdir}
15278 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15279 libphobos_toolexeclibdir
='${libdir}'
15281 multi_os_directory
=`$GDC -print-multi-os-directory`
15282 case $multi_os_directory in
15283 .
) ;; # Avoid trailing /.
15284 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15290 # Default case for install directory for D sources files.
15291 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15296 $as_echo_n "checking for --enable-libphobos... " >&6; }
15297 # Check whether --enable-libphobos was given.
15298 if test "${enable_libphobos+set}" = set; then :
15299 enableval
=$enable_libphobos;
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15303 $as_echo "$enable_libphobos" >&6; }
15305 # See if supported.
15306 unset LIBPHOBOS_SUPPORTED
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15308 $as_echo_n "checking for host support for libphobos... " >&6; }
15309 .
${srcdir}/configure.tgt
15311 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15312 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15313 # relatively low linelength limit.
15314 as_prog
=`$CC -print-prog-name=as`
15315 if test -n "$as_prog" && $as_prog -v /dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
15316 druntime_cv_use_gas
=yes;
15318 druntime_cv_use_gas
=no
;
15321 if test x
$druntime_cv_use_gas = xno
; then
15322 LIBPHOBOS_SUPPORTED
=no
15324 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15325 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15326 LIBPHOBOS_SUPPORTED
=no
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15331 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15333 # Decide if it's usable.
15334 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15335 *:no
) use_libphobos
=no
;;
15336 *:yes) use_libphobos
=yes ;;
15337 yes:*) use_libphobos
=yes ;;
15338 *:*) use_libphobos
=no
;;
15340 if test x
$use_libphobos = xyes
; then
15341 ENABLE_LIBPHOBOS_TRUE
=
15342 ENABLE_LIBPHOBOS_FALSE
='#'
15344 ENABLE_LIBPHOBOS_TRUE
='#'
15345 ENABLE_LIBPHOBOS_FALSE
=
15349 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15350 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15351 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15353 DRTSTUFF_SPEC
=/dev
/null
15357 # Add dependencies for libgphobos.spec file
15358 SPEC_PHOBOS_DEPS
="$LIBS"
15361 # Libdruntime / phobos soname version
15362 libtool_VERSION
=76:3:0
15365 # Set default flags (after DRUNTIME_WERROR!)
15366 if test -z "$GDCFLAGS"; then
15367 GDCFLAGS
="-Wall $WERROR_FLAG -g -frelease -O2"
15371 if test -z "$GDCFLAGSX"; then
15372 GDCFLAGSX
="-Wall $WERROR_FLAG -g -fno-release -funittest"
15376 # Sanity check for the cross-compilation case:
15377 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15378 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15381 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15386 ac_config_files
="$ac_config_files Makefile"
15389 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15391 ac_config_files
="$ac_config_files src/libgphobos.spec"
15393 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15396 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15397 # that multilib installs will end up installed in the correct place.
15398 # The testsuite needs it for multilib-aware ABI baseline files.
15399 # To work around this not being passed down from config-ml.in ->
15400 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15401 # append it here. Only modify Makefiles that have just been created.
15403 # Also, get rid of this simulated-VPATH thing that automake does.
15404 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15407 cat >confcache
<<\_ACEOF
15408 # This file is a shell script that caches the results of configure
15409 # tests run on this system so they can be shared between configure
15410 # scripts and configure runs, see configure's option --config-cache.
15411 # It is not useful on other systems. If it contains results you don't
15412 # want to keep, you may remove or edit it.
15414 # config.status only pays attention to the cache file if you give it
15415 # the --recheck option to rerun configure.
15417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15419 # following values.
15423 # The following way of writing the cache mishandles newlines in values,
15424 # but we know of no workaround that is simple, portable, and efficient.
15425 # So, we kill variables containing newlines.
15426 # Ultrix sh set writes to stderr and can't be redirected directly,
15427 # and sets the high bit in the cache file unless we assign to the vars.
15429 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15430 eval ac_val
=\$
$ac_var
15434 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15438 _ | IFS | as_nl
) ;; #(
15439 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15440 *) { eval $ac_var=; unset $ac_var;} ;;
15446 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15447 *${as_nl}ac_space
=\
*)
15448 # `set' does not quote correctly, so add quotes: double-quote
15449 # substitution turns \\\\ into \\, and sed turns \\ into \.
15452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15455 # `set' quotes correctly as required by POSIX, so do not add quotes.
15456 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15467 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15469 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15470 if test -w "$cache_file"; then
15471 if test "x$cache_file" != "x/dev/null"; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15473 $as_echo "$as_me: updating cache $cache_file" >&6;}
15474 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15475 cat confcache
>"$cache_file"
15477 case $cache_file in #(
15479 mv -f confcache
"$cache_file"$$
&&
15480 mv -f "$cache_file"$$
"$cache_file" ;; #(
15482 mv -f confcache
"$cache_file" ;;
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15488 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15493 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15494 # Let make expand exec_prefix.
15495 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15497 DEFS
=-DHAVE_CONFIG_H
15502 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15503 # 1. Remove the extension, and $U if already installed.
15504 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15505 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15506 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15507 # will be set to the directory where LIBOBJS objects are built.
15508 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15509 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15511 LIBOBJS
=$ac_libobjs
15513 LTLIBOBJS
=$ac_ltlibobjs
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15517 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15518 if test -n "$am_sleep_pid"; then
15519 # Hide warnings about reused PIDs.
15520 wait $am_sleep_pid 2>/dev
/null
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15523 $as_echo "done" >&6; }
15524 if test -n "$EXEEXT"; then
15526 am__EXEEXT_FALSE
='#'
15528 am__EXEEXT_TRUE
='#'
15532 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15533 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15537 as_fn_error $?
"conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15541 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15545 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15549 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15553 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15557 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15561 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15565 as_fn_error $?
"conditional \"DRUNTIME_OS_UNIX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15569 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15573 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15577 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15580 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15581 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15584 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15585 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15588 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15589 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15592 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15593 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15596 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15597 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15600 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15601 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15604 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15605 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15608 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15609 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15612 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15613 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15616 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15617 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
15618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15621 : "${CONFIG_STATUS=./config.status}"
15623 ac_clean_files_save
=$ac_clean_files
15624 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15626 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15628 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15630 # Generated by $as_me.
15631 # Run this file to recreate the current configuration.
15632 # Compiler output produced by configure, useful for debugging
15633 # configure, is in config.log if it exists.
15636 ac_cs_recheck=false
15639 SHELL=\${CONFIG_SHELL-$SHELL}
15642 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15643 ## -------------------- ##
15644 ## M4sh Initialization. ##
15645 ## -------------------- ##
15647 # Be more Bourne compatible
15648 DUALCASE
=1; export DUALCASE
# for MKS sh
15649 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15652 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15653 # is contrary to our usage. Disable this feature.
15654 alias -g '${1+"$@"}'='"$@"'
15655 setopt NO_GLOB_SUBST
15657 case `(set -o) 2>/dev/null` in #(
15669 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15670 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15671 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15673 # Prefer a ksh shell builtin over an external printf program on Solaris,
15674 # but without wasting forks for bash or zsh.
15675 if test -z "$BASH_VERSION$ZSH_VERSION" \
15676 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15677 as_echo='print
-r --'
15678 as_echo_n='print
-rn --'
15679 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15680 as_echo='printf %s
\n'
15681 as_echo_n='printf %s
'
15683 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15684 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15685 as_echo_n='/usr
/ucb
/echo -n'
15687 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15688 as_echo_n_body='eval
15692 expr "X$arg" : "X\\(.*\\)$as_nl";
15693 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15695 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15697 export as_echo_n_body
15698 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15700 export as_echo_body
15701 as_echo='sh
-c $as_echo_body as_echo
'
15704 # The user is always right.
15705 if test "${PATH_SEPARATOR+set}" != set; then
15707 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15708 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15715 # We need space, tab and new line, in precisely that order. Quoting is
15716 # there to prevent editors from complaining about space-tab.
15717 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15718 # splitting by setting IFS to empty value.)
15721 # Find who we are. Look in the path if we contain no directory separator.
15724 *[\\/]* ) as_myself=$0 ;;
15725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15726 for as_dir in $PATH
15729 test -z "$as_dir" && as_dir=.
15730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15736 # We did not find ourselves, most probably we were run as `sh COMMAND'
15737 # in which case we are not to be found in the path.
15738 if test "x$as_myself" = x
; then
15741 if test ! -f "$as_myself"; then
15742 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15746 # Unset variables that we do not need and which cause bugs (e.g. in
15747 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15748 # suppresses any "Segmentation fault" message there. '((' could
15749 # trigger a bug in pdksh 5.2.14.
15750 for as_var
in BASH_ENV ENV MAIL MAILPATH
15751 do eval test x\
${$as_var+set} = xset \
15752 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15765 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15768 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15769 # ----------------------------------------
15770 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15771 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15772 # script with STATUS, using 1 if that was 0.
15775 as_status
=$1; test $as_status -eq 0 && as_status
=1
15777 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15778 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15780 $as_echo "$as_me: error: $2" >&2
15781 as_fn_exit
$as_status
15785 # as_fn_set_status STATUS
15786 # -----------------------
15787 # Set $? to STATUS, without forking.
15788 as_fn_set_status
()
15791 } # as_fn_set_status
15793 # as_fn_exit STATUS
15794 # -----------------
15795 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15799 as_fn_set_status
$1
15805 # Portably unset VAR.
15808 { eval $1=; unset $1;}
15810 as_unset
=as_fn_unset
15811 # as_fn_append VAR VALUE
15812 # ----------------------
15813 # Append the text in VALUE to the end of the definition contained in VAR. Take
15814 # advantage of any shell optimizations that allow amortized linear growth over
15815 # repeated appends, instead of the typical quadratic growth present in naive
15817 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15818 eval 'as_fn_append ()
15829 # as_fn_arith ARG...
15830 # ------------------
15831 # Perform arithmetic evaluation on the ARGs, and store the result in the
15832 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15833 # must be portable across $(()) and expr.
15834 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15835 eval 'as_fn_arith ()
15842 as_val
=`expr "$@" || test $? -eq 1`
15847 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15848 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15854 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15855 as_basename
=basename
15860 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15866 as_me
=`$as_basename -- "$0" ||
15867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15868 X"$0" : 'X\(//\)$' \| \
15869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15871 sed '/^.*\/\([^/][^/]*\)\/*$/{
15885 # Avoid depending upon Character Ranges.
15886 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15887 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15888 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15889 as_cr_digits
='0123456789'
15890 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15892 ECHO_C
= ECHO_N
= ECHO_T
=
15893 case `echo -n x` in #(((((
15895 case `echo 'xy\c'` in
15896 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15898 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15905 rm -f conf$$ conf$$.exe conf$$.
file
15906 if test -d conf$$.dir
; then
15907 rm -f conf$$.dir
/conf$$.
file
15910 mkdir conf$$.dir
2>/dev
/null
15912 if (echo >conf$$.
file) 2>/dev
/null
; then
15913 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15915 # ... but there are two gotchas:
15916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15918 # In both cases, we have to default to `cp -pR'.
15919 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15921 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15929 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15930 rmdir conf$$.dir
2>/dev
/null
15935 # Create "$as_dir" as a directory, including parents if necessary.
15940 -*) as_dir
=.
/$as_dir;;
15942 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15946 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15947 *) as_qdir
=$as_dir;;
15949 as_dirs
="'$as_qdir' $as_dirs"
15950 as_dir
=`$as_dirname -- "$as_dir" ||
15951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15952 X"$as_dir" : 'X\(//\)[^/]' \| \
15953 X"$as_dir" : 'X\(//\)$' \| \
15954 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15955 $as_echo X"$as_dir" |
15956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15960 /^X\(\/\/\)[^/].*/{
15973 test -d "$as_dir" && break
15975 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15976 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15980 if mkdir
-p .
2>/dev
/null
; then
15981 as_mkdir_p
='mkdir -p "$as_dir"'
15983 test -d .
/-p && rmdir .
/-p
15988 # as_fn_executable_p FILE
15989 # -----------------------
15990 # Test if FILE is an executable regular file.
15991 as_fn_executable_p
()
15993 test -f "$1" && test -x "$1"
15994 } # as_fn_executable_p
15995 as_test_x
='test -x'
15996 as_executable_p
=as_fn_executable_p
15998 # Sed expression to map a string onto a valid CPP name.
15999 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16001 # Sed expression to map a string onto a valid variable name.
16002 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16006 ## ----------------------------------- ##
16007 ## Main body of $CONFIG_STATUS script. ##
16008 ## ----------------------------------- ##
16010 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16013 # Save the log message, to keep $0 and so on meaningful, and to
16014 # report actual input values of CONFIG_FILES etc. instead of their
16015 # values after options handling.
16017 This file was extended by package-unused $as_me version-unused, which was
16018 generated by GNU Autoconf 2.69. Invocation command line was
16020 CONFIG_FILES = $CONFIG_FILES
16021 CONFIG_HEADERS = $CONFIG_HEADERS
16022 CONFIG_LINKS = $CONFIG_LINKS
16023 CONFIG_COMMANDS = $CONFIG_COMMANDS
16026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16031 case $ac_config_files in *"
16032 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16035 case $ac_config_headers in *"
16036 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041 # Files that config.status was made for.
16042 config_files="$ac_config_files"
16043 config_headers="$ac_config_headers"
16044 config_commands="$ac_config_commands"
16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16050 \`$as_me' instantiates files and other configuration actions
16051 from templates according to the current configuration. Unless the files
16052 and actions are specified as TAGs, all are instantiated by default.
16054 Usage: $0 [OPTION]... [TAG]...
16056 -h, --help print this help, then exit
16057 -V, --version print version number and configuration settings, then exit
16058 --config print configuration, then exit
16059 -q, --quiet, --silent
16060 do not print progress messages
16061 -d, --debug don't remove temporary files
16062 --recheck update $as_me by reconfiguring in the same conditions
16063 --file=FILE[:TEMPLATE]
16064 instantiate the configuration file FILE
16065 --header=FILE[:TEMPLATE]
16066 instantiate the configuration header FILE
16068 Configuration files:
16071 Configuration headers:
16074 Configuration commands:
16077 Report bugs to the package provider."
16080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16083 package-unused config.status version-unused
16084 configured by $0, generated by GNU Autoconf 2.69,
16085 with options \\"\$ac_cs_config\\"
16087 Copyright (C) 2012 Free Software Foundation, Inc.
16088 This config.status script is free software; the Free Software Foundation
16089 gives unlimited permission to copy, distribute and modify it."
16096 test -n "\$AWK" || AWK=awk
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16100 # The default lists apply if the user does not specify any file.
16106 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16107 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16111 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16123 # Handling of the options.
16124 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16126 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16127 $as_echo "$ac_cs_version"; exit ;;
16128 --config |
--confi |
--conf |
--con |
--co |
--c )
16129 $as_echo "$ac_cs_config"; exit ;;
16130 --debug |
--debu |
--deb |
--de |
--d |
-d )
16132 --file |
--fil |
--fi |
--f )
16135 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16136 '') as_fn_error $?
"missing file argument" ;;
16138 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16139 ac_need_defaults
=false
;;
16140 --header |
--heade |
--head |
--hea )
16143 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16145 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16146 ac_need_defaults
=false
;;
16148 # Conflict between --help and --header
16149 as_fn_error $?
"ambiguous option: \`$1'
16150 Try \`$0 --help' for more information.";;
16151 --help |
--hel |
-h )
16152 $as_echo "$ac_cs_usage"; exit ;;
16153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16154 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16157 # This is an error.
16158 -*) as_fn_error $?
"unrecognized option: \`$1'
16159 Try \`$0 --help' for more information." ;;
16161 *) as_fn_append ac_config_targets
" $1"
16162 ac_need_defaults
=false
;;
16168 ac_configure_extra_args
=
16170 if $ac_cs_silent; then
16172 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 if \$ac_cs_recheck; then
16178 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16181 CONFIG_SHELL='$SHELL'
16182 export CONFIG_SHELL
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16192 ## Running $as_me. ##
16198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206 with_multisubdir="$with_multisubdir"
16207 with_multisrctop="$with_multisrctop"
16208 with_target_subdir="$with_target_subdir"
16209 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16210 multi_basedir="$multi_basedir"
16211 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16214 GFORTRAN="$GFORTRAN"
16218 # The HP-UX ksh and POSIX shell print the target directory to stdout
16219 # if CDPATH is set.
16220 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16222 sed_quote_subst='$sed_quote_subst'
16223 double_quote_subst='$double_quote_subst'
16224 delay_variable_subst='$delay_variable_subst'
16225 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16226 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16227 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16228 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16229 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16230 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16231 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16232 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16233 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16234 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16235 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16236 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16237 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16238 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16239 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16240 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16241 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16242 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16243 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16244 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16245 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16246 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16247 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16248 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16249 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16250 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16251 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16252 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16253 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16254 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16255 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16256 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16257 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16258 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16259 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16260 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16261 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16262 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16263 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16265 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16266 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16267 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16268 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16269 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16270 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16271 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16273 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"`'
16274 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16275 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16276 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16277 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16278 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16279 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16280 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16281 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16282 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16283 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16284 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16285 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16286 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16287 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16288 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16289 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16290 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16291 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16292 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16293 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16294 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16295 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16296 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16298 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16299 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16300 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16301 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16302 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16303 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16304 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16305 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16306 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16307 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16308 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16309 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16310 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16311 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16312 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16313 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16314 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16315 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16316 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16317 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16318 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16319 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16320 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16321 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16322 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16323 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16324 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16325 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16326 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16327 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16328 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16329 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16330 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16331 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16332 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16333 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16334 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16335 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16336 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16337 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16338 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16339 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16340 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16341 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16342 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16343 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16344 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16345 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16346 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16347 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16348 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16349 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16350 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16351 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16352 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16353 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16354 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16355 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16356 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16357 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16358 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16359 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16360 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16361 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16362 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16363 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16364 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16365 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16366 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16367 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16368 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16369 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16370 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16371 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16372 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16373 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16374 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16375 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16376 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16377 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16378 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16379 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16380 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16381 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16382 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16383 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16384 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16385 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16386 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16387 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16390 LTCFLAGS='$LTCFLAGS'
16391 compiler='$compiler_DEFAULT'
16393 # A function that is used when there is no print builtin or printf.
16394 func_fallback_echo ()
16396 eval 'cat <<_LTECHO_EOF
16401 # Quote evaled strings.
16415 deplibs_check_method \
16424 lt_cv_sys_global_symbol_pipe \
16425 lt_cv_sys_global_symbol_to_cdecl \
16426 lt_cv_sys_global_symbol_to_c_name_address \
16427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16428 lt_prog_compiler_no_builtin_flag \
16429 lt_prog_compiler_wl \
16430 lt_prog_compiler_pic \
16431 lt_prog_compiler_static \
16432 lt_cv_prog_compiler_c_o \
16440 export_dynamic_flag_spec \
16441 whole_archive_flag_spec \
16442 compiler_needs_object \
16444 allow_undefined_flag \
16445 no_undefined_flag \
16446 hardcode_libdir_flag_spec \
16447 hardcode_libdir_flag_spec_ld \
16448 hardcode_libdir_separator \
16453 variables_saved_for_relink \
16455 library_names_spec \
16457 install_override_mode \
16464 lt_prog_compiler_no_builtin_flag_D \
16465 lt_prog_compiler_wl_D \
16466 lt_prog_compiler_pic_D \
16467 lt_prog_compiler_static_D \
16468 lt_cv_prog_compiler_c_o_D \
16469 export_dynamic_flag_spec_D \
16470 whole_archive_flag_spec_D \
16471 compiler_needs_object_D \
16473 allow_undefined_flag_D \
16474 no_undefined_flag_D \
16475 hardcode_libdir_flag_spec_D \
16476 hardcode_libdir_flag_spec_ld_D \
16477 hardcode_libdir_separator_D \
16478 fix_srcfile_path_D \
16479 exclude_expsyms_D \
16480 include_expsyms_D \
16481 file_list_spec_D; do
16482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16483 *[\\\\\\\`\\"\\\$]*)
16484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16492 # Double-quote double-evaled strings.
16493 for var in reload_cmds \
16494 old_postinstall_cmds \
16495 old_postuninstall_cmds \
16497 extract_expsyms_cmds \
16498 old_archive_from_new_cmds \
16499 old_archive_from_expsyms_cmds \
16501 archive_expsym_cmds \
16503 module_expsym_cmds \
16504 export_symbols_cmds \
16507 postuninstall_cmds \
16509 sys_lib_search_path_spec \
16510 sys_lib_dlsearch_path_spec \
16512 old_archive_cmds_D \
16513 old_archive_from_new_cmds_D \
16514 old_archive_from_expsyms_cmds_D \
16516 archive_expsym_cmds_D \
16518 module_expsym_cmds_D \
16519 export_symbols_cmds_D \
16521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16522 *[\\\\\\\`\\"\\\$]*)
16523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16531 ac_aux_dir='$ac_aux_dir'
16532 xsi_shell='$xsi_shell'
16533 lt_shell_append='$lt_shell_append'
16535 # See if we are running on zsh, and set the options which allow our
16536 # commands through without removal of \ escapes INIT.
16537 if test -n "\${ZSH_VERSION+set}" ; then
16538 setopt NO_GLOB_SUBST
16544 TIMESTAMP='$TIMESTAMP'
16555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16557 # Handling of arguments.
16558 for ac_config_target
in $ac_config_targets
16560 case $ac_config_target in
16561 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16562 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16563 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16564 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16565 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16566 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16567 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16568 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16569 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16570 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16571 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16573 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16578 # If the user did not use the arguments to specify the items to instantiate,
16579 # then the envvar interface is used. Set only those that are not.
16580 # We use the long form for the default assignment because of an extremely
16581 # bizarre bug on SunOS 4.1.3.
16582 if $ac_need_defaults; then
16583 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16584 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16585 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16588 # Have a temporary directory for convenience. Make it in the build tree
16589 # simply because there is no reason against having it here, and in addition,
16590 # creating and moving files from /tmp can sometimes cause problems.
16591 # Hook for its removal unless debugging.
16592 # Note that there is a small window in which the directory will not be cleaned:
16593 # after its creation but before its name has been assigned to `$tmp'.
16597 trap 'exit_status=$?
16598 : "${ac_tmp:=$tmp}"
16599 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16601 trap 'as_fn_exit 1' 1 2 13 15
16603 # Create a (secure) tmp directory for tmp files.
16606 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16610 tmp
=.
/conf$$
-$RANDOM
16611 (umask 077 && mkdir
"$tmp")
16612 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16615 # Set up the scripts for CONFIG_FILES section.
16616 # No need to generate them if there are no CONFIG_FILES.
16617 # This happens for instance with `./config.status config.h'.
16618 if test -n "$CONFIG_FILES"; then
16620 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16621 ac_cs_awk_getline
=:
16622 ac_cs_awk_pipe_init
=
16623 ac_cs_awk_read_file
='
16624 while ((getline aline < (F[key])) > 0)
16627 ac_cs_awk_pipe_fini
=
16629 ac_cs_awk_getline
=false
16630 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16631 ac_cs_awk_read_file
='
16633 print "cat " F[key] " &&"
16634 '$ac_cs_awk_pipe_init
16635 # The final `:' finishes the AND list.
16636 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16638 ac_cr
=`echo X | tr X '\015'`
16639 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16640 # But we know of no other shell where ac_cr would be empty at this
16641 # point, so we can use a bashism as a fallback.
16642 if test "x$ac_cr" = x
; then
16643 eval ac_cr
=\$
\'\\r
\'
16645 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16646 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16649 ac_cs_awk_cr
=$ac_cr
16652 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16655 # Create commands to substitute file output variables.
16657 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16658 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16659 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16662 } >conf$
$files.sh
&&
16663 . .
/conf$
$files.sh ||
16664 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16665 rm -f conf$
$files.sh
16668 echo "cat >conf$$subs.awk <<_ACEOF" &&
16669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16671 } >conf$$subs.sh ||
16672 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16675 for ac_last_try in false false false false false :; do
16676 . ./conf$$subs.sh ||
16677 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16679 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16680 if test $ac_delim_n = $ac_delim_num; then
16682 elif $ac_last_try; then
16683 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16685 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16688 rm -f conf$$subs.sh
16690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16691 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16695 s/^/S["/; s
/!.
*/"]=/
16705 s/\(.\{148\}\)..*/\1/
16707 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16712 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16719 s/\(.\{148\}\)..*/\1/
16721 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16725 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16730 ' <conf$$subs.awk | sed '
16735 ' >>$CONFIG_STATUS || ac_write_fail=1
16736 rm -f conf$$subs.awk
16737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16739 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16740 for (key in S) S_is_set[key] = 1
16742 \$ac_cs_awk_pipe_init
16746 nfields = split(line, field, "@
")
16748 len = length(field[1])
16749 for (i = 2; i < nfields; i++) {
16751 keylen = length(key)
16752 if (S_is_set[key]) {
16754 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16755 len += length(value) + length(field[++i])
16760 if (nfields == 3 && !substed) {
16762 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16763 \$ac_cs_awk_read_file
16769 \$ac_cs_awk_pipe_fini
16772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16773 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16774 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16777 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16778 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16781 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16782 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16783 # trailing colons and then remove the whole line if VPATH becomes empty
16784 # (actually we leave an empty line to preserve line numbers).
16785 if test "x
$srcdir" = x.; then
16786 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16805 fi # test -n "$CONFIG_FILES"
16807 # Set up the scripts for CONFIG_HEADERS section.
16808 # No need to generate them if there are no CONFIG_HEADERS.
16809 # This happens for instance with `./config.status Makefile'.
16810 if test -n "$CONFIG_HEADERS"; then
16811 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16815 # Transform confdefs.h into an awk script `defines.awk', embedded as
16816 # here-document in config.status, that substitutes the proper values into
16817 # config.h.in to produce config.h.
16819 # Create a delimiter string that does not exist in confdefs.h, to ease
16820 # handling of long lines.
16822 for ac_last_try in false false :; do
16823 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16824 if test -z "$ac_tt"; then
16826 elif $ac_last_try; then
16827 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16829 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16833 # For the awk script, D is an array of macro values keyed by name,
16834 # likewise P contains macro parameters if any. Preserve backslash
16835 # newline sequences.
16837 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16839 s/.\{148\}/&'"$ac_delim"'/g
16842 s/^[ ]*#[ ]*define[ ][ ]*/ /
16849 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16851 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16856 D["\
1"]=" \
3\\\\\\n
"\\/p
16858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16863 s/.\{148\}/&'"$ac_delim"'/g
16868 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16871 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16873 ' <confdefs.h | sed '
16874 s/'"$ac_delim"'/"\\\
16875 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 for (key in D) D_is_set[key] = 1
16881 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16883 split(line, arg, " ")
16884 if (arg[1] == "#") {
16888 defundef
= substr
(arg
[1], 2)
16891 split(mac1
, mac2
, "(") #)
16893 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16894 if (D_is_set
[macro
]) {
16895 # Preserve the white space surrounding the "#".
16896 print prefix
"define", macro P
[macro
] D
[macro
]
16899 # Replace #undef with comments. This is necessary, for example,
16900 # in the case of _POSIX_SOURCE, which is predefined and required
16901 # on some systems where configure will not decide to define it.
16902 if (defundef
== "undef") {
16903 print
"/*", prefix defundef
, macro
, "*/"
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16912 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16913 fi # test -n "$CONFIG_HEADERS"
16916 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16921 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16923 case $ac_mode$ac_tag in
16925 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16926 :[FH
]-) ac_tag
=-:-;;
16927 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16944 -) ac_f
="$ac_tmp/stdin";;
16945 *) # Look for the file first in the build tree, then in the source tree
16946 # (if the path is not absolute). The absolute path cannot be DOS-style,
16947 # because $ac_f cannot contain `:'.
16951 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16953 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16955 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16956 as_fn_append ac_file_inputs
" '$ac_f'"
16959 # Let's still pretend it is `configure' which instantiates (i.e., don't
16960 # use $as_me), people would be surprised to read:
16961 # /* config.h. Generated by config.status. */
16962 configure_input
='Generated from '`
16963 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16965 if test x
"$ac_file" != x-
; then
16966 configure_input
="$ac_file. $configure_input"
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16968 $as_echo "$as_me: creating $ac_file" >&6;}
16970 # Neutralize special characters interpreted by sed in replacement strings.
16971 case $configure_input in #(
16972 *\
&* |
*\|
* |
*\\* )
16973 ac_sed_conf_input
=`$as_echo "$configure_input" |
16974 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16975 *) ac_sed_conf_input
=$configure_input;;
16979 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16980 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16985 ac_dir
=`$as_dirname -- "$ac_file" ||
16986 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16987 X"$ac_file" : 'X\(//\)[^/]' \| \
16988 X"$ac_file" : 'X\(//\)$' \| \
16989 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16990 $as_echo X"$ac_file" |
16991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995 /^X\(\/\/\)[^/].*/{
17008 as_dir
="$ac_dir"; as_fn_mkdir_p
17012 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17014 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17015 # A ".." for each directory in $ac_dir_suffix.
17016 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17017 case $ac_top_builddir_sub in
17018 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17019 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17022 ac_abs_top_builddir
=$ac_pwd
17023 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17024 # for backward compatibility:
17025 ac_top_builddir
=$ac_top_build_prefix
17028 .
) # We are building in place.
17030 ac_top_srcdir
=$ac_top_builddir_sub
17031 ac_abs_top_srcdir
=$ac_pwd ;;
17032 [\\/]* | ?
:[\\/]* ) # Absolute name.
17033 ac_srcdir
=$srcdir$ac_dir_suffix;
17034 ac_top_srcdir
=$srcdir
17035 ac_abs_top_srcdir
=$srcdir ;;
17036 *) # Relative name.
17037 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17038 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17039 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17041 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17051 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17052 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17054 ac_MKDIR_P
=$MKDIR_P
17056 [\\/$
]* | ?
:[\\/]* ) ;;
17057 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17062 # If the template does not know about datarootdir, expand it.
17063 # FIXME: This hack should be removed a few years after 2.60.
17064 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17075 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17076 *datarootdir
*) ac_datarootdir_seen
=yes;;
17077 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17079 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 ac_datarootdir_hack='
17083 s&@datadir@&$datadir&g
17084 s&@docdir@&$docdir&g
17085 s&@infodir@&$infodir&g
17086 s&@localedir@&$localedir&g
17087 s&@mandir@&$mandir&g
17088 s&\\\${datarootdir}&$datarootdir&g' ;;
17092 # Neutralize VPATH when `$srcdir' = `.'.
17093 # Shell code in configure.ac might set extrasub.
17094 # FIXME: do we really want to maintain this feature?
17095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17096 ac_sed_extra="$ac_vpsub
17099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17101 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17102 s|@configure_input@|
$ac_sed_conf_input|
;t t
17103 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17104 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17105 s
&@srcdir@
&$ac_srcdir&;t t
17106 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17107 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17108 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17109 s
&@builddir@
&$ac_builddir&;t t
17110 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17111 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17112 s
&@INSTALL@
&$ac_INSTALL&;t t
17113 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17114 $ac_datarootdir_hack
17116 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17117 if $ac_cs_awk_getline; then
17118 $AWK -f "$ac_tmp/subs.
awk"
17120 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17122 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17124 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17127 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17129 which seems to be undefined. Please make sure it is defined" >&5
17130 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17131 which seems to be undefined. Please make sure it is defined" >&2;}
17133 rm -f "$ac_tmp/stdin"
17135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17144 if test x"$ac_file" != x-; then
17146 $as_echo "/* $configure_input */" \
17147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17148 } >"$ac_tmp/config.h" \
17149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17152 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17155 mv "$ac_tmp/config.h" "$ac_file" \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17159 $as_echo "/* $configure_input */" \
17160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17161 || as_fn_error $? "could not create -" "$LINENO" 5
17163 # Compute "$ac_file"'s index
in $config_headers.
17166 for _am_header
in $config_headers :; do
17167 case $_am_header in
17168 $_am_arg |
$_am_arg:* )
17171 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17174 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17175 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17176 X"$_am_arg" : 'X\(//\)[^/]' \| \
17177 X"$_am_arg" : 'X\(//\)$' \| \
17178 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17179 $as_echo X"$_am_arg" |
17180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17184 /^X\(\/\/\)[^/].*/{
17196 s/.*/./; q'`/stamp-h
$_am_stamp_count
17199 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17200 $as_echo "$as_me: executing $ac_file commands" >&6;}
17205 case $ac_file$ac_mode in
17207 # Only add multilib support code if we just rebuilt the top-level
17209 case " $CONFIG_FILES " in
17211 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17216 # See if we are running on zsh, and set the options which allow our
17217 # commands through without removal of \ escapes.
17218 if test -n "${ZSH_VERSION+set}" ; then
17219 setopt NO_GLOB_SUBST
17222 cfgfile
="${ofile}T"
17223 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17226 cat <<_LT_EOF >> "$cfgfile"
17229 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17230 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17231 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17232 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17234 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17235 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17236 # Written by Gordon Matzigkeit, 1996
17238 # This file is part of GNU Libtool.
17240 # GNU Libtool is free software; you can redistribute it and/or
17241 # modify it under the terms of the GNU General Public License as
17242 # published by the Free Software Foundation; either version 2 of
17243 # the License, or (at your option) any later version.
17245 # As a special exception to the GNU General Public License,
17246 # if you distribute this file as part of a program or library that
17247 # is built using GNU Libtool, you may include this file under the
17248 # same distribution terms that you use for the rest of that program.
17250 # GNU Libtool is distributed in the hope that it will be useful,
17251 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17253 # GNU General Public License for more details.
17255 # You should have received a copy of the GNU General Public License
17256 # along with GNU Libtool; see the file COPYING. If not, a copy
17257 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17258 # obtained by writing to the Free Software Foundation, Inc.,
17259 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17262 # The names of the tagged configurations supported by this script.
17263 available_tags="D "
17265 # ### BEGIN LIBTOOL CONFIG
17267 # Which release of libtool.m4 was used?
17268 macro_version=$macro_version
17269 macro_revision=$macro_revision
17271 # Whether or not to build shared libraries.
17272 build_libtool_libs=$enable_shared
17274 # Whether or not to build static libraries.
17275 build_old_libs=$enable_static
17277 # What type of objects to build.
17280 # Whether or not to optimize for fast installation.
17281 fast_install=$enable_fast_install
17283 # Shell to use when invoking shell scripts.
17286 # An echo program that protects backslashes.
17290 host_alias=$host_alias
17294 # The build system.
17295 build_alias=$build_alias
17299 # A sed program that does not truncate output.
17302 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17303 Xsed="\$SED -e 1s/^X//"
17305 # A grep program that handles long lines.
17311 # A literal string matcher.
17314 # A BSD- or MS-compatible name lister.
17317 # Whether we need soft or hard links.
17320 # What is the maximum length of a command?
17321 max_cmd_len=$max_cmd_len
17323 # Object file suffix (normally "o").
17326 # Executable file suffix (normally "").
17329 # whether the shell understands "unset".
17332 # turn spaces into newlines.
17335 # turn newlines into spaces.
17338 # An object symbol dumper.
17339 OBJDUMP=$lt_OBJDUMP
17341 # Method to check whether dependent libraries are shared objects.
17342 deplibs_check_method=$lt_deplibs_check_method
17344 # Command to use when deplibs_check_method == "file_magic".
17345 file_magic_cmd=$lt_file_magic_cmd
17349 AR_FLAGS=$lt_AR_FLAGS
17351 # A symbol stripping program.
17354 # Commands used to install an old-style archive.
17356 old_postinstall_cmds=$lt_old_postinstall_cmds
17357 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17359 # Whether to use a lock for old archive extraction.
17360 lock_old_archive_extraction=$lock_old_archive_extraction
17365 # LTCC compiler flags.
17366 LTCFLAGS=$lt_CFLAGS
17368 # Take the output of nm and produce a listing of raw symbols and C names.
17369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17371 # Transform the output of nm in a proper C declaration.
17372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17374 # Transform the output of nm in a C name address pair.
17375 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17377 # Transform the output of nm in a C name address pair when lib prefix is needed.
17378 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17380 # The name of the directory that contains temporary libtool files.
17383 # Used to examine libraries when file_magic_cmd begins with "file".
17384 MAGIC_CMD=$MAGIC_CMD
17386 # Must we lock files when doing compilation?
17387 need_locks=$lt_need_locks
17389 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17390 DSYMUTIL=$lt_DSYMUTIL
17392 # Tool to change global to local symbols on Mac OS X.
17395 # Tool to manipulate fat objects and archives on Mac OS X.
17398 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17401 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17402 OTOOL64=$lt_OTOOL64
17404 # Old archive suffix (normally "a").
17407 # Shared library suffix (normally ".so").
17408 shrext_cmds=$lt_shrext_cmds
17410 # The commands to extract the exported symbol list from a shared archive.
17411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17413 # Variables whose values should be saved in libtool wrapper scripts and
17414 # restored at link time.
17415 variables_saved_for_relink=$lt_variables_saved_for_relink
17417 # Do we need the "lib" prefix for modules?
17418 need_lib_prefix=$need_lib_prefix
17420 # Do we need a version for libraries?
17421 need_version=$need_version
17423 # Library versioning type.
17424 version_type=$version_type
17426 # Shared library runtime path variable.
17427 runpath_var=$runpath_var
17429 # Shared library path variable.
17430 shlibpath_var=$shlibpath_var
17432 # Is shlibpath searched before the hard-coded library search path?
17433 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17435 # Format of library name prefix.
17436 libname_spec=$lt_libname_spec
17438 # List of archive names. First name is the real one, the rest are links.
17439 # The last name is the one that the linker finds with -lNAME
17440 library_names_spec=$lt_library_names_spec
17442 # The coded name of the library, if different from the real name.
17443 soname_spec=$lt_soname_spec
17445 # Permission mode override for installation of shared libraries.
17446 install_override_mode=$lt_install_override_mode
17448 # Command to use after installation of a shared archive.
17449 postinstall_cmds=$lt_postinstall_cmds
17451 # Command to use after uninstallation of a shared archive.
17452 postuninstall_cmds=$lt_postuninstall_cmds
17454 # Commands used to finish a libtool library installation in a directory.
17455 finish_cmds=$lt_finish_cmds
17457 # As "finish_cmds", except a single script fragment to be evaled but
17459 finish_eval=$lt_finish_eval
17461 # Whether we should hardcode library paths into libraries.
17462 hardcode_into_libs=$hardcode_into_libs
17464 # Compile-time system search path for libraries.
17465 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17467 # Run-time system search path for libraries.
17468 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17470 # Whether dlopen is supported.
17471 dlopen_support=$enable_dlopen
17473 # Whether dlopen of programs is supported.
17474 dlopen_self=$enable_dlopen_self
17476 # Whether dlopen of statically linked programs is supported.
17477 dlopen_self_static=$enable_dlopen_self_static
17479 # Commands to strip libraries.
17480 old_striplib=$lt_old_striplib
17481 striplib=$lt_striplib
17484 # The linker used to build libraries.
17487 # How to create reloadable object files.
17488 reload_flag=$lt_reload_flag
17489 reload_cmds=$lt_reload_cmds
17491 # Commands used to build an old-style archive.
17492 old_archive_cmds=$lt_old_archive_cmds
17494 # A language specific compiler.
17497 # Is the compiler the GNU compiler?
17500 # Compiler flag to turn off builtin functions.
17501 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17503 # How to pass a linker flag through the compiler.
17504 wl=$lt_lt_prog_compiler_wl
17506 # Additional compiler flags for building library objects.
17507 pic_flag=$lt_lt_prog_compiler_pic
17509 # Compiler flag to prevent dynamic linking.
17510 link_static_flag=$lt_lt_prog_compiler_static
17512 # Does compiler simultaneously support -c and -o options?
17513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17515 # Whether or not to add -lc for building shared libraries.
17516 build_libtool_need_lc=$archive_cmds_need_lc
17518 # Whether or not to disallow shared libs when runtime libs are static.
17519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17521 # Compiler flag to allow reflexive dlopens.
17522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17524 # Compiler flag to generate shared objects directly from archives.
17525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17527 # Whether the compiler copes with passing no objects directly.
17528 compiler_needs_object=$lt_compiler_needs_object
17530 # Create an old-style archive from a shared archive.
17531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17533 # Create a temporary old-style archive to link instead of a shared archive.
17534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17536 # Commands used to build a shared archive.
17537 archive_cmds=$lt_archive_cmds
17538 archive_expsym_cmds=$lt_archive_expsym_cmds
17540 # Commands used to build a loadable module if different from building
17541 # a shared archive.
17542 module_cmds=$lt_module_cmds
17543 module_expsym_cmds=$lt_module_expsym_cmds
17545 # Whether we are building with GNU ld or not.
17546 with_gnu_ld=$lt_with_gnu_ld
17548 # Flag that allows shared libraries with undefined symbols to be built.
17549 allow_undefined_flag=$lt_allow_undefined_flag
17551 # Flag that enforces no undefined symbols.
17552 no_undefined_flag=$lt_no_undefined_flag
17554 # Flag to hardcode \$libdir into a binary during linking.
17555 # This must work even if \$libdir does not exist
17556 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17558 # If ld is used when linking, flag to hardcode \$libdir into a binary
17559 # during linking. This must work even if \$libdir does not exist.
17560 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17562 # Whether we need a single "-rpath" flag with a separated argument.
17563 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17566 # DIR into the resulting binary.
17567 hardcode_direct=$hardcode_direct
17569 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17570 # DIR into the resulting binary and the resulting library dependency is
17571 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17572 # library is relocated.
17573 hardcode_direct_absolute=$hardcode_direct_absolute
17575 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17576 # into the resulting binary.
17577 hardcode_minus_L=$hardcode_minus_L
17579 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17580 # into the resulting binary.
17581 hardcode_shlibpath_var=$hardcode_shlibpath_var
17583 # Set to "yes" if building a shared library automatically hardcodes DIR
17584 # into the library and all subsequent libraries and executables linked
17586 hardcode_automatic=$hardcode_automatic
17588 # Set to yes if linker adds runtime paths of dependent libraries
17589 # to runtime path list.
17590 inherit_rpath=$inherit_rpath
17592 # Whether libtool must link a program against all its dependency libraries.
17593 link_all_deplibs=$link_all_deplibs
17595 # Fix the shell variable \$srcfile for the compiler.
17596 fix_srcfile_path=$lt_fix_srcfile_path
17598 # Set to "yes" if exported symbols are required.
17599 always_export_symbols=$always_export_symbols
17601 # The commands to list exported symbols.
17602 export_symbols_cmds=$lt_export_symbols_cmds
17604 # Symbols that should not be listed in the preloaded symbols.
17605 exclude_expsyms=$lt_exclude_expsyms
17607 # Symbols that must always be exported.
17608 include_expsyms=$lt_include_expsyms
17610 # Commands necessary for linking programs (against libraries) with templates.
17611 prelink_cmds=$lt_prelink_cmds
17613 # Specify filename containing input files.
17614 file_list_spec=$lt_file_list_spec
17616 # How to hardcode a shared library path into an executable.
17617 hardcode_action=$hardcode_action
17619 # ### END LIBTOOL CONFIG
17625 cat <<\_LT_EOF
>> "$cfgfile"
17626 # AIX sometimes has problems with the GCC collect2 program. For some
17627 # reason, if we set the COLLECT_NAMES environment variable, the problems
17628 # vanish in a puff of smoke.
17629 if test "X${COLLECT_NAMES+set}" != Xset
; then
17631 export COLLECT_NAMES
17638 ltmain
="$ac_aux_dir/ltmain.sh"
17641 # We use sed instead of cat because bash on DJGPP gets confused if
17642 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17643 # text mode, it properly converts lines to CR/LF. This bash problem
17644 # is reportedly fixed, but why not run on old versions too?
17645 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17646 ||
(rm -f "$cfgfile"; exit 1)
17650 cat << \_LT_EOF
>> "$cfgfile"
17652 # func_dirname file append nondir_replacement
17653 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17654 # otherwise set result to NONDIR_REPLACEMENT.
17658 */*) func_dirname_result
="${1%/*}${2}" ;;
17659 * ) func_dirname_result
="${3}" ;;
17663 # func_basename file
17666 func_basename_result
="${1##*/}"
17669 # func_dirname_and_basename file append nondir_replacement
17670 # perform func_basename and func_dirname in a single function
17672 # dirname: Compute the dirname of FILE. If nonempty,
17673 # add APPEND to the result, otherwise set result
17674 # to NONDIR_REPLACEMENT.
17675 # value returned in "$func_dirname_result"
17676 # basename: Compute filename of FILE.
17677 # value retuned in "$func_basename_result"
17678 # Implementation must be kept synchronized with func_dirname
17679 # and func_basename. For efficiency, we do not delegate to
17680 # those functions but instead duplicate the functionality here.
17681 func_dirname_and_basename
()
17684 */*) func_dirname_result
="${1%/*}${2}" ;;
17685 * ) func_dirname_result
="${3}" ;;
17687 func_basename_result
="${1##*/}"
17690 # func_stripname prefix suffix name
17691 # strip PREFIX and SUFFIX off of NAME.
17692 # PREFIX and SUFFIX must not contain globbing or regex special
17693 # characters, hashes, percent signs, but SUFFIX may contain a leading
17694 # dot (in which case that matches only a dot).
17697 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17698 # positional parameters, so assign one to ordinary parameter first.
17699 func_stripname_result
=${3}
17700 func_stripname_result
=${func_stripname_result#"${1}"}
17701 func_stripname_result
=${func_stripname_result%"${2}"}
17707 func_opt_split_opt
=${1%%=*}
17708 func_opt_split_arg
=${1#*=}
17715 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17716 *) func_lo2o_result
=${1} ;;
17720 # func_xform libobj-or-source
17723 func_xform_result
=${1%.*}.lo
17726 # func_arith arithmetic-term...
17729 func_arith_result
=$
(( $
* ))
17733 # STRING may not start with a hyphen.
17736 func_len_result
=${#1}
17741 *) # Bourne compatible functions.
17742 cat << \_LT_EOF
>> "$cfgfile"
17744 # func_dirname file append nondir_replacement
17745 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17746 # otherwise set result to NONDIR_REPLACEMENT.
17749 # Extract subdirectory from the argument.
17750 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17751 if test "X$func_dirname_result" = "X${1}"; then
17752 func_dirname_result
="${3}"
17754 func_dirname_result
="$func_dirname_result${2}"
17758 # func_basename file
17761 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17765 # func_stripname prefix suffix name
17766 # strip PREFIX and SUFFIX off of NAME.
17767 # PREFIX and SUFFIX must not contain globbing or regex special
17768 # characters, hashes, percent signs, but SUFFIX may contain a leading
17769 # dot (in which case that matches only a dot).
17770 # func_strip_suffix prefix name
17774 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17775 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17780 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17781 my_sed_long_arg
='1s/^-[^=]*=//'
17786 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17787 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17793 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17796 # func_xform libobj-or-source
17799 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17802 # func_arith arithmetic-term...
17805 func_arith_result
=`expr "$@"`
17809 # STRING may not start with a hyphen.
17812 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17818 case $lt_shell_append in
17820 cat << \_LT_EOF
>> "$cfgfile"
17822 # func_append var value
17823 # Append VALUE to the end of shell variable VAR.
17831 cat << \_LT_EOF
>> "$cfgfile"
17833 # func_append var value
17834 # Append VALUE to the end of shell variable VAR.
17845 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17846 ||
(rm -f "$cfgfile"; exit 1)
17848 mv -f "$cfgfile" "$ofile" ||
17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17853 cat <<_LT_EOF >> "$ofile"
17855 # ### BEGIN LIBTOOL TAG CONFIG: D
17857 # The linker used to build libraries.
17860 # How to create reloadable object files.
17861 reload_flag=$lt_reload_flag_D
17862 reload_cmds=$lt_reload_cmds_D
17864 # Commands used to build an old-style archive.
17865 old_archive_cmds=$lt_old_archive_cmds_D
17867 # A language specific compiler.
17870 # Is the compiler the GNU compiler?
17873 # Compiler flag to turn off builtin functions.
17874 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17876 # How to pass a linker flag through the compiler.
17877 wl=$lt_lt_prog_compiler_wl_D
17879 # Additional compiler flags for building library objects.
17880 pic_flag=$lt_lt_prog_compiler_pic_D
17882 # Compiler flag to prevent dynamic linking.
17883 link_static_flag=$lt_lt_prog_compiler_static_D
17885 # Does compiler simultaneously support -c and -o options?
17886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17888 # Whether or not to add -lc for building shared libraries.
17889 build_libtool_need_lc=$archive_cmds_need_lc_D
17891 # Whether or not to disallow shared libs when runtime libs are static.
17892 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17894 # Compiler flag to allow reflexive dlopens.
17895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17897 # Compiler flag to generate shared objects directly from archives.
17898 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17900 # Whether the compiler copes with passing no objects directly.
17901 compiler_needs_object=$lt_compiler_needs_object_D
17903 # Create an old-style archive from a shared archive.
17904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17906 # Create a temporary old-style archive to link instead of a shared archive.
17907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17909 # Commands used to build a shared archive.
17910 archive_cmds=$lt_archive_cmds_D
17911 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17913 # Commands used to build a loadable module if different from building
17914 # a shared archive.
17915 module_cmds=$lt_module_cmds_D
17916 module_expsym_cmds=$lt_module_expsym_cmds_D
17918 # Whether we are building with GNU ld or not.
17919 with_gnu_ld=$lt_with_gnu_ld_D
17921 # Flag that allows shared libraries with undefined symbols to be built.
17922 allow_undefined_flag=$lt_allow_undefined_flag_D
17924 # Flag that enforces no undefined symbols.
17925 no_undefined_flag=$lt_no_undefined_flag_D
17927 # Flag to hardcode \$libdir into a binary during linking.
17928 # This must work even if \$libdir does not exist
17929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17931 # If ld is used when linking, flag to hardcode \$libdir into a binary
17932 # during linking. This must work even if \$libdir does not exist.
17933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17935 # Whether we need a single "-rpath" flag with a separated argument.
17936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17938 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17939 # DIR into the resulting binary.
17940 hardcode_direct=$hardcode_direct_D
17942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17943 # DIR into the resulting binary and the resulting library dependency is
17944 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17945 # library is relocated.
17946 hardcode_direct_absolute=$hardcode_direct_absolute_D
17948 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17949 # into the resulting binary.
17950 hardcode_minus_L=$hardcode_minus_L_D
17952 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17953 # into the resulting binary.
17954 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17956 # Set to "yes" if building a shared library automatically hardcodes DIR
17957 # into the library and all subsequent libraries and executables linked
17959 hardcode_automatic=$hardcode_automatic_D
17961 # Set to yes if linker adds runtime paths of dependent libraries
17962 # to runtime path list.
17963 inherit_rpath=$inherit_rpath_D
17965 # Whether libtool must link a program against all its dependency libraries.
17966 link_all_deplibs=$link_all_deplibs_D
17968 # Fix the shell variable \$srcfile for the compiler.
17969 fix_srcfile_path=$lt_fix_srcfile_path_D
17971 # Set to "yes" if exported symbols are required.
17972 always_export_symbols=$always_export_symbols_D
17974 # The commands to list exported symbols.
17975 export_symbols_cmds=$lt_export_symbols_cmds_D
17977 # Symbols that should not be listed in the preloaded symbols.
17978 exclude_expsyms=$lt_exclude_expsyms_D
17980 # Symbols that must always be exported.
17981 include_expsyms=$lt_include_expsyms_D
17983 # Commands necessary for linking programs (against libraries) with templates.
17984 prelink_cmds=$lt_prelink_cmds_D
17986 # Specify filename containing input files.
17987 file_list_spec=$lt_file_list_spec_D
17989 # How to hardcode a shared library path into an executable.
17990 hardcode_action=$hardcode_action_D
17992 # ### END LIBTOOL TAG CONFIG: D
17996 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
17997 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
17998 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18000 sed -f vpsed$$
$ac_file > tmp$$
18003 echo 'MULTISUBDIR =' >> $ac_file
18005 .
${multi_basedir}/config-ml.
in
18006 { ml_norecursion
=; unset ml_norecursion
;}
18008 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
18009 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18011 sed -f vpsed$$
$ac_file > tmp$$
18014 echo 'MULTISUBDIR =' >> $ac_file
18016 .
${multi_basedir}/config-ml.
in
18017 { ml_norecursion
=; unset ml_norecursion
;}
18019 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
18020 s
!`test -f '$<' || echo '$(srcdir)/'`!!
18022 sed -f vpsed$$
$ac_file > tmp$$
18025 echo 'MULTISUBDIR =' >> $ac_file
18027 .
${multi_basedir}/config-ml.
in
18028 { ml_norecursion
=; unset ml_norecursion
;}
18037 ac_clean_files
=$ac_clean_files_save
18039 test $ac_write_fail = 0 ||
18040 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18043 # configure is writing to config.log, and then calls config.status.
18044 # config.status does its own redirection, appending to config.log.
18045 # Unfortunately, on DOS this fails, as config.log is still kept open
18046 # by configure, so config.status won't be able to write to it; its
18047 # output is simply discarded. So we exec the FD to /dev/null,
18048 # effectively closing config.log, so it can be properly (re)opened and
18049 # appended to by config.status. When coming back to configure, we
18050 # need to make the FD available again.
18051 if test "$no_create" != yes; then
18053 ac_config_status_args
=
18054 test "$silent" = yes &&
18055 ac_config_status_args
="$ac_config_status_args --quiet"
18057 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18059 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18060 # would make configure fail if this is the last instruction.
18061 $ac_cs_success || as_fn_exit
1
18063 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18065 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}