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
842 ac_precious_vars
='build_alias
853 # Initialize some variables set by options.
855 ac_init_version
=false
856 ac_unrecognized_opts
=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name
=s
,x
,x
,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir
='${exec_prefix}/bin'
882 sbindir
='${exec_prefix}/sbin'
883 libexecdir
='${exec_prefix}/libexec'
884 datarootdir
='${prefix}/share'
885 datadir
='${datarootdir}'
886 sysconfdir
='${prefix}/etc'
887 sharedstatedir
='${prefix}/com'
888 localstatedir
='${prefix}/var'
889 includedir
='${prefix}/include'
890 oldincludedir
='/usr/include'
891 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir
='${datarootdir}/info'
897 libdir
='${exec_prefix}/lib'
898 localedir
='${datarootdir}/locale'
899 mandir
='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\
$ac_option
913 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
926 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
929 -build |
--build |
--buil |
--bui |
--bu)
930 ac_prev
=build_alias
;;
931 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
932 build_alias
=$ac_optarg ;;
934 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
935 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
936 ac_prev
=cache_file
;;
937 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
938 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
939 cache_file
=$ac_optarg ;;
942 cache_file
=config.cache
;;
944 -datadir |
--datadir |
--datadi |
--datad)
946 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
947 datadir
=$ac_optarg ;;
949 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
950 |
--dataroo |
--dataro |
--datar)
951 ac_prev
=datarootdir
;;
952 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
953 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
954 datarootdir
=$ac_optarg ;;
956 -disable-* |
--disable-*)
957 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
960 as_fn_error $?
"invalid feature name: $ac_useropt"
961 ac_useropt_orig
=$ac_useropt
962 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep
=', ';;
970 eval enable_
$ac_useropt=no
;;
972 -docdir |
--docdir |
--docdi |
--doc |
--do)
974 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
977 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
979 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
982 -enable-* |
--enable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 as_fn_error $?
"invalid feature name: $ac_useropt"
987 ac_useropt_orig
=$ac_useropt
988 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep
=', ';;
996 eval enable_
$ac_useropt=\
$ac_optarg ;;
998 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
999 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1000 |
--exec |
--exe |
--ex)
1001 ac_prev
=exec_prefix
;;
1002 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1003 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1004 |
--exec=* |
--exe=* |
--ex=*)
1005 exec_prefix
=$ac_optarg ;;
1007 -gas |
--gas |
--ga |
--g)
1008 # Obsolete; use --with-gas.
1011 -help |
--help |
--hel |
--he |
-h)
1012 ac_init_help
=long
;;
1013 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1014 ac_init_help
=recursive
;;
1015 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1016 ac_init_help
=short
;;
1018 -host |
--host |
--hos |
--ho)
1019 ac_prev
=host_alias
;;
1020 -host=* |
--host=* |
--hos=* |
--ho=*)
1021 host_alias
=$ac_optarg ;;
1023 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1025 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1027 htmldir
=$ac_optarg ;;
1029 -includedir |
--includedir |
--includedi |
--included |
--include \
1030 |
--includ |
--inclu |
--incl |
--inc)
1031 ac_prev
=includedir
;;
1032 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1033 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1034 includedir
=$ac_optarg ;;
1036 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1038 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1039 infodir
=$ac_optarg ;;
1041 -libdir |
--libdir |
--libdi |
--libd)
1043 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1044 libdir
=$ac_optarg ;;
1046 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1047 |
--libexe |
--libex |
--libe)
1048 ac_prev
=libexecdir
;;
1049 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1050 |
--libexe=* |
--libex=* |
--libe=*)
1051 libexecdir
=$ac_optarg ;;
1053 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1054 ac_prev
=localedir
;;
1055 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1056 localedir
=$ac_optarg ;;
1058 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1059 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1060 ac_prev
=localstatedir
;;
1061 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1062 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1063 localstatedir
=$ac_optarg ;;
1065 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1067 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1068 mandir
=$ac_optarg ;;
1070 -nfp |
--nfp |
--nf)
1071 # Obsolete; use --without-fp.
1074 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1075 |
--no-cr |
--no-c |
-n)
1078 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1079 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1082 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1083 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1084 |
--oldin |
--oldi |
--old |
--ol |
--o)
1085 ac_prev
=oldincludedir
;;
1086 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1087 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1088 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1089 oldincludedir
=$ac_optarg ;;
1091 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1093 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1094 prefix
=$ac_optarg ;;
1096 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1097 |
--program-pre |
--program-pr |
--program-p)
1098 ac_prev
=program_prefix
;;
1099 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1100 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1101 program_prefix
=$ac_optarg ;;
1103 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1104 |
--program-suf |
--program-su |
--program-s)
1105 ac_prev
=program_suffix
;;
1106 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1107 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1108 program_suffix
=$ac_optarg ;;
1110 -program-transform-name |
--program-transform-name \
1111 |
--program-transform-nam |
--program-transform-na \
1112 |
--program-transform-n |
--program-transform- \
1113 |
--program-transform |
--program-transfor \
1114 |
--program-transfo |
--program-transf \
1115 |
--program-trans |
--program-tran \
1116 |
--progr-tra |
--program-tr |
--program-t)
1117 ac_prev
=program_transform_name
;;
1118 -program-transform-name=* |
--program-transform-name=* \
1119 |
--program-transform-nam=* |
--program-transform-na=* \
1120 |
--program-transform-n=* |
--program-transform-=* \
1121 |
--program-transform=* |
--program-transfor=* \
1122 |
--program-transfo=* |
--program-transf=* \
1123 |
--program-trans=* |
--program-tran=* \
1124 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1125 program_transform_name
=$ac_optarg ;;
1127 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1129 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1130 pdfdir
=$ac_optarg ;;
1132 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1134 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1137 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1138 |
-silent |
--silent |
--silen |
--sile |
--sil)
1141 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1143 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1145 sbindir
=$ac_optarg ;;
1147 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1148 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1149 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1151 ac_prev
=sharedstatedir
;;
1152 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1153 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1154 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1156 sharedstatedir
=$ac_optarg ;;
1158 -site |
--site |
--sit)
1160 -site=* |
--site=* |
--sit=*)
1163 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1165 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1166 srcdir
=$ac_optarg ;;
1168 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1169 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1170 ac_prev
=sysconfdir
;;
1171 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1172 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1173 sysconfdir
=$ac_optarg ;;
1175 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1176 ac_prev
=target_alias
;;
1177 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1178 target_alias
=$ac_optarg ;;
1180 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1183 -version |
--version |
--versio |
--versi |
--vers |
-V)
1184 ac_init_version
=: ;;
1187 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1190 as_fn_error $?
"invalid package name: $ac_useropt"
1191 ac_useropt_orig
=$ac_useropt
1192 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep
=', ';;
1200 eval with_
$ac_useropt=\
$ac_optarg ;;
1202 -without-* |
--without-*)
1203 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1206 as_fn_error $?
"invalid package name: $ac_useropt"
1207 ac_useropt_orig
=$ac_useropt
1208 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep
=', ';;
1216 eval with_
$ac_useropt=no
;;
1219 # Obsolete; use --with-x.
1222 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1223 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1224 ac_prev
=x_includes
;;
1225 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1226 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1227 x_includes
=$ac_optarg ;;
1229 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1230 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1231 ac_prev
=x_libraries
;;
1232 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1233 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1234 x_libraries
=$ac_optarg ;;
1236 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1241 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1245 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1247 eval $ac_envvar=\
$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 if test -n "$ac_prev"; then
1262 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $?
"missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1269 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 # Check all directory arguments for consistency.
1275 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val
=\$
$ac_var
1281 # Remove trailing slashes.
1284 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\
$ac_val;;
1287 # Be sure to have absolute directory names.
1289 [\\/$
]* | ?
:[\\/]* ) continue;;
1290 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1292 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target
=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x
; then
1304 if test "x$build_alias" = x
; then
1305 cross_compiling
=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1314 test "$silent" = yes && exec 6>/dev
/null
1317 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di
=`ls -di .` &&
1319 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $?
"working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $?
"pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted
=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir
=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted
=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1361 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var
in $ac_precious_vars; do
1378 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1380 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libphobos]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1454 --build=BUILD configure
for building on BUILD
[guessed
]
1455 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1456 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive
) echo "Configuration of package-unused version-unused:";;
1467 --disable-option-checking ignore unrecognized
--enable/--with options
1468 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1469 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1470 --enable-multilib build many library versions
(default
)
1471 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1472 --disable-silent-rules verbose build output
(undo
: "make V=0")
1473 --enable-maintainer-mode
1474 enable make rules and dependencies not useful
(and
1475 sometimes confusing
) to the casual installer
1476 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1477 --enable-static[=PKGS
] build static libraries
[default
=yes]
1478 --enable-fast-install[=PKGS
]
1479 optimize
for fast installation
[default
=yes]
1480 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1481 --enable-werror turns on
-Werror [default
=no
]
1482 --enable-druntime-gc enable D runtime garbage collector
(default
: yes)
1483 --enable-unix enables Unix runtime
(default
: yes, for Unix
1485 --enable-thread-lib=<arg
>
1486 specify linker option
for the system thread library
1487 (default
: autodetect
)
1488 --enable-version-specific-runtime-libs
1489 Specify that runtime libraries should be installed
1490 in a compiler-specific directory
1491 --enable-libphobos Enable libphobos
1494 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1495 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1496 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1498 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1499 --with-gcc-major-version-only
1500 use only GCC major number
in filesystem paths
1501 --without-libatomic Do not use libatomic
in core.atomic
(default
: auto
)
1502 --without-libbacktrace Do not use libbacktrace
in core.runtime
(default
:
1504 --with-target-system-zlib={yes,no
,auto
}
1505 use installed libz
(default
: no
)
1506 --with-cross-host=HOST configuring with a cross compiler
1508 Some influential environment variables
:
1509 CC C compiler
command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1512 nonstandard directory
<lib dir
>
1513 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1514 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1515 you have headers
in a nonstandard directory
<include dir
>
1517 CCAS assembler compiler
command (defaults to CC
)
1518 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1519 GDC D compiler
command
1520 GDCFLAGS D compiler flags
1522 Use these variables to override the choices made by
`configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1525 Report bugs to the package provider.
1530 if test "$ac_init_help" = "recursive"; then
1531 # If there are subdirs, report their specific --help.
1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533 test -d "$ac_dir" ||
1534 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1542 # A ".." for each directory in $ac_dir_suffix.
1543 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1544 case $ac_top_builddir_sub in
1545 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 ac_abs_top_builddir=$ac_pwd
1550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551 # for backward compatibility:
1552 ac_top_builddir=$ac_top_build_prefix
1555 .) # We are building in place.
1557 ac_top_srcdir=$ac_top_builddir_sub
1558 ac_abs_top_srcdir=$ac_pwd ;;
1559 [\\/]* | ?:[\\/]* ) # Absolute name.
1560 ac_srcdir=$srcdir$ac_dir_suffix;
1561 ac_top_srcdir=$srcdir
1562 ac_abs_top_srcdir=$srcdir ;;
1564 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565 ac_top_srcdir=$ac_top_build_prefix$srcdir
1566 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570 cd "$ac_dir" || { ac_status=$?; continue; }
1571 # Check for guested configure.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1579 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1588 package-unused configure version-unused
1589 generated by GNU Autoconf 2.69
1591 Copyright (C) 2012 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext
1609 if { { ac_try="$ac_compile"
1611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1612 *) ac_try_echo
=$ac_try;;
1614 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1618 if test -s conftest.err
; then
1619 grep -v '^ *+' conftest.err
>conftest.er1
1620 cat conftest.er1
>&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.
$ac_objext; then :
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.
$ac_ext >&5
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status
$ac_retval
1638 } # ac_fn_c_try_compile
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1646 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1677 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1680 # the include files in INCLUDES and setting the cache variable VAR
1682 ac_fn_c_check_header_mongrel ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if eval \${$3+:} false; then :
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1695 # Is the header compilable?
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1697 $as_echo_n "checking $2 usability... " >&6; }
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1703 if ac_fn_c_try_compile "$LINENO"; then :
1704 ac_header_compiler=yes
1706 ac_header_compiler=no
1708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1710 $as_echo "$ac_header_compiler" >&6; }
1712 # Is the header present?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1714 $as_echo_n "checking $2 presence... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1719 if ac_fn_c_try_cpp "$LINENO"; then :
1720 ac_header_preproc=yes
1722 ac_header_preproc=no
1724 rm -f conftest.err conftest.i conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1726 $as_echo "$ac_header_preproc" >&6; }
1728 # So? What about this header?
1729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1732 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1738 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1740 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1742 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1744 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1746 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1754 eval "$3=\$ac_header_compiler"
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 } # ac_fn_c_check_header_mongrel
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1774 *) ac_try_echo
=$ac_try;;
1776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=$ac_status
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1806 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists and can be compiled using the include files in
1809 # INCLUDES, setting the cache variable VAR accordingly.
1810 ac_fn_c_check_header_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1823 if ac_fn_c_try_compile "$LINENO"; then :
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 } # ac_fn_c_check_header_compile
1837 # ac_fn_d_try_compile LINENO
1838 # --------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_d_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1853 if test -s conftest.err
; then
1854 grep -v '^ *+' conftest.err
>conftest.er1
1855 cat conftest.er1
>&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_d_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.
$ac_objext; then :
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status
$ac_retval
1873 } # ac_fn_d_try_compile
1875 # ac_fn_c_try_link LINENO
1876 # -----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 rm -f conftest.
$ac_objext conftest
$ac_exeext
1882 if { { ac_try
="$ac_link"
1884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_c_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_link
1921 # ac_fn_c_check_func LINENO FUNC VAR
1922 # ----------------------------------
1923 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1924 ac_fn_c_check_func ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1936 #define $2 innocuous_$2
1938 /* System header to define __stub macros and hopefully few prototypes,
1939 which can conflict with char $2 (); below.
1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1941 <limits.h> exists even on freestanding compilers. */
1944 # include <limits.h>
1946 # include <assert.h>
1951 /* Override any GCC internal prototype to avoid an error.
1952 Use char because int might match the return type of a GCC
1953 builtin and then its argument prototype would still apply. */
1958 /* The GNU C library defines this for functions which it implements
1959 to always fail with ENOSYS. Some functions are actually named
1960 something starting with __ and the normal name is an alias. */
1961 #if defined __stub_$2 || defined __stub___$2
1973 if ac_fn_c_try_link "$LINENO"; then :
1978 rm -f core conftest.err conftest.$ac_objext \
1979 conftest$ac_exeext conftest.$ac_ext
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 } # ac_fn_c_check_func
1988 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1989 # ----------------------------------------------------
1990 # Tries to find if the field MEMBER exists in type AGGR, after including
1991 # INCLUDES, setting cache variable VAR accordingly.
1992 ac_fn_c_check_member ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1996 $as_echo_n "checking for $2.$3... " >&6; }
1997 if eval \${$4+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2013 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2023 if (sizeof ac_aggr.$3)
2029 if ac_fn_c_try_compile "$LINENO"; then :
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 } # ac_fn_c_check_member
2045 # ac_fn_d_try_link LINENO
2046 # -----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded.
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext conftest$ac_exeext
2052 if { { ac_try="$ac_link"
2054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2055 *) ac_try_echo
=$ac_try;;
2057 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>conftest.err
2061 if test -s conftest.err
; then
2062 grep -v '^ *+' conftest.err
>conftest.er1
2063 cat conftest.er1
>&5
2064 mv -f conftest.er1 conftest.err
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_d_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest
$ac_exeext && {
2071 test "$cross_compiling" = yes ||
2072 test -x conftest
$ac_exeext
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.
$ac_ext >&5
2081 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2082 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2083 # interfere with the next link command; also delete a directory that is
2084 # left behind by Apple's compiler. We do this before executing the actions.
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status
$ac_retval
2089 } # ac_fn_d_try_link
2090 cat >config.log
<<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2094 It was created by package-unused $as_me version-unused, which was
2095 generated by GNU Autoconf 2.69. Invocation command line was
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir
=.
2131 $as_echo "PATH: $as_dir"
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_must_keep_next
=false
2161 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2163 |
-silent |
--silent |
--silen |
--sile |
--sil)
2166 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2171 as_fn_append ac_configure_args1
" '$ac_arg'"
2172 if test $ac_must_keep_next = true
; then
2173 ac_must_keep_next
=false
# Got value, back to normal.
2176 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2177 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2178 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2179 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 -* ) ac_must_keep_next
=true
;;
2187 as_fn_append ac_configure_args
" '$ac_arg'"
2192 { ac_configure_args0
=; unset ac_configure_args0
;}
2193 { ac_configure_args1
=; unset ac_configure_args1
;}
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2209 # The following way of writing the cache mishandles newlines in values,
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2245 for ac_var in $ac_subst_vars
2247 eval ac_val=\$$ac_var
2249 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 $as_echo "$ac_var='\''$ac_val'\''"
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2260 for ac_var
in $ac_subst_files
2262 eval ac_val
=\$
$ac_var
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 $as_echo "$ac_var='\''$ac_val'\''"
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 for ac_signal
in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest
* confdefs.h
2295 $as_echo "/* confdefs.h */" > confdefs.h
2297 # Predefined preprocessor variables.
2299 cat >>confdefs.h
<<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 cat >>confdefs.h
<<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 cat >>confdefs.h
<<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2332 */*) ac_site_file1
=$CONFIG_SITE;;
2333 *) ac_site_file1
=.
/$CONFIG_SITE;;
2335 elif test "x$prefix" != xNONE
; then
2336 ac_site_file1
=$prefix/share
/config.site
2337 ac_site_file2
=$prefix/etc
/config.site
2339 ac_site_file1
=$ac_default_prefix/share
/config.site
2340 ac_site_file2
=$ac_default_prefix/etc
/config.site
2342 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2344 test "x$ac_site_file" = xNONE
&& continue
2345 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2350 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $?
"failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2365 *) .
"./$cache_file";;
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 # Check that the precious variables saved in the cache have kept the same
2376 ac_cache_corrupted
=false
2377 for ac_var
in $ac_precious_vars; do
2378 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2379 eval ac_new_set
=\
$ac_env_${ac_var}_set
2380 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2381 eval ac_new_val
=\
$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted
=: ;;
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted
=: ;;
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w
=`echo x $ac_old_val`
2396 ac_new_val_w
=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted
=:
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\
$ac_old_val
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2415 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg
=$ac_var=$ac_new_val ;;
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2424 if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 ## -------------------- ##
2432 ## Main body of script. ##
2433 ## -------------------- ##
2436 ac_cpp
='$CPP $CPPFLAGS'
2437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2446 ac_config_headers
="$ac_config_headers config.h"
2449 # Default to --enable-multilib
2450 # Check whether --enable-multilib was given.
2451 if test "${enable_multilib+set}" = set; then :
2452 enableval
=$enable_multilib; case "$enableval" in
2453 yes) multilib
=yes ;;
2455 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
2462 # We may get other options which we leave undocumented:
2463 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2464 # See config-ml.in if you want the gory details.
2466 if test "$srcdir" = "."; then
2467 if test "$with_target_subdir" != "."; then
2468 multi_basedir
="$srcdir/$with_multisrctop../.."
2470 multi_basedir
="$srcdir/$with_multisrctop.."
2473 multi_basedir
="$srcdir/.."
2477 # Even if the default multilib is not a cross compilation,
2478 # it may be that some of the other multilibs are.
2479 if test $cross_compiling = no
&& test $multilib = yes \
2480 && test "x${with_multisubdir}" != x
; then
2481 cross_compiling
=maybe
2484 ac_config_commands
="$ac_config_commands default-1"
2487 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2488 if test -f "$ac_dir/install-sh"; then
2490 ac_install_sh
="$ac_aux_dir/install-sh -c"
2492 elif test -f "$ac_dir/install.sh"; then
2494 ac_install_sh
="$ac_aux_dir/install.sh -c"
2496 elif test -f "$ac_dir/shtool"; then
2498 ac_install_sh
="$ac_aux_dir/shtool install -c"
2502 if test -z "$ac_aux_dir"; then
2503 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 # Make sure we can run config.sub.
2516 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2517 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520 $as_echo_n "checking build system type... " >&6; }
2521 if ${ac_cv_build+:} false
; then :
2522 $as_echo_n "(cached) " >&6
2524 ac_build_alias
=$build_alias
2525 test "x$ac_build_alias" = x
&&
2526 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2527 test "x$ac_build_alias" = x
&&
2528 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2529 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534 $as_echo "$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2537 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2540 ac_save_IFS
=$IFS; IFS
='-'
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2550 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554 $as_echo_n "checking host system type... " >&6; }
2555 if ${ac_cv_host+:} false
; then :
2556 $as_echo_n "(cached) " >&6
2558 if test "x$host_alias" = x
; then
2559 ac_cv_host
=$ac_cv_build
2561 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567 $as_echo "$ac_cv_host" >&6; }
2570 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2573 ac_save_IFS
=$IFS; IFS
='-'
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2583 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2587 $as_echo_n "checking target system type... " >&6; }
2588 if ${ac_cv_target+:} false
; then :
2589 $as_echo_n "(cached) " >&6
2591 if test "x$target_alias" = x
; then
2592 ac_cv_target
=$ac_cv_host
2594 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2595 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2600 $as_echo "$ac_cv_target" >&6; }
2601 case $ac_cv_target in
2603 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2605 target
=$ac_cv_target
2606 ac_save_IFS
=$IFS; IFS
='-'
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2616 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2619 # The aliases save the names the user supplied, while $host etc.
2620 # will get canonicalized.
2621 test -n "$target_alias" &&
2622 test "$program_prefix$program_suffix$program_transform_name" = \
2624 program_prefix
=${target_alias}-
2626 # Expand $ac_aux_dir to an absolute path.
2627 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2630 ac_cpp
='$CPP $CPPFLAGS'
2631 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2636 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_CC+:} false
; then :
2640 $as_echo_n "(cached) " >&6
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC
="$CC" # Let the user override the test.
2645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir
=.
2650 for ac_exec_ext
in '' $ac_executable_extensions; do
2651 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$CC"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665 $as_echo "$CC" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2673 if test -z "$ac_cv_prog_CC"; then
2675 # Extract the first word of "gcc", so it can be a program name with args.
2676 set dummy gcc
; ac_word
=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2680 $as_echo_n "(cached) " >&6
2682 if test -n "$ac_ct_CC"; then
2683 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir
=.
2690 for ac_exec_ext
in '' $ac_executable_extensions; do
2691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2692 ac_cv_prog_ac_ct_CC
="gcc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2705 $as_echo "$ac_ct_CC" >&6; }
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2711 if test "x$ac_ct_CC" = x
; then
2714 case $cross_compiling:$ac_tool_warned in
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2718 ac_tool_warned
=yes ;;
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2729 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false
; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC
="$CC" # Let the user override the test.
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 for ac_exec_ext
in '' $ac_executable_extensions; do
2744 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2745 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2767 if test -z "$CC"; then
2768 # Extract the first word of "cc", so it can be a program name with args.
2769 set dummy cc
; ac_word
=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_CC+:} false
; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC
="$CC" # Let the user override the test.
2779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir
=.
2784 for ac_exec_ext
in '' $ac_executable_extensions; do
2785 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2787 ac_prog_rejected
=yes
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 if test $ac_prog_rejected = yes; then
2799 # We found a bogon in the path, so make sure we never use it.
2800 set dummy
$ac_cv_prog_CC
2802 if test $# != 0; then
2803 # We chose a different compiler from the bogus one.
2804 # However, it has the same basename, so the bogon will be chosen
2805 # first if we set CC to just the basename; use the full file name.
2807 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 for ac_prog
in cl.exe
2827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2828 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 $as_echo_n "checking for $ac_word... " >&6; }
2831 if ${ac_cv_prog_CC+:} false
; then :
2832 $as_echo_n "(cached) " >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC
="$CC" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2864 test -n "$CC" && break
2867 if test -z "$CC"; then
2869 for ac_prog
in cl.exe
2871 # Extract the first word of "$ac_prog", so it can be a program name with args.
2872 set dummy
$ac_prog; ac_word
=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir
=.
2886 for ac_exec_ext
in '' $ac_executable_extensions; do
2887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC
="$ac_prog"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2908 test -n "$ac_ct_CC" && break
2911 if test "x$ac_ct_CC" = x
; then
2914 case $cross_compiling:$ac_tool_warned in
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned
=yes ;;
2927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 as_fn_error $?
"no acceptable C compiler found in \$PATH
2930 See \`config.log' for more details" "$LINENO" 5; }
2932 # Provide some information about the compiler.
2933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2936 for ac_option
in --version -v -V -qversion; do
2937 { { ac_try
="$ac_compiler $ac_option >&5"
2939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2946 if test -s conftest.err; then
2948 ... rest of stderr output deleted ...
2949 10q' conftest.err >conftest.er1
2950 cat conftest.er1 >&5
2952 rm -f conftest.er1 conftest.err
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }
2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2958 /* end confdefs.h. */
2968 ac_clean_files_save=$ac_clean_files
2969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2970 # Try to create an executable without -o first, disregard a.out.
2971 # It will help us diagnose broken compilers, and finding out an intuition
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2974 $as_echo_n "checking whether the C compiler works... " >&6; }
2975 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2977 # The possible output files:
2978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2981 for ac_file in $ac_files
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2990 if { { ac_try="$ac_link_default"
2992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2993 *) ac_try_echo
=$ac_try;;
2995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996 $as_echo "$ac_try_echo"; } >&5
2997 (eval "$ac_link_default") 2>&5
2999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
3001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3004 # so that the user can short-circuit this test for compilers unknown to
3006 for ac_file
in $ac_files ''
3008 test -f "$ac_file" ||
continue
3010 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3013 # We found the default executable, but exeext='' is most
3017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3019 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 # We set ac_cv_exeext here because the later test for it is not
3022 # safe: cross compilers may not add the suffix if given an `-o'
3023 # argument, so we may need to know it at that point already.
3024 # Even if this section looks crufty: it has the advantage of
3031 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3036 if test -z "$ac_file"; then :
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.
$ac_ext >&5
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error
77 "C compiler cannot create executables
3045 See \`config.log' for more details" "$LINENO" 5; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3051 $as_echo_n "checking for C compiler default output file name... " >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3053 $as_echo "$ac_file" >&6; }
3054 ac_exeext
=$ac_cv_exeext
3056 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3057 ac_clean_files
=$ac_clean_files_save
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3059 $as_echo_n "checking for suffix of executables... " >&6; }
3060 if { { ac_try
="$ac_link"
3062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_link") 2>&5
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3072 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3073 # work properly (i.e., refer to `conftest.exe'), while it won't with
3075 for ac_file
in conftest.exe conftest conftest.
*; do
3076 test -f "$ac_file" ||
continue
3078 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3079 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details" "$LINENO" 5; }
3090 rm -f conftest conftest
$ac_cv_exeext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3092 $as_echo "$ac_cv_exeext" >&6; }
3094 rm -f conftest.
$ac_ext
3095 EXEEXT
=$ac_cv_exeext
3097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3103 FILE *f = fopen ("conftest.out", "w");
3104 return ferror (f) || fclose (f) != 0;
3110 ac_clean_files
="$ac_clean_files conftest.out"
3111 # Check that the compiler produces executables we can run. If not, either
3112 # the compiler is broken, or we cross compile.
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3114 $as_echo_n "checking whether we are cross compiling... " >&6; }
3115 if test "$cross_compiling" != yes; then
3116 { { ac_try
="$ac_link"
3118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_link") 2>&5
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }
3127 if { ac_try='./conftest$ac_cv_exeext'
3128 { { case "(($ac_try" in
3129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3130 *) ac_try_echo
=$ac_try;;
3132 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_try") 2>&5
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }; }; then
3140 if test "$cross_compiling" = maybe
; then
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $?
"cannot run C compiled programs.
3146 If you meant to cross compile, use \`--host'.
3147 See \`config.log' for more details" "$LINENO" 5; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3152 $as_echo "$cross_compiling" >&6; }
3154 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3155 ac_clean_files
=$ac_clean_files_save
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3157 $as_echo_n "checking for suffix of object files... " >&6; }
3158 if ${ac_cv_objext+:} false
; then :
3159 $as_echo_n "(cached) " >&6
3161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3172 rm -f conftest.o conftest.obj
3173 if { { ac_try
="$ac_compile"
3175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compile") 2>&5
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 for ac_file in conftest.o conftest.obj conftest.*; do
3185 test -f "$ac_file" || continue;
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3199 See \
`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3204 $as_echo "$ac_cv_objext" >&6; }
3205 OBJEXT=$ac_cv_objext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3208 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3209 if ${ac_cv_c_compiler_gnu+:} false; then :
3210 $as_echo_n "(cached) " >&6
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3226 if ac_fn_c_try_compile "$LINENO"; then :
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3236 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3237 if test $ac_compiler_gnu = yes; then
3242 ac_test_CFLAGS=${CFLAGS+set}
3243 ac_save_CFLAGS=$CFLAGS
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3245 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3246 if ${ac_cv_prog_cc_g+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 ac_save_c_werror_flag=$ac_c_werror_flag
3250 ac_c_werror_flag=yes
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3264 if ac_fn_c_try_compile "$LINENO"; then :
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3279 if ac_fn_c_try_compile "$LINENO"; then :
3282 ac_c_werror_flag=$ac_save_c_werror_flag
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3295 if ac_fn_c_try_compile "$LINENO"; then :
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 ac_c_werror_flag=$ac_save_c_werror_flag
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3306 $as_echo "$ac_cv_prog_cc_g" >&6; }
3307 if test "$ac_test_CFLAGS" = set; then
3308 CFLAGS=$ac_save_CFLAGS
3309 elif test $ac_cv_prog_cc_g = yes; then
3310 if test "$GCC" = yes; then
3316 if test "$GCC" = yes; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3323 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3324 if ${ac_cv_prog_cc_c89+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 ac_cv_prog_cc_c89=no
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3348 s = g (p, va_arg (v,int));
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_c89=$ac_arg
3388 rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
3391 rm -f conftest.$ac_ext
3396 case "x$ac_cv_prog_cc_c89" in
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3399 $as_echo "none needed" >&6; } ;;
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3402 $as_echo "unsupported" >&6; } ;;
3404 CC="$CC $ac_cv_prog_cc_c89"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3406 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3408 if test "x$ac_cv_prog_cc_c89" != xno; then :
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3424 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3425 if ${am_cv_prog_cc_c_o+:} false; then :
3426 $as_echo_n "(cached) " >&6
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 # Make sure it works both with $CC and with simple cc.
3440 # Following AC_PROG_CC_C_O, we do the test twice because some
3441 # compilers refuse to overwrite an existing .o file with -o,
3442 # though they will create one.
3443 am_cv_prog_cc_c_o=yes
3445 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3446 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } \
3450 && test -f conftest2.$ac_objext; then
3453 am_cv_prog_cc_c_o=no
3457 rm -f core conftest*
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3461 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3462 if test "$am_cv_prog_cc_c_o" != yes; then
3463 # Losing compiler, so override with the script.
3464 # FIXME: It is wrong to rewrite CC.
3465 # But if we don't then we get into trouble of one sort or another.
3466 # A longer-term fix would be to have automake use am__CC in this case,
3467 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3468 CC="$am_aux_dir/compile $CC"
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3485 # On Suns, sometimes $CPP names a directory.
3486 if test -n "$CPP" && test -d "$CPP"; then
3489 if test -z "$CPP"; then
3490 if ${ac_cv_prog_CPP+:} false; then :
3491 $as_echo_n "(cached) " >&6
3493 # Double quotes because CPP needs to be expanded
3494 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3497 for ac_c_preproc_warn_flag in '' yes
3499 # Use a header file that comes with gcc, so configuring glibc
3500 # with a fresh cross-compiler works.
3501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502 # <limits.h> exists even on freestanding compilers.
3503 # On the NeXT, cc -E runs the code through the compiler's parser,
3504 # not just through cpp. "Syntax error" is here to catch this case.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3508 # include <limits.h>
3510 # include <assert.h>
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3517 # Broken: fails on valid input.
3520 rm -f conftest.err conftest.i conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <ac_nonexistent.h>
3528 if ac_fn_c_try_cpp "$LINENO"; then :
3529 # Broken: success on invalid input.
3532 # Passes both tests.
3536 rm -f conftest.err conftest.i conftest.$ac_ext
3539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 rm -f conftest.i conftest.err conftest.
$ac_ext
3541 if $ac_preproc_ok; then :
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554 $as_echo "$CPP" >&6; }
3556 for ac_c_preproc_warn_flag
in '' yes
3558 # Use a header file that comes with gcc, so configuring glibc
3559 # with a fresh cross-compiler works.
3560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3561 # <limits.h> exists even on freestanding compilers.
3562 # On the NeXT, cc -E runs the code through the compiler's parser,
3563 # not just through cpp. "Syntax error" is here to catch this case.
3564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3567 # include <limits.h>
3569 # include <assert.h>
3573 if ac_fn_c_try_cpp
"$LINENO"; then :
3576 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.i conftest.
$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585 #include <ac_nonexistent.h>
3587 if ac_fn_c_try_cpp
"$LINENO"; then :
3588 # Broken: success on invalid input.
3591 # Passes both tests.
3595 rm -f conftest.err conftest.i conftest.
$ac_ext
3598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 rm -f conftest.i conftest.err conftest.
$ac_ext
3600 if $ac_preproc_ok; then :
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3606 See \`config.log' for more details" "$LINENO" 5; }
3610 ac_cpp
='$CPP $CPPFLAGS'
3611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618 if ${ac_cv_path_GREP+:} false
; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -z "$GREP"; then
3622 ac_path_GREP_found
=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_prog
in grep ggrep
; do
3630 for ac_exec_ext
in '' $ac_executable_extensions; do
3631 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3632 as_fn_executable_p
"$ac_path_GREP" ||
continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3637 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3640 $as_echo_n 0123456789 >"conftest.in"
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 $as_echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3648 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3649 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP
="$ac_path_GREP"
3653 ac_path_GREP_max
=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3658 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3661 $ac_path_GREP_found && break 3
3666 if test -z "$ac_cv_path_GREP"; then
3667 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3670 ac_cv_path_GREP
=$GREP
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675 $as_echo "$ac_cv_path_GREP" >&6; }
3676 GREP
="$ac_cv_path_GREP"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680 $as_echo_n "checking for egrep... " >&6; }
3681 if ${ac_cv_path_EGREP+:} false
; then :
3682 $as_echo_n "(cached) " >&6
3684 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3685 then ac_cv_path_EGREP
="$GREP -E"
3687 if test -z "$EGREP"; then
3688 ac_path_EGREP_found
=false
3689 # Loop through the user's path and test for each of PROGNAME-LIST
3690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3691 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3694 test -z "$as_dir" && as_dir
=.
3695 for ac_prog
in egrep; do
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3698 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3699 # Check for GNU ac_path_EGREP and select it if it is found.
3700 # Check for GNU $ac_path_EGREP
3701 case `"$ac_path_EGREP" --version 2>&1` in
3703 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3706 $as_echo_n 0123456789 >"conftest.in"
3709 cat "conftest.in" "conftest.in" >"conftest.tmp"
3710 mv "conftest.tmp" "conftest.in"
3711 cp "conftest.in" "conftest.nl"
3712 $as_echo 'EGREP' >> "conftest.nl"
3713 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3714 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3715 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3716 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717 # Best one so far, save it but keep looking for a better one
3718 ac_cv_path_EGREP
="$ac_path_EGREP"
3719 ac_path_EGREP_max
=$ac_count
3721 # 10*(2^10) chars as input seems more than enough
3722 test $ac_count -gt 10 && break
3724 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3727 $ac_path_EGREP_found && break 3
3732 if test -z "$ac_cv_path_EGREP"; then
3733 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3736 ac_cv_path_EGREP
=$EGREP
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742 $as_echo "$ac_cv_path_EGREP" >&6; }
3743 EGREP
="$ac_cv_path_EGREP"
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747 $as_echo_n "checking for ANSI C header files... " >&6; }
3748 if ${ac_cv_header_stdc+:} false
; then :
3749 $as_echo_n "(cached) " >&6
3751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3766 if ac_fn_c_try_compile
"$LINENO"; then :
3767 ac_cv_header_stdc
=yes
3769 ac_cv_header_stdc
=no
3771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3773 if test $ac_cv_header_stdc = yes; then
3774 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h. */
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 $EGREP "memchr" >/dev
/null
2>&1; then :
3784 ac_cv_header_stdc
=no
3790 if test $ac_cv_header_stdc = yes; then
3791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "free" >/dev
/null
2>&1; then :
3801 ac_cv_header_stdc
=no
3807 if test $ac_cv_header_stdc = yes; then
3808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809 if test "$cross_compiling" = yes; then :
3812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3816 #if ((' ' & 0x0FF) == 0x020)
3817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3820 # define ISLOWER(c) \
3821 (('a' <= (c) && (c) <= 'i') \
3822 || ('j' <= (c) && (c) <= 'r') \
3823 || ('s' <= (c) && (c) <= 'z'))
3824 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3827 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3832 for (i = 0; i < 256; i++)
3833 if (XOR (islower (i), ISLOWER (i))
3834 || toupper (i) != TOUPPER (i))
3839 if ac_fn_c_try_run
"$LINENO"; then :
3842 ac_cv_header_stdc
=no
3844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851 $as_echo "$ac_cv_header_stdc" >&6; }
3852 if test $ac_cv_header_stdc = yes; then
3854 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3860 inttypes.h stdint.h unistd.h
3862 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3865 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3866 cat >>confdefs.h
<<_ACEOF
3867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3876 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3877 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3884 if test "$MINIX" = yes; then
3886 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3889 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3892 $as_echo "#define _MINIX 1" >>confdefs.h
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3898 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3899 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3900 $as_echo_n "(cached) " >&6
3902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3905 # define __EXTENSIONS__ 1
3906 $ac_includes_default
3915 if ac_fn_c_try_compile
"$LINENO"; then :
3916 ac_cv_safe_to_define___extensions__
=yes
3918 ac_cv_safe_to_define___extensions__
=no
3920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3923 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3924 test $ac_cv_safe_to_define___extensions__ = yes &&
3925 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3927 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3929 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3931 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3933 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3937 target_alias
=${target_alias-$target}
3940 # 1.11.1: Require that version of automake.
3941 # foreign: Don't require README, INSTALL, NEWS, etc.
3942 # no-define: Don't define PACKAGE and VERSION.
3943 # no-dependencies: Don't generate automatic dependencies.
3944 # (because it breaks when using bootstrap-lean, since some of the
3945 # headers are gone at "make install" time).
3946 # subdir-objects: Build objects in sub-directories.
3947 # -Wall: Issue all automake warnings.
3948 # -Wno-portability: Don't warn about constructs supported by GNU make.
3949 # (because GCC requires GNU make anyhow).
3950 # -Wno-override: Overrides used in testsuite.
3951 am__api_version
='1.15'
3953 # Find a good install program. We prefer a C program (faster),
3954 # so one script is as good as another. But avoid the broken or
3955 # incompatible versions:
3956 # SysV /etc/install, /usr/sbin/install
3957 # SunOS /usr/etc/install
3958 # IRIX /sbin/install
3960 # AmigaOS /C/install, which installs bootblocks on floppy discs
3961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3964 # OS/2's system install, which has a completely different semantic
3965 # ./install, which can be erroneously created by make from ./install.sh.
3966 # Reject install programs that cannot install multiple files.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3968 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3969 if test -z "$INSTALL"; then
3970 if ${ac_cv_path_install+:} false
; then :
3971 $as_echo_n "(cached) " >&6
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir
=.
3978 # Account for people who put trailing slashes in PATH elements.
3979 case $as_dir/ in #((
3980 .
/ | .
// |
/[cC
]/* | \
3981 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3982 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3985 # OSF1 and SCO ODT 3.0 have their own names for install.
3986 # Don't use installbsd from OSF since it installs stuff as root
3988 for ac_prog
in ginstall scoinst
install; do
3989 for ac_exec_ext
in '' $ac_executable_extensions; do
3990 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3991 if test $ac_prog = install &&
3992 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3993 # AIX install. It has an incompatible calling convention.
3995 elif test $ac_prog = install &&
3996 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3997 # program-specific install script used by HP pwplus--don't use.
4000 rm -rf conftest.one conftest.two conftest.dir
4001 echo one
> conftest.one
4002 echo two
> conftest.two
4004 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4005 test -s conftest.one
&& test -s conftest.two
&&
4006 test -s conftest.dir
/conftest.one
&&
4007 test -s conftest.dir
/conftest.two
4009 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4022 rm -rf conftest.one conftest.two conftest.dir
4025 if test "${ac_cv_path_install+set}" = set; then
4026 INSTALL
=$ac_cv_path_install
4028 # As a last resort, use the slow shell script. Don't cache a
4029 # value for INSTALL within a source directory, because that will
4030 # break other packages using the cache if that directory is
4031 # removed, or if the value is a relative name.
4032 INSTALL
=$ac_install_sh
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4036 $as_echo "$INSTALL" >&6; }
4038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039 # It thinks the first close brace ends the variable substitution.
4040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4044 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4047 $as_echo_n "checking whether build environment is sane... " >&6; }
4048 # Reject unsafe characters in $srcdir or the absolute working directory
4049 # name. Accept space and tab only in the latter.
4053 *[\\\"\
#\$\&\'\`$am_lf]*)
4054 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
4057 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
4058 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4061 # Do 'set' in a subshell so we don't clobber the current shell's
4062 # arguments. Must try -L first in case configure is actually a
4063 # symlink; some systems play weird games with the mod time of symlinks
4064 # (eg FreeBSD returns the mod time of the symlink's containing
4068 for am_try
in 1 2; do
4069 echo "timestamp, slept: $am_has_slept" > conftest.
file
4070 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4071 if test "$*" = "X"; then
4073 set X
`ls -t "$srcdir/configure" conftest.file`
4075 if test "$*" != "X $srcdir/configure conftest.file" \
4076 && test "$*" != "X conftest.file $srcdir/configure"; then
4078 # If neither matched, then we have a broken ls. This can happen
4079 # if, for instance, CONFIG_SHELL is bash and it inherits a
4080 # broken ls alias from the environment. This has actually
4081 # happened. Such a system could not be considered "sane".
4082 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
4083 alias in your environment" "$LINENO" 5
4085 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
4092 test "$2" = conftest.
file
4098 as_fn_error $?
"newly created file is older than distributed files!
4099 Check your system clock" "$LINENO" 5
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4103 # If we didn't sleep, we still need to ensure time stamps of config.status and
4104 # generated files are strictly newer.
4106 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
4113 test "$program_prefix" != NONE
&&
4114 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4115 # Use a double $ so make ignores it.
4116 test "$program_suffix" != NONE
&&
4117 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4118 # Double any \ or $.
4119 # By default was `s,x,x', remove it if useless.
4120 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4121 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4123 if test x
"${MISSING+set}" != xset
; then
4126 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
4128 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
4131 # Use eval to expand $SHELL
4132 if eval "$MISSING --is-lightweight"; then
4133 am_missing_run
="$MISSING "
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4137 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4140 if test x
"${install_sh+set}" != xset
; then
4143 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4145 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4149 # Installed binaries are usually stripped using 'strip' when the user
4150 # run "make install-strip". However 'strip' might not be the right
4151 # tool to use in cross-compilation environments, therefore Automake
4152 # will honor the 'STRIP' environment variable to overrule this program.
4153 if test "$cross_compiling" != no
; then
4154 if test -n "$ac_tool_prefix"; then
4155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4156 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if ${ac_cv_prog_STRIP+:} false
; then :
4160 $as_echo_n "(cached) " >&6
4162 if test -n "$STRIP"; then
4163 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir
=.
4170 for ac_exec_ext
in '' $ac_executable_extensions; do
4171 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 STRIP
=$ac_cv_prog_STRIP
4183 if test -n "$STRIP"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4185 $as_echo "$STRIP" >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4193 if test -z "$ac_cv_prog_STRIP"; then
4195 # Extract the first word of "strip", so it can be a program name with args.
4196 set dummy strip
; ac_word
=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 if test -n "$ac_ct_STRIP"; then
4203 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir
=.
4210 for ac_exec_ext
in '' $ac_executable_extensions; do
4211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_ac_ct_STRIP
="strip"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4223 if test -n "$ac_ct_STRIP"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4225 $as_echo "$ac_ct_STRIP" >&6; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4231 if test "x$ac_ct_STRIP" = x
; then
4234 case $cross_compiling:$ac_tool_warned in
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4238 ac_tool_warned
=yes ;;
4243 STRIP
="$ac_cv_prog_STRIP"
4247 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4250 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4251 if test -z "$MKDIR_P"; then
4252 if ${ac_cv_path_mkdir+:} false
; then :
4253 $as_echo_n "(cached) " >&6
4255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4259 test -z "$as_dir" && as_dir
=.
4260 for ac_prog
in mkdir gmkdir
; do
4261 for ac_exec_ext
in '' $ac_executable_extensions; do
4262 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
4263 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4264 'mkdir (GNU coreutils) '* | \
4265 'mkdir (coreutils) '* | \
4266 'mkdir (fileutils) '4.1*)
4267 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4277 test -d .
/--version && rmdir .
/--version
4278 if test "${ac_cv_path_mkdir+set}" = set; then
4279 MKDIR_P
="$ac_cv_path_mkdir -p"
4281 # As a last resort, use the slow shell script. Don't cache a
4282 # value for MKDIR_P within a source directory, because that will
4283 # break other packages using the cache if that directory is
4284 # removed, or if the value is a relative name.
4285 MKDIR_P
="$ac_install_sh -d"
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4289 $as_echo "$MKDIR_P" >&6; }
4291 for ac_prog
in gawk mawk nawk
awk
4293 # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy
$ac_prog; ac_word
=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_AWK+:} false
; then :
4298 $as_echo_n "(cached) " >&6
4300 if test -n "$AWK"; then
4301 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir
=.
4308 for ac_exec_ext
in '' $ac_executable_extensions; do
4309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_AWK
="$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 if test -n "$AWK"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4323 $as_echo "$AWK" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$AWK" && break
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4334 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4336 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4337 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
4338 $as_echo_n "(cached) " >&6
4340 cat >conftest.
make <<\_ACEOF
4343 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4345 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4346 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4348 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4350 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4354 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 SET_MAKE
="MAKE=${MAKE-make}"
4364 rm -rf .tst
2>/dev
/null
4365 mkdir .tst
2>/dev
/null
4366 if test -d .tst
; then
4371 rmdir .tst
2>/dev
/null
4373 # Check whether --enable-silent-rules was given.
4374 if test "${enable_silent_rules+set}" = set; then :
4375 enableval
=$enable_silent_rules;
4378 case $enable_silent_rules in # (((
4379 yes) AM_DEFAULT_VERBOSITY
=0;;
4380 no
) AM_DEFAULT_VERBOSITY
=1;;
4381 *) AM_DEFAULT_VERBOSITY
=1;;
4383 am_make
=${MAKE-make}
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4385 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4386 if ${am_cv_make_support_nested_variables+:} false
; then :
4387 $as_echo_n "(cached) " >&6
4389 if $as_echo 'TRUE=$(BAR$(V))
4395 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
4396 am_cv_make_support_nested_variables
=yes
4398 am_cv_make_support_nested_variables
=no
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4402 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4403 if test $am_cv_make_support_nested_variables = yes; then
4405 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
4407 AM_V
=$AM_DEFAULT_VERBOSITY
4408 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
4412 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4413 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4414 # is not polluted with repeated "-I."
4415 am__isrc
=' -I$(srcdir)'
4416 # test to see if srcdir already configured
4417 if test -f $srcdir/config.status
; then
4418 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4422 # test whether we have cygpath
4423 if test -z "$CYGPATH_W"; then
4424 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4425 CYGPATH_W
='cygpath -w'
4432 # Define the identity of the package.
4434 VERSION
='version-unused'
4437 # Some tools Automake needs.
4439 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4442 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4445 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4448 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4451 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4453 # For better backward compatibility. To be removed once Automake 1.9.x
4454 # dies out for good. For more background, see:
4455 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4456 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4457 mkdir_p
='$(MKDIR_P)'
4459 # We need awk for the "check" target (and possibly the TAP driver). The
4460 # system "awk" is bad on some platforms.
4461 # Always define AMTAR for backward compatibility. Yes, it's still used
4462 # in the wild :-( We should find a proper way to deprecate it ...
4466 # We'll loop over all known methods to create a tar archive until one works.
4467 _am_tools
='gnutar pax cpio none'
4469 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
4476 # POSIX will say in a future version that running "rm -f" with no argument
4477 # is OK; and we want to be able to make that assumption in our Makefile
4478 # recipes. So use an aggressive probe to check that the usage we want is
4479 # actually supported "in the wild" to an acceptable degree.
4480 # See automake bug#10828.
4481 # To make any issue more visible, cause the running configure to be aborted
4482 # by default if the 'rm' program in use doesn't match our expectations; the
4483 # user can still override this though.
4484 if rm -f && rm -fr && rm -rf; then : OK
; else
4488 Your 'rm' program seems unable to run without file operands specified
4489 on the command line, even when the '-f' option is present. This is contrary
4490 to the behaviour of most rm programs out there, and not conforming with
4491 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4493 Please tell bug-automake@gnu.org about your system, including the value
4494 of your $PATH and any error possibly output before this message. This
4495 can help us improve future automake versions.
4498 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
4499 echo 'Configuration will proceed anyway, since you have set the' >&2
4500 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4504 Aborting the configuration process, to ensure you take notice of the issue.
4506 You can download and install GNU coreutils to get an 'rm' implementation
4507 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4509 If you want to complete the configuration process using your problematic
4510 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4511 to "yes", and re-run configure.
4514 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
4521 # By default we simply use the C compiler to build assembly code.
4523 test "${CCAS+set}" = set || CCAS
=$CC
4524 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4529 ac_cpp
='$CPP $CPPFLAGS'
4530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4533 if test -n "$ac_tool_prefix"; then
4534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4535 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_CC+:} false
; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -n "$CC"; then
4542 ac_cv_prog_CC
="$CC" # Let the user override the test.
4544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir
=.
4549 for ac_exec_ext
in '' $ac_executable_extensions; do
4550 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 if test -n "$CC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4564 $as_echo "$CC" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4572 if test -z "$ac_cv_prog_CC"; then
4574 # Extract the first word of "gcc", so it can be a program name with args.
4575 set dummy gcc
; ac_word
=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4579 $as_echo_n "(cached) " >&6
4581 if test -n "$ac_ct_CC"; then
4582 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4588 test -z "$as_dir" && as_dir
=.
4589 for ac_exec_ext
in '' $ac_executable_extensions; do
4590 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_ac_ct_CC
="gcc"
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4602 if test -n "$ac_ct_CC"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4604 $as_echo "$ac_ct_CC" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4610 if test "x$ac_ct_CC" = x
; then
4613 case $cross_compiling:$ac_tool_warned in
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned
=yes ;;
4625 if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4628 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_CC+:} false
; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$CC"; then
4635 ac_cv_prog_CC
="$CC" # Let the user override the test.
4637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir
=.
4642 for ac_exec_ext
in '' $ac_executable_extensions; do
4643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 if test -n "$CC"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4657 $as_echo "$CC" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4666 if test -z "$CC"; then
4667 # Extract the first word of "cc", so it can be a program name with args.
4668 set dummy cc
; ac_word
=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if ${ac_cv_prog_CC+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4674 if test -n "$CC"; then
4675 ac_cv_prog_CC
="$CC" # Let the user override the test.
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir
=.
4683 for ac_exec_ext
in '' $ac_executable_extensions; do
4684 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4685 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4686 ac_prog_rejected
=yes
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 if test $ac_prog_rejected = yes; then
4698 # We found a bogon in the path, so make sure we never use it.
4699 set dummy
$ac_cv_prog_CC
4701 if test $# != 0; then
4702 # We chose a different compiler from the bogus one.
4703 # However, it has the same basename, so the bogon will be chosen
4704 # first if we set CC to just the basename; use the full file name.
4706 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4712 if test -n "$CC"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4722 if test -z "$CC"; then
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog
in cl.exe
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_CC+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC
="$CC" # Let the user override the test.
4736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4740 test -z "$as_dir" && as_dir
=.
4741 for ac_exec_ext
in '' $ac_executable_extensions; do
4742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 if test -n "$CC"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4756 $as_echo "$CC" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4763 test -n "$CC" && break
4766 if test -z "$CC"; then
4768 for ac_prog
in cl.exe
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy
$ac_prog; ac_word
=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4775 $as_echo_n "(cached) " >&6
4777 if test -n "$ac_ct_CC"; then
4778 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir
=.
4785 for ac_exec_ext
in '' $ac_executable_extensions; do
4786 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_ac_ct_CC
="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4798 if test -n "$ac_ct_CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4800 $as_echo "$ac_ct_CC" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$ac_ct_CC" && break
4810 if test "x$ac_ct_CC" = x
; then
4813 case $cross_compiling:$ac_tool_warned in
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned
=yes ;;
4826 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4828 as_fn_error $?
"no acceptable C compiler found in \$PATH
4829 See \`config.log' for more details" "$LINENO" 5; }
4831 # Provide some information about the compiler.
4832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4835 for ac_option
in --version -v -V -qversion; do
4836 { { ac_try
="$ac_compiler $ac_option >&5"
4838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4845 if test -s conftest.err; then
4847 ... rest of stderr output deleted ...
4848 10q' conftest.err >conftest.er1
4849 cat conftest.er1 >&5
4851 rm -f conftest.er1 conftest.err
4852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4853 test $ac_status = 0; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4857 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4858 if ${ac_cv_c_compiler_gnu+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4875 if ac_fn_c_try_compile "$LINENO"; then :
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4885 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4886 if test $ac_compiler_gnu = yes; then
4891 ac_test_CFLAGS=${CFLAGS+set}
4892 ac_save_CFLAGS=$CFLAGS
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4894 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4895 if ${ac_cv_prog_cc_g+:} false; then :
4896 $as_echo_n "(cached) " >&6
4898 ac_save_c_werror_flag=$ac_c_werror_flag
4899 ac_c_werror_flag=yes
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4913 if ac_fn_c_try_compile "$LINENO"; then :
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4928 if ac_fn_c_try_compile "$LINENO"; then :
4931 ac_c_werror_flag=$ac_save_c_werror_flag
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4944 if ac_fn_c_try_compile "$LINENO"; then :
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_c_werror_flag=$ac_save_c_werror_flag
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4955 $as_echo "$ac_cv_prog_cc_g" >&6; }
4956 if test "$ac_test_CFLAGS" = set; then
4957 CFLAGS=$ac_save_CFLAGS
4958 elif test $ac_cv_prog_cc_g = yes; then
4959 if test "$GCC" = yes; then
4965 if test "$GCC" = yes; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4972 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4973 if ${ac_cv_prog_cc_c89+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_cv_prog_cc_c89=no
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4984 struct buf { int x; };
4985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4986 static char *e (p, i)
4992 static char *f (char * (*g) (char **, int), char **p, ...)
4997 s = g (p, va_arg (v,int));
5002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5003 function prototypes and stuff, but not '\xHH' hex character constants.
5004 These don't provoke an error unfortunately, instead are silently treated
5005 as 'x'. The following induces an error, until -std is added to get
5006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5007 array size at least. It's necessary to write '\x00'==0 to get something
5008 that's true only with -std. */
5009 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5012 inside strings and character constants. */
5014 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5016 int test (int i, double x);
5017 struct s1 {int (*f) (int a);};
5018 struct s2 {int (*f) (double a);};
5019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5025 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5033 CC="$ac_save_CC $ac_arg"
5034 if ac_fn_c_try_compile "$LINENO"; then :
5035 ac_cv_prog_cc_c89=$ac_arg
5037 rm -f core conftest.err conftest.$ac_objext
5038 test "x$ac_cv_prog_cc_c89" != "xno" && break
5040 rm -f conftest.$ac_ext
5045 case "x$ac_cv_prog_cc_c89" in
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5048 $as_echo "none needed" >&6; } ;;
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5051 $as_echo "unsupported" >&6; } ;;
5053 CC="$CC $ac_cv_prog_cc_c89"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5055 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5057 if test "x$ac_cv_prog_cc_c89" != xno; then :
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5073 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5074 if ${am_cv_prog_cc_c_o+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5088 # Make sure it works both with $CC and with simple cc.
5089 # Following AC_PROG_CC_C_O, we do the test twice because some
5090 # compilers refuse to overwrite an existing .o file with -o,
5091 # though they will create one.
5092 am_cv_prog_cc_c_o=yes
5094 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5095 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } \
5099 && test -f conftest2.$ac_objext; then
5102 am_cv_prog_cc_c_o=no
5106 rm -f core conftest*
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5110 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5111 if test "$am_cv_prog_cc_c_o" != yes; then
5112 # Losing compiler, so override with the script.
5113 # FIXME: It is wrong to rewrite CC.
5114 # But if we don't then we get into trouble of one sort or another.
5115 # A longer-term fix would be to have automake use am__CC in this case,
5116 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5117 CC="$am_aux_dir/compile $CC"
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5128 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 if test -n "$ac_tool_prefix"; then
5131 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_prog_GDC+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -n "$GDC"; then
5139 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 if test -n "$GDC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5161 $as_echo "$GDC" >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5169 if test -z "$ac_cv_prog_GDC"; then
5171 # Extract the first word of "gdc", so it can be a program name with args.
5172 set dummy gdc; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5176 $as_echo_n "(cached) " >&6
5178 if test -n "$ac_ct_GDC"; then
5179 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_ac_ct_GDC="gdc"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5199 if test -n "$ac_ct_GDC"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5201 $as_echo "$ac_ct_GDC" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5207 if test "x$ac_ct_GDC" = x; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214 ac_tool_warned=yes ;;
5219 GDC="$ac_cv_prog_GDC"
5222 if test -z "$GDC"; then
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if ${ac_cv_prog_GDC+:} false; then :
5229 $as_echo_n "(cached) " >&6
5231 if test -n "$GDC"; then
5232 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 if test -n "$GDC"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5254 $as_echo "$GDC" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5263 if test -z "$GDC"; then
5264 # Extract the first word of "gdc", so it can be a program name with args.
5265 set dummy gdc; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if ${ac_cv_prog_GDC+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if test -n "$GDC"; then
5272 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5283 ac_prog_rejected=yes
5286 ac_cv_prog_GDC="gdc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test $ac_prog_rejected = yes; then
5295 # We found a bogon in the path, so make sure we never use it.
5296 set dummy $ac_cv_prog_GDC
5298 if test $# != 0; then
5299 # We chose a different compiler from the bogus one.
5300 # However, it has the same basename, so the bogon will be chosen
5301 # first if we set GDC to just the basename; use the full file name.
5303 ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5309 if test -n "$GDC"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5311 $as_echo "$GDC" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5321 # Provide some information about the compiler.
5322 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5325 { { ac_try="$ac_compiler --version >&5"
5327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5328 *) ac_try_echo
=$ac_try;;
5330 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5331 $as_echo "$ac_try_echo"; } >&5
5332 (eval "$ac_compiler --version >&5") 2>conftest.err
5334 if test -s conftest.err
; then
5336 ... rest of stderr output deleted ...
5337 10q' conftest.err
>conftest.er1
5338 cat conftest.er1
>&5
5340 rm -f conftest.er1 conftest.err
5341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5342 test $ac_status = 0; }
5344 ac_cpp
='$CPP $CPPFLAGS'
5345 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5351 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5352 if ${phobos_cv_abs_srcdir+:} false
; then :
5353 $as_echo_n "(cached) " >&6
5355 phobos_cv_abs_srcdir
=`cd $srcdir && pwd`
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5358 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5359 if test -d "$phobos_cv_abs_srcdir"; then :
5362 as_fn_error $?
"can't find absolute libphobos source path" "$LINENO" 5
5368 gdc_save_DFLAGS
=$GDCFLAGS
5369 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
5372 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5373 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5377 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5378 cat > conftest.
$ac_ext <<_ACEOF
5382 extern(C) int main() {
5386 if ac_fn_d_try_compile
"$LINENO"; then :
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388 $as_echo "yes" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 as_fn_error $?
"can't compile D sources!" "$LINENO" 5
5394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5396 ac_cpp
='$CPP $CPPFLAGS'
5397 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5402 GDCFLAGS
=$gdc_save_DFLAGS
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5410 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5411 # Check whether --enable-maintainer-mode was given.
5412 if test "${enable_maintainer_mode+set}" = set; then :
5413 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
5415 USE_MAINTAINER_MODE
=no
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5419 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5420 if test $USE_MAINTAINER_MODE = yes; then
5421 MAINTAINER_MODE_TRUE
=
5422 MAINTAINER_MODE_FALSE
='#'
5424 MAINTAINER_MODE_TRUE
='#'
5425 MAINTAINER_MODE_FALSE
=
5428 MAINT
=$MAINTAINER_MODE_TRUE
5431 if test -n "$ac_tool_prefix"; then
5432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5433 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_RANLIB+:} false
; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$RANLIB"; then
5440 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir
=.
5447 for ac_exec_ext
in '' $ac_executable_extensions; do
5448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5449 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 RANLIB
=$ac_cv_prog_RANLIB
5460 if test -n "$RANLIB"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5462 $as_echo "$RANLIB" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test -z "$ac_cv_prog_RANLIB"; then
5471 ac_ct_RANLIB
=$RANLIB
5472 # Extract the first word of "ranlib", so it can be a program name with args.
5473 set dummy ranlib
; ac_word
=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5477 $as_echo_n "(cached) " >&6
5479 if test -n "$ac_ct_RANLIB"; then
5480 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5486 test -z "$as_dir" && as_dir
=.
5487 for ac_exec_ext
in '' $ac_executable_extensions; do
5488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5489 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5500 if test -n "$ac_ct_RANLIB"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5502 $as_echo "$ac_ct_RANLIB" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5508 if test "x$ac_ct_RANLIB" = x
; then
5511 case $cross_compiling:$ac_tool_warned in
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515 ac_tool_warned
=yes ;;
5517 RANLIB
=$ac_ct_RANLIB
5520 RANLIB
="$ac_cv_prog_RANLIB"
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5525 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5527 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5528 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 cat >conftest.
make <<\_ACEOF
5534 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5536 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5537 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5539 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5541 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5545 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547 $as_echo "yes" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 SET_MAKE
="MAKE=${MAKE-make}"
5556 # This should be inherited in the recursive make, but ensure it is defined.
5560 CC_FOR_BUILD
=${CC_FOR_BUILD:-gcc}
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5568 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5573 macro_version
='2.2.7a'
5574 macro_revision
='1.3134'
5588 ltmain
="$ac_aux_dir/ltmain.sh"
5590 # Backslashify metacharacters that are still active within
5591 # double-quoted strings.
5592 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5594 # Same as above, but do not quote variable references.
5595 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5597 # Sed substitution to delay expansion of an escaped shell variable in a
5598 # double_quote_subst'ed string.
5599 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5601 # Sed substitution to delay expansion of an escaped single quote.
5602 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5604 # Sed substitution to avoid accidental globbing in evaled expressions
5605 no_glob_subst
='s/\*/\\\*/g'
5607 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5608 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5609 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5612 $as_echo_n "checking how to print strings... " >&6; }
5613 # Test print first, because it will be a builtin if present.
5614 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5615 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5617 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5620 # Use this function as a fallback that always works.
5621 func_fallback_echo ()
5623 eval 'cat <<_LTECHO_EOF
5627 ECHO='func_fallback_echo
'
5630 # func_echo_all arg...
5631 # Invoke $ECHO with all args, space-separated.
5638 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5639 $as_echo "printf" >&6; } ;;
5640 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5641 $as_echo "print -r" >&6; } ;;
5642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5643 $as_echo "cat" >&6; } ;;
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5660 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5661 if ${ac_cv_path_SED+:} false; then :
5662 $as_echo_n "(cached) " >&6
5664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5665 for ac_i in 1 2 3 4 5 6 7; do
5666 ac_script="$ac_script$as_nl$ac_script"
5668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5669 { ac_script=; unset ac_script;}
5670 if test -z "$SED"; then
5671 ac_path_SED_found=false
5672 # Loop through the user's path and
test for each of PROGNAME-LIST
5673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir
=.
5678 for ac_prog
in sed gsed
; do
5679 for ac_exec_ext
in '' $ac_executable_extensions; do
5680 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5681 as_fn_executable_p
"$ac_path_SED" ||
continue
5682 # Check for GNU ac_path_SED and select it if it is found.
5683 # Check for GNU $ac_path_SED
5684 case `"$ac_path_SED" --version 2>&1` in
5686 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5689 $as_echo_n 0123456789 >"conftest.in"
5692 cat "conftest.in" "conftest.in" >"conftest.tmp"
5693 mv "conftest.tmp" "conftest.in"
5694 cp "conftest.in" "conftest.nl"
5695 $as_echo '' >> "conftest.nl"
5696 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5697 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5698 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5699 if test $ac_count -gt ${ac_path_SED_max-0}; then
5700 # Best one so far, save it but keep looking for a better one
5701 ac_cv_path_SED
="$ac_path_SED"
5702 ac_path_SED_max
=$ac_count
5704 # 10*(2^10) chars as input seems more than enough
5705 test $ac_count -gt 10 && break
5707 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5710 $ac_path_SED_found && break 3
5715 if test -z "$ac_cv_path_SED"; then
5716 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5724 $as_echo "$ac_cv_path_SED" >&6; }
5725 SED
="$ac_cv_path_SED"
5728 test -z "$SED" && SED
=sed
5729 Xsed
="$SED -e 1s/^X//"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5742 $as_echo_n "checking for fgrep... " >&6; }
5743 if ${ac_cv_path_FGREP+:} false
; then :
5744 $as_echo_n "(cached) " >&6
5746 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5747 then ac_cv_path_FGREP
="$GREP -F"
5749 if test -z "$FGREP"; then
5750 ac_path_FGREP_found
=false
5751 # Loop through the user's path and test for each of PROGNAME-LIST
5752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5753 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5756 test -z "$as_dir" && as_dir
=.
5757 for ac_prog
in fgrep
; do
5758 for ac_exec_ext
in '' $ac_executable_extensions; do
5759 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5760 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5761 # Check for GNU ac_path_FGREP and select it if it is found.
5762 # Check for GNU $ac_path_FGREP
5763 case `"$ac_path_FGREP" --version 2>&1` in
5765 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5768 $as_echo_n 0123456789 >"conftest.in"
5771 cat "conftest.in" "conftest.in" >"conftest.tmp"
5772 mv "conftest.tmp" "conftest.in"
5773 cp "conftest.in" "conftest.nl"
5774 $as_echo 'FGREP' >> "conftest.nl"
5775 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5776 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5777 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5778 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5779 # Best one so far, save it but keep looking for a better one
5780 ac_cv_path_FGREP
="$ac_path_FGREP"
5781 ac_path_FGREP_max
=$ac_count
5783 # 10*(2^10) chars as input seems more than enough
5784 test $ac_count -gt 10 && break
5786 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5789 $ac_path_FGREP_found && break 3
5794 if test -z "$ac_cv_path_FGREP"; then
5795 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5798 ac_cv_path_FGREP
=$FGREP
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5804 $as_echo "$ac_cv_path_FGREP" >&6; }
5805 FGREP
="$ac_cv_path_FGREP"
5808 test -z "$GREP" && GREP
=grep
5828 # Check whether --with-gnu-ld was given.
5829 if test "${with_gnu_ld+set}" = set; then :
5830 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5836 if test "$GCC" = yes; then
5837 # Check if gcc -print-prog-name=ld gives a path.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5839 $as_echo_n "checking for ld used by $CC... " >&6; }
5842 # gcc leaves a trailing carriage return which upsets mingw
5843 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5845 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5848 # Accept absolute paths.
5850 re_direlt
='/[^/][^/]*/\.\./'
5851 # Canonicalize the pathname of ld
5852 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5853 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5854 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5856 test -z "$LD" && LD
="$ac_prog"
5859 # If it fails, then pretend we aren't using GCC.
5863 # If it is relative, then search for the first ld in PATH.
5867 elif test "$with_gnu_ld" = yes; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5869 $as_echo_n "checking for GNU ld... " >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5872 $as_echo_n "checking for non-GNU ld... " >&6; }
5874 if ${lt_cv_path_LD+:} false
; then :
5875 $as_echo_n "(cached) " >&6
5877 if test -z "$LD"; then
5878 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5879 for ac_dir
in $PATH; do
5881 test -z "$ac_dir" && ac_dir
=.
5882 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5883 lt_cv_path_LD
="$ac_dir/$ac_prog"
5884 # Check to see if the program is GNU ld. I'd rather use --version,
5885 # but apparently some variants of GNU ld only accept -v.
5886 # Break only if it was the GNU/non-GNU ld that we prefer.
5887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5888 *GNU
* |
*'with BFD'*)
5889 test "$with_gnu_ld" != no
&& break
5892 test "$with_gnu_ld" != yes && break
5899 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5904 if test -n "$LD"; then
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5906 $as_echo "$LD" >&6; }
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5909 $as_echo "no" >&6; }
5911 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5913 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5914 if ${lt_cv_prog_gnu_ld+:} false
; then :
5915 $as_echo_n "(cached) " >&6
5917 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5918 case `$LD -v 2>&1 </dev/null` in
5919 *GNU
* |
*'with BFD'*)
5920 lt_cv_prog_gnu_ld
=yes
5923 lt_cv_prog_gnu_ld
=no
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5928 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5929 with_gnu_ld
=$lt_cv_prog_gnu_ld
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5940 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5941 if ${lt_cv_path_NM+:} false
; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$NM"; then
5945 # Let the user override the test.
5948 lt_nm_to_check
="${ac_tool_prefix}nm"
5949 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5950 lt_nm_to_check
="$lt_nm_to_check nm"
5952 for lt_tmp_nm
in $lt_nm_to_check; do
5953 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5954 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5956 test -z "$ac_dir" && ac_dir
=.
5957 tmp_nm
="$ac_dir/$lt_tmp_nm"
5958 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5959 # Check to see if the nm accepts a BSD-compat flag.
5960 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5961 # nm: unknown option "B" ignored
5962 # Tru64's nm complains that /dev/null is an invalid object file
5963 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5964 */dev
/null
* |
*'Invalid file or object type'*)
5965 lt_cv_path_NM
="$tmp_nm -B"
5969 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5971 lt_cv_path_NM
="$tmp_nm -p"
5975 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5976 continue # so that we can try to find one that supports BSD flags
5985 : ${lt_cv_path_NM=no}
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5989 $as_echo "$lt_cv_path_NM" >&6; }
5990 if test "$lt_cv_path_NM" != "no"; then
5993 # Didn't find any BSD compatible name lister, look for dumpbin.
5994 if test -n "$DUMPBIN"; then :
5995 # Let the user override the test.
5997 if test -n "$ac_tool_prefix"; then
5998 for ac_prog
in dumpbin
"link -dump"
6000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6001 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6005 $as_echo_n "(cached) " >&6
6007 if test -n "$DUMPBIN"; then
6008 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir
=.
6015 for ac_exec_ext
in '' $ac_executable_extensions; do
6016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6017 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 DUMPBIN
=$ac_cv_prog_DUMPBIN
6028 if test -n "$DUMPBIN"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6030 $as_echo "$DUMPBIN" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6037 test -n "$DUMPBIN" && break
6040 if test -z "$DUMPBIN"; then
6041 ac_ct_DUMPBIN
=$DUMPBIN
6042 for ac_prog
in dumpbin
"link -dump"
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045 set dummy
$ac_prog; ac_word
=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6049 $as_echo_n "(cached) " >&6
6051 if test -n "$ac_ct_DUMPBIN"; then
6052 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir
=.
6059 for ac_exec_ext
in '' $ac_executable_extensions; do
6060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6061 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6072 if test -n "$ac_ct_DUMPBIN"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6074 $as_echo "$ac_ct_DUMPBIN" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6081 test -n "$ac_ct_DUMPBIN" && break
6084 if test "x$ac_ct_DUMPBIN" = x
; then
6087 case $cross_compiling:$ac_tool_warned in
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned
=yes ;;
6093 DUMPBIN
=$ac_ct_DUMPBIN
6097 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6099 DUMPBIN
="$DUMPBIN -symbols"
6107 if test "$DUMPBIN" != ":"; then
6111 test -z "$NM" && NM
=nm
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6119 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6120 if ${lt_cv_nm_interface+:} false
; then :
6121 $as_echo_n "(cached) " >&6
6123 lt_cv_nm_interface
="BSD nm"
6124 echo "int some_variable = 0;" > conftest.
$ac_ext
6125 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6126 (eval "$ac_compile" 2>conftest.err
)
6127 cat conftest.err
>&5
6128 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6130 cat conftest.err
>&5
6131 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6132 cat conftest.out
>&5
6133 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6134 lt_cv_nm_interface
="MS dumpbin"
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6139 $as_echo "$lt_cv_nm_interface" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6142 $as_echo_n "checking whether ln -s works... " >&6; }
6144 if test "$LN_S" = "ln -s"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6146 $as_echo "yes" >&6; }
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6149 $as_echo "no, using $LN_S" >&6; }
6152 # find the maximum length of command line arguments
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6154 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6155 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6156 $as_echo_n "(cached) " >&6
6163 # On DJGPP, this test can blow up pretty badly due to problems in libc
6164 # (any single argument exceeding 2000 bytes causes a buffer overrun
6165 # during glob expansion). Even if it were fixed, the result of this
6166 # check would be larger than it should be.
6167 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6171 # Under GNU Hurd, this test is not required because there is
6172 # no limit to the length of command line arguments.
6173 # Libtool will interpret -1 as no limit whatsoever
6174 lt_cv_sys_max_cmd_len
=-1;
6177 cygwin
* | mingw
* | cegcc
*)
6178 # On Win9x/ME, this test blows up -- it succeeds, but takes
6179 # about 5 minutes as the teststring grows exponentially.
6180 # Worse, since 9x/ME are not pre-emptively multitasking,
6181 # you end up with a "frozen" computer, even though with patience
6182 # the test eventually succeeds (with a max line length of 256k).
6183 # Instead, let's just punt: use the minimum linelength reported by
6184 # all of the supported platforms: 8192 (on NT/2K/XP).
6185 lt_cv_sys_max_cmd_len
=8192;
6189 # On MiNT this can take a long time and run out of memory.
6190 lt_cv_sys_max_cmd_len
=8192;
6194 # On AmigaOS with pdksh, this test takes hours, literally.
6195 # So we just punt and use a minimum line length of 8192.
6196 lt_cv_sys_max_cmd_len
=8192;
6199 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6200 # This has been around since 386BSD, at least. Likely further.
6201 if test -x /sbin
/sysctl
; then
6202 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6203 elif test -x /usr
/sbin
/sysctl
; then
6204 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6206 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6208 # And add a safety zone
6209 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6214 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215 lt_cv_sys_max_cmd_len
=196608
6219 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221 # nice to cause kernel panics so lets avoid the loop below.
6222 # First set a reasonable default.
6223 lt_cv_sys_max_cmd_len
=16384
6225 if test -x /sbin
/sysconfig
; then
6226 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6232 lt_cv_sys_max_cmd_len
=102400
6234 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6235 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236 if test -n "$kargmax"; then
6237 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6239 lt_cv_sys_max_cmd_len
=32768
6243 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6244 if test -n "$lt_cv_sys_max_cmd_len"; then
6245 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6248 # Make teststring a little bigger before we do anything with it.
6249 # a 1K string should be a reasonable start.
6250 for i
in 1 2 3 4 5 6 7 8 ; do
6251 teststring
=$teststring$teststring
6253 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254 # If test is not a shell built-in, we'll probably end up computing a
6255 # maximum length that is only half of the actual maximum length, but
6257 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6258 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6259 test $i != 17 # 1/2 MB should be enough
6262 teststring
=$teststring$teststring
6264 # Only check the string length outside the loop.
6265 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6267 # Add a significant safety factor because C++ compilers can tack on
6268 # massive amounts of additional arguments before passing them to the
6269 # linker. It appears as though 1/2 is a usable value.
6270 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6282 $as_echo "none" >&6; }
6284 max_cmd_len
=$lt_cv_sys_max_cmd_len
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6300 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6302 && eval 'test $(( 1 + 1 )) -eq 2 \
6303 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6312 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6314 && lt_shell_append=yes
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331 A) # ASCII based system
6332 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333 lt_SP2NL='tr \040 \012'
6334 lt_NL2SP='tr \015\012 \040\040'
6336 *) # EBCDIC based system
6337 lt_SP2NL='tr \100 \n'
6338 lt_NL2SP='tr \r\n \100\100'
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6351 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6352 if ${lt_cv_ld_reload_flag+:} false; then :
6353 $as_echo_n "(cached
) " >&6
6355 lt_cv_ld_reload_flag='-r'
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6362 *) reload_flag=" $reload_flag" ;;
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6367 if test "$GCC" = yes; then
6368 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6370 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6387 $as_echo_n "checking
for $ac_word...
" >&6; }
6388 if ${ac_cv_prog_OBJDUMP+:} false; then :
6389 $as_echo_n "(cached
) " >&6
6391 if test -n "$OBJDUMP"; then
6392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6417 $as_echo "no
" >&6; }
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423 ac_ct_OBJDUMP=$OBJDUMP
6424 # Extract the first word of "objdump
", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6427 $as_echo_n "checking
for $ac_word...
" >&6; }
6428 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6429 $as_echo_n "(cached
) " >&6
6431 if test -n "$ac_ct_OBJDUMP"; then
6432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6441 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6457 $as_echo "no
" >&6; }
6460 if test "x
$ac_ct_OBJDUMP" = x; then
6463 case $cross_compiling:$ac_tool_warned in
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6466 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6467 ac_tool_warned=yes ;;
6469 OBJDUMP=$ac_ct_OBJDUMP
6472 OBJDUMP="$ac_cv_prog_OBJDUMP"
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6486 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6487 if ${lt_cv_deplibs_check_method+:} false; then :
6488 $as_echo_n "(cached
) " >&6
6490 lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6506 lt_cv_deplibs_check_method=pass_all
6510 lt_cv_deplibs_check_method=pass_all
6514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515 lt_cv_file_magic_cmd='/usr/bin/file -L'
6516 lt_cv_file_magic_test_file=/shlib/libc.so
6520 # func_win32_libid is a shell function defined in ltmain.sh
6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522 lt_cv_file_magic_cmd='func_win32_libid'
6526 # Base MSYS/MinGW do not provide the 'file' command needed by
6527 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528 # unless we find 'file', for example because we are cross-compiling.
6529 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6530 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6532 lt_cv_file_magic_cmd='func_win32_libid'
6534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6535 lt_cv_file_magic_cmd='$OBJDUMP -f'
6540 # use the weaker test based on 'objdump'. See mingw*.
6541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6542 lt_cv_file_magic_cmd='$OBJDUMP -f'
6545 darwin* | rhapsody*)
6546 lt_cv_deplibs_check_method=pass_all
6549 freebsd* | dragonfly*)
6550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6553 # Not sure whether the presence of OpenBSD here was a mistake.
6554 # Let's accept both of them until this is cleared up.
6555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6556 lt_cv_file_magic_cmd=/usr/bin/file
6557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6561 lt_cv_deplibs_check_method=pass_all
6566 lt_cv_deplibs_check_method=pass_all
6570 lt_cv_deplibs_check_method=pass_all
6573 hpux10.20* | hpux11*)
6574 lt_cv_file_magic_cmd=/usr/bin/file
6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6581 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]'
6582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6596 irix5* | irix6* | nonstopux*)
6598 *-32|*"-32 ") libmagic=32-bit;;
6599 *-n32|*"-n32 ") libmagic=N32;;
6600 *-64|*"-64 ") libmagic=64-bit;;
6601 *) libmagic=never-match;;
6603 lt_cv_deplibs_check_method=pass_all
6606 # This must be Linux ELF.
6607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6608 lt_cv_deplibs_check_method=pass_all
6612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6621 lt_cv_file_magic_cmd=/usr/bin/file
6622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6626 lt_cv_deplibs_check_method=pass_all
6630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6637 osf3* | osf4* | osf5*)
6638 lt_cv_deplibs_check_method=pass_all
6642 lt_cv_deplibs_check_method=pass_all
6646 lt_cv_deplibs_check_method=pass_all
6649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6650 lt_cv_deplibs_check_method=pass_all
6654 case $host_vendor in
6656 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]'
6657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6660 lt_cv_deplibs_check_method=pass_all
6663 lt_cv_file_magic_cmd='/bin/file'
6664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6669 lt_cv_file_magic_test_file=/lib/libc.so
6672 lt_cv_deplibs_check_method=pass_all
6675 lt_cv_deplibs_check_method=pass_all
6681 lt_cv_deplibs_check_method=pass_all
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6688 file_magic_cmd=$lt_cv_file_magic_cmd
6689 deplibs_check_method=$lt_cv_deplibs_check_method
6690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}ar; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6707 $as_echo_n "checking
for $ac_word...
" >&6; }
6708 if ${ac_cv_prog_AR+:} false; then :
6709 $as_echo_n "(cached
) " >&6
6711 if test -n "$AR"; then
6712 ac_cv_prog_AR="$AR" # Let the user override the test.
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_AR="${ac_tool_prefix}ar"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6732 if test -n "$AR"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6734 $as_echo "$AR" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6737 $as_echo "no
" >&6; }
6742 if test -z "$ac_cv_prog_AR"; then
6744 # Extract the first word of "ar", so it can be a program name with args.
6745 set dummy ar; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6747 $as_echo_n "checking
for $ac_word...
" >&6; }
6748 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6749 $as_echo_n "(cached
) " >&6
6751 if test -n "$ac_ct_AR"; then
6752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_AR="ar"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6772 if test -n "$ac_ct_AR"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6774 $as_echo "$ac_ct_AR" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6777 $as_echo "no
" >&6; }
6780 if test "x
$ac_ct_AR" = x; then
6783 case $cross_compiling:$ac_tool_warned in
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6786 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6787 ac_tool_warned=yes ;;
6795 test -z "$AR" && AR=ar
6796 test -z "$AR_FLAGS" && AR_FLAGS=cru
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}strip; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6812 $as_echo_n "checking
for $ac_word...
" >&6; }
6813 if ${ac_cv_prog_STRIP+:} false; then :
6814 $as_echo_n "(cached
) " >&6
6816 if test -n "$STRIP"; then
6817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6836 STRIP=$ac_cv_prog_STRIP
6837 if test -n "$STRIP"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6839 $as_echo "$STRIP" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6842 $as_echo "no
" >&6; }
6847 if test -z "$ac_cv_prog_STRIP"; then
6849 # Extract the first word of "strip
", so it can be a program name with args.
6850 set dummy strip; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6852 $as_echo_n "checking
for $ac_word...
" >&6; }
6853 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6854 $as_echo_n "(cached
) " >&6
6856 if test -n "$ac_ct_STRIP"; then
6857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_STRIP="strip
"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6876 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6877 if test -n "$ac_ct_STRIP"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6879 $as_echo "$ac_ct_STRIP" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6882 $as_echo "no
" >&6; }
6885 if test "x
$ac_ct_STRIP" = x; then
6888 case $cross_compiling:$ac_tool_warned in
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6891 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6892 ac_tool_warned=yes ;;
6897 STRIP="$ac_cv_prog_STRIP"
6900 test -z "$STRIP" && STRIP=:
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6911 $as_echo_n "checking
for $ac_word...
" >&6; }
6912 if ${ac_cv_prog_RANLIB+:} false; then :
6913 $as_echo_n "(cached
) " >&6
6915 if test -n "$RANLIB"; then
6916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6935 RANLIB=$ac_cv_prog_RANLIB
6936 if test -n "$RANLIB"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6938 $as_echo "$RANLIB" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6941 $as_echo "no
" >&6; }
6946 if test -z "$ac_cv_prog_RANLIB"; then
6947 ac_ct_RANLIB=$RANLIB
6948 # Extract the first word of "ranlib
", so it can be a program name with args.
6949 set dummy ranlib; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6951 $as_echo_n "checking
for $ac_word...
" >&6; }
6952 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6953 $as_echo_n "(cached
) " >&6
6955 if test -n "$ac_ct_RANLIB"; then
6956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6965 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6975 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6976 if test -n "$ac_ct_RANLIB"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6978 $as_echo "$ac_ct_RANLIB" >&6; }
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6981 $as_echo "no
" >&6; }
6984 if test "x
$ac_ct_RANLIB" = x; then
6987 case $cross_compiling:$ac_tool_warned in
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6990 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6991 ac_tool_warned=yes ;;
6993 RANLIB=$ac_ct_RANLIB
6996 RANLIB="$ac_cv_prog_RANLIB"
6999 test -z "$RANLIB" && RANLIB=:
7006 # Determine commands to create old-style static archives.
7007 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7008 old_postinstall_cmds='chmod 644 $oldlib'
7009 old_postuninstall_cmds=
7011 if test -n "$RANLIB"; then
7014 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7017 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7020 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7025 lock_old_archive_extraction=yes ;;
7027 lock_old_archive_extraction=no ;;
7068 # If no C compiler was specified, use CC.
7071 # If no C compiler flags were specified, use CFLAGS.
7072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7074 # Allow CC to be a program name with arguments.
7078 # Check for command to grab the raw symbol name followed by C symbol from nm.
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7080 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7081 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7082 $as_echo_n "(cached
) " >&6
7085 # These are sane defaults that work on at least a few old systems.
7086 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7088 # Character class describing NM global symbol codes.
7089 symcode='[BCDEGRST]'
7091 # Regexp to match symbols that can be accessed directly from C.
7092 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7094 # Define system-specific variables.
7099 cygwin* | mingw* | pw32* | cegcc*)
7100 symcode='[ABCDGISTW]'
7103 if test "$host_cpu" = ia64; then
7104 symcode='[ABCDEGRST]'
7108 symcode='[BCDEGRST]'
7111 symcode='[BCDEGQRST]'
7122 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7130 # If we're using GNU nm, then use its standard symbol codes.
7131 case `$NM -V 2>&1` in
7132 *GNU* | *'with BFD'*)
7133 symcode='[ABCDGIRSTW]' ;;
7136 # Transform an extracted symbol line into a proper C declaration.
7137 # Some systems (esp. on ia64) link data and code symbols differently,
7138 # so use this general approach.
7139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7141 # Transform an extracted symbol line into symbol name and symbol address
7142 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7143 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'"
7145 # Handle CRLF in mingw tool chain
7149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7153 # Try without a prefix underscore, then with it.
7154 for ac_symprfx in "" "_
"; do
7156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7157 symxfrm="\\1 $ac_symprfx\\2 \\2"
7159 # Write the raw and C identifiers.
7160 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7161 # Fake it for dumpbin and say T for any non-static function
7162 # and D for any global variable.
7163 # Also find C++ and __fastcall symbols from MSVC++,
7164 # which start with @ or ?.
7165 lt_cv_sys_global_symbol_pipe="$AWK '"\
7166 " {last_section=section; section=\$ 3};"\
7167 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7168 " \$ 0!~/External *\|/{next};"\
7169 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7170 " {if(hide[section]) next};"\
7171 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7172 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7173 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7174 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7175 " ' prfx
=^
$ac_symprfx"
7177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7180 # Check to see that the pipe works correctly.
7184 cat > conftest.$ac_ext <<_LT_EOF
7189 void nm_test_func(void);
7190 void nm_test_func(void){}
7194 int main(){nm_test_var='a';nm_test_func();return(0);}
7197 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198 (eval $ac_compile) 2>&5
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7201 test $ac_status = 0; }; then
7202 # Now try to grab the symbols.
7204 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7208 test $ac_status = 0; } && test -s "$nlist"; then
7209 # Try sorting and uniquifying the output.
7210 if sort "$nlist" | uniq > "$nlist"T; then
7211 mv -f "$nlist"T "$nlist"
7216 # Make sure that we snagged all the symbols we need.
7217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7219 cat <<_LT_EOF > conftest.$ac_ext
7225 # Now generate the symbol file.
7226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7228 cat <<_LT_EOF >> conftest.$ac_ext
7230 /* The mapping between symbol names and symbols. */
7235 lt__PROGRAM__LTX_preloaded_symbols[] =
7237 { "@PROGRAM@
", (void *) 0 },
7239 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7240 cat <<\_LT_EOF >> conftest.$ac_ext
7244 /* This works around a problem in FreeBSD linker */
7245 #ifdef FREEBSD_WORKAROUND
7246 static const void *lt_preloaded_setup() {
7247 return lt__PROGRAM__LTX_preloaded_symbols;
7255 # Now try linking the two files.
7256 mv conftest.$ac_objext conftstm.$ac_objext
7257 lt_save_LIBS="$LIBS"
7258 lt_save_CFLAGS="$CFLAGS"
7259 LIBS="conftstm.
$ac_objext"
7260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7261 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7262 (eval $ac_link) 2>&5
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7265 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7268 LIBS="$lt_save_LIBS"
7269 CFLAGS="$lt_save_CFLAGS"
7271 echo "cannot
find nm_test_func
in $nlist" >&5
7274 echo "cannot
find nm_test_var
in $nlist" >&5
7277 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7280 echo "$progname: failed program was
:" >&5
7281 cat conftest.$ac_ext >&5
7283 rm -rf conftest* conftst*
7285 # Do not use the global_symbol_pipe unless it works.
7286 if test "$pipe_works" = yes; then
7289 lt_cv_sys_global_symbol_pipe=
7295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7296 lt_cv_sys_global_symbol_to_cdecl=
7298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7300 $as_echo "failed
" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7303 $as_echo "ok
" >&6; }
7327 # Check whether --enable-libtool-lock was given.
7328 if test "${enable_libtool_lock+set}" = set; then :
7329 enableval=$enable_libtool_lock;
7332 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7334 # Some flags need to be propagated to the compiler or linker for good
7338 # Find out which ABI we are using.
7339 echo 'int i;' > conftest.$ac_ext
7340 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341 (eval $ac_compile) 2>&5
7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7344 test $ac_status = 0; }; then
7345 case `/usr/bin/file conftest.$ac_objext` in
7357 # Find out which ABI we are using.
7358 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7359 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7360 (eval $ac_compile) 2>&5
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7363 test $ac_status = 0; }; then
7364 if test "$lt_cv_prog_gnu_ld" = yes; then
7365 case `/usr/bin/file conftest.$ac_objext` in
7367 LD="${LD-ld} -melf32bsmip"
7370 LD="${LD-ld} -melf32bmipn32"
7373 LD="${LD-ld} -melf64bmip"
7377 case `/usr/bin/file conftest.$ac_objext` in
7393 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7394 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7395 # Find out which ABI we are using.
7396 echo 'int i;' > conftest.$ac_ext
7397 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7398 (eval $ac_compile) 2>&5
7400 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7401 test $ac_status = 0; }; then
7402 case `/usr/bin/file conftest.o` in
7405 x86_64-*kfreebsd*-gnu)
7406 LD="${LD-ld} -m elf_i386_fbsd
"
7409 case `/usr/bin/file conftest.o` in
7411 LD="${LD-ld} -m elf32_x86_64
"
7414 LD="${LD-ld} -m elf_i386
"
7418 powerpc64le-*linux*)
7419 LD="${LD-ld} -m elf32lppclinux
"
7422 LD="${LD-ld} -m elf32ppclinux
"
7425 LD="${LD-ld} -m elf_s390
"
7428 LD="${LD-ld} -m elf32_sparc
"
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_x86_64_fbsd
"
7438 LD="${LD-ld} -m elf_x86_64
"
7441 LD="${LD-ld} -m elf64lppc
"
7444 LD="${LD-ld} -m elf64ppc
"
7446 s390*-*linux*|s390*-*tpf*)
7447 LD="${LD-ld} -m elf64_s390
"
7450 LD="${LD-ld} -m elf64_sparc
"
7460 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7461 SAVE_CFLAGS="$CFLAGS"
7462 CFLAGS="$CFLAGS -belf"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7464 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7465 if ${lt_cv_cc_needs_belf+:} false; then :
7466 $as_echo_n "(cached
) " >&6
7469 ac_cpp='$CPP $CPPFLAGS'
7470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 lt_cv_cc_needs_belf=yes
7488 lt_cv_cc_needs_belf=no
7490 rm -f core conftest.err conftest.$ac_objext \
7491 conftest$ac_exeext conftest.$ac_ext
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7500 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7501 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7502 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7503 CFLAGS="$SAVE_CFLAGS"
7507 # Find out which ABI we are using.
7508 echo 'int i;' > conftest.$ac_ext
7509 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7510 (eval $ac_compile) 2>&5
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7513 test $ac_status = 0; }; then
7514 case `/usr/bin/file conftest.o` in
7516 case $lt_cv_prog_gnu_ld in
7517 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7519 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7531 need_locks="$enable_libtool_lock"
7535 rhapsody* | darwin*)
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7540 $as_echo_n "checking
for $ac_word...
" >&6; }
7541 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7542 $as_echo_n "(cached
) " >&6
7544 if test -n "$DSYMUTIL"; then
7545 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7564 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7565 if test -n "$DSYMUTIL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7567 $as_echo "$DSYMUTIL" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7570 $as_echo "no
" >&6; }
7575 if test -z "$ac_cv_prog_DSYMUTIL"; then
7576 ac_ct_DSYMUTIL=$DSYMUTIL
7577 # Extract the first word of "dsymutil
", so it can be a program name with args.
7578 set dummy dsymutil; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7580 $as_echo_n "checking
for $ac_word...
" >&6; }
7581 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7582 $as_echo_n "(cached
) " >&6
7584 if test -n "$ac_ct_DSYMUTIL"; then
7585 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7604 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7605 if test -n "$ac_ct_DSYMUTIL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7607 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7610 $as_echo "no
" >&6; }
7613 if test "x
$ac_ct_DSYMUTIL" = x; then
7616 case $cross_compiling:$ac_tool_warned in
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7619 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7620 ac_tool_warned=yes ;;
7622 DSYMUTIL=$ac_ct_DSYMUTIL
7625 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7632 $as_echo_n "checking
for $ac_word...
" >&6; }
7633 if ${ac_cv_prog_NMEDIT+:} false; then :
7634 $as_echo_n "(cached
) " >&6
7636 if test -n "$NMEDIT"; then
7637 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7656 NMEDIT=$ac_cv_prog_NMEDIT
7657 if test -n "$NMEDIT"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7659 $as_echo "$NMEDIT" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7662 $as_echo "no
" >&6; }
7667 if test -z "$ac_cv_prog_NMEDIT"; then
7668 ac_ct_NMEDIT=$NMEDIT
7669 # Extract the first word of "nmedit
", so it can be a program name with args.
7670 set dummy nmedit; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7672 $as_echo_n "checking
for $ac_word...
" >&6; }
7673 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7674 $as_echo_n "(cached
) " >&6
7676 if test -n "$ac_ct_NMEDIT"; then
7677 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7696 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7697 if test -n "$ac_ct_NMEDIT"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7699 $as_echo "$ac_ct_NMEDIT" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7702 $as_echo "no
" >&6; }
7705 if test "x
$ac_ct_NMEDIT" = x; then
7708 case $cross_compiling:$ac_tool_warned in
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7711 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7712 ac_tool_warned=yes ;;
7714 NMEDIT=$ac_ct_NMEDIT
7717 NMEDIT="$ac_cv_prog_NMEDIT"
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7724 $as_echo_n "checking
for $ac_word...
" >&6; }
7725 if ${ac_cv_prog_LIPO+:} false; then :
7726 $as_echo_n "(cached
) " >&6
7728 if test -n "$LIPO"; then
7729 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7748 LIPO=$ac_cv_prog_LIPO
7749 if test -n "$LIPO"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7751 $as_echo "$LIPO" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7754 $as_echo "no
" >&6; }
7759 if test -z "$ac_cv_prog_LIPO"; then
7761 # Extract the first word of "lipo
", so it can be a program name with args.
7762 set dummy lipo; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7764 $as_echo_n "checking
for $ac_word...
" >&6; }
7765 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7766 $as_echo_n "(cached
) " >&6
7768 if test -n "$ac_ct_LIPO"; then
7769 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_ac_ct_LIPO="lipo
"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7788 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7789 if test -n "$ac_ct_LIPO"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7791 $as_echo "$ac_ct_LIPO" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7794 $as_echo "no
" >&6; }
7797 if test "x
$ac_ct_LIPO" = x; then
7800 case $cross_compiling:$ac_tool_warned in
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7803 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7804 ac_tool_warned=yes ;;
7809 LIPO="$ac_cv_prog_LIPO"
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}otool; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7816 $as_echo_n "checking
for $ac_word...
" >&6; }
7817 if ${ac_cv_prog_OTOOL+:} false; then :
7818 $as_echo_n "(cached
) " >&6
7820 if test -n "$OTOOL"; then
7821 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7840 OTOOL=$ac_cv_prog_OTOOL
7841 if test -n "$OTOOL"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7843 $as_echo "$OTOOL" >&6; }
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7846 $as_echo "no
" >&6; }
7851 if test -z "$ac_cv_prog_OTOOL"; then
7853 # Extract the first word of "otool
", so it can be a program name with args.
7854 set dummy otool; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7856 $as_echo_n "checking
for $ac_word...
" >&6; }
7857 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7858 $as_echo_n "(cached
) " >&6
7860 if test -n "$ac_ct_OTOOL"; then
7861 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_ac_ct_OTOOL="otool
"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7880 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7881 if test -n "$ac_ct_OTOOL"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7883 $as_echo "$ac_ct_OTOOL" >&6; }
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7886 $as_echo "no
" >&6; }
7889 if test "x
$ac_ct_OTOOL" = x; then
7892 case $cross_compiling:$ac_tool_warned in
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7895 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7896 ac_tool_warned=yes ;;
7901 OTOOL="$ac_cv_prog_OTOOL"
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7908 $as_echo_n "checking
for $ac_word...
" >&6; }
7909 if ${ac_cv_prog_OTOOL64+:} false; then :
7910 $as_echo_n "(cached
) " >&6
7912 if test -n "$OTOOL64"; then
7913 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7923 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7932 OTOOL64=$ac_cv_prog_OTOOL64
7933 if test -n "$OTOOL64"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7935 $as_echo "$OTOOL64" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7938 $as_echo "no
" >&6; }
7943 if test -z "$ac_cv_prog_OTOOL64"; then
7944 ac_ct_OTOOL64=$OTOOL64
7945 # Extract the first word of "otool64
", so it can be a program name with args.
7946 set dummy otool64; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7948 $as_echo_n "checking
for $ac_word...
" >&6; }
7949 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7950 $as_echo_n "(cached
) " >&6
7952 if test -n "$ac_ct_OTOOL64"; then
7953 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7972 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7973 if test -n "$ac_ct_OTOOL64"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7975 $as_echo "$ac_ct_OTOOL64" >&6; }
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7978 $as_echo "no
" >&6; }
7981 if test "x
$ac_ct_OTOOL64" = x; then
7984 case $cross_compiling:$ac_tool_warned in
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7987 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7988 ac_tool_warned=yes ;;
7990 OTOOL64=$ac_ct_OTOOL64
7993 OTOOL64="$ac_cv_prog_OTOOL64"
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8023 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8024 if ${lt_cv_apple_cc_single_mod+:} false; then :
8025 $as_echo_n "(cached
) " >&6
8027 lt_cv_apple_cc_single_mod=no
8028 if test -z "${LT_MULTI_MODULE}"; then
8029 # By default we will add the -single_module flag. You can override
8030 # by either setting the environment variable LT_MULTI_MODULE
8031 # non-empty at configure time, or by adding -multi_module to the
8033 rm -rf libconftest.dylib*
8034 echo "int foo
(void
){return 1;}" > conftest.c
8035 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8036 -dynamiclib -Wl,-single_module conftest.c
" >&5
8037 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8038 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8040 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8041 lt_cv_apple_cc_single_mod=yes
8043 cat conftest.err >&5
8045 rm -rf libconftest.dylib*
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8050 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8052 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8053 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8054 $as_echo_n "(cached
) " >&6
8056 lt_cv_ld_exported_symbols_list=no
8057 save_LDFLAGS=$LDFLAGS
8058 echo "_main
" > conftest.sym
8059 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8071 if ac_fn_c_try_link "$LINENO"; then :
8072 lt_cv_ld_exported_symbols_list=yes
8074 lt_cv_ld_exported_symbols_list=no
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext conftest.$ac_ext
8078 LDFLAGS="$save_LDFLAGS"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8082 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8084 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8085 if ${lt_cv_ld_force_load+:} false; then :
8086 $as_echo_n "(cached
) " >&6
8088 lt_cv_ld_force_load=no
8089 cat > conftest.c << _LT_EOF
8090 int forced_loaded() { return 2;}
8092 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8093 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8094 echo "$AR cru libconftest.a conftest.o
" >&5
8095 $AR cru libconftest.a conftest.o 2>&5
8096 cat > conftest.c << _LT_EOF
8097 int main() { return 0;}
8099 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8100 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8102 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8103 lt_cv_ld_force_load=yes
8105 cat conftest.err >&5
8107 rm -f conftest.err libconftest.a conftest conftest.c
8108 rm -rf conftest.dSYM
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8112 $as_echo "$lt_cv_ld_force_load" >&6; }
8114 rhapsody* | darwin1.[012])
8115 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8117 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8118 darwin*) # darwin 5.x on
8119 # if running on 10.5 or later, the deployment target defaults
8120 # to the OS version, if on x86, and 10.4, the deployment
8121 # target defaults to 10.4. Don't you love it?
8122 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8123 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8126 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8132 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8133 _lt_dar_single_mod='$single_module'
8135 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8136 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8138 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8140 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8141 _lt_dsymutil='~$DSYMUTIL $lib || :'
8148 for ac_header in dlfcn.h
8150 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8152 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_DLFCN_H 1
8174 # Check whether --enable-shared was given.
8175 if test "${enable_shared+set}" = set; then :
8176 enableval=$enable_shared; p=${PACKAGE-default}
8178 yes) enable_shared=yes ;;
8179 no) enable_shared=no ;;
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8186 if test "X
$pkg" = "X
$p"; then
8205 # Check whether --enable-static was given.
8206 if test "${enable_static+set}" = set; then :
8207 enableval=$enable_static; p=${PACKAGE-default}
8209 yes) enable_static=yes ;;
8210 no) enable_static=no ;;
8213 # Look at the argument we got. We use all the common list separators.
8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8215 for pkg in $enableval; do
8217 if test "X
$pkg" = "X
$p"; then
8237 # Check whether --with-pic was given.
8238 if test "${with_pic+set}" = set; then :
8239 withval=$with_pic; pic_mode="$withval"
8245 test -z "$pic_mode" && pic_mode=default
8253 # Check whether --enable-fast-install was given.
8254 if test "${enable_fast_install+set}" = set; then :
8255 enableval=$enable_fast_install; p=${PACKAGE-default}
8257 yes) enable_fast_install=yes ;;
8258 no) enable_fast_install=no ;;
8260 enable_fast_install=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 for pkg in $enableval; do
8265 if test "X
$pkg" = "X
$p"; then
8266 enable_fast_install=yes
8273 enable_fast_install=yes
8286 # This can be used to rebuild libtool when needed
8287 LIBTOOL_DEPS="$ltmain"
8289 # Always use our own libtool.
8290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8317 test -z "$LN_S" && LN_S="ln -s"
8332 if test -n "${ZSH_VERSION+set}" ; then
8333 setopt NO_GLOB_SUBST
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8337 $as_echo_n "checking
for objdir...
" >&6; }
8338 if ${lt_cv_objdir+:} false; then :
8339 $as_echo_n "(cached
) " >&6
8341 rm -f .libs 2>/dev/null
8342 mkdir .libs 2>/dev/null
8343 if test -d .libs; then
8346 # MS-DOS does not allow filenames that begin with a dot.
8349 rmdir .libs 2>/dev/null
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8352 $as_echo "$lt_cv_objdir" >&6; }
8353 objdir=$lt_cv_objdir
8359 cat >>confdefs.h <<_ACEOF
8360 #define LT_OBJDIR "$lt_cv_objdir/"
8368 # AIX sometimes has problems with the GCC collect2 program. For some
8369 # reason, if we set the COLLECT_NAMES environment variable, the problems
8370 # vanish in a puff of smoke.
8371 if test "X
${COLLECT_NAMES+set}" != Xset; then
8373 export COLLECT_NAMES
8380 can_build_shared=yes
8382 # All known linkers require a `.a' archive for static linking (except MSVC,
8383 # which needs '.lib').
8386 with_gnu_ld="$lt_cv_prog_gnu_ld"
8389 old_CFLAGS="$CFLAGS"
8391 # Set sane defaults for various variables
8392 test -z "$CC" && CC=cc
8393 test -z "$LTCC" && LTCC=$CC
8394 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8395 test -z "$LD" && LD=ld
8396 test -z "$ac_objext" && ac_objext=o
8398 for cc_temp in $compiler""; do
8400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8406 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8409 # Only perform the check for file, if the check method requires it
8410 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8411 case $deplibs_check_method in
8413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8415 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8416 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8417 $as_echo_n "(cached
) " >&6
8421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8424 lt_save_MAGIC_CMD="$MAGIC_CMD"
8425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8426 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8427 for ac_dir in $ac_dummy; do
8429 test -z "$ac_dir" && ac_dir=.
8430 if test -f $ac_dir/${ac_tool_prefix}file; then
8431 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8432 if test -n "$file_magic_test_file"; then
8433 case $deplibs_check_method in
8435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8438 $EGREP "$file_magic_regex" > /dev/null; then
8443 *** Warning: the command libtool uses to detect shared libraries,
8444 *** $file_magic_cmd, produces output that libtool cannot recognize.
8445 *** The result is that libtool may fail to recognize shared libraries
8446 *** as such. This will affect the creation of libtool libraries that
8447 *** depend on shared libraries, but programs linked with such libtool
8448 *** libraries will work regardless of this problem. Nevertheless, you
8449 *** may want to report the problem to your system manager and/or to
8450 *** bug-libtool@gnu.org
8460 MAGIC_CMD="$lt_save_MAGIC_CMD"
8465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8466 if test -n "$MAGIC_CMD"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8468 $as_echo "$MAGIC_CMD" >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8471 $as_echo "no
" >&6; }
8478 if test -z "$lt_cv_path_MAGIC_CMD"; then
8479 if test -n "$ac_tool_prefix"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8481 $as_echo_n "checking
for file...
" >&6; }
8482 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8483 $as_echo_n "(cached
) " >&6
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8509 *** Warning: the command libtool uses to detect shared libraries,
8510 *** $file_magic_cmd, produces output that libtool cannot recognize.
8511 *** The result is that libtool may fail to recognize shared libraries
8512 *** as such. This will affect the creation of libtool libraries that
8513 *** depend on shared libraries, but programs linked with such libtool
8514 *** libraries will work regardless of this problem. Nevertheless, you
8515 *** may want to report the problem to your system manager and/or to
8516 *** bug-libtool@gnu.org
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if test -n "$MAGIC_CMD"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8534 $as_echo "$MAGIC_CMD" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8537 $as_echo "no
" >&6; }
8550 # Use C for the default configuration in the libtool script
8554 ac_cpp='$CPP $CPPFLAGS'
8555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560 # Source file extension for C test sources.
8563 # Object file extension for compiled C test sources.
8567 # Code to be used in simple compile tests
8568 lt_simple_compile_test_code="int some_variable
= 0;"
8570 # Code to be used in simple link tests
8571 lt_simple_link_test_code='int main(){return(0);}'
8579 # If no C compiler was specified, use CC.
8582 # If no C compiler flags were specified, use CFLAGS.
8583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8585 # Allow CC to be a program name with arguments.
8588 # Save the default compiler, since it gets overwritten when the other
8589 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8590 compiler_DEFAULT=$CC
8592 # save warnings/boilerplate of simple test code
8593 ac_outfile=conftest.$ac_objext
8594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8596 _lt_compiler_boilerplate=`cat conftest.err`
8599 ac_outfile=conftest.$ac_objext
8600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8602 _lt_linker_boilerplate=`cat conftest.err`
8607 ## There is no encapsulation within the following macros, do not change
8608 ## the running order or otherwise move them around unless you know exactly
8609 ## what you are doing...
8610 if test -n "$compiler"; then
8612 lt_prog_compiler_no_builtin_flag=
8614 if test "$GCC" = yes; then
8615 case $cc_basename in
8617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8623 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8625 $as_echo_n "(cached
) " >&6
8627 lt_cv_prog_compiler_rtti_exceptions=no
8628 ac_outfile=conftest.$ac_objext
8629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8630 lt_compiler_flag="-fno-rtti -fno-exceptions"
8631 # Insert the option either (1) after the last *FLAGS variable, or
8632 # (2) before a word containing "conftest.
", or (3) at the end.
8633 # Note that $ac_compile itself does not contain backslashes and begins
8634 # with a dollar sign (not a hyphen), so the echo should work correctly.
8635 # The option is referenced via a variable to avoid confusing sed.
8636 lt_compile=`echo "$ac_compile" | $SED \
8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8639 -e 's:$: $lt_compiler_flag:'`
8640 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8641 (eval "$lt_compile" 2>conftest.err)
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8645 if (exit $ac_status) && test -s "$ac_outfile"; then
8646 # The compiler can only warn and ignore the option if not recognized
8647 # So say no if there are warnings other than the usual output.
8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8651 lt_cv_prog_compiler_rtti_exceptions=yes
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8658 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8660 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8673 lt_prog_compiler_wl=
8674 lt_prog_compiler_pic=
8675 lt_prog_compiler_static=
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8678 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8680 if test "$GCC" = yes; then
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_static='-static'
8686 # All AIX code is PIC.
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 now supports IA64 processor
8689 lt_prog_compiler_static='-Bstatic'
8691 lt_prog_compiler_pic='-fPIC'
8697 # see comment about AmigaOS4 .so support
8698 lt_prog_compiler_pic='-fPIC'
8701 # FIXME: we need at least 68020 code to build shared libraries, but
8702 # adding the `-m68020' flag to GCC prevents building anything better,
8704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8710 # PIC is the default for these OSes.
8713 mingw* | cygwin* | pw32* | os2* | cegcc*)
8714 # This hack is so that the source file can tell whether it is being
8715 # built for inclusion in a dll (and should export symbols for example).
8716 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8717 # (--disable-auto-import) libraries
8718 lt_prog_compiler_pic='-DDLL_EXPORT'
8721 darwin* | rhapsody*)
8722 # PIC is the default on this platform
8723 # Common symbols not allowed in MH_DYLIB files
8724 lt_prog_compiler_pic='-fno-common'
8728 # PIC is the default for Haiku.
8729 # The "-static" flag exists, but is broken.
8730 lt_prog_compiler_static=
8734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8736 # sets the default TLS model and affects inlining.
8742 lt_prog_compiler_pic='-fPIC'
8748 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8749 # Instead, we relocate shared libraries at runtime.
8753 # Just because we use GCC doesn't mean we suddenly get shared libraries
8754 # on systems that don't support them.
8755 lt_prog_compiler_can_build_shared=no
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8762 lt_prog_compiler_pic='-fPIC -shared'
8766 if test -d /usr/nec; then
8767 lt_prog_compiler_pic=-Kconform_pic
8772 lt_prog_compiler_pic='-fPIC'
8776 case $cc_basename in
8777 nvcc*) # Cuda Compiler Driver 2.2
8778 lt_prog_compiler_wl='-Xlinker '
8779 lt_prog_compiler_pic='-Xcompiler -fPIC'
8783 # PORTME Check for flag to pass linker flags through the system compiler.
8786 lt_prog_compiler_wl='-Wl,'
8787 if test "$host_cpu" = ia64; then
8788 # AIX 5 now supports IA64 processor
8789 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 hpux9* | hpux10* | hpux11*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8810 lt_prog_compiler_pic='+Z'
8813 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8814 lt_prog_compiler_static='${wl}-a ${wl}archive'
8817 irix5* | irix6* | nonstopux*)
8818 lt_prog_compiler_wl='-Wl,'
8819 # PIC (with -KPIC) is the default.
8820 lt_prog_compiler_static='-non_shared'
8823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8824 case $cc_basename in
8825 # old Intel for x86_64 which still supported -KPIC.
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-static'
8831 # icc used to be incompatible with GCC.
8832 # ICC 10 doesn't accept -KPIC any more.
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fPIC'
8836 lt_prog_compiler_static='-static'
8838 # Lahey Fortran 8.1.
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='--shared'
8842 lt_prog_compiler_static='--static'
8844 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845 # Portland Group compilers (*not* the Pentium gcc compiler,
8846 # which looks to be a dead project)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_wl='-Wl,'
8853 # All Alpha code is PIC.
8854 lt_prog_compiler_static='-non_shared'
8856 xl* | bgxl* | bgf* | mpixl*)
8857 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-qpic'
8860 lt_prog_compiler_static='-qstaticlink'
8863 case `$CC -V 2>&1 | sed 5q` in
8864 *Sun\ F* | *Sun*Fortran*)
8865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl=''
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl='-Wl,'
8882 lt_prog_compiler_pic='-KPIC'
8883 lt_prog_compiler_static='-Bstatic'
8887 # QNX uses GNU C++, but need to define -shared option too, otherwise
8889 lt_prog_compiler_pic='-fPIC -shared'
8892 osf3* | osf4* | osf5*)
8893 lt_prog_compiler_wl='-Wl,'
8894 # All OSF/1 code is PIC.
8895 lt_prog_compiler_static='-non_shared'
8899 lt_prog_compiler_static='-non_shared'
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 case $cc_basename in
8907 lt_prog_compiler_wl='-Qoption ld ';;
8909 lt_prog_compiler_wl='-Wl,';;
8914 lt_prog_compiler_wl='-Qoption ld '
8915 lt_prog_compiler_pic='-PIC'
8916 lt_prog_compiler_static='-Bstatic'
8919 sysv4 | sysv4.2uw2* | sysv4.3*)
8920 lt_prog_compiler_wl='-Wl,'
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8926 if test -d /usr/nec ;then
8927 lt_prog_compiler_pic='-Kconform_pic'
8928 lt_prog_compiler_static='-Bstatic'
8932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_can_build_shared=no
8944 lt_prog_compiler_pic='-pic'
8945 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_can_build_shared=no
8955 # For platforms which do not support PIC, -DPIC is meaningless:
8957 lt_prog_compiler_pic=
8960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8964 $as_echo "$lt_prog_compiler_pic" >&6; }
8972 # Check to make sure the PIC flag actually works.
8974 if test -n "$lt_prog_compiler_pic"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8976 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8977 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8978 $as_echo_n "(cached
) " >&6
8980 lt_cv_prog_compiler_pic_works=no
8981 ac_outfile=conftest.$ac_objext
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8984 # Insert the option either (1) after the last *FLAGS variable, or
8985 # (2) before a word containing "conftest.
", or (3) at the end.
8986 # Note that $ac_compile itself does not contain backslashes and begins
8987 # with a dollar sign (not a hyphen), so the echo should work correctly.
8988 # The option is referenced via a variable to avoid confusing sed.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>conftest.err)
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8998 if (exit $ac_status) && test -s "$ac_outfile"; then
8999 # The compiler can only warn and ignore the option if not recognized
9000 # So say no if there are warnings other than the usual output.
9001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9004 lt_cv_prog_compiler_pic_works=yes
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9011 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9013 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9014 case $lt_prog_compiler_pic in
9016 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9019 lt_prog_compiler_pic=
9020 lt_prog_compiler_can_build_shared=no
9031 # Check to make sure the static flag actually works.
9033 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9035 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9036 if ${lt_cv_prog_compiler_static_works+:} false; then :
9037 $as_echo_n "(cached
) " >&6
9039 lt_cv_prog_compiler_static_works=no
9040 save_LDFLAGS="$LDFLAGS"
9041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9042 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9044 # The linker can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 if test -s conftest.err; then
9047 # Append any errors to the config.log.
9048 cat conftest.err 1>&5
9049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051 if diff conftest.exp conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler_static_works=yes
9055 lt_cv_prog_compiler_static_works=yes
9059 LDFLAGS="$save_LDFLAGS"
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9063 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9065 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9068 lt_prog_compiler_static=
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9078 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9079 if ${lt_cv_prog_compiler_c_o+:} false; then :
9080 $as_echo_n "(cached
) " >&6
9082 lt_cv_prog_compiler_c_o=no
9083 $RM -r conftest 2>/dev/null
9087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9090 # Insert the option either (1) after the last *FLAGS variable, or
9091 # (2) before a word containing "conftest.
", or (3) at the end.
9092 # Note that $ac_compile itself does not contain backslashes and begins
9093 # with a dollar sign (not a hyphen), so the echo should work correctly.
9094 lt_compile=`echo "$ac_compile" | $SED \
9095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9097 -e 's:$: $lt_compiler_flag:'`
9098 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9099 (eval "$lt_compile" 2>out/conftest.err)
9101 cat out/conftest.err >&5
9102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9105 # The compiler can only warn and ignore the option if not recognized
9106 # So say no if there are warnings
9107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9110 lt_cv_prog_compiler_c_o=yes
9115 # SGI C++ compiler will create directory out/ii_files/ for
9116 # template instantiation
9117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9118 $RM out/* && rmdir out
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9125 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9133 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9134 if ${lt_cv_prog_compiler_c_o+:} false; then :
9135 $as_echo_n "(cached
) " >&6
9137 lt_cv_prog_compiler_c_o=no
9138 $RM -r conftest 2>/dev/null
9142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9145 # Insert the option either (1) after the last *FLAGS variable, or
9146 # (2) before a word containing "conftest.
", or (3) at the end.
9147 # Note that $ac_compile itself does not contain backslashes and begins
9148 # with a dollar sign (not a hyphen), so the echo should work correctly.
9149 lt_compile=`echo "$ac_compile" | $SED \
9150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9152 -e 's:$: $lt_compiler_flag:'`
9153 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9154 (eval "$lt_compile" 2>out/conftest.err)
9156 cat out/conftest.err >&5
9157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9160 # The compiler can only warn and ignore the option if not recognized
9161 # So say no if there are warnings
9162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9165 lt_cv_prog_compiler_c_o=yes
9170 # SGI C++ compiler will create directory out/ii_files/ for
9171 # template instantiation
9172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9173 $RM out/* && rmdir out
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9180 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9185 hard_links="nottested
"
9186 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9187 # do not overwrite the value of need_locks provided by the user
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9189 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9194 ln conftest.a conftest.b 2>&5 || hard_links=no
9195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9197 $as_echo "$hard_links" >&6; }
9198 if test "$hard_links" = no; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9200 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9213 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9216 allow_undefined_flag=
9217 always_export_symbols=no
9219 archive_expsym_cmds=
9220 compiler_needs_object=no
9221 enable_shared_with_static_runtimes=no
9222 export_dynamic_flag_spec=
9223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9224 hardcode_automatic=no
9226 hardcode_direct_absolute=no
9227 hardcode_libdir_flag_spec=
9228 hardcode_libdir_flag_spec_ld=
9229 hardcode_libdir_separator=
9231 hardcode_shlibpath_var=unsupported
9233 link_all_deplibs=unknown
9236 old_archive_from_new_cmds=
9237 old_archive_from_expsyms_cmds=
9238 thread_safe_flag_spec=
9239 whole_archive_flag_spec=
9240 # include_expsyms should be a list of space-separated symbols to be *always*
9241 # included in the symbol list
9243 # exclude_expsyms can be an extended regexp of symbols to exclude
9244 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9245 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9246 # as well as any symbol that contains `d'.
9247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9249 # platforms (ab)use it in PIC code, but their linkers get confused if
9250 # the symbol is explicitly referenced. Since portable code cannot
9251 # rely on this symbol name, it's probably fine to never include it in
9252 # preloaded symbol tables.
9253 # Exclude shared library initialization/finalization symbols.
9254 extract_expsyms_cmds=
9257 cygwin* | mingw* | pw32* | cegcc*)
9258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9259 # When not using gcc, we currently assume that we are using
9260 # Microsoft Visual C++.
9261 if test "$GCC" != yes; then
9266 # we just hope/assume this is gcc and not c89 (= MSVC++)
9276 # On some targets, GNU ld is compatible enough with the native linker
9277 # that we're better off using the native interface for both.
9278 lt_use_gnu_ld_interface=no
9279 if test "$with_gnu_ld" = yes; then
9282 # The AIX port of GNU ld has always aspired to compatibility
9283 # with the native linker. However, as the warning in the GNU ld
9284 # block says, versions before 2.19.5* couldn't really create working
9285 # shared libraries, regardless of the interface used.
9286 case `$LD -v 2>&1` in
9287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9289 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9291 lt_use_gnu_ld_interface=yes
9296 lt_use_gnu_ld_interface=yes
9301 if test "$lt_use_gnu_ld_interface" = yes; then
9302 # If archive_cmds runs LD, not CC, wlarc should be empty
9305 # Set some defaults for GNU ld with shared library support. These
9306 # are reset later if shared libraries are not supported. Putting them
9307 # here allows them to be overridden if necessary.
9308 runpath_var=LD_RUN_PATH
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 export_dynamic_flag_spec='${wl}--export-dynamic'
9311 # ancient GNU ld didn't support --whole-archive et. al.
9312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9313 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9315 whole_archive_flag_spec=
9317 supports_anon_versioning=no
9318 case `$LD -v 2>&1` in
9319 *GNU\ gold*) supports_anon_versioning=yes ;;
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9323 *\ 2.11.*) ;; # other 2.11 versions
9324 *) supports_anon_versioning=yes ;;
9327 # See if GNU ld supports shared libraries.
9330 # On AIX/PPC, the GNU linker is very broken
9331 if test "$host_cpu" != ia64; then
9335 *** Warning: the GNU linker, at least up to release 2.19, is reported
9336 *** to be unable to reliably create shared libraries on AIX.
9337 *** Therefore, libtool is disabling shared libraries support. If you
9338 *** really care for shared libraries, you may want to install binutils
9339 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9340 *** You will then need to restart the configuration process.
9349 # see comment about AmigaOS4 .so support
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351 archive_expsym_cmds=''
9354 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)'
9355 hardcode_libdir_flag_spec
='-L$libdir'
9356 hardcode_minus_L
=yes
9362 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9363 allow_undefined_flag
=unsupported
9364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9365 # support --undefined. This deserves some investigation. FIXME
9366 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 cygwin
* | mingw
* | pw32
* | cegcc
*)
9373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9374 # as there is no search path for DLLs.
9375 hardcode_libdir_flag_spec
='-L$libdir'
9376 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9377 allow_undefined_flag
=unsupported
9378 always_export_symbols
=no
9379 enable_shared_with_static_runtimes
=yes
9380 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9382 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9383 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9384 # If the export-symbols file already is a .def file (1st line
9385 # is EXPORTS), use it as is; otherwise, prepend...
9386 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9387 cp $export_symbols $output_objdir/$soname.def;
9389 echo EXPORTS > $output_objdir/$soname.def;
9390 cat $export_symbols >> $output_objdir/$soname.def;
9392 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9399 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 link_all_deplibs
=yes
9405 hardcode_shlibpath_var
=no
9406 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9407 export_dynamic_flag_spec
='${wl}-E'
9408 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9409 # Instead, shared libraries are loaded at an image base (0x10000000 by
9410 # default) and relocated if they conflict, which is a slow very memory
9411 # consuming and fragmenting process. To avoid this, we pick a random,
9412 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9413 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9414 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9415 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'
9418 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9420 if test "$host_os" = linux-dietlibc
; then
9421 case $cc_basename in
9422 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9425 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9426 && test "$tmp_diet" = no
9428 tmp_addflag
=' $pic_flag'
9429 tmp_sharedflag
='-shared'
9430 case $cc_basename,$host_cpu in
9431 pgcc
*) # Portland Group C compiler
9432 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'
9433 tmp_addflag
=' $pic_flag'
9435 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9436 # Portland Group f77 and f90 compilers
9437 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'
9438 tmp_addflag
=' $pic_flag -Mnomain' ;;
9439 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9440 tmp_addflag
=' -i_dynamic' ;;
9441 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9442 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9443 ifc
* | ifort
*) # Intel Fortran compiler
9444 tmp_addflag
=' -nofor_main' ;;
9445 lf95
*) # Lahey Fortran 8.1
9446 whole_archive_flag_spec
=
9447 tmp_sharedflag
='--shared' ;;
9448 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9449 tmp_sharedflag
='-qmkshrobj'
9451 nvcc
*) # Cuda Compiler Driver 2.2
9452 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'
9453 compiler_needs_object
=yes
9456 case `$CC -V 2>&1 | sed 5q` in
9457 *Sun\ C
*) # Sun C 5.9
9458 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'
9459 compiler_needs_object
=yes
9460 tmp_sharedflag
='-G' ;;
9461 *Sun\ F
*) # Sun Fortran 8.3
9462 tmp_sharedflag
='-G' ;;
9464 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 if test "x$supports_anon_versioning" = xyes
; then
9467 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9469 echo "local: *; };" >> $output_objdir/$libname.ver~
9470 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9473 case $cc_basename in
9474 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9475 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9476 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9477 hardcode_libdir_flag_spec
=
9478 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9479 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9480 if test "x$supports_anon_versioning" = xyes
; then
9481 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9483 echo "local: *; };" >> $output_objdir/$libname.ver~
9484 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9494 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9495 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9498 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9509 *** create shared libraries on Solaris systems. Therefore, libtool
9510 *** is disabling shared libraries support. We urge you to upgrade GNU
9511 *** binutils to release 2.9.1 or newer. Another option is to modify
9512 *** your PATH or compiler configuration so that the native linker is
9513 *** used, and then restart.
9516 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9517 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9524 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9525 case `$LD -v 2>&1` in
9526 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9531 *** reliably create shared libraries on SCO systems. Therefore, libtool
9532 *** is disabling shared libraries support. We urge you to upgrade GNU
9533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9534 *** your PATH or compiler configuration so that the native linker is
9535 *** used, and then restart.
9540 # For security reasons, it is highly recommended that you always
9541 # use absolute paths for naming shared libraries, and exclude the
9542 # DT_RUNPATH tag from executables and libraries. But doing so
9543 # requires that you compile everything twice, which is a pain.
9544 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9546 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9556 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_shlibpath_var
=no
9563 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9564 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9565 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9572 if test "$ld_shlibs" = no
; then
9574 hardcode_libdir_flag_spec
=
9575 export_dynamic_flag_spec
=
9576 whole_archive_flag_spec
=
9579 # PORTME fill in a description of your system's linker (not GNU ld)
9582 allow_undefined_flag
=unsupported
9583 always_export_symbols
=yes
9584 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'
9585 # Note: this linker hardcodes the directories in LIBPATH if there
9586 # are no directories specified by -L.
9587 hardcode_minus_L
=yes
9588 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9589 # Neither direct hardcoding nor static linking is supported with a
9591 hardcode_direct
=unsupported
9596 if test "$host_cpu" = ia64
; then
9597 # On IA64, the linker does run time linking by default, so we don't
9598 # have to do anything special.
9599 aix_use_runtimelinking
=no
9600 exp_sym_flag
='-Bexport'
9603 # If we're using GNU nm, then we don't want the "-C" option.
9604 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9605 # Also, AIX nm treats weak defined symbols like other global
9606 # defined symbols, whereas GNU nm marks them as "W".
9607 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9608 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'
9610 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'
9612 aix_use_runtimelinking
=no
9614 # Test if we are trying to use run time linking or normal
9615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9616 # need to do runtime linking.
9617 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9618 for ld_flag
in $LDFLAGS; do
9619 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9620 aix_use_runtimelinking
=yes
9627 exp_sym_flag
='-bexport'
9628 no_entry_flag
='-bnoentry'
9631 # When large executables or shared objects are built, AIX ld can
9632 # have problems creating the table of contents. If linking a library
9633 # or program results in "error TOC overflow" add -mminimal-toc to
9634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9639 hardcode_direct_absolute
=yes
9640 hardcode_libdir_separator
=':'
9641 link_all_deplibs
=yes
9642 file_list_spec
='${wl}-f,'
9644 if test "$GCC" = yes; then
9645 case $host_os in aix4.
[012]|aix4.
[012].
*)
9646 # We only want to do this on AIX 4.2 and lower, the check
9647 # below for broken collect2 doesn't work under 4.3+
9648 collect2name
=`${CC} -print-prog-name=collect2`
9649 if test -f "$collect2name" &&
9650 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9652 # We have reworked collect2
9655 # We have old collect2
9656 hardcode_direct
=unsupported
9657 # It fails to find uninstalled libraries when the uninstalled
9658 # path is not listed in the libpath. Setting hardcode_minus_L
9659 # to unsupported forces relinking
9660 hardcode_minus_L
=yes
9661 hardcode_libdir_flag_spec
='-L$libdir'
9662 hardcode_libdir_separator
=
9666 shared_flag
='-shared'
9667 if test "$aix_use_runtimelinking" = yes; then
9668 shared_flag
="$shared_flag "'${wl}-G'
9672 if test "$host_cpu" = ia64
; then
9673 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9674 # chokes on -Wl,-G. The following line is correct:
9677 if test "$aix_use_runtimelinking" = yes; then
9678 shared_flag
='${wl}-G'
9680 shared_flag
='${wl}-bM:SRE'
9685 export_dynamic_flag_spec
='${wl}-bexpall'
9686 # It seems that -bexpall does not export symbols beginning with
9687 # underscore (_), so it is better to generate a list of symbols to export.
9688 always_export_symbols
=yes
9689 if test "$aix_use_runtimelinking" = yes; then
9690 # Warning - without using the other runtime loading flags (-brtl),
9691 # -berok will link without error, but may produce a broken library.
9692 allow_undefined_flag
='-berok'
9693 # Determine the default libpath from the value encoded in an
9695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9706 if ac_fn_c_try_link
"$LINENO"; then :
9708 lt_aix_libpath_sed
='
9709 /Import File Strings/,/^$/ {
9715 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 # Check for a 64-bit object if we didn't find anything.
9717 if test -z "$aix_libpath"; then
9718 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721 rm -f core conftest.err conftest.
$ac_objext \
9722 conftest
$ac_exeext conftest.
$ac_ext
9723 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9725 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 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"
9728 if test "$host_cpu" = ia64
; then
9729 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9730 allow_undefined_flag
="-z nodefs"
9731 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"
9733 # Determine the default libpath from the value encoded in an
9735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9746 if ac_fn_c_try_link
"$LINENO"; then :
9748 lt_aix_libpath_sed
='
9749 /Import File Strings/,/^$/ {
9755 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 rm -f core conftest.err conftest.
$ac_objext \
9762 conftest
$ac_exeext conftest.
$ac_ext
9763 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9765 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9766 # Warning - without using the other run time loading flags,
9767 # -berok will link without error, but may produce a broken library.
9768 no_undefined_flag
=' ${wl}-bernotok'
9769 allow_undefined_flag
=' ${wl}-berok'
9770 if test "$with_gnu_ld" = yes; then
9771 # We only use this code for GNU lds that support --whole-archive.
9772 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9774 # Exported symbols can be pulled into shared objects from archives
9775 whole_archive_flag_spec
='$convenience'
9777 archive_cmds_need_lc
=yes
9778 # This is similar to how AIX traditionally builds its shared libraries.
9779 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'
9787 # see comment about AmigaOS4 .so support
9788 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds
=''
9792 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)'
9793 hardcode_libdir_flag_spec
='-L$libdir'
9794 hardcode_minus_L
=yes
9800 export_dynamic_flag_spec
=-rdynamic
9803 cygwin
* | mingw
* | pw32
* | cegcc
*)
9804 # When not using gcc, we currently assume that we are using
9805 # Microsoft Visual C++.
9806 # hardcode_libdir_flag_spec is actually meaningless, as there is
9807 # no search path for DLLs.
9808 hardcode_libdir_flag_spec
=' '
9809 allow_undefined_flag
=unsupported
9810 # Tell ltmain to make .lib files, not .a files.
9812 # Tell ltmain to make .dll files, not .so files.
9814 # FIXME: Setting linknames here is a bad hack.
9815 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816 # The linker will automatically build a .lib file if we build a DLL.
9817 old_archive_from_new_cmds
='true'
9818 # FIXME: Should let the user specify the lib program.
9819 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9821 enable_shared_with_static_runtimes
=yes
9824 darwin
* | rhapsody
*)
9827 archive_cmds_need_lc
=no
9829 hardcode_automatic
=yes
9830 hardcode_shlibpath_var
=unsupported
9831 if test "$lt_cv_ld_force_load" = "yes"; then
9832 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\"`'
9834 whole_archive_flag_spec
=''
9836 link_all_deplibs
=yes
9837 allow_undefined_flag
="$_lt_dar_allow_undefined"
9838 case $cc_basename in
9839 ifort
*) _lt_dar_can_shared
=yes ;;
9840 *) _lt_dar_can_shared
=$GCC ;;
9842 if test "$_lt_dar_can_shared" = "yes"; then
9843 output_verbose_link_cmd
=func_echo_all
9844 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9845 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9846 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}"
9847 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}"
9856 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857 hardcode_libdir_flag_spec
='-L$libdir'
9858 hardcode_shlibpath_var
=no
9861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9862 # support. Future versions do this automatically, but an explicit c++rt0.o
9863 # does not break anything, and helps significantly (at the cost of a little
9866 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9867 hardcode_libdir_flag_spec
='-R$libdir'
9869 hardcode_shlibpath_var
=no
9872 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9874 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_minus_L
=yes
9877 hardcode_shlibpath_var
=no
9880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9881 freebsd
* | dragonfly
*)
9882 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9883 hardcode_libdir_flag_spec
='-R$libdir'
9885 hardcode_shlibpath_var
=no
9889 if test "$GCC" = yes; then
9890 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'
9892 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'
9894 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9895 hardcode_libdir_separator
=:
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L
=yes
9901 export_dynamic_flag_spec
='${wl}-E'
9905 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9906 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9908 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9910 if test "$with_gnu_ld" = no
; then
9911 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9912 hardcode_libdir_flag_spec_ld
='+b $libdir'
9913 hardcode_libdir_separator
=:
9915 hardcode_direct_absolute
=yes
9916 export_dynamic_flag_spec
='${wl}-E'
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L
=yes
9924 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9927 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9946 # Older versions of the 11.00 compiler do not understand -b yet
9947 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9949 $as_echo_n "checking if $CC understands -b... " >&6; }
9950 if ${lt_cv_prog_compiler__b+:} false
; then :
9951 $as_echo_n "(cached) " >&6
9953 lt_cv_prog_compiler__b
=no
9954 save_LDFLAGS
="$LDFLAGS"
9955 LDFLAGS
="$LDFLAGS -b"
9956 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9957 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9958 # The linker can only warn and ignore the option if not recognized
9959 # So say no if there are warnings
9960 if test -s conftest.err
; then
9961 # Append any errors to the config.log.
9962 cat conftest.err
1>&5
9963 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9964 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9965 if diff conftest.exp conftest.er2
>/dev
/null
; then
9966 lt_cv_prog_compiler__b
=yes
9969 lt_cv_prog_compiler__b
=yes
9973 LDFLAGS
="$save_LDFLAGS"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9977 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9979 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9980 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9982 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988 if test "$with_gnu_ld" = no
; then
9989 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9990 hardcode_libdir_separator
=:
9995 hardcode_shlibpath_var
=no
9999 hardcode_direct_absolute
=yes
10000 export_dynamic_flag_spec
='${wl}-E'
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L
=yes
10010 irix5
* | irix6
* | nonstopux
*)
10011 if test "$GCC" = yes; then
10012 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'
10013 # Try to use the -exported_symbol ld option, if it does not
10014 # work, assume that -exports_file does not work either and
10015 # implicitly export all symbols.
10016 save_LDFLAGS
="$LDFLAGS"
10017 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10022 if ac_fn_c_try_link
"$LINENO"; then :
10023 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'
10026 rm -f core conftest.err conftest.
$ac_objext \
10027 conftest
$ac_exeext conftest.
$ac_ext
10028 LDFLAGS
="$save_LDFLAGS"
10030 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'
10031 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'
10033 archive_cmds_need_lc
='no'
10034 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator
=:
10037 link_all_deplibs
=yes
10041 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10042 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10044 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10046 hardcode_libdir_flag_spec
='-R$libdir'
10047 hardcode_direct
=yes
10048 hardcode_shlibpath_var
=no
10052 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_direct
=yes
10054 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator
=:
10056 hardcode_shlibpath_var
=no
10063 if test -f /usr
/libexec
/ld.so
; then
10064 hardcode_direct
=yes
10065 hardcode_shlibpath_var
=no
10066 hardcode_direct_absolute
=yes
10067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10068 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10070 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10071 export_dynamic_flag_spec
='${wl}-E'
10074 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10075 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10076 hardcode_libdir_flag_spec
='-R$libdir'
10079 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10080 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10090 hardcode_libdir_flag_spec
='-L$libdir'
10091 hardcode_minus_L
=yes
10092 allow_undefined_flag
=unsupported
10093 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'
10094 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10098 if test "$GCC" = yes; then
10099 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10100 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'
10102 allow_undefined_flag
=' -expect_unresolved \*'
10103 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'
10105 archive_cmds_need_lc
='no'
10106 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10107 hardcode_libdir_separator
=:
10110 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10116 allow_undefined_flag
=' -expect_unresolved \*'
10117 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'
10118 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~
10119 $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'
10121 # Both c and cxx compiler support -rpath directly
10122 hardcode_libdir_flag_spec
='-rpath $libdir'
10124 archive_cmds_need_lc
='no'
10125 hardcode_libdir_separator
=:
10129 no_undefined_flag
=' -z defs'
10130 if test "$GCC" = yes; then
10132 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10134 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10136 case `$CC -V 2>&1` in
10139 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10145 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10151 hardcode_libdir_flag_spec
='-R$libdir'
10152 hardcode_shlibpath_var
=no
10154 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10156 # The compiler driver will combine and reorder linker options,
10157 # but understands `-z linker_flag'. GCC discards it without `$wl',
10158 # but is careful enough not to reorder.
10159 # Supported since Solaris 2.6 (maybe 2.5.1?)
10160 if test "$GCC" = yes; then
10161 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10163 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10167 link_all_deplibs
=yes
10171 if test "x$host_vendor" = xsequent
; then
10172 # Use $CC to link under sequent, because it throws in some extra .o
10173 # files that make .init and .fini sections work.
10174 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_libdir_flag_spec
='-L$libdir'
10179 hardcode_direct
=yes
10180 hardcode_minus_L
=yes
10181 hardcode_shlibpath_var
=no
10185 case $host_vendor in
10187 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_direct
=yes # is this really true???
10191 ## LD is ld it makes a PLAMLIB
10192 ## CC just makes a GrossModule.
10193 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10194 reload_cmds
='$CC -r -o $output$reload_objs'
10198 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10199 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10202 runpath_var
='LD_RUN_PATH'
10203 hardcode_shlibpath_var
=no
10207 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_shlibpath_var
=no
10209 export_dynamic_flag_spec
='-Bexport'
10213 if test -d /usr
/nec
; then
10214 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var
=no
10216 runpath_var
=LD_RUN_PATH
10217 hardcode_runpath_var
=yes
10222 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10223 no_undefined_flag
='${wl}-z,text'
10224 archive_cmds_need_lc
=no
10225 hardcode_shlibpath_var
=no
10226 runpath_var
='LD_RUN_PATH'
10228 if test "$GCC" = yes; then
10229 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 sysv5
* | sco3.2v5
* | sco5v6
*)
10238 # Note: We can NOT use -z defs as we might desire, because we do not
10239 # link with -lc, and that would cause any symbols used from libc to
10240 # always be unresolved, which means just about no library would
10241 # ever link correctly. If we're not using GNU ld we use -z text
10242 # though, which does catch some bad symbols but isn't as heavy-handed
10244 no_undefined_flag
='${wl}-z,text'
10245 allow_undefined_flag
='${wl}-z,nodefs'
10246 archive_cmds_need_lc
=no
10247 hardcode_shlibpath_var
=no
10248 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10249 hardcode_libdir_separator
=':'
10250 link_all_deplibs
=yes
10251 export_dynamic_flag_spec
='${wl}-Bexport'
10252 runpath_var
='LD_RUN_PATH'
10254 if test "$GCC" = yes; then
10255 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_libdir_flag_spec
='-L$libdir'
10266 hardcode_shlibpath_var
=no
10274 if test x
$host_vendor = xsni
; then
10276 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10277 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10284 $as_echo "$ld_shlibs" >&6; }
10285 test "$ld_shlibs" = no
&& can_build_shared
=no
10287 with_gnu_ld
=$with_gnu_ld
10304 # Do we need to explicitly link libc?
10306 case "x$archive_cmds_need_lc" in
10308 # Assume -lc should be added
10309 archive_cmds_need_lc
=yes
10311 if test "$enable_shared" = yes && test "$GCC" = yes; then
10312 case $archive_cmds in
10314 # FIXME: we may have to deal with multi-command sequences.
10317 # Test whether the compiler implicitly links with -lc since on some
10318 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10319 # to ld, don't add -lc before -lgcc.
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10321 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10322 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10323 $as_echo_n "(cached) " >&6
10326 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10329 (eval $ac_compile) 2>&5
10331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332 test $ac_status = 0; } 2>conftest.err
; then
10335 libobjs
=conftest.
$ac_objext
10337 wl
=$lt_prog_compiler_wl
10338 pic_flag
=$lt_prog_compiler_pic
10344 lt_save_allow_undefined_flag
=$allow_undefined_flag
10345 allow_undefined_flag
=
10346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10347 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350 test $ac_status = 0; }
10352 lt_cv_archive_cmds_need_lc
=no
10354 lt_cv_archive_cmds_need_lc
=yes
10356 allow_undefined_flag
=$lt_save_allow_undefined_flag
10358 cat conftest.err
1>&5
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10364 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10365 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10531 if test "$GCC" = yes; then
10533 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10534 *) lt_awk_arg
="/^libraries:/" ;;
10537 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10538 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10540 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10541 case $lt_search_path_spec in
10543 # if the path contains ";" then we assume it to be the separator
10544 # otherwise default to the standard path separator (i.e. ":") - it is
10545 # assumed that no part of a normal pathname contains ";" but that should
10546 # okay in the real world where ";" in dirpaths is itself problematic.
10547 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10550 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10553 # Ok, now we have the path, separated by spaces, we can step through it
10554 # and add multilib dir if necessary.
10555 lt_tmp_lt_search_path_spec
=
10556 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10557 for lt_sys_path
in $lt_search_path_spec; do
10558 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10559 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10561 test -d "$lt_sys_path" && \
10562 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10565 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10566 BEGIN {RS=" "; FS="/|\n";} {
10569 for (lt_i = NF; lt_i > 0; lt_i--) {
10570 if ($lt_i != "" && $lt_i != ".") {
10571 if ($lt_i == "..") {
10574 if (lt_count == 0) {
10575 lt_foo="/" $lt_i lt_foo;
10582 if (lt_foo != "") { lt_freq[lt_foo]++; }
10583 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10585 # AWK program above erroneously prepends '/' to C:/dos/paths
10588 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10589 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10591 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10593 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10595 library_names_spec
=
10596 libname_spec
='lib$name'
10600 postuninstall_cmds
=
10604 shlibpath_overrides_runpath
=unknown
10606 dynamic_linker
="$host_os ld.so"
10607 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10608 need_lib_prefix
=unknown
10609 hardcode_into_libs
=no
10611 # when you set need_version to no, make sure it does not cause -set_version
10612 # flags to be left without arguments
10613 need_version
=unknown
10618 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10619 shlibpath_var
=LIBPATH
10621 # AIX 3 has no versioning support, so we append a major version to the name.
10622 soname_spec
='${libname}${release}${shared_ext}$major'
10629 hardcode_into_libs
=yes
10630 if test "$host_cpu" = ia64
; then
10631 # AIX 5 supports IA64
10632 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10633 shlibpath_var
=LD_LIBRARY_PATH
10635 # With GCC up to 2.95.x, collect2 would create an import file
10636 # for dependence libraries. The import file would start with
10637 # the line `#! .'. This would cause the generated library to
10638 # depend on `.', always an invalid library. This was fixed in
10639 # development snapshots of GCC prior to 3.0.
10641 aix4 | aix4.
[01] | aix4.
[01].
*)
10642 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10644 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10647 can_build_shared
=no
10651 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10652 # soname into executable. Probably we can add versioning support to
10653 # collect2, so additional links can be useful in future.
10654 if test "$aix_use_runtimelinking" = yes; then
10655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10656 # instead of lib<name>.a to let people know that these are not
10657 # typical AIX shared libraries.
10658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 # We preserve .a as extension for shared libraries through AIX4.2
10661 # and later when we are not doing run time linking.
10662 library_names_spec
='${libname}${release}.a $libname.a'
10663 soname_spec
='${libname}${release}${shared_ext}$major'
10665 shlibpath_var
=LIBPATH
10672 # Since July 2007 AmigaOS4 officially supports .so libraries.
10673 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10674 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 library_names_spec
='$libname.ixlibrary $libname.a'
10678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10679 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'
10685 library_names_spec
='${libname}${shared_ext}'
10686 dynamic_linker
="$host_os ld.so"
10687 shlibpath_var
=LIBRARY_PATH
10693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec
='${libname}${release}${shared_ext}$major'
10695 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10696 shlibpath_var
=LD_LIBRARY_PATH
10697 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10698 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10699 # the default ld.so.conf also contains /usr/contrib/lib and
10700 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10701 # libtool to hard-code these into programs
10704 cygwin
* | mingw
* | pw32
* | cegcc
*)
10705 version_type
=windows
10710 case $GCC,$host_os in
10711 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10712 library_names_spec
='$libname.dll.a'
10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10714 postinstall_cmds
='base_file=`basename \${file}`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10716 dldir=$destdir/`dirname \$dlpath`~
10717 test -d \$dldir || mkdir -p \$dldir~
10718 $install_prog $dir/$dlname \$dldir/$dlname~
10719 chmod a+x \$dldir/$dlname~
10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10723 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10724 dlpath=$dir/\$dldll~
10726 shlibpath_overrides_runpath
=yes
10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10731 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10733 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10736 # MinGW DLLs use traditional 'lib' prefix
10737 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10740 # pw32 DLLs use 'pw' prefix rather than 'lib'
10741 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10750 dynamic_linker
='Win32 ld.exe'
10751 # FIXME: first we should search . and the directory the executable is in
10755 darwin
* | rhapsody
*)
10756 dynamic_linker
="$host_os dyld"
10757 version_type
=darwin
10760 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10761 soname_spec
='${libname}${release}${major}$shared_ext'
10762 shlibpath_overrides_runpath
=yes
10763 shlibpath_var
=DYLD_LIBRARY_PATH
10764 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10766 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10767 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10774 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10775 soname_spec
='${libname}${release}${shared_ext}$major'
10776 shlibpath_var
=LD_LIBRARY_PATH
10779 freebsd
* | dragonfly
*)
10780 # DragonFly does not have aout. When/if they implement a new
10781 # versioning mechanism, adjust this.
10782 if test -x /usr
/bin
/objformat
; then
10783 objformat
=`/usr/bin/objformat`
10786 freebsd
[23].
*) objformat
=aout
;;
10787 *) objformat
=elf
;;
10790 version_type
=freebsd-
$objformat
10791 case $version_type in
10793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10798 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10802 shlibpath_var
=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath
=yes
10807 freebsd3.
[01]* | freebsdelf3.
[01]*)
10808 shlibpath_overrides_runpath
=yes
10809 hardcode_into_libs
=yes
10811 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10812 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10813 shlibpath_overrides_runpath
=no
10814 hardcode_into_libs
=yes
10816 *) # from 4.6 on, and DragonFly
10817 shlibpath_overrides_runpath
=yes
10818 hardcode_into_libs
=yes
10827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828 soname_spec
='${libname}${release}${shared_ext}$major'
10829 shlibpath_var
=LD_LIBRARY_PATH
10830 hardcode_into_libs
=yes
10837 dynamic_linker
="$host_os runtime_loader"
10838 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839 soname_spec
='${libname}${release}${shared_ext}$major'
10840 shlibpath_var
=LIBRARY_PATH
10841 shlibpath_overrides_runpath
=yes
10842 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10843 hardcode_into_libs
=yes
10846 hpux9
* | hpux10
* | hpux11
*)
10847 # Give a soname corresponding to the major version so that dld.sl refuses to
10848 # link against other versions.
10855 hardcode_into_libs
=yes
10856 dynamic_linker
="$host_os dld.so"
10857 shlibpath_var
=LD_LIBRARY_PATH
10858 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10859 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec
='${libname}${release}${shared_ext}$major'
10861 if test "X$HPUX_IA64_MODE" = X32
; then
10862 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10864 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10866 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10870 hardcode_into_libs
=yes
10871 dynamic_linker
="$host_os dld.sl"
10872 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10873 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec
='${libname}${release}${shared_ext}$major'
10876 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10877 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10881 dynamic_linker
="$host_os dld.sl"
10882 shlibpath_var
=SHLIB_PATH
10883 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10884 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec
='${libname}${release}${shared_ext}$major'
10888 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10889 postinstall_cmds
='chmod 555 $lib'
10890 # or fails outright, so override atomically:
10891 install_override_mode
=555
10898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10899 soname_spec
='${libname}${release}${shared_ext}$major'
10900 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10901 shlibpath_var
=LD_LIBRARY_PATH
10902 shlibpath_overrides_runpath
=no
10903 hardcode_into_libs
=yes
10906 irix5
* | irix6
* | nonstopux
*)
10908 nonstopux
*) version_type
=nonstopux
;;
10910 if test "$lt_cv_prog_gnu_ld" = yes; then
10918 soname_spec
='${libname}${release}${shared_ext}$major'
10919 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10921 irix5
* | nonstopux
*)
10922 libsuff
= shlibsuff
=
10925 case $LD in # libtool.m4 will add one of these switches to LD
10926 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10927 libsuff
= shlibsuff
= libmagic
=32-bit;;
10928 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10929 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10930 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10931 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10932 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10936 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10937 shlibpath_overrides_runpath
=no
10938 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10939 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10940 hardcode_into_libs
=yes
10943 # No shared lib support for Linux oldld, aout, or coff.
10944 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10948 # This must be Linux ELF.
10949 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 soname_spec
='${libname}${release}${shared_ext}$major'
10955 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10956 shlibpath_var
=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath
=no
10959 # Some binutils ld are patched to set DT_RUNPATH
10960 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10961 $as_echo_n "(cached) " >&6
10963 lt_cv_shlibpath_overrides_runpath
=no
10964 save_LDFLAGS
=$LDFLAGS
10965 save_libdir
=$libdir
10966 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10967 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10979 if ac_fn_c_try_link
"$LINENO"; then :
10980 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10981 lt_cv_shlibpath_overrides_runpath
=yes
10984 rm -f core conftest.err conftest.
$ac_objext \
10985 conftest
$ac_exeext conftest.
$ac_ext
10986 LDFLAGS
=$save_LDFLAGS
10987 libdir
=$save_libdir
10991 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10993 # This implies no fast_install, which is unacceptable.
10994 # Some rework will be needed to allow for fast_install
10995 # before this can be enabled.
10996 hardcode_into_libs
=yes
10998 # Append ld.so.conf contents to the search path
10999 if test -f /etc
/ld.so.conf
; then
11000 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' ' '`
11001 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11004 # We used to test for /lib/ld.so.1 and disable shared libraries on
11005 # powerpc, because MkLinux only supported shared libraries with the
11006 # GNU dynamic linker. Since this was broken with cross compilers,
11007 # most powerpc-linux boxes support dynamic linking these days and
11008 # people can always --disable-shared, the test was removed, and we
11009 # assume the GNU/Linux dynamic linker is in use.
11010 dynamic_linker
='GNU/Linux ld.so'
11017 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11018 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020 dynamic_linker
='NetBSD (a.out) ld.so'
11022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11023 soname_spec
='${libname}${release}${shared_ext}$major'
11024 dynamic_linker
='NetBSD ld.elf_so'
11026 shlibpath_var
=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath
=yes
11028 hardcode_into_libs
=yes
11033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 shlibpath_var
=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath
=yes
11042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec
='${libname}${release}${shared_ext}$major'
11044 shlibpath_var
=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath
=no
11046 hardcode_into_libs
=yes
11047 dynamic_linker
='ldqnx.so'
11052 sys_lib_dlsearch_path_spec
="/usr/lib"
11054 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11056 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11057 *) need_version
=no
;;
11059 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11061 shlibpath_var
=LD_LIBRARY_PATH
11062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11064 openbsd2.
[89] | openbsd2.
[89].
*)
11065 shlibpath_overrides_runpath
=no
11068 shlibpath_overrides_runpath
=yes
11072 shlibpath_overrides_runpath
=yes
11077 libname_spec
='$name'
11080 library_names_spec
='$libname${shared_ext} $libname.a'
11081 dynamic_linker
='OS/2 ld.exe'
11082 shlibpath_var
=LIBPATH
11085 osf3
* | osf4
* | osf5
*)
11089 soname_spec
='${libname}${release}${shared_ext}$major'
11090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 shlibpath_var
=LD_LIBRARY_PATH
11092 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11093 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11104 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec
='${libname}${release}${shared_ext}$major'
11106 shlibpath_var
=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath
=yes
11108 hardcode_into_libs
=yes
11109 # ldd complains unless libraries are executable
11110 postinstall_cmds
='chmod +x $lib'
11115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11117 shlibpath_var
=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath
=yes
11119 if test "$with_gnu_ld" = yes; then
11127 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec
='${libname}${release}${shared_ext}$major'
11129 shlibpath_var
=LD_LIBRARY_PATH
11130 case $host_vendor in
11132 shlibpath_overrides_runpath
=no
11134 runpath_var
=LD_RUN_PATH
11142 shlibpath_overrides_runpath
=no
11143 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11149 if test -d /usr
/nec
;then
11151 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11152 soname_spec
='$libname${shared_ext}.$major'
11153 shlibpath_var
=LD_LIBRARY_PATH
11157 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11158 version_type
=freebsd-elf
11161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11162 soname_spec
='${libname}${release}${shared_ext}$major'
11163 shlibpath_var
=LD_LIBRARY_PATH
11164 shlibpath_overrides_runpath
=yes
11165 hardcode_into_libs
=yes
11166 if test "$with_gnu_ld" = yes; then
11167 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11169 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11172 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11176 sys_lib_dlsearch_path_spec
='/usr/lib'
11180 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 shlibpath_var
=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath
=no
11187 hardcode_into_libs
=yes
11192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec
='${libname}${release}${shared_ext}$major'
11194 shlibpath_var
=LD_LIBRARY_PATH
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11202 $as_echo "$dynamic_linker" >&6; }
11203 test "$dynamic_linker" = no
&& can_build_shared
=no
11205 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11206 if test "$GCC" = yes; then
11207 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11211 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11214 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11311 if test -n "$hardcode_libdir_flag_spec" ||
11312 test -n "$runpath_var" ||
11313 test "X$hardcode_automatic" = "Xyes" ; then
11315 # We can hardcode non-existent directories.
11316 if test "$hardcode_direct" != no
&&
11317 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11318 # have to relink, otherwise we might link with an installed library
11319 # when we should be linking with a yet-to-be-installed one
11320 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11321 test "$hardcode_minus_L" != no
; then
11322 # Linking always hardcodes the temporary library directory.
11323 hardcode_action
=relink
11325 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11326 hardcode_action
=immediate
11329 # We cannot hardcode anything, or else we can only hardcode existing
11331 hardcode_action
=unsupported
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11334 $as_echo "$hardcode_action" >&6; }
11336 if test "$hardcode_action" = relink ||
11337 test "$inherit_rpath" = yes; then
11338 # Fast installation is not supported
11339 enable_fast_install
=no
11340 elif test "$shlibpath_overrides_runpath" = yes ||
11341 test "$enable_shared" = no
; then
11342 # Fast installation is not necessary
11343 enable_fast_install
=needless
11351 if test "x$enable_dlopen" != xyes
; then
11352 enable_dlopen
=unknown
11353 enable_dlopen_self
=unknown
11354 enable_dlopen_self_static
=unknown
11361 lt_cv_dlopen
="load_add_on"
11363 lt_cv_dlopen_self
=yes
11366 mingw
* | pw32
* | cegcc
*)
11367 lt_cv_dlopen
="LoadLibrary"
11372 lt_cv_dlopen
="dlopen"
11377 # if libdl is installed we need to link against it
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11380 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11381 $as_echo_n "(cached) " >&6
11383 ac_check_lib_save_LIBS
=$LIBS
11385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 /* Override any GCC internal prototype to avoid an error.
11389 Use char because int might match the return type of a GCC
11390 builtin and then its argument prototype would still apply. */
11403 if ac_fn_c_try_link
"$LINENO"; then :
11404 ac_cv_lib_dl_dlopen
=yes
11406 ac_cv_lib_dl_dlopen
=no
11408 rm -f core conftest.err conftest.
$ac_objext \
11409 conftest
$ac_exeext conftest.
$ac_ext
11410 LIBS
=$ac_check_lib_save_LIBS
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11415 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11418 lt_cv_dlopen
="dyld"
11420 lt_cv_dlopen_self
=yes
11427 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11428 if test "x$ac_cv_func_shl_load" = xyes
; then :
11429 lt_cv_dlopen
="shl_load"
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11433 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11434 $as_echo_n "(cached) " >&6
11436 ac_check_lib_save_LIBS
=$LIBS
11438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11451 return shl_load ();
11456 if ac_fn_c_try_link
"$LINENO"; then :
11457 ac_cv_lib_dld_shl_load
=yes
11459 ac_cv_lib_dld_shl_load
=no
11461 rm -f core conftest.err conftest.
$ac_objext \
11462 conftest
$ac_exeext conftest.
$ac_ext
11463 LIBS
=$ac_check_lib_save_LIBS
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11468 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11470 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11471 if test "x$ac_cv_func_dlopen" = xyes
; then :
11472 lt_cv_dlopen
="dlopen"
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11476 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11477 $as_echo_n "(cached) " >&6
11479 ac_check_lib_save_LIBS
=$LIBS
11481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11499 if ac_fn_c_try_link
"$LINENO"; then :
11500 ac_cv_lib_dl_dlopen
=yes
11502 ac_cv_lib_dl_dlopen
=no
11504 rm -f core conftest.err conftest.
$ac_objext \
11505 conftest
$ac_exeext conftest.
$ac_ext
11506 LIBS
=$ac_check_lib_save_LIBS
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11511 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11516 $as_echo_n "(cached) " >&6
11518 ac_check_lib_save_LIBS
=$LIBS
11519 LIBS
="-lsvld $LIBS"
11520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11538 if ac_fn_c_try_link
"$LINENO"; then :
11539 ac_cv_lib_svld_dlopen
=yes
11541 ac_cv_lib_svld_dlopen
=no
11543 rm -f core conftest.err conftest.
$ac_objext \
11544 conftest
$ac_exeext conftest.
$ac_ext
11545 LIBS
=$ac_check_lib_save_LIBS
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11550 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11554 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11555 $as_echo_n "(cached) " >&6
11557 ac_check_lib_save_LIBS
=$LIBS
11559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11572 return dld_link ();
11577 if ac_fn_c_try_link
"$LINENO"; then :
11578 ac_cv_lib_dld_dld_link
=yes
11580 ac_cv_lib_dld_dld_link
=no
11582 rm -f core conftest.err conftest.
$ac_objext \
11583 conftest
$ac_exeext conftest.
$ac_ext
11584 LIBS
=$ac_check_lib_save_LIBS
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11589 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11610 if test "x$lt_cv_dlopen" != xno
; then
11616 case $lt_cv_dlopen in
11618 save_CPPFLAGS
="$CPPFLAGS"
11619 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11621 save_LDFLAGS
="$LDFLAGS"
11622 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11625 LIBS
="$lt_cv_dlopen_libs $LIBS"
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629 if ${lt_cv_dlopen_self+:} false
; then :
11630 $as_echo_n "(cached) " >&6
11632 if test "$cross_compiling" = yes; then :
11633 lt_cv_dlopen_self
=cross
11635 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11636 lt_status
=$lt_dlunknown
11637 cat > conftest.
$ac_ext <<_LT_EOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11648 # define LT_DLGLOBAL RTLD_GLOBAL
11651 # define LT_DLGLOBAL DL_GLOBAL
11653 # define LT_DLGLOBAL 0
11657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658 find out it does not work in some platform. */
11659 #ifndef LT_DLLAZY_OR_NOW
11661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11664 # define LT_DLLAZY_OR_NOW DL_LAZY
11667 # define LT_DLLAZY_OR_NOW RTLD_NOW
11670 # define LT_DLLAZY_OR_NOW DL_NOW
11672 # define LT_DLLAZY_OR_NOW 0
11679 /* When -fvisbility=hidden is used, assume the code has been annotated
11680 correspondingly for the symbols needed. */
11681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682 void fnord () __attribute__((visibility("default")));
11685 void fnord () { int i=42; }
11688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689 int status = $lt_dlunknown;
11693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11697 else puts (dlerror ());
11699 /* dlclose (self); */
11707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708 (eval $ac_link) 2>&5
11710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11712 (.
/conftest
; exit; ) >&5 2>/dev
/null
11714 case x
$lt_status in
11715 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11716 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11717 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11720 # compilation failed
11721 lt_cv_dlopen_self
=no
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729 $as_echo "$lt_cv_dlopen_self" >&6; }
11731 if test "x$lt_cv_dlopen_self" = xyes
; then
11732 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735 if ${lt_cv_dlopen_self_static+:} false
; then :
11736 $as_echo_n "(cached) " >&6
11738 if test "$cross_compiling" = yes; then :
11739 lt_cv_dlopen_self_static
=cross
11741 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11742 lt_status
=$lt_dlunknown
11743 cat > conftest.
$ac_ext <<_LT_EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11754 # define LT_DLGLOBAL RTLD_GLOBAL
11757 # define LT_DLGLOBAL DL_GLOBAL
11759 # define LT_DLGLOBAL 0
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764 find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11770 # define LT_DLLAZY_OR_NOW DL_LAZY
11773 # define LT_DLLAZY_OR_NOW RTLD_NOW
11776 # define LT_DLLAZY_OR_NOW DL_NOW
11778 # define LT_DLLAZY_OR_NOW 0
11785 /* When -fvisbility=hidden is used, assume the code has been annotated
11786 correspondingly for the symbols needed. */
11787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788 void fnord () __attribute__((visibility("default")));
11791 void fnord () { int i=42; }
11794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795 int status = $lt_dlunknown;
11799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 else puts (dlerror ());
11805 /* dlclose (self); */
11813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814 (eval $ac_link) 2>&5
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11818 (.
/conftest
; exit; ) >&5 2>/dev
/null
11820 case x
$lt_status in
11821 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11822 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11823 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11826 # compilation failed
11827 lt_cv_dlopen_self_static
=no
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11838 CPPFLAGS
="$save_CPPFLAGS"
11839 LDFLAGS
="$save_LDFLAGS"
11844 case $lt_cv_dlopen_self in
11845 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11846 *) enable_dlopen_self
=unknown
;;
11849 case $lt_cv_dlopen_self_static in
11850 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11851 *) enable_dlopen_self_static
=unknown
;;
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11876 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11877 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11881 # FIXME - insert some real tests, host_os isn't really good enough
11884 if test -n "$STRIP" ; then
11885 striplib
="$STRIP -x"
11886 old_striplib
="$STRIP -S"
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11912 # Report which library types will actually be built
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916 $as_echo "$can_build_shared" >&6; }
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919 $as_echo_n "checking whether to build shared libraries... " >&6; }
11920 test "$can_build_shared" = "no" && enable_shared
=no
11922 # On AIX, shared libraries and static libraries use the same namespace, and
11923 # are all built from PIC.
11926 test "$enable_shared" = yes && enable_static
=no
11927 if test -n "$RANLIB"; then
11928 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11929 postinstall_cmds
='$RANLIB $lib'
11934 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11935 test "$enable_shared" = yes && enable_static
=no
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11940 $as_echo "$enable_shared" >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11943 $as_echo_n "checking whether to build static libraries... " >&6; }
11944 # Make sure either enable_shared or enable_static is yes.
11945 test "$enable_shared" = yes || enable_static
=yes
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11947 $as_echo "$enable_static" >&6; }
11954 ac_cpp
='$CPP $CPPFLAGS'
11955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11973 ac_config_commands
="$ac_config_commands libtool"
11978 # Only expand once:
11984 gdc_save_DFLAGS
=$GDCFLAGS
11985 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime $GDCFLAGS"
11988 # Source file extension for D test sources.
11991 # Object file extension for compiled D test sources.
11995 # Code to be used in simple compile tests
11996 lt_simple_compile_test_code
="\
11998 shared int some_variable = 0;
12001 # Code to be used in simple link tests
12002 lt_simple_link_test_code
="\
12004 extern(C) int main() { return 0; }
12007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12014 # If no C compiler was specified, use CC.
12017 # If no C compiler flags were specified, use CFLAGS.
12018 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12020 # Allow CC to be a program name with arguments.
12024 # save warnings/boilerplate of simple test code
12025 ac_outfile
=conftest.
$ac_objext
12026 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12027 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12028 _lt_compiler_boilerplate
=`cat conftest.err`
12031 ac_outfile
=conftest.
$ac_objext
12032 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12033 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12034 _lt_linker_boilerplate
=`cat conftest.err`
12038 # Allow CC to be a program name with arguments.
12040 lt_save_CFLAGS
=$CFLAGS
12048 for cc_temp
in $compiler""; do
12050 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12051 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12056 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12059 # GDC did not exist at the time GCC didn't implicitly link libc in.
12060 archive_cmds_need_lc_D
=no
12062 old_archive_cmds_D
=$old_archive_cmds
12063 reload_flag_D
=$reload_flag
12064 reload_cmds_D
=$reload_cmds
12067 ## There is no encapsulation within the following macros, do not change
12068 ## the running order or otherwise move them around unless you know exactly
12069 ## what you are doing...
12070 if test -n "$compiler"; then
12072 lt_prog_compiler_no_builtin_flag_D
=
12074 if test "$GCC" = yes; then
12075 case $cc_basename in
12077 lt_prog_compiler_no_builtin_flag_D
=' -Xcompiler -fno-builtin' ;;
12079 lt_prog_compiler_no_builtin_flag_D
=' -fno-builtin' ;;
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12083 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12084 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
12085 $as_echo_n "(cached) " >&6
12087 lt_cv_prog_compiler_rtti_exceptions
=no
12088 ac_outfile
=conftest.
$ac_objext
12089 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12090 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12091 # Insert the option either (1) after the last *FLAGS variable, or
12092 # (2) before a word containing "conftest.", or (3) at the end.
12093 # Note that $ac_compile itself does not contain backslashes and begins
12094 # with a dollar sign (not a hyphen), so the echo should work correctly.
12095 # The option is referenced via a variable to avoid confusing sed.
12096 lt_compile
=`echo "$ac_compile" | $SED \
12097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12099 -e 's:$: $lt_compiler_flag:'`
12100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12101 (eval "$lt_compile" 2>conftest.err
)
12103 cat conftest.err
>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 if (exit $ac_status) && test -s "$ac_outfile"; then
12106 # The compiler can only warn and ignore the option if not recognized
12107 # So say no if there are warnings other than the usual output.
12108 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12109 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12110 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12111 lt_cv_prog_compiler_rtti_exceptions
=yes
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12118 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12120 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12121 lt_prog_compiler_no_builtin_flag_D
="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12130 lt_prog_compiler_wl_D
=
12131 lt_prog_compiler_pic_D
=
12132 lt_prog_compiler_static_D
=
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12135 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12137 if test "$GCC" = yes; then
12138 lt_prog_compiler_wl_D
='-Wl,'
12139 lt_prog_compiler_static_D
='-static'
12143 # All AIX code is PIC.
12144 if test "$host_cpu" = ia64
; then
12145 # AIX 5 now supports IA64 processor
12146 lt_prog_compiler_static_D
='-Bstatic'
12148 lt_prog_compiler_pic_D
='-fPIC'
12154 # see comment about AmigaOS4 .so support
12155 lt_prog_compiler_pic_D
='-fPIC'
12158 # FIXME: we need at least 68020 code to build shared libraries, but
12159 # adding the `-m68020' flag to GCC prevents building anything better,
12161 lt_prog_compiler_pic_D
='-m68020 -resident32 -malways-restore-a4'
12166 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12167 # PIC is the default for these OSes.
12170 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12171 # This hack is so that the source file can tell whether it is being
12172 # built for inclusion in a dll (and should export symbols for example).
12173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12174 # (--disable-auto-import) libraries
12175 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12178 darwin
* | rhapsody
*)
12179 # PIC is the default on this platform
12180 # Common symbols not allowed in MH_DYLIB files
12181 lt_prog_compiler_pic_D
='-fno-common'
12185 # PIC is the default for Haiku.
12186 # The "-static" flag exists, but is broken.
12187 lt_prog_compiler_static_D
=
12191 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12192 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12193 # sets the default TLS model and affects inlining.
12199 lt_prog_compiler_pic_D
='-fPIC'
12205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12206 # Instead, we relocate shared libraries at runtime.
12210 # Just because we use GCC doesn't mean we suddenly get shared libraries
12211 # on systems that don't support them.
12212 lt_prog_compiler_can_build_shared_D
=no
12217 # QNX uses GNU C++, but need to define -shared option too, otherwise
12218 # it will coredump.
12219 lt_prog_compiler_pic_D
='-fPIC -shared'
12223 if test -d /usr
/nec
; then
12224 lt_prog_compiler_pic_D
=-Kconform_pic
12229 lt_prog_compiler_pic_D
='-fPIC'
12233 case $cc_basename in
12234 nvcc
*) # Cuda Compiler Driver 2.2
12235 lt_prog_compiler_wl_D
='-Xlinker '
12236 lt_prog_compiler_pic_D
='-Xcompiler -fPIC'
12240 # PORTME Check for flag to pass linker flags through the system compiler.
12243 lt_prog_compiler_wl_D
='-Wl,'
12244 if test "$host_cpu" = ia64
; then
12245 # AIX 5 now supports IA64 processor
12246 lt_prog_compiler_static_D
='-Bstatic'
12248 lt_prog_compiler_static_D
='-bnso -bI:/lib/syscalls.exp'
12252 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
12253 # This hack is so that the source file can tell whether it is being
12254 # built for inclusion in a dll (and should export symbols for example).
12255 lt_prog_compiler_pic_D
='-DDLL_EXPORT'
12258 hpux9
* | hpux10
* | hpux11
*)
12259 lt_prog_compiler_wl_D
='-Wl,'
12260 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12261 # not for PA HP-UX.
12267 lt_prog_compiler_pic_D
='+Z'
12270 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12271 lt_prog_compiler_static_D
='${wl}-a ${wl}archive'
12274 irix5
* | irix6
* | nonstopux
*)
12275 lt_prog_compiler_wl_D
='-Wl,'
12276 # PIC (with -KPIC) is the default.
12277 lt_prog_compiler_static_D
='-non_shared'
12280 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12281 case $cc_basename in
12282 # old Intel for x86_64 which still supported -KPIC.
12284 lt_prog_compiler_wl_D
='-Wl,'
12285 lt_prog_compiler_pic_D
='-KPIC'
12286 lt_prog_compiler_static_D
='-static'
12288 # icc used to be incompatible with GCC.
12289 # ICC 10 doesn't accept -KPIC any more.
12291 lt_prog_compiler_wl_D
='-Wl,'
12292 lt_prog_compiler_pic_D
='-fPIC'
12293 lt_prog_compiler_static_D
='-static'
12295 # Lahey Fortran 8.1.
12297 lt_prog_compiler_wl_D
='-Wl,'
12298 lt_prog_compiler_pic_D
='--shared'
12299 lt_prog_compiler_static_D
='--static'
12301 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12302 # Portland Group compilers (*not* the Pentium gcc compiler,
12303 # which looks to be a dead project)
12304 lt_prog_compiler_wl_D
='-Wl,'
12305 lt_prog_compiler_pic_D
='-fpic'
12306 lt_prog_compiler_static_D
='-Bstatic'
12309 lt_prog_compiler_wl_D
='-Wl,'
12310 # All Alpha code is PIC.
12311 lt_prog_compiler_static_D
='-non_shared'
12313 xl
* | bgxl
* | bgf
* | mpixl
*)
12314 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12315 lt_prog_compiler_wl_D
='-Wl,'
12316 lt_prog_compiler_pic_D
='-qpic'
12317 lt_prog_compiler_static_D
='-qstaticlink'
12320 case `$CC -V 2>&1 | sed 5q` in
12321 *Sun\ F
* |
*Sun
*Fortran
*)
12322 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12323 lt_prog_compiler_pic_D
='-KPIC'
12324 lt_prog_compiler_static_D
='-Bstatic'
12325 lt_prog_compiler_wl_D
=''
12329 lt_prog_compiler_pic_D
='-KPIC'
12330 lt_prog_compiler_static_D
='-Bstatic'
12331 lt_prog_compiler_wl_D
='-Wl,'
12339 lt_prog_compiler_pic_D
='-KPIC'
12340 lt_prog_compiler_static_D
='-Bstatic'
12344 # QNX uses GNU C++, but need to define -shared option too, otherwise
12345 # it will coredump.
12346 lt_prog_compiler_pic_D
='-fPIC -shared'
12349 osf3
* | osf4
* | osf5
*)
12350 lt_prog_compiler_wl_D
='-Wl,'
12351 # All OSF/1 code is PIC.
12352 lt_prog_compiler_static_D
='-non_shared'
12356 lt_prog_compiler_static_D
='-non_shared'
12360 lt_prog_compiler_pic_D
='-KPIC'
12361 lt_prog_compiler_static_D
='-Bstatic'
12362 case $cc_basename in
12363 f77
* | f90
* | f95
*)
12364 lt_prog_compiler_wl_D
='-Qoption ld ';;
12366 lt_prog_compiler_wl_D
='-Wl,';;
12371 lt_prog_compiler_wl_D
='-Qoption ld '
12372 lt_prog_compiler_pic_D
='-PIC'
12373 lt_prog_compiler_static_D
='-Bstatic'
12376 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12377 lt_prog_compiler_wl_D
='-Wl,'
12378 lt_prog_compiler_pic_D
='-KPIC'
12379 lt_prog_compiler_static_D
='-Bstatic'
12383 if test -d /usr
/nec
;then
12384 lt_prog_compiler_pic_D
='-Kconform_pic'
12385 lt_prog_compiler_static_D
='-Bstatic'
12389 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12390 lt_prog_compiler_wl_D
='-Wl,'
12391 lt_prog_compiler_pic_D
='-KPIC'
12392 lt_prog_compiler_static_D
='-Bstatic'
12396 lt_prog_compiler_wl_D
='-Wl,'
12397 lt_prog_compiler_can_build_shared_D
=no
12401 lt_prog_compiler_pic_D
='-pic'
12402 lt_prog_compiler_static_D
='-Bstatic'
12406 lt_prog_compiler_can_build_shared_D
=no
12412 # For platforms which do not support PIC, -DPIC is meaningless:
12414 lt_prog_compiler_pic_D
=
12417 lt_prog_compiler_pic_D
="$lt_prog_compiler_pic_D"
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12421 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12426 # Check to make sure the PIC flag actually works.
12428 if test -n "$lt_prog_compiler_pic_D"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12430 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12431 if ${lt_cv_prog_compiler_pic_works_D+:} false
; then :
12432 $as_echo_n "(cached) " >&6
12434 lt_cv_prog_compiler_pic_works_D
=no
12435 ac_outfile
=conftest.
$ac_objext
12436 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12437 lt_compiler_flag
="$lt_prog_compiler_pic_D"
12438 # Insert the option either (1) after the last *FLAGS variable, or
12439 # (2) before a word containing "conftest.", or (3) at the end.
12440 # Note that $ac_compile itself does not contain backslashes and begins
12441 # with a dollar sign (not a hyphen), so the echo should work correctly.
12442 # The option is referenced via a variable to avoid confusing sed.
12443 lt_compile
=`echo "$ac_compile" | $SED \
12444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12446 -e 's:$: $lt_compiler_flag:'`
12447 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12448 (eval "$lt_compile" 2>conftest.err
)
12450 cat conftest.err
>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 if (exit $ac_status) && test -s "$ac_outfile"; then
12453 # The compiler can only warn and ignore the option if not recognized
12454 # So say no if there are warnings other than the usual output.
12455 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
12456 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12457 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12458 lt_cv_prog_compiler_pic_works_D
=yes
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12465 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12467 if test x
"$lt_cv_prog_compiler_pic_works_D" = xyes
; then
12468 case $lt_prog_compiler_pic_D in
12470 *) lt_prog_compiler_pic_D
=" $lt_prog_compiler_pic_D" ;;
12473 lt_prog_compiler_pic_D
=
12474 lt_prog_compiler_can_build_shared_D
=no
12482 # Check to make sure the static flag actually works.
12484 wl
=$lt_prog_compiler_wl_D eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_D\"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12486 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12487 if ${lt_cv_prog_compiler_static_works_D+:} false
; then :
12488 $as_echo_n "(cached) " >&6
12490 lt_cv_prog_compiler_static_works_D
=no
12491 save_LDFLAGS
="$LDFLAGS"
12492 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12493 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12494 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12495 # The linker can only warn and ignore the option if not recognized
12496 # So say no if there are warnings
12497 if test -s conftest.err
; then
12498 # Append any errors to the config.log.
12499 cat conftest.err
1>&5
12500 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
12501 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12502 if diff conftest.exp conftest.er2
>/dev
/null
; then
12503 lt_cv_prog_compiler_static_works_D
=yes
12506 lt_cv_prog_compiler_static_works_D
=yes
12510 LDFLAGS
="$save_LDFLAGS"
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12514 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12516 if test x
"$lt_cv_prog_compiler_static_works_D" = xyes
; then
12519 lt_prog_compiler_static_D
=
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12526 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12527 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12528 $as_echo_n "(cached) " >&6
12530 lt_cv_prog_compiler_c_o_D
=no
12531 $RM -r conftest
2>/dev
/null
12535 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12537 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12538 # Insert the option either (1) after the last *FLAGS variable, or
12539 # (2) before a word containing "conftest.", or (3) at the end.
12540 # Note that $ac_compile itself does not contain backslashes and begins
12541 # with a dollar sign (not a hyphen), so the echo should work correctly.
12542 lt_compile
=`echo "$ac_compile" | $SED \
12543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12545 -e 's:$: $lt_compiler_flag:'`
12546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12547 (eval "$lt_compile" 2>out
/conftest.err
)
12549 cat out
/conftest.err
>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12553 # The compiler can only warn and ignore the option if not recognized
12554 # So say no if there are warnings
12555 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12556 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12557 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12558 lt_cv_prog_compiler_c_o_D
=yes
12563 # SGI C++ compiler will create directory out/ii_files/ for
12564 # template instantiation
12565 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12566 $RM out
/* && rmdir out
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12573 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12579 if ${lt_cv_prog_compiler_c_o_D+:} false
; then :
12580 $as_echo_n "(cached) " >&6
12582 lt_cv_prog_compiler_c_o_D
=no
12583 $RM -r conftest
2>/dev
/null
12587 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12589 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12590 # Insert the option either (1) after the last *FLAGS variable, or
12591 # (2) before a word containing "conftest.", or (3) at the end.
12592 # Note that $ac_compile itself does not contain backslashes and begins
12593 # with a dollar sign (not a hyphen), so the echo should work correctly.
12594 lt_compile
=`echo "$ac_compile" | $SED \
12595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12597 -e 's:$: $lt_compiler_flag:'`
12598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12599 (eval "$lt_compile" 2>out
/conftest.err
)
12601 cat out
/conftest.err
>&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12605 # The compiler can only warn and ignore the option if not recognized
12606 # So say no if there are warnings
12607 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
12608 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12609 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12610 lt_cv_prog_compiler_c_o_D
=yes
12615 # SGI C++ compiler will create directory out/ii_files/ for
12616 # template instantiation
12617 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
12618 $RM out
/* && rmdir out
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12625 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12630 hard_links
="nottested"
12631 if test "$lt_cv_prog_compiler_c_o_D" = no
&& test "$need_locks" != no
; then
12632 # do not overwrite the value of need_locks provided by the user
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12634 $as_echo_n "checking if we can lock with hard links... " >&6; }
12637 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12639 ln conftest.a conftest.b
2>&5 || hard_links
=no
12640 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12642 $as_echo "$hard_links" >&6; }
12643 if test "$hard_links" = no
; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12645 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12655 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12658 allow_undefined_flag_D
=
12659 always_export_symbols_D
=no
12661 archive_expsym_cmds_D
=
12662 compiler_needs_object_D
=no
12663 enable_shared_with_static_runtimes_D
=no
12664 export_dynamic_flag_spec_D
=
12665 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12666 hardcode_automatic_D
=no
12667 hardcode_direct_D
=no
12668 hardcode_direct_absolute_D
=no
12669 hardcode_libdir_flag_spec_D
=
12670 hardcode_libdir_flag_spec_ld_D
=
12671 hardcode_libdir_separator_D
=
12672 hardcode_minus_L_D
=no
12673 hardcode_shlibpath_var_D
=unsupported
12675 link_all_deplibs_D
=unknown
12677 module_expsym_cmds_D
=
12678 old_archive_from_new_cmds_D
=
12679 old_archive_from_expsyms_cmds_D
=
12680 thread_safe_flag_spec_D
=
12681 whole_archive_flag_spec_D
=
12682 # include_expsyms should be a list of space-separated symbols to be *always*
12683 # included in the symbol list
12685 # exclude_expsyms can be an extended regexp of symbols to exclude
12686 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12687 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12688 # as well as any symbol that contains `d'.
12689 exclude_expsyms_D
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12691 # platforms (ab)use it in PIC code, but their linkers get confused if
12692 # the symbol is explicitly referenced. Since portable code cannot
12693 # rely on this symbol name, it's probably fine to never include it in
12694 # preloaded symbol tables.
12695 # Exclude shared library initialization/finalization symbols.
12696 extract_expsyms_cmds
=
12699 cygwin
* | mingw
* | pw32
* | cegcc
*)
12700 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12701 # When not using gcc, we currently assume that we are using
12702 # Microsoft Visual C++.
12703 if test "$GCC" != yes; then
12708 # we just hope/assume this is gcc and not c89 (= MSVC++)
12718 # On some targets, GNU ld is compatible enough with the native linker
12719 # that we're better off using the native interface for both.
12720 lt_use_gnu_ld_interface
=no
12721 if test "$with_gnu_ld" = yes; then
12724 # The AIX port of GNU ld has always aspired to compatibility
12725 # with the native linker. However, as the warning in the GNU ld
12726 # block says, versions before 2.19.5* couldn't really create working
12727 # shared libraries, regardless of the interface used.
12728 case `$LD -v 2>&1` in
12729 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
12730 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
12731 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
12733 lt_use_gnu_ld_interface
=yes
12738 lt_use_gnu_ld_interface
=yes
12743 if test "$lt_use_gnu_ld_interface" = yes; then
12744 # If archive_cmds runs LD, not CC, wlarc should be empty
12747 # Set some defaults for GNU ld with shared library support. These
12748 # are reset later if shared libraries are not supported. Putting them
12749 # here allows them to be overridden if necessary.
12750 runpath_var
=LD_RUN_PATH
12751 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12752 export_dynamic_flag_spec_D
='${wl}--export-dynamic'
12753 # ancient GNU ld didn't support --whole-archive et. al.
12754 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
12755 whole_archive_flag_spec_D
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12757 whole_archive_flag_spec_D
=
12759 supports_anon_versioning
=no
12760 case `$LD -v 2>&1` in
12761 *GNU\ gold
*) supports_anon_versioning
=yes ;;
12762 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12763 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12764 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12765 *\
2.11.
*) ;; # other 2.11 versions
12766 *) supports_anon_versioning
=yes ;;
12769 # See if GNU ld supports shared libraries.
12772 # On AIX/PPC, the GNU linker is very broken
12773 if test "$host_cpu" != ia64
; then
12777 *** Warning: the GNU linker, at least up to release 2.19, is reported
12778 *** to be unable to reliably create shared libraries on AIX.
12779 *** Therefore, libtool is disabling shared libraries support. If you
12780 *** really care for shared libraries, you may want to install binutils
12781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12782 *** You will then need to restart the configuration process.
12791 # see comment about AmigaOS4 .so support
12792 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 archive_expsym_cmds_D
=''
12796 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)'
12797 hardcode_libdir_flag_spec_D
='-L$libdir'
12798 hardcode_minus_L_D
=yes
12804 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12805 allow_undefined_flag_D
=unsupported
12806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12807 # support --undefined. This deserves some investigation. FIXME
12808 archive_cmds_D
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 cygwin
* | mingw
* | pw32
* | cegcc
*)
12815 # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12816 # as there is no search path for DLLs.
12817 hardcode_libdir_flag_spec_D
='-L$libdir'
12818 export_dynamic_flag_spec_D
='${wl}--export-all-symbols'
12819 allow_undefined_flag_D
=unsupported
12820 always_export_symbols_D
=no
12821 enable_shared_with_static_runtimes_D
=yes
12822 export_symbols_cmds_D
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12824 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12825 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12826 # If the export-symbols file already is a .def file (1st line
12827 # is EXPORTS), use it as is; otherwise, prepend...
12828 archive_expsym_cmds_D
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12829 cp $export_symbols $output_objdir/$soname.def;
12831 echo EXPORTS > $output_objdir/$soname.def;
12832 cat $export_symbols >> $output_objdir/$soname.def;
12834 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12841 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 link_all_deplibs_D
=yes
12846 hardcode_direct_D
=no
12847 hardcode_shlibpath_var_D
=no
12848 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
12849 export_dynamic_flag_spec_D
='${wl}-E'
12850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12851 # Instead, shared libraries are loaded at an image base (0x10000000 by
12852 # default) and relocated if they conflict, which is a slow very memory
12853 # consuming and fragmenting process. To avoid this, we pick a random,
12854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12855 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12856 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'
12857 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'
12860 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12862 if test "$host_os" = linux-dietlibc
; then
12863 case $cc_basename in
12864 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
12867 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
12868 && test "$tmp_diet" = no
12870 tmp_addflag
=' $pic_flag'
12871 tmp_sharedflag
='-shared'
12872 case $cc_basename,$host_cpu in
12873 pgcc
*) # Portland Group C compiler
12874 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'
12875 tmp_addflag
=' $pic_flag'
12877 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
12878 # Portland Group f77 and f90 compilers
12879 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'
12880 tmp_addflag
=' $pic_flag -Mnomain' ;;
12881 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12882 tmp_addflag
=' -i_dynamic' ;;
12883 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12884 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12885 ifc
* | ifort
*) # Intel Fortran compiler
12886 tmp_addflag
=' -nofor_main' ;;
12887 lf95
*) # Lahey Fortran 8.1
12888 whole_archive_flag_spec_D
=
12889 tmp_sharedflag
='--shared' ;;
12890 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12891 tmp_sharedflag
='-qmkshrobj'
12893 nvcc
*) # Cuda Compiler Driver 2.2
12894 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'
12895 compiler_needs_object_D
=yes
12898 case `$CC -V 2>&1 | sed 5q` in
12899 *Sun\ C
*) # Sun C 5.9
12900 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'
12901 compiler_needs_object_D
=yes
12902 tmp_sharedflag
='-G' ;;
12903 *Sun\ F
*) # Sun Fortran 8.3
12904 tmp_sharedflag
='-G' ;;
12906 archive_cmds_D
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12908 if test "x$supports_anon_versioning" = xyes
; then
12909 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12910 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12911 echo "local: *; };" >> $output_objdir/$libname.ver~
12912 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12915 case $cc_basename in
12916 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
12917 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12918 whole_archive_flag_spec_D
='--whole-archive$convenience --no-whole-archive'
12919 hardcode_libdir_flag_spec_D
=
12920 hardcode_libdir_flag_spec_ld_D
='-rpath $libdir'
12921 archive_cmds_D
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12922 if test "x$supports_anon_versioning" = xyes
; then
12923 archive_expsym_cmds_D
='echo "{ global:" > $output_objdir/$libname.ver~
12924 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12925 echo "local: *; };" >> $output_objdir/$libname.ver~
12926 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12936 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12937 archive_cmds_D
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12940 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12941 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12946 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
12950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12951 *** create shared libraries on Solaris systems. Therefore, libtool
12952 *** is disabling shared libraries support. We urge you to upgrade GNU
12953 *** binutils to release 2.9.1 or newer. Another option is to modify
12954 *** your PATH or compiler configuration so that the native linker is
12955 *** used, and then restart.
12958 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12959 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12960 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12966 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12967 case `$LD -v 2>&1` in
12968 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12973 *** reliably create shared libraries on SCO systems. Therefore, libtool
12974 *** is disabling shared libraries support. We urge you to upgrade GNU
12975 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12976 *** your PATH or compiler configuration so that the native linker is
12977 *** used, and then restart.
12982 # For security reasons, it is highly recommended that you always
12983 # use absolute paths for naming shared libraries, and exclude the
12984 # DT_RUNPATH tag from executables and libraries. But doing so
12985 # requires that you compile everything twice, which is a pain.
12986 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12987 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
12988 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12998 archive_cmds_D
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13000 hardcode_direct_D
=yes
13001 hardcode_shlibpath_var_D
=no
13005 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13006 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13007 archive_expsym_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13014 if test "$ld_shlibs_D" = no
; then
13016 hardcode_libdir_flag_spec_D
=
13017 export_dynamic_flag_spec_D
=
13018 whole_archive_flag_spec_D
=
13021 # PORTME fill in a description of your system's linker (not GNU ld)
13024 allow_undefined_flag_D
=unsupported
13025 always_export_symbols_D
=yes
13026 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'
13027 # Note: this linker hardcodes the directories in LIBPATH if there
13028 # are no directories specified by -L.
13029 hardcode_minus_L_D
=yes
13030 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13031 # Neither direct hardcoding nor static linking is supported with a
13033 hardcode_direct_D
=unsupported
13038 if test "$host_cpu" = ia64
; then
13039 # On IA64, the linker does run time linking by default, so we don't
13040 # have to do anything special.
13041 aix_use_runtimelinking
=no
13042 exp_sym_flag
='-Bexport'
13045 # If we're using GNU nm, then we don't want the "-C" option.
13046 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13047 # Also, AIX nm treats weak defined symbols like other global
13048 # defined symbols, whereas GNU nm marks them as "W".
13049 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13050 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'
13052 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'
13054 aix_use_runtimelinking
=no
13056 # Test if we are trying to use run time linking or normal
13057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13058 # need to do runtime linking.
13059 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13060 for ld_flag
in $LDFLAGS; do
13061 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
13062 aix_use_runtimelinking
=yes
13069 exp_sym_flag
='-bexport'
13070 no_entry_flag
='-bnoentry'
13073 # When large executables or shared objects are built, AIX ld can
13074 # have problems creating the table of contents. If linking a library
13075 # or program results in "error TOC overflow" add -mminimal-toc to
13076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13080 hardcode_direct_D
=yes
13081 hardcode_direct_absolute_D
=yes
13082 hardcode_libdir_separator_D
=':'
13083 link_all_deplibs_D
=yes
13084 file_list_spec_D
='${wl}-f,'
13086 if test "$GCC" = yes; then
13087 case $host_os in aix4.
[012]|aix4.
[012].
*)
13088 # We only want to do this on AIX 4.2 and lower, the check
13089 # below for broken collect2 doesn't work under 4.3+
13090 collect2name
=`${CC} -print-prog-name=collect2`
13091 if test -f "$collect2name" &&
13092 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13094 # We have reworked collect2
13097 # We have old collect2
13098 hardcode_direct_D
=unsupported
13099 # It fails to find uninstalled libraries when the uninstalled
13100 # path is not listed in the libpath. Setting hardcode_minus_L
13101 # to unsupported forces relinking
13102 hardcode_minus_L_D
=yes
13103 hardcode_libdir_flag_spec_D
='-L$libdir'
13104 hardcode_libdir_separator_D
=
13108 shared_flag
='-shared'
13109 if test "$aix_use_runtimelinking" = yes; then
13110 shared_flag
="$shared_flag "'${wl}-G'
13114 if test "$host_cpu" = ia64
; then
13115 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13116 # chokes on -Wl,-G. The following line is correct:
13119 if test "$aix_use_runtimelinking" = yes; then
13120 shared_flag
='${wl}-G'
13122 shared_flag
='${wl}-bM:SRE'
13127 export_dynamic_flag_spec_D
='${wl}-bexpall'
13128 # It seems that -bexpall does not export symbols beginning with
13129 # underscore (_), so it is better to generate a list of symbols to export.
13130 always_export_symbols_D
=yes
13131 if test "$aix_use_runtimelinking" = yes; then
13132 # Warning - without using the other runtime loading flags (-brtl),
13133 # -berok will link without error, but may produce a broken library.
13134 allow_undefined_flag_D
='-berok'
13135 # Determine the default libpath from the value encoded in an
13136 # empty executable.
13137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13148 if ac_fn_c_try_link
"$LINENO"; then :
13150 lt_aix_libpath_sed
='
13151 /Import File Strings/,/^$/ {
13157 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13158 # Check for a 64-bit object if we didn't find anything.
13159 if test -z "$aix_libpath"; then
13160 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13163 rm -f core conftest.err conftest.
$ac_objext \
13164 conftest
$ac_exeext conftest.
$ac_ext
13165 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13167 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13168 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"
13170 if test "$host_cpu" = ia64
; then
13171 hardcode_libdir_flag_spec_D
='${wl}-R $libdir:/usr/lib:/lib'
13172 allow_undefined_flag_D
="-z nodefs"
13173 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"
13175 # Determine the default libpath from the value encoded in an
13176 # empty executable.
13177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13188 if ac_fn_c_try_link
"$LINENO"; then :
13190 lt_aix_libpath_sed
='
13191 /Import File Strings/,/^$/ {
13197 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13198 # Check for a 64-bit object if we didn't find anything.
13199 if test -z "$aix_libpath"; then
13200 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13203 rm -f core conftest.err conftest.
$ac_objext \
13204 conftest
$ac_exeext conftest.
$ac_ext
13205 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13207 hardcode_libdir_flag_spec_D
='${wl}-blibpath:$libdir:'"$aix_libpath"
13208 # Warning - without using the other run time loading flags,
13209 # -berok will link without error, but may produce a broken library.
13210 no_undefined_flag_D
=' ${wl}-bernotok'
13211 allow_undefined_flag_D
=' ${wl}-berok'
13212 if test "$with_gnu_ld" = yes; then
13213 # We only use this code for GNU lds that support --whole-archive.
13214 whole_archive_flag_spec_D
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13216 # Exported symbols can be pulled into shared objects from archives
13217 whole_archive_flag_spec_D
='$convenience'
13219 archive_cmds_need_lc_D
=yes
13220 # This is similar to how AIX traditionally builds its shared libraries.
13221 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'
13229 # see comment about AmigaOS4 .so support
13230 archive_cmds_D
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13231 archive_expsym_cmds_D
=''
13234 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)'
13235 hardcode_libdir_flag_spec_D
='-L$libdir'
13236 hardcode_minus_L_D
=yes
13242 export_dynamic_flag_spec_D
=-rdynamic
13245 cygwin
* | mingw
* | pw32
* | cegcc
*)
13246 # When not using gcc, we currently assume that we are using
13247 # Microsoft Visual C++.
13248 # hardcode_libdir_flag_spec is actually meaningless, as there is
13249 # no search path for DLLs.
13250 hardcode_libdir_flag_spec_D
=' '
13251 allow_undefined_flag_D
=unsupported
13252 # Tell ltmain to make .lib files, not .a files.
13254 # Tell ltmain to make .dll files, not .so files.
13256 # FIXME: Setting linknames here is a bad hack.
13257 archive_cmds_D
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13258 # The linker will automatically build a .lib file if we build a DLL.
13259 old_archive_from_new_cmds_D
='true'
13260 # FIXME: Should let the user specify the lib program.
13261 old_archive_cmds_D
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13262 fix_srcfile_path_D
='`cygpath -w "$srcfile"`'
13263 enable_shared_with_static_runtimes_D
=yes
13266 darwin
* | rhapsody
*)
13269 archive_cmds_need_lc_D
=no
13270 hardcode_direct_D
=no
13271 hardcode_automatic_D
=yes
13272 hardcode_shlibpath_var_D
=unsupported
13273 if test "$lt_cv_ld_force_load" = "yes"; then
13274 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\"`'
13276 whole_archive_flag_spec_D
=''
13278 link_all_deplibs_D
=yes
13279 allow_undefined_flag_D
="$_lt_dar_allow_undefined"
13280 case $cc_basename in
13281 ifort
*) _lt_dar_can_shared
=yes ;;
13282 *) _lt_dar_can_shared
=$GCC ;;
13284 if test "$_lt_dar_can_shared" = "yes"; then
13285 output_verbose_link_cmd
=func_echo_all
13286 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}"
13287 module_cmds_D
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13288 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}"
13289 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}"
13298 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_libdir_flag_spec_D
='-L$libdir'
13300 hardcode_shlibpath_var_D
=no
13303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13304 # support. Future versions do this automatically, but an explicit c++rt0.o
13305 # does not break anything, and helps significantly (at the cost of a little
13308 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13309 hardcode_libdir_flag_spec_D
='-R$libdir'
13310 hardcode_direct_D
=yes
13311 hardcode_shlibpath_var_D
=no
13314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13316 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13317 hardcode_direct_D
=yes
13318 hardcode_minus_L_D
=yes
13319 hardcode_shlibpath_var_D
=no
13322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13323 freebsd
* | dragonfly
*)
13324 archive_cmds_D
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13325 hardcode_libdir_flag_spec_D
='-R$libdir'
13326 hardcode_direct_D
=yes
13327 hardcode_shlibpath_var_D
=no
13331 if test "$GCC" = yes; then
13332 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'
13334 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'
13336 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13337 hardcode_libdir_separator_D
=:
13338 hardcode_direct_D
=yes
13340 # hardcode_minus_L: Not really in the search PATH,
13341 # but as the default location of the library.
13342 hardcode_minus_L_D
=yes
13343 export_dynamic_flag_spec_D
='${wl}-E'
13347 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13348 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13350 archive_cmds_D
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13352 if test "$with_gnu_ld" = no
; then
13353 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13354 hardcode_libdir_flag_spec_ld_D
='+b $libdir'
13355 hardcode_libdir_separator_D
=:
13356 hardcode_direct_D
=yes
13357 hardcode_direct_absolute_D
=yes
13358 export_dynamic_flag_spec_D
='${wl}-E'
13359 # hardcode_minus_L: Not really in the search PATH,
13360 # but as the default location of the library.
13361 hardcode_minus_L_D
=yes
13366 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
13369 archive_cmds_D
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13372 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13375 archive_cmds_D
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13381 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13387 archive_cmds_D
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13391 if test "$with_gnu_ld" = no
; then
13392 hardcode_libdir_flag_spec_D
='${wl}+b ${wl}$libdir'
13393 hardcode_libdir_separator_D
=:
13397 hardcode_direct_D
=no
13398 hardcode_shlibpath_var_D
=no
13401 hardcode_direct_D
=yes
13402 hardcode_direct_absolute_D
=yes
13403 export_dynamic_flag_spec_D
='${wl}-E'
13405 # hardcode_minus_L: Not really in the search PATH,
13406 # but as the default location of the library.
13407 hardcode_minus_L_D
=yes
13413 irix5
* | irix6
* | nonstopux
*)
13414 if test "$GCC" = yes; then
13415 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'
13416 # Try to use the -exported_symbol ld option, if it does not
13417 # work, assume that -exports_file does not work either and
13418 # implicitly export all symbols.
13419 save_LDFLAGS
="$LDFLAGS"
13420 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13425 if ac_fn_c_try_link
"$LINENO"; then :
13426 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'
13429 rm -f core conftest.err conftest.
$ac_objext \
13430 conftest
$ac_exeext conftest.
$ac_ext
13431 LDFLAGS
="$save_LDFLAGS"
13433 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'
13434 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'
13436 archive_cmds_need_lc_D
='no'
13437 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13438 hardcode_libdir_separator_D
=:
13439 inherit_rpath_D
=yes
13440 link_all_deplibs_D
=yes
13444 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13445 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13447 archive_cmds_D
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13449 hardcode_libdir_flag_spec_D
='-R$libdir'
13450 hardcode_direct_D
=yes
13451 hardcode_shlibpath_var_D
=no
13455 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct_D
=yes
13457 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13458 hardcode_libdir_separator_D
=:
13459 hardcode_shlibpath_var_D
=no
13466 if test -f /usr
/libexec
/ld.so
; then
13467 hardcode_direct_D
=yes
13468 hardcode_shlibpath_var_D
=no
13469 hardcode_direct_absolute_D
=yes
13470 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13471 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13472 archive_expsym_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13473 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13474 export_dynamic_flag_spec_D
='${wl}-E'
13477 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13478 archive_cmds_D
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_libdir_flag_spec_D
='-R$libdir'
13482 archive_cmds_D
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13483 hardcode_libdir_flag_spec_D
='${wl}-rpath,$libdir'
13493 hardcode_libdir_flag_spec_D
='-L$libdir'
13494 hardcode_minus_L_D
=yes
13495 allow_undefined_flag_D
=unsupported
13496 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'
13497 old_archive_from_new_cmds_D
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13501 if test "$GCC" = yes; then
13502 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13503 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'
13505 allow_undefined_flag_D
=' -expect_unresolved \*'
13506 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'
13508 archive_cmds_need_lc_D
='no'
13509 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13510 hardcode_libdir_separator_D
=:
13513 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13514 if test "$GCC" = yes; then
13515 allow_undefined_flag_D
=' ${wl}-expect_unresolved ${wl}\*'
13516 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'
13517 hardcode_libdir_flag_spec_D
='${wl}-rpath ${wl}$libdir'
13519 allow_undefined_flag_D
=' -expect_unresolved \*'
13520 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'
13521 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~
13522 $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'
13524 # Both c and cxx compiler support -rpath directly
13525 hardcode_libdir_flag_spec_D
='-rpath $libdir'
13527 archive_cmds_need_lc_D
='no'
13528 hardcode_libdir_separator_D
=:
13532 no_undefined_flag_D
=' -z defs'
13533 if test "$GCC" = yes; then
13535 archive_cmds_D
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13536 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13537 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13539 case `$CC -V 2>&1` in
13542 archive_cmds_D
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13544 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13548 archive_cmds_D
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13549 archive_expsym_cmds_D
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13550 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13554 hardcode_libdir_flag_spec_D
='-R$libdir'
13555 hardcode_shlibpath_var_D
=no
13557 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13559 # The compiler driver will combine and reorder linker options,
13560 # but understands `-z linker_flag'. GCC discards it without `$wl',
13561 # but is careful enough not to reorder.
13562 # Supported since Solaris 2.6 (maybe 2.5.1?)
13563 if test "$GCC" = yes; then
13564 whole_archive_flag_spec_D
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13566 whole_archive_flag_spec_D
='-z allextract$convenience -z defaultextract'
13570 link_all_deplibs_D
=yes
13574 if test "x$host_vendor" = xsequent
; then
13575 # Use $CC to link under sequent, because it throws in some extra .o
13576 # files that make .init and .fini sections work.
13577 archive_cmds_D
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13579 archive_cmds_D
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13581 hardcode_libdir_flag_spec_D
='-L$libdir'
13582 hardcode_direct_D
=yes
13583 hardcode_minus_L_D
=yes
13584 hardcode_shlibpath_var_D
=no
13588 case $host_vendor in
13590 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13591 hardcode_direct_D
=yes # is this really true???
13594 ## LD is ld it makes a PLAMLIB
13595 ## CC just makes a GrossModule.
13596 archive_cmds_D
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13597 reload_cmds_D
='$CC -r -o $output$reload_objs'
13598 hardcode_direct_D
=no
13601 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13602 hardcode_direct_D
=no
#Motorola manual says yes, but my tests say they lie
13605 runpath_var
='LD_RUN_PATH'
13606 hardcode_shlibpath_var_D
=no
13610 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_shlibpath_var_D
=no
13612 export_dynamic_flag_spec_D
='-Bexport'
13616 if test -d /usr
/nec
; then
13617 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13618 hardcode_shlibpath_var_D
=no
13619 runpath_var
=LD_RUN_PATH
13620 hardcode_runpath_var
=yes
13625 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13626 no_undefined_flag_D
='${wl}-z,text'
13627 archive_cmds_need_lc_D
=no
13628 hardcode_shlibpath_var_D
=no
13629 runpath_var
='LD_RUN_PATH'
13631 if test "$GCC" = yes; then
13632 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13633 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13635 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13636 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 sysv5
* | sco3.2v5
* | sco5v6
*)
13641 # Note: We can NOT use -z defs as we might desire, because we do not
13642 # link with -lc, and that would cause any symbols used from libc to
13643 # always be unresolved, which means just about no library would
13644 # ever link correctly. If we're not using GNU ld we use -z text
13645 # though, which does catch some bad symbols but isn't as heavy-handed
13647 no_undefined_flag_D
='${wl}-z,text'
13648 allow_undefined_flag_D
='${wl}-z,nodefs'
13649 archive_cmds_need_lc_D
=no
13650 hardcode_shlibpath_var_D
=no
13651 hardcode_libdir_flag_spec_D
='${wl}-R,$libdir'
13652 hardcode_libdir_separator_D
=':'
13653 link_all_deplibs_D
=yes
13654 export_dynamic_flag_spec_D
='${wl}-Bexport'
13655 runpath_var
='LD_RUN_PATH'
13657 if test "$GCC" = yes; then
13658 archive_cmds_D
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13659 archive_expsym_cmds_D
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_cmds_D
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 archive_expsym_cmds_D
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13667 archive_cmds_D
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13668 hardcode_libdir_flag_spec_D
='-L$libdir'
13669 hardcode_shlibpath_var_D
=no
13677 if test x
$host_vendor = xsni
; then
13679 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
13680 export_dynamic_flag_spec_D
='${wl}-Blargedynsym'
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13687 $as_echo "$ld_shlibs_D" >&6; }
13688 test "$ld_shlibs_D" = no
&& can_build_shared
=no
13690 with_gnu_ld_D
=$with_gnu_ld
13698 # Do we need to explicitly link libc?
13700 case "x$archive_cmds_need_lc_D" in
13702 # Assume -lc should be added
13703 archive_cmds_need_lc_D
=yes
13705 if test "$enable_shared" = yes && test "$GCC" = yes; then
13706 case $archive_cmds_D in
13708 # FIXME: we may have to deal with multi-command sequences.
13711 # Test whether the compiler implicitly links with -lc since on some
13712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13713 # to ld, don't add -lc before -lgcc.
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13715 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13716 if ${lt_cv_archive_cmds_need_lc_D+:} false
; then :
13717 $as_echo_n "(cached) " >&6
13720 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13723 (eval $ac_compile) 2>&5
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; } 2>conftest.err
; then
13729 libobjs
=conftest.
$ac_objext
13731 wl
=$lt_prog_compiler_wl_D
13732 pic_flag
=$lt_prog_compiler_pic_D
13738 lt_save_allow_undefined_flag
=$allow_undefined_flag_D
13739 allow_undefined_flag_D
=
13740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13741 (eval $archive_cmds_D 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13744 test $ac_status = 0; }
13746 lt_cv_archive_cmds_need_lc_D
=no
13748 lt_cv_archive_cmds_need_lc_D
=yes
13750 allow_undefined_flag_D
=$lt_save_allow_undefined_flag
13752 cat conftest.err
1>&5
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13758 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13759 archive_cmds_need_lc_D
=$lt_cv_archive_cmds_need_lc_D
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13830 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13832 if test -n "$hardcode_libdir_flag_spec_D" ||
13833 test -n "$runpath_var_D" ||
13834 test "X$hardcode_automatic_D" = "Xyes" ; then
13836 # We can hardcode non-existent directories.
13837 if test "$hardcode_direct_D" != no
&&
13838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13839 # have to relink, otherwise we might link with an installed library
13840 # when we should be linking with a yet-to-be-installed one
13841 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13842 test "$hardcode_minus_L_D" != no
; then
13843 # Linking always hardcodes the temporary library directory.
13844 hardcode_action_D
=relink
13846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13847 hardcode_action_D
=immediate
13850 # We cannot hardcode anything, or else we can only hardcode existing
13852 hardcode_action_D
=unsupported
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13855 $as_echo "$hardcode_action_D" >&6; }
13857 if test "$hardcode_action_D" = relink ||
13858 test "$inherit_rpath_D" = yes; then
13859 # Fast installation is not supported
13860 enable_fast_install
=no
13861 elif test "$shlibpath_overrides_runpath" = yes ||
13862 test "$enable_shared" = no
; then
13863 # Fast installation is not necessary
13864 enable_fast_install
=needless
13876 ac_cpp
='$CPP $CPPFLAGS'
13877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13884 CFLAGS
=$lt_save_CFLAGS
13886 GDCFLAGS
=$gdc_save_DFLAGS
13889 # libtool variables for Phobos shared and position-independent compiles.
13891 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13892 # creating shared objects. Default: -fversion=Shared.
13894 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13895 # creating position-independent objects. This varies with the target
13896 # hardware and operating system, but is often: -fPIC.
13898 # The distinction between pic and shared compilation flags is not present in
13899 # libtool, and so we make it here. How it is handled is that in shared
13900 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13901 # ensure that conditional compilation of shared runtime code is compiled in.
13902 # The original PIC flags are then used in the compilation of every object.
13904 # Why are objects destined for libgphobos.a compiled with -fPIC?
13905 # Because -fPIC is not harmful to use for objects destined for static
13906 # libraries. In addition, using -fPIC will allow the use of static
13907 # libgphobos.a in the creation of other D shared libraries.
13908 if test "$enable_shared" = yes; then
13909 phobos_compiler_pic_flag
="$lt_prog_compiler_pic_D"
13910 phobos_compiler_shared_flag
="-fversion=Shared"
13912 phobos_compiler_pic_flag
=
13913 phobos_compiler_shared_flag
=
13918 # Override the libtool's pic_flag and pic_mode.
13919 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13920 # NB: this impacts --with-pic and --without-pic.
13921 lt_prog_compiler_pic_D
="$phobos_compiler_shared_flag"
13924 # Determine what GCC version number to use in filesystem paths.
13926 get_gcc_base_ver
="cat"
13928 # Check whether --with-gcc-major-version-only was given.
13929 if test "${with_gcc_major_version_only+set}" = set; then :
13930 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
13931 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
13939 # libphobos/libdruntime specific options and feature detection
13941 # These need to be absolute paths, yet at the same time need to
13942 # canonicalize only relative paths, because then amd will not unmount
13943 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13944 libphobos_builddir
=`${PWDCMD-pwd}`
13946 \\/$
* | ?
:\\/*) libphobos_srcdir
=${srcdir} ;;
13947 *) libphobos_srcdir
=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13953 if test ${multilib} = yes; then
13954 multilib_arg
="--enable-multilib"
13960 # Check whether --enable-werror was given.
13961 if test "${enable_werror+set}" = set; then :
13962 enableval
=$enable_werror;
13966 if test "x$enable_werror" = "xyes"; then
13967 WERROR_FLAG
="-Werror"
13971 # Check whether --enable-druntime-gc was given.
13972 if test "${enable_druntime_gc+set}" = set; then :
13973 enableval
=$enable_druntime_gc; enable_druntime_gc
=no
13975 enable_druntime_gc
=yes
13979 if test "$enable_druntime_gc" = "yes"; then
13980 DRUNTIME_GC_ENABLE_TRUE
=
13981 DRUNTIME_GC_ENABLE_FALSE
='#'
13983 DRUNTIME_GC_ENABLE_TRUE
='#'
13984 DRUNTIME_GC_ENABLE_FALSE
=
13989 druntime_target_cpu_parsed
=""
13990 case "$target_cpu" in
13992 druntime_target_cpu_parsed
="aarch64"
13994 arm
*) druntime_target_cpu_parsed
="arm"
13996 mips
*) druntime_target_cpu_parsed
="mips"
13998 powerpc
) druntime_target_cpu_parsed
="powerpc"
14001 druntime_target_cpu_parsed
="powerpc64"
14004 druntime_target_cpu_parsed
="x86"
14007 if test "$druntime_target_cpu_parsed" = "aarch64"; then
14008 DRUNTIME_CPU_AARCH64_TRUE
=
14009 DRUNTIME_CPU_AARCH64_FALSE
='#'
14011 DRUNTIME_CPU_AARCH64_TRUE
='#'
14012 DRUNTIME_CPU_AARCH64_FALSE
=
14015 if test "$druntime_target_cpu_parsed" = "arm"; then
14016 DRUNTIME_CPU_ARM_TRUE
=
14017 DRUNTIME_CPU_ARM_FALSE
='#'
14019 DRUNTIME_CPU_ARM_TRUE
='#'
14020 DRUNTIME_CPU_ARM_FALSE
=
14023 if test "$druntime_target_cpu_parsed" = "mips"; then
14024 DRUNTIME_CPU_MIPS_TRUE
=
14025 DRUNTIME_CPU_MIPS_FALSE
='#'
14027 DRUNTIME_CPU_MIPS_TRUE
='#'
14028 DRUNTIME_CPU_MIPS_FALSE
=
14031 if test "$druntime_target_cpu_parsed" = "powerpc"; then
14032 DRUNTIME_CPU_POWERPC_TRUE
=
14033 DRUNTIME_CPU_POWERPC_FALSE
='#'
14035 DRUNTIME_CPU_POWERPC_TRUE
='#'
14036 DRUNTIME_CPU_POWERPC_FALSE
=
14039 if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14040 DRUNTIME_CPU_POWERPC64_TRUE
=
14041 DRUNTIME_CPU_POWERPC64_FALSE
='#'
14043 DRUNTIME_CPU_POWERPC64_TRUE
='#'
14044 DRUNTIME_CPU_POWERPC64_FALSE
=
14047 if test "$druntime_target_cpu_parsed" = "x86"; then
14048 DRUNTIME_CPU_X86_TRUE
=
14049 DRUNTIME_CPU_X86_FALSE
='#'
14051 DRUNTIME_CPU_X86_TRUE
='#'
14052 DRUNTIME_CPU_X86_FALSE
=
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14058 $as_echo_n "checking for target OS... " >&6; }
14059 if ${druntime_cv_target_os+:} false
; then :
14060 $as_echo_n "(cached) " >&6
14062 druntime_cv_target_os
=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14065 $as_echo "$druntime_cv_target_os" >&6; }
14066 if test -z "$druntime_cv_target_os"; then :
14067 as_fn_error $?
"can't detect target OS" "$LINENO" 5
14072 # Check whether --enable-unix was given.
14073 if test "${enable_unix+set}" = set; then :
14074 enableval
=$enable_unix; :
14080 case "$druntime_cv_target_os" in
14081 aix
*|
*bsd
*|cygwin
*|darwin
*|gnu
*|linux
*|skyos
*|
*solaris
*|sysv
*) d_have_unix
=1 ;;
14083 if test -n "$d_have_unix" && test "$enable_unix" = auto
; then
14086 if test "$enable_unix" = "yes"; then
14087 DRUNTIME_OS_UNIX_TRUE
=
14088 DRUNTIME_OS_UNIX_FALSE
='#'
14090 DRUNTIME_OS_UNIX_TRUE
='#'
14091 DRUNTIME_OS_UNIX_FALSE
=
14098 druntime_target_os_parsed
=""
14099 case "$druntime_cv_target_os" in
14100 aix
*) druntime_target_os_parsed
="aix"
14103 druntime_target_os_parsed
="android"
14105 darwin
*) druntime_target_os_parsed
="darwin"
14108 druntime_target_os_parsed
="dragonflybsd"
14110 freebsd
*|k
*bsd
*-gnu)
14111 druntime_target_os_parsed
="freebsd"
14114 druntime_target_os_parsed
="openbsd"
14117 druntime_target_os_parsed
="netbsd"
14119 linux
*) druntime_target_os_parsed
="linux"
14121 mingw
*) druntime_target_os_parsed
="mingw"
14123 *solaris
*) druntime_target_os_parsed
="solaris"
14125 if test "$druntime_target_os_parsed" = "aix"; then
14126 DRUNTIME_OS_AIX_TRUE
=
14127 DRUNTIME_OS_AIX_FALSE
='#'
14129 DRUNTIME_OS_AIX_TRUE
='#'
14130 DRUNTIME_OS_AIX_FALSE
=
14133 if test "$druntime_target_os_parsed" = "android"; then
14134 DRUNTIME_OS_ANDROID_TRUE
=
14135 DRUNTIME_OS_ANDROID_FALSE
='#'
14137 DRUNTIME_OS_ANDROID_TRUE
='#'
14138 DRUNTIME_OS_ANDROID_FALSE
=
14141 if test "$druntime_target_os_parsed" = "darwin"; then
14142 DRUNTIME_OS_DARWIN_TRUE
=
14143 DRUNTIME_OS_DARWIN_FALSE
='#'
14145 DRUNTIME_OS_DARWIN_TRUE
='#'
14146 DRUNTIME_OS_DARWIN_FALSE
=
14149 if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14150 DRUNTIME_OS_DRAGONFLYBSD_TRUE
=
14151 DRUNTIME_OS_DRAGONFLYBSD_FALSE
='#'
14153 DRUNTIME_OS_DRAGONFLYBSD_TRUE
='#'
14154 DRUNTIME_OS_DRAGONFLYBSD_FALSE
=
14157 if test "$druntime_target_os_parsed" = "freebsd"; then
14158 DRUNTIME_OS_FREEBSD_TRUE
=
14159 DRUNTIME_OS_FREEBSD_FALSE
='#'
14161 DRUNTIME_OS_FREEBSD_TRUE
='#'
14162 DRUNTIME_OS_FREEBSD_FALSE
=
14165 if test "$druntime_target_os_parsed" = "netbsd"; then
14166 DRUNTIME_OS_NETBSD_TRUE
=
14167 DRUNTIME_OS_NETBSD_FALSE
='#'
14169 DRUNTIME_OS_NETBSD_TRUE
='#'
14170 DRUNTIME_OS_NETBSD_FALSE
=
14173 if test "$druntime_target_os_parsed" = "openbsd"; then
14174 DRUNTIME_OS_OPENBSD_TRUE
=
14175 DRUNTIME_OS_OPENBSD_FALSE
='#'
14177 DRUNTIME_OS_OPENBSD_TRUE
='#'
14178 DRUNTIME_OS_OPENBSD_FALSE
=
14181 if test "$druntime_target_os_parsed" = "linux"; then
14182 DRUNTIME_OS_LINUX_TRUE
=
14183 DRUNTIME_OS_LINUX_FALSE
='#'
14185 DRUNTIME_OS_LINUX_TRUE
='#'
14186 DRUNTIME_OS_LINUX_FALSE
=
14189 if test "$druntime_target_os_parsed" = "mingw"; then
14190 DRUNTIME_OS_MINGW_TRUE
=
14191 DRUNTIME_OS_MINGW_FALSE
='#'
14193 DRUNTIME_OS_MINGW_TRUE
='#'
14194 DRUNTIME_OS_MINGW_FALSE
=
14197 if test "$druntime_target_os_parsed" = "solaris"; then
14198 DRUNTIME_OS_SOLARIS_TRUE
=
14199 DRUNTIME_OS_SOLARIS_FALSE
='#'
14201 DRUNTIME_OS_SOLARIS_TRUE
='#'
14202 DRUNTIME_OS_SOLARIS_FALSE
=
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14209 $as_echo_n "checking for thread model used by GDC... " >&6; }
14210 d_thread_model
=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14212 $as_echo "$d_thread_model" >&6; }
14214 # Map from thread model to thread interface.
14216 case $d_thread_model in
14217 aix
) DCFG_THREAD_MODEL
="Posix" ;;
14218 lynx
) DCFG_THREAD_MODEL
="Posix" ;;
14219 posix
) DCFG_THREAD_MODEL
="Posix" ;;
14220 single
) DCFG_THREAD_MODEL
="Single" ;;
14221 win32
) DCFG_THREAD_MODEL
="Win32" ;;
14222 # TODO: These targets need porting.
14223 dce|mipssde|rtems|tpf|vxworks
)
14224 DCFG_THREAD_MODEL
="Single" ;;
14225 *) as_fn_error
"Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14232 ac_cpp
='$CPP $CPPFLAGS'
14233 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14234 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14235 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14238 $as_echo_n "checking for ARM unwinder... " >&6; }
14239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241 #include <unwind.h>
14246 #if __ARM_EABI_UNWINDER__
14254 if ac_fn_c_try_compile
"$LINENO"; then :
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14256 $as_echo "no" >&6; }
14257 DCFG_ARM_EABI_UNWINDER
=false
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14260 $as_echo "yes" >&6; }
14261 DCFG_ARM_EABI_UNWINDER
=true
14263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14265 if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14266 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
=
14267 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
='#'
14269 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
='#'
14270 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
=
14274 ac_cpp
='$CPP $CPPFLAGS'
14275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14282 ac_cpp
='$CPP $CPPFLAGS'
14283 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14284 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14285 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14288 $as_echo_n "checking for minfo section bracketing... " >&6; }
14289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14292 void* module_info_ptr __attribute__((section ("minfo")));
14293 extern void* __start_minfo __attribute__((visibility ("hidden")));
14294 extern void* __stop_minfo __attribute__((visibility ("hidden")));
14298 // Never run, just to prevent compiler from optimizing access
14299 return &__start_minfo == &__stop_minfo;
14303 if ac_fn_c_try_link
"$LINENO"; then :
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14305 $as_echo "yes" >&6; }
14306 DCFG_MINFO_BRACKETING
=true
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14310 DCFG_MINFO_BRACKETING
=false
14312 rm -f core conftest.err conftest.
$ac_objext \
14313 conftest
$ac_exeext conftest.
$ac_ext
14315 if test "$DCFG_MINFO_BRACKETING" = "true"; then
14316 DRUNTIME_OS_MINFO_BRACKETING_TRUE
=
14317 DRUNTIME_OS_MINFO_BRACKETING_FALSE
='#'
14319 DRUNTIME_OS_MINFO_BRACKETING_TRUE
='#'
14320 DRUNTIME_OS_MINFO_BRACKETING_FALSE
=
14324 ac_cpp
='$CPP $CPPFLAGS'
14325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14332 ac_cpp
='$CPP $CPPFLAGS'
14333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14335 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14337 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>
14339 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes
; then :
14340 DCFG_DLPI_TLS_MODID
=true
14342 DCFG_DLPI_TLS_MODID
=false
14347 ac_cpp
='$CPP $CPPFLAGS'
14348 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14349 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14350 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14355 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
14356 # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14357 # relocs. Work around by disabling TLS transitions. Not necessary
14358 # on 32-bit x86, but cannot be distinguished reliably in specs.
14359 druntime_ld_prog
=`$CC -print-prog-name=ld`
14361 druntime_ld_relax_transtls
=no
14362 if test -n "$druntime_ld_prog" \
14363 && $druntime_ld_prog -v 2>&1 |
grep GNU
> /dev
/null
2>&1; then
14364 druntime_ld_gld
=yes
14366 echo 'int main (void) { return 0; }' > conftest.c
14367 save_LDFLAGS
="$LDFLAGS"
14368 LDFLAGS
="$LDFLAGS -Wl,-z,relax=transtls"
14369 if $CC $CFLAGS $LDFLAGS -o conftest conftest.c
> /dev
/null
2>&1; then
14370 druntime_ld_relax_transtls
=yes
14372 LDFLAGS
="$save_LDFLAGS"
14373 rm -f conftest.c conftest
14375 if test "$druntime_ld_relax_transtls" = "yes"; then
14376 OS_LINK_SPEC
='-z relax=transtls'
14384 ac_cpp
='$CPP $CPPFLAGS'
14385 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14386 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14387 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14389 DCFG_HAVE_QSORT_R
=false
14390 ac_fn_c_check_func
"$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14391 if test "x$ac_cv_func_qsort_r" = xyes
; then :
14392 DCFG_HAVE_QSORT_R
=true
14397 ac_cpp
='$CPP $CPPFLAGS'
14398 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14399 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14406 gdc_save_DFLAGS
=$GDCFLAGS
14407 GDCFLAGS
="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14410 ac_compile
='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14411 ac_link
='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14412 ac_compiler_gnu
=yes
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14415 $as_echo_n "checking for library containing malloc... " >&6; }
14416 if ${ac_cv_search_malloc+:} false
; then :
14417 $as_echo_n "(cached) " >&6
14419 ac_func_search_save_LIBS
=$LIBS
14420 cat > conftest.
$ac_ext <<_ACEOF
14422 extern(C) int malloc();
14424 extern(C) int main() {
14425 malloc(); return 0;
14428 for ac_lib
in '' c
; do
14429 if test -z "$ac_lib"; then
14430 ac_res
="none required"
14433 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14435 if ac_fn_d_try_link
"$LINENO"; then :
14436 ac_cv_search_malloc
=$ac_res
14438 rm -f core conftest.err conftest.
$ac_objext \
14440 if ${ac_cv_search_malloc+:} false
; then :
14444 if ${ac_cv_search_malloc+:} false
; then :
14447 ac_cv_search_malloc
=no
14449 rm conftest.
$ac_ext
14450 LIBS
=$ac_func_search_save_LIBS
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14453 $as_echo "$ac_cv_search_malloc" >&6; }
14454 ac_res
=$ac_cv_search_malloc
14455 if test "$ac_res" != no
; then :
14456 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14461 enable_thread_lib
=yes
14462 # Check whether --enable-thread-lib was given.
14463 if test "${enable_thread_lib+set}" = set; then :
14464 enableval
=$enable_thread_lib;
14468 if test "x$enable_thread_lib" = "xyes"; then :
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14471 $as_echo_n "checking for library containing pthread_create... " >&6; }
14472 if ${ac_cv_search_pthread_create+:} false
; then :
14473 $as_echo_n "(cached) " >&6
14475 ac_func_search_save_LIBS
=$LIBS
14476 cat > conftest.
$ac_ext <<_ACEOF
14478 extern(C) int pthread_create();
14480 extern(C) int main() {
14481 pthread_create(); return 0;
14484 for ac_lib
in '' pthread
; do
14485 if test -z "$ac_lib"; then
14486 ac_res
="none required"
14489 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14491 if ac_fn_d_try_link
"$LINENO"; then :
14492 ac_cv_search_pthread_create
=$ac_res
14494 rm -f core conftest.err conftest.
$ac_objext \
14496 if ${ac_cv_search_pthread_create+:} false
; then :
14500 if ${ac_cv_search_pthread_create+:} false
; then :
14503 ac_cv_search_pthread_create
=no
14505 rm conftest.
$ac_ext
14506 LIBS
=$ac_func_search_save_LIBS
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14509 $as_echo "$ac_cv_search_pthread_create" >&6; }
14510 ac_res
=$ac_cv_search_pthread_create
14511 if test "$ac_res" != no
; then :
14512 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14519 if test "x$enable_thread_lib" = "xno"; then :
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14522 $as_echo_n "checking for thread library... " >&6; }
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14524 $as_echo "disabled" >&6; }
14528 as_ac_Lib
=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14530 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14531 if eval \
${$as_ac_Lib+:} false
; then :
14532 $as_echo_n "(cached) " >&6
14534 ac_check_lib_save_LIBS
=$LIBS
14535 LIBS
="-l$enable_thread_lib $LIBS"
14536 cat > conftest.
$ac_ext <<_ACEOF
14538 extern(C) int pthread_create();
14540 extern(C) int main() {
14541 pthread_create(); return 0;
14544 if ac_fn_d_try_link
"$LINENO"; then :
14545 eval "$as_ac_Lib=yes"
14547 eval "$as_ac_Lib=no"
14549 rm -f core conftest.err conftest.
$ac_objext \
14550 conftest
$ac_exeext conftest.
$ac_ext
14551 LIBS
=$ac_check_lib_save_LIBS
14553 eval ac_res
=\$
$as_ac_Lib
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14555 $as_echo "$ac_res" >&6; }
14556 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
14557 cat >>confdefs.h
<<_ACEOF
14558 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14561 LIBS
="-l$enable_thread_lib $LIBS"
14565 as_fn_error $?
"Thread library not found" "$LINENO" 5
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14575 $as_echo_n "checking for library containing cosf... " >&6; }
14576 if ${ac_cv_search_cosf+:} false
; then :
14577 $as_echo_n "(cached) " >&6
14579 ac_func_search_save_LIBS
=$LIBS
14580 cat > conftest.
$ac_ext <<_ACEOF
14582 extern(C) int cosf();
14584 extern(C) int main() {
14588 for ac_lib
in '' m
; do
14589 if test -z "$ac_lib"; then
14590 ac_res
="none required"
14593 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14595 if ac_fn_d_try_link
"$LINENO"; then :
14596 ac_cv_search_cosf
=$ac_res
14598 rm -f core conftest.err conftest.
$ac_objext \
14600 if ${ac_cv_search_cosf+:} false
; then :
14604 if ${ac_cv_search_cosf+:} false
; then :
14607 ac_cv_search_cosf
=no
14609 rm conftest.
$ac_ext
14610 LIBS
=$ac_func_search_save_LIBS
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14613 $as_echo "$ac_cv_search_cosf" >&6; }
14614 ac_res
=$ac_cv_search_cosf
14615 if test "$ac_res" != no
; then :
14616 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14621 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14622 if ${ac_cv_search_clock_gettime+:} false
; then :
14623 $as_echo_n "(cached) " >&6
14625 ac_func_search_save_LIBS
=$LIBS
14626 cat > conftest.
$ac_ext <<_ACEOF
14628 extern(C) int clock_gettime();
14630 extern(C) int main() {
14631 clock_gettime(); return 0;
14634 for ac_lib
in '' rt
; do
14635 if test -z "$ac_lib"; then
14636 ac_res
="none required"
14639 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14641 if ac_fn_d_try_link
"$LINENO"; then :
14642 ac_cv_search_clock_gettime
=$ac_res
14644 rm -f core conftest.err conftest.
$ac_objext \
14646 if ${ac_cv_search_clock_gettime+:} false
; then :
14650 if ${ac_cv_search_clock_gettime+:} false
; then :
14653 ac_cv_search_clock_gettime
=no
14655 rm conftest.
$ac_ext
14656 LIBS
=$ac_func_search_save_LIBS
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14659 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14660 ac_res
=$ac_cv_search_clock_gettime
14661 if test "$ac_res" != no
; then :
14662 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14667 # This checks to see if the host supports the compiler-generated builtins
14668 # for atomic operations for various integral sizes. Note, this is intended
14669 # to be an all-or-nothing switch, so all the atomic operations that are
14670 # used should be checked.
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14672 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14673 if ${druntime_cv_atomic_byte+:} false
; then :
14674 $as_echo_n "(cached) " >&6
14677 cat > conftest.
$ac_ext <<_ACEOF
14679 import gcc.builtins;
14681 extern(C) int main() {
14685 __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14686 __atomic_load_1(&c1, 5);
14687 __atomic_store_1(&c1, c2, 5);
14692 if ac_fn_d_try_link
"$LINENO"; then :
14693 druntime_cv_atomic_byte
=yes
14695 druntime_cv_atomic_byte
=no
14697 rm -f core conftest.err conftest.
$ac_objext \
14698 conftest
$ac_exeext conftest.
$ac_ext
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14703 $as_echo "$druntime_cv_atomic_byte" >&6; }
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14706 $as_echo_n "checking for atomic builtins for short... " >&6; }
14707 if ${druntime_cv_atomic_short+:} false
; then :
14708 $as_echo_n "(cached) " >&6
14711 cat > conftest.
$ac_ext <<_ACEOF
14713 import gcc.builtins;
14715 extern(C) int main() {
14719 __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14720 __atomic_load_2(&c1, 5);
14721 __atomic_store_2(&c1, c2, 5);
14726 if ac_fn_d_try_link
"$LINENO"; then :
14727 druntime_cv_atomic_short
=yes
14729 druntime_cv_atomic_short
=no
14731 rm -f core conftest.err conftest.
$ac_objext \
14732 conftest
$ac_exeext conftest.
$ac_ext
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14737 $as_echo "$druntime_cv_atomic_short" >&6; }
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14740 $as_echo_n "checking for atomic builtins for int... " >&6; }
14741 if ${druntime_cv_atomic_int+:} false
; then :
14742 $as_echo_n "(cached) " >&6
14745 cat > conftest.
$ac_ext <<_ACEOF
14747 import gcc.builtins;
14749 extern(C) int main() {
14753 __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14754 __atomic_load_4(&c1, 5);
14755 __atomic_store_4(&c1, c2, 5);
14760 if ac_fn_d_try_link
"$LINENO"; then :
14761 druntime_cv_atomic_int
=yes
14763 druntime_cv_atomic_int
=no
14765 rm -f core conftest.err conftest.
$ac_objext \
14766 conftest
$ac_exeext conftest.
$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14771 $as_echo "$druntime_cv_atomic_int" >&6; }
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14774 $as_echo_n "checking for atomic builtins for long... " >&6; }
14775 if ${druntime_cv_atomic_long+:} false
; then :
14776 $as_echo_n "(cached) " >&6
14779 cat > conftest.
$ac_ext <<_ACEOF
14781 import gcc.builtins;
14783 extern(C) int main() {
14787 __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14788 __atomic_load_8(&c1, 5);
14789 __atomic_store_8(&c1, c2, 5);
14794 if ac_fn_d_try_link
"$LINENO"; then :
14795 druntime_cv_atomic_long
=yes
14797 druntime_cv_atomic_long
=no
14799 rm -f core conftest.err conftest.
$ac_objext \
14800 conftest
$ac_exeext conftest.
$ac_ext
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14805 $as_echo "$druntime_cv_atomic_long" >&6; }
14807 # Have atomic builtin support if all but the long test above passes.
14808 DCFG_HAVE_ATOMIC_BUILTINS
=false
14809 if test "$druntime_cv_atomic_byte" = yes \
14810 && test "$druntime_cv_atomic_short" = yes \
14811 && test "$druntime_cv_atomic_int" = yes; then \
14812 DCFG_HAVE_ATOMIC_BUILTINS
=true
14815 # Have 64-bit atomic support if the long test above passes.
14816 DCFG_HAVE_64BIT_ATOMICS
=false
14817 if test "$druntime_cv_atomic_long" = yes; then
14818 DCFG_HAVE_64BIT_ATOMICS
=true
14825 ac_cpp
='$CPP $CPPFLAGS'
14826 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14827 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14828 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14831 GDCFLAGS
=$gdc_save_DFLAGS
14836 # Check whether --with-libatomic was given.
14837 if test "${with_libatomic+set}" = set; then :
14838 withval
=$with_libatomic;
14842 DCFG_HAVE_LIBATOMIC
=false
14844 if test "x$with_libatomic" != "xno"; then :
14846 DCFG_HAVE_LIBATOMIC
=true
14847 LIBATOMIC
=..
/..
/libatomic
/libatomic_convenience.la
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14852 $as_echo_n "checking for libatomic... " >&6; }
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14854 $as_echo "disabled" >&6; }
14863 ac_cpp
='$CPP $CPPFLAGS'
14864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14868 BACKTRACE_SUPPORTED
=false
14869 BACKTRACE_USES_MALLOC
=false
14870 BACKTRACE_SUPPORTS_THREADS
=false
14874 # Check whether --with-libbacktrace was given.
14875 if test "${with_libbacktrace+set}" = set; then :
14876 withval
=$with_libbacktrace;
14880 if test "x$with_libbacktrace" != "xno"; then :
14882 LIBBACKTRACE
=..
/..
/libbacktrace
/libbacktrace.la
14884 gdc_save_CPPFLAGS
=$CPPFLAGS
14885 CPPFLAGS
="$CPPFLAGS -I../libbacktrace "
14887 ac_fn_c_check_header_mongrel
"$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14888 if test "x$ac_cv_header_backtrace_supported_h" = xyes
; then :
14889 have_libbacktrace_h
=true
14891 have_libbacktrace_h
=false
14896 if $have_libbacktrace_h; then
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14898 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14902 #include <backtrace-supported.h>
14903 #if BACKTRACE_SUPPORTED
14904 FOUND_LIBBACKTRACE_RESULT_GDC
14908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14909 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14910 BACKTRACE_SUPPORTED
=true
14912 BACKTRACE_SUPPORTED
=false
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14917 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14920 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14924 #include <backtrace-supported.h>
14925 #if BACKTRACE_USES_MALLOC
14926 FOUND_LIBBACKTRACE_RESULT_GDC
14930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14931 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14932 BACKTRACE_USES_MALLOC
=true
14934 BACKTRACE_USES_MALLOC
=false
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14939 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14942 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14946 #include <backtrace-supported.h>
14947 #if BACKTRACE_SUPPORTS_THREADS
14948 FOUND_LIBBACKTRACE_RESULT_GDC
14952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14953 $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev
/null
2>&1; then :
14954 BACKTRACE_SUPPORTS_THREADS
=true
14956 BACKTRACE_SUPPORTS_THREADS
=false
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14961 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14963 CPPFLAGS
=$gdc_save_CPPFLAGS
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14968 $as_echo_n "checking for libbacktrace... " >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14970 $as_echo "disabled" >&6; }
14979 ac_cpp
='$CPP $CPPFLAGS'
14980 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14986 # Libtool has already checked this, so re-use the inferred dlopen lib.
14987 if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14989 LIBS
="$LIBS $lt_cv_dlopen_libs"
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14995 $as_echo_n "checking for socket libraries... " >&6; }
14996 if ${druntime_cv_lib_sockets+:} false
; then :
14997 $as_echo_n "(cached) " >&6
14999 druntime_cv_lib_sockets
=
15000 druntime_check_both
=no
15001 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
15002 if test "x$ac_cv_func_connect" = xyes
; then :
15003 druntime_check_socket
=no
15005 druntime_check_socket
=yes
15008 if test "$druntime_check_socket" = "yes"; then
15009 unset ac_cv_func_connect
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
15011 $as_echo_n "checking for main in -lsocket... " >&6; }
15012 if ${ac_cv_lib_socket_main+:} false
; then :
15013 $as_echo_n "(cached) " >&6
15015 ac_check_lib_save_LIBS
=$LIBS
15016 LIBS
="-lsocket $LIBS"
15017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15029 if ac_fn_c_try_link
"$LINENO"; then :
15030 ac_cv_lib_socket_main
=yes
15032 ac_cv_lib_socket_main
=no
15034 rm -f core conftest.err conftest.
$ac_objext \
15035 conftest
$ac_exeext conftest.
$ac_ext
15036 LIBS
=$ac_check_lib_save_LIBS
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
15039 $as_echo "$ac_cv_lib_socket_main" >&6; }
15040 if test "x$ac_cv_lib_socket_main" = xyes
; then :
15041 druntime_cv_lib_sockets
="-lsocket"
15043 druntime_check_both
=yes
15047 if test "$druntime_check_both" = "yes"; then
15048 druntime_old_libs
=$LIBS
15049 LIBS
="$LIBS -lsocket -lnsl"
15050 unset ac_cv_func_accept
15051 ac_fn_c_check_func
"$LINENO" "accept" "ac_cv_func_accept"
15052 if test "x$ac_cv_func_accept" = xyes
; then :
15053 druntime_check_nsl
=no
15054 druntime_cv_lib_sockets
="-lsocket -lnsl"
15057 unset ac_cv_func_accept
15058 LIBS
=$druntime_old_libs
15060 unset ac_cv_func_gethostbyname
15061 druntime_old_libs
="$LIBS"
15062 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15063 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15067 $as_echo_n "checking for main in -lnsl... " >&6; }
15068 if ${ac_cv_lib_nsl_main+:} false
; then :
15069 $as_echo_n "(cached) " >&6
15071 ac_check_lib_save_LIBS
=$LIBS
15073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15085 if ac_fn_c_try_link
"$LINENO"; then :
15086 ac_cv_lib_nsl_main
=yes
15088 ac_cv_lib_nsl_main
=no
15090 rm -f core conftest.err conftest.
$ac_objext \
15091 conftest
$ac_exeext conftest.
$ac_ext
15092 LIBS
=$ac_check_lib_save_LIBS
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15095 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15096 if test "x$ac_cv_lib_nsl_main" = xyes
; then :
15097 druntime_cv_lib_sockets
="$druntime_cv_lib_sockets -lnsl"
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15105 $as_echo "$druntime_cv_lib_sockets" >&6; }
15106 LIBS
="$LIBS $druntime_cv_lib_sockets"
15110 ac_cpp
='$CPP $CPPFLAGS'
15111 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15112 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15113 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15118 # Check whether --with-target-system-zlib was given.
15119 if test "${with_target_system_zlib+set}" = set; then :
15120 withval
=$with_target_system_zlib;
15122 with_target_system_zlib
=no
15126 case "$with_target_system_zlib" in
15128 *) as_fn_error $?
"Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15132 $as_echo_n "checking for system zlib... " >&6; }
15135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15141 gzopen("none", "rb")
15146 if ac_fn_c_try_link
"$LINENO"; then :
15148 if test "$cross_compiling" = yes; then :
15149 system_zlib_found
=no
15152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15157 gzFile file = gzopen("none", "rb");
15162 if ac_fn_c_try_run
"$LINENO"; then :
15163 system_zlib_found
=yes
15165 system_zlib_found
=no
15167 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15168 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15173 system_zlib_found
=no
15175 rm -f core conftest.err conftest.
$ac_objext \
15176 conftest
$ac_exeext conftest.
$ac_ext
15179 if test x
$system_zlib_found = xyes
&& test x
$with_target_system_zlib != xno
; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15181 $as_echo "found" >&6; }
15183 elif test x
$system_zlib_found = xno
&& test x
$with_target_system_zlib = xyes
; then
15184 as_fn_error $?
"system zlib required but not found" "$LINENO" 5
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15187 $as_echo "just compiled" >&6; }
15188 LIBZ
=..
/..
/zlib
/libz_convenience.la
15193 ac_cpp
='$CPP $CPPFLAGS'
15194 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15195 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15196 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15203 $as_echo_n "checking D GCC version... " >&6; }
15204 gcc_version
=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15206 $as_echo "$gcc_version" >&6; }
15210 # Check whether --with-cross-host was given.
15211 if test "${with_cross_host+set}" = set; then :
15212 withval
=$with_cross_host;
15216 libphobos_toolexecdir
=no
15217 libphobos_toolexeclibdir
=no
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15220 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15221 # Check whether --enable-version-specific-runtime-libs was given.
15222 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15223 enableval
=$enable_version_specific_runtime_libs; case "$enableval" in
15224 yes) version_specific_libs
=yes ;;
15225 no
) version_specific_libs
=no
;;
15226 *) as_fn_error $?
"Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15229 version_specific_libs
=no
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15233 $as_echo "$version_specific_libs" >&6; }
15235 # Version-specific runtime libs processing.
15236 if test $version_specific_libs = yes; then
15237 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15238 libphobos_toolexeclibdir
='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15240 # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15241 # Install a library built with a cross compiler in tooldir, not libdir.
15242 if test -n "$with_cross_host" && test x
"$with_cross_host" != x
"no"; then
15243 libphobos_toolexecdir
='${exec_prefix}/${host_alias}'
15244 libphobos_toolexeclibdir
='${toolexecdir}/lib'
15246 libphobos_toolexecdir
='${libdir}/gcc/${host_alias}'
15247 libphobos_toolexeclibdir
='${libdir}'
15249 multi_os_directory
=`$GDC -print-multi-os-directory`
15250 case $multi_os_directory in
15251 .
) ;; # Avoid trailing /.
15252 *) libphobos_toolexeclibdir
=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15258 # Default case for install directory for D sources files.
15259 gdc_include_dir
='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15264 $as_echo_n "checking for --enable-libphobos... " >&6; }
15265 # Check whether --enable-libphobos was given.
15266 if test "${enable_libphobos+set}" = set; then :
15267 enableval
=$enable_libphobos;
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15271 $as_echo "$enable_libphobos" >&6; }
15273 # See if supported.
15274 unset LIBPHOBOS_SUPPORTED
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15276 $as_echo_n "checking for host support for libphobos... " >&6; }
15277 .
${srcdir}/configure.tgt
15279 x86_64-
*-solaris2.
* | i?
86-*-solaris2.
*)
15280 # libphobos doesn't compile with the Solaris/x86 assembler due to a
15281 # relatively low linelength limit.
15282 as_prog
=`$CC -print-prog-name=as`
15283 if test -n "$as_prog" && $as_prog -v /dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
15284 druntime_cv_use_gas
=yes;
15286 druntime_cv_use_gas
=no
;
15289 if test x
$druntime_cv_use_gas = xno
; then
15290 LIBPHOBOS_SUPPORTED
=no
15292 # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15293 if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15294 LIBPHOBOS_SUPPORTED
=no
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15299 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15301 # Decide if it's usable.
15302 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15303 *:no
) use_libphobos
=no
;;
15304 *:yes) use_libphobos
=yes ;;
15305 yes:*) use_libphobos
=yes ;;
15306 *:*) use_libphobos
=no
;;
15308 if test x
$use_libphobos = xyes
; then
15309 ENABLE_LIBPHOBOS_TRUE
=
15310 ENABLE_LIBPHOBOS_FALSE
='#'
15312 ENABLE_LIBPHOBOS_TRUE
='#'
15313 ENABLE_LIBPHOBOS_FALSE
=
15317 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15318 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15319 DRTSTUFF_SPEC
=$srcdir/src
/drtstuff.spec
15321 DRTSTUFF_SPEC
=/dev
/null
15325 # Add dependencies for libgphobos.spec file
15326 SPEC_PHOBOS_DEPS
="$LIBS"
15329 # Libdruntime / phobos soname version
15330 libtool_VERSION
=76:3:0
15333 # Set default flags (after DRUNTIME_WERROR!)
15334 if test -z "$GDCFLAGS"; then
15335 GDCFLAGS
="-Wall $WERROR_FLAG -g -frelease -O2"
15339 if test -z "$GDCFLAGSX"; then
15340 GDCFLAGSX
="-Wall $WERROR_FLAG -g -fno-release -funittest"
15344 # Sanity check for the cross-compilation case:
15345 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15346 if test "x$ac_cv_header_stdio_h" = xyes
; then :
15349 as_fn_error $?
"cannot find stdio.h." "$LINENO" 5
15354 ac_config_files
="$ac_config_files Makefile"
15357 ac_config_files
="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15359 ac_config_files
="$ac_config_files src/libgphobos.spec"
15361 ac_config_files
="$ac_config_files testsuite/testsuite_flags"
15364 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15365 # that multilib installs will end up installed in the correct place.
15366 # The testsuite needs it for multilib-aware ABI baseline files.
15367 # To work around this not being passed down from config-ml.in ->
15368 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15369 # append it here. Only modify Makefiles that have just been created.
15371 # Also, get rid of this simulated-VPATH thing that automake does.
15372 ac_config_files
="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15375 cat >confcache
<<\_ACEOF
15376 # This file is a shell script that caches the results of configure
15377 # tests run on this system so they can be shared between configure
15378 # scripts and configure runs, see configure's option --config-cache.
15379 # It is not useful on other systems. If it contains results you don't
15380 # want to keep, you may remove or edit it.
15382 # config.status only pays attention to the cache file if you give it
15383 # the --recheck option to rerun configure.
15385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15387 # following values.
15391 # The following way of writing the cache mishandles newlines in values,
15392 # but we know of no workaround that is simple, portable, and efficient.
15393 # So, we kill variables containing newlines.
15394 # Ultrix sh set writes to stderr and can't be redirected directly,
15395 # and sets the high bit in the cache file unless we assign to the vars.
15397 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15398 eval ac_val
=\$
$ac_var
15402 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15406 _ | IFS | as_nl
) ;; #(
15407 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15408 *) { eval $ac_var=; unset $ac_var;} ;;
15414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15415 *${as_nl}ac_space
=\
*)
15416 # `set' does not quote correctly, so add quotes: double-quote
15417 # substitution turns \\\\ into \\, and sed turns \\ into \.
15420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15423 # `set' quotes correctly as required by POSIX, so do not add quotes.
15424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15437 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15438 if test -w "$cache_file"; then
15439 if test "x$cache_file" != "x/dev/null"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15441 $as_echo "$as_me: updating cache $cache_file" >&6;}
15442 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15443 cat confcache
>"$cache_file"
15445 case $cache_file in #(
15447 mv -f confcache
"$cache_file"$$
&&
15448 mv -f "$cache_file"$$
"$cache_file" ;; #(
15450 mv -f confcache
"$cache_file" ;;
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15456 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15461 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15462 # Let make expand exec_prefix.
15463 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15465 DEFS
=-DHAVE_CONFIG_H
15470 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15471 # 1. Remove the extension, and $U if already installed.
15472 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15473 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15475 # will be set to the directory where LIBOBJS objects are built.
15476 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15477 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15479 LIBOBJS
=$ac_libobjs
15481 LTLIBOBJS
=$ac_ltlibobjs
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15485 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15486 if test -n "$am_sleep_pid"; then
15487 # Hide warnings about reused PIDs.
15488 wait $am_sleep_pid 2>/dev
/null
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15491 $as_echo "done" >&6; }
15492 if test -n "$EXEEXT"; then
15494 am__EXEEXT_FALSE
='#'
15496 am__EXEEXT_TRUE
='#'
15500 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15501 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15504 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15505 as_fn_error $?
"conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15508 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15509 as_fn_error $?
"conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15512 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15513 as_fn_error $?
"conditional \"DRUNTIME_CPU_ARM\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15516 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15517 as_fn_error $?
"conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15520 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15521 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15524 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15525 as_fn_error $?
"conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15528 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15529 as_fn_error $?
"conditional \"DRUNTIME_CPU_X86\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15533 as_fn_error $?
"conditional \"DRUNTIME_OS_UNIX\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15537 as_fn_error $?
"conditional \"DRUNTIME_OS_AIX\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15541 as_fn_error $?
"conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15545 as_fn_error $?
"conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15549 as_fn_error $?
"conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15553 as_fn_error $?
"conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15557 as_fn_error $?
"conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15561 as_fn_error $?
"conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15565 as_fn_error $?
"conditional \"DRUNTIME_OS_LINUX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15569 as_fn_error $?
"conditional \"DRUNTIME_OS_MINGW\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15573 as_fn_error $?
"conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15577 as_fn_error $?
"conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15580 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15581 as_fn_error $?
"conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15584 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15585 as_fn_error $?
"conditional \"ENABLE_LIBPHOBOS\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589 : "${CONFIG_STATUS=./config.status}"
15591 ac_clean_files_save
=$ac_clean_files
15592 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15598 # Generated by $as_me.
15599 # Run this file to recreate the current configuration.
15600 # Compiler output produced by configure, useful for debugging
15601 # configure, is in config.log if it exists.
15604 ac_cs_recheck=false
15607 SHELL=\${CONFIG_SHELL-$SHELL}
15610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15611 ## -------------------- ##
15612 ## M4sh Initialization. ##
15613 ## -------------------- ##
15615 # Be more Bourne compatible
15616 DUALCASE
=1; export DUALCASE
# for MKS sh
15617 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15621 # is contrary to our usage. Disable this feature.
15622 alias -g '${1+"$@"}'='"$@"'
15623 setopt NO_GLOB_SUBST
15625 case `(set -o) 2>/dev/null` in #(
15637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15638 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15641 # Prefer a ksh shell builtin over an external printf program on Solaris,
15642 # but without wasting forks for bash or zsh.
15643 if test -z "$BASH_VERSION$ZSH_VERSION" \
15644 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15645 as_echo='print
-r --'
15646 as_echo_n='print
-rn --'
15647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15648 as_echo='printf %s
\n'
15649 as_echo_n='printf %s
'
15651 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15652 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15653 as_echo_n='/usr
/ucb
/echo -n'
15655 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15656 as_echo_n_body='eval
15660 expr "X$arg" : "X\\(.*\\)$as_nl";
15661 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15663 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15665 export as_echo_n_body
15666 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15668 export as_echo_body
15669 as_echo='sh
-c $as_echo_body as_echo
'
15672 # The user is always right.
15673 if test "${PATH_SEPARATOR+set}" != set; then
15675 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15676 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15683 # We need space, tab and new line, in precisely that order. Quoting is
15684 # there to prevent editors from complaining about space-tab.
15685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15686 # splitting by setting IFS to empty value.)
15689 # Find who we are. Look in the path if we contain no directory separator.
15692 *[\\/]* ) as_myself=$0 ;;
15693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 for as_dir in $PATH
15697 test -z "$as_dir" && as_dir=.
15698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15704 # We did not find ourselves, most probably we were run as `sh COMMAND'
15705 # in which case we are not to be found in the path.
15706 if test "x$as_myself" = x
; then
15709 if test ! -f "$as_myself"; then
15710 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15714 # Unset variables that we do not need and which cause bugs (e.g. in
15715 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15716 # suppresses any "Segmentation fault" message there. '((' could
15717 # trigger a bug in pdksh 5.2.14.
15718 for as_var
in BASH_ENV ENV MAIL MAILPATH
15719 do eval test x\
${$as_var+set} = xset \
15720 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15733 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15736 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15737 # ----------------------------------------
15738 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15739 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15740 # script with STATUS, using 1 if that was 0.
15743 as_status
=$1; test $as_status -eq 0 && as_status
=1
15745 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15746 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15748 $as_echo "$as_me: error: $2" >&2
15749 as_fn_exit
$as_status
15753 # as_fn_set_status STATUS
15754 # -----------------------
15755 # Set $? to STATUS, without forking.
15756 as_fn_set_status
()
15759 } # as_fn_set_status
15761 # as_fn_exit STATUS
15762 # -----------------
15763 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15767 as_fn_set_status
$1
15773 # Portably unset VAR.
15776 { eval $1=; unset $1;}
15778 as_unset
=as_fn_unset
15779 # as_fn_append VAR VALUE
15780 # ----------------------
15781 # Append the text in VALUE to the end of the definition contained in VAR. Take
15782 # advantage of any shell optimizations that allow amortized linear growth over
15783 # repeated appends, instead of the typical quadratic growth present in naive
15785 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15786 eval 'as_fn_append ()
15797 # as_fn_arith ARG...
15798 # ------------------
15799 # Perform arithmetic evaluation on the ARGs, and store the result in the
15800 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15801 # must be portable across $(()) and expr.
15802 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15803 eval 'as_fn_arith ()
15810 as_val
=`expr "$@" || test $? -eq 1`
15815 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15816 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15822 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15823 as_basename
=basename
15828 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15834 as_me
=`$as_basename -- "$0" ||
15835 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15836 X"$0" : 'X\(//\)$' \| \
15837 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15839 sed '/^.*\/\([^/][^/]*\)\/*$/{
15853 # Avoid depending upon Character Ranges.
15854 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15855 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15856 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15857 as_cr_digits
='0123456789'
15858 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15860 ECHO_C
= ECHO_N
= ECHO_T
=
15861 case `echo -n x` in #(((((
15863 case `echo 'xy\c'` in
15864 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15866 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15873 rm -f conf$$ conf$$.exe conf$$.
file
15874 if test -d conf$$.dir
; then
15875 rm -f conf$$.dir
/conf$$.
file
15878 mkdir conf$$.dir
2>/dev
/null
15880 if (echo >conf$$.
file) 2>/dev
/null
; then
15881 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15883 # ... but there are two gotchas:
15884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15886 # In both cases, we have to default to `cp -pR'.
15887 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15889 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15897 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15898 rmdir conf$$.dir
2>/dev
/null
15903 # Create "$as_dir" as a directory, including parents if necessary.
15908 -*) as_dir
=.
/$as_dir;;
15910 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15914 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15915 *) as_qdir
=$as_dir;;
15917 as_dirs
="'$as_qdir' $as_dirs"
15918 as_dir
=`$as_dirname -- "$as_dir" ||
15919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15920 X"$as_dir" : 'X\(//\)[^/]' \| \
15921 X"$as_dir" : 'X\(//\)$' \| \
15922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15923 $as_echo X"$as_dir" |
15924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15928 /^X\(\/\/\)[^/].*/{
15941 test -d "$as_dir" && break
15943 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15944 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15948 if mkdir
-p .
2>/dev
/null
; then
15949 as_mkdir_p
='mkdir -p "$as_dir"'
15951 test -d .
/-p && rmdir .
/-p
15956 # as_fn_executable_p FILE
15957 # -----------------------
15958 # Test if FILE is an executable regular file.
15959 as_fn_executable_p
()
15961 test -f "$1" && test -x "$1"
15962 } # as_fn_executable_p
15963 as_test_x
='test -x'
15964 as_executable_p
=as_fn_executable_p
15966 # Sed expression to map a string onto a valid CPP name.
15967 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15969 # Sed expression to map a string onto a valid variable name.
15970 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15974 ## ----------------------------------- ##
15975 ## Main body of $CONFIG_STATUS script. ##
15976 ## ----------------------------------- ##
15978 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15981 # Save the log message, to keep $0 and so on meaningful, and to
15982 # report actual input values of CONFIG_FILES etc. instead of their
15983 # values after options handling.
15985 This file was extended by package-unused $as_me version-unused, which was
15986 generated by GNU Autoconf 2.69. Invocation command line was
15988 CONFIG_FILES = $CONFIG_FILES
15989 CONFIG_HEADERS = $CONFIG_HEADERS
15990 CONFIG_LINKS = $CONFIG_LINKS
15991 CONFIG_COMMANDS = $CONFIG_COMMANDS
15994 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15999 case $ac_config_files in *"
16000 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16003 case $ac_config_headers in *"
16004 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009 # Files that config.status was made for.
16010 config_files="$ac_config_files"
16011 config_headers="$ac_config_headers"
16012 config_commands="$ac_config_commands"
16016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16018 \`$as_me' instantiates files and other configuration actions
16019 from templates according to the current configuration. Unless the files
16020 and actions are specified as TAGs, all are instantiated by default.
16022 Usage: $0 [OPTION]... [TAG]...
16024 -h, --help print this help, then exit
16025 -V, --version print version number and configuration settings, then exit
16026 --config print configuration, then exit
16027 -q, --quiet, --silent
16028 do not print progress messages
16029 -d, --debug don't remove temporary files
16030 --recheck update $as_me by reconfiguring in the same conditions
16031 --file=FILE[:TEMPLATE]
16032 instantiate the configuration file FILE
16033 --header=FILE[:TEMPLATE]
16034 instantiate the configuration header FILE
16036 Configuration files:
16039 Configuration headers:
16042 Configuration commands:
16045 Report bugs to the package provider."
16048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16049 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16051 package-unused config.status version-unused
16052 configured by $0, generated by GNU Autoconf 2.69,
16053 with options \\"\$ac_cs_config\\"
16055 Copyright (C) 2012 Free Software Foundation, Inc.
16056 This config.status script is free software; the Free Software Foundation
16057 gives unlimited permission to copy, distribute and modify it."
16064 test -n "\$AWK" || AWK=awk
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16068 # The default lists apply if the user does not specify any file.
16074 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16075 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16079 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16091 # Handling of the options.
16092 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16094 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16095 $as_echo "$ac_cs_version"; exit ;;
16096 --config |
--confi |
--conf |
--con |
--co |
--c )
16097 $as_echo "$ac_cs_config"; exit ;;
16098 --debug |
--debu |
--deb |
--de |
--d |
-d )
16100 --file |
--fil |
--fi |
--f )
16103 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16104 '') as_fn_error $?
"missing file argument" ;;
16106 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16107 ac_need_defaults
=false
;;
16108 --header |
--heade |
--head |
--hea )
16111 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16113 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16114 ac_need_defaults
=false
;;
16116 # Conflict between --help and --header
16117 as_fn_error $?
"ambiguous option: \`$1'
16118 Try \`$0 --help' for more information.";;
16119 --help |
--hel |
-h )
16120 $as_echo "$ac_cs_usage"; exit ;;
16121 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16122 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16125 # This is an error.
16126 -*) as_fn_error $?
"unrecognized option: \`$1'
16127 Try \`$0 --help' for more information." ;;
16129 *) as_fn_append ac_config_targets
" $1"
16130 ac_need_defaults
=false
;;
16136 ac_configure_extra_args
=
16138 if $ac_cs_silent; then
16140 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16145 if \$ac_cs_recheck; then
16146 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16148 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16149 CONFIG_SHELL='$SHELL'
16150 export CONFIG_SHELL
16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16159 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16160 ## Running $as_me. ##
16166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16174 with_multisubdir="$with_multisubdir"
16175 with_multisrctop="$with_multisrctop"
16176 with_target_subdir="$with_target_subdir"
16177 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16178 multi_basedir="$multi_basedir"
16179 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16182 GFORTRAN="$GFORTRAN"
16186 # The HP-UX ksh and POSIX shell print the target directory to stdout
16187 # if CDPATH is set.
16188 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16190 sed_quote_subst='$sed_quote_subst'
16191 double_quote_subst='$double_quote_subst'
16192 delay_variable_subst='$delay_variable_subst'
16193 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16194 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16195 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16196 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16197 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16198 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16199 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16200 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16201 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16202 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16203 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16204 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16205 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16206 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16207 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16208 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16209 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16210 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16211 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16212 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16213 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16214 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16215 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16216 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16217 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16218 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16219 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16220 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16221 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16222 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16223 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16224 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16225 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16226 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16227 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16228 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16229 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16230 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16231 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16232 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16233 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16234 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16235 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16236 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16237 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16238 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16239 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16240 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16241 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"`'
16242 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16243 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16244 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16245 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16246 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16247 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16248 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16249 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16250 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16251 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16252 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16253 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16254 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16255 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16256 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16257 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16258 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16259 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16260 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16261 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16262 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16263 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16265 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16266 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16267 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16268 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16269 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16270 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16271 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16272 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16273 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16274 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16275 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16276 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16277 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16278 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16279 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16280 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16281 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16282 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16283 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16284 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16285 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16286 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16287 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16288 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16289 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16290 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16291 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16292 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16293 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16294 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16295 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16296 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16297 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16298 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16299 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16300 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16301 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16302 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16303 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16304 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16305 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16306 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16307 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16308 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16309 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16310 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16311 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16312 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16313 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16314 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16315 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16316 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16317 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16318 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16319 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16320 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16321 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16322 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16323 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16324 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16325 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16326 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16327 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16328 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16329 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16330 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16331 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16332 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16333 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16334 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16335 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16336 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16337 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16338 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16339 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16340 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16341 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16342 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16343 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16344 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16345 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16346 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16347 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16348 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16349 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16350 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16351 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16352 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16353 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16354 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16355 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16358 LTCFLAGS='$LTCFLAGS'
16359 compiler='$compiler_DEFAULT'
16361 # A function that is used when there is no print builtin or printf.
16362 func_fallback_echo ()
16364 eval 'cat <<_LTECHO_EOF
16369 # Quote evaled strings.
16383 deplibs_check_method \
16392 lt_cv_sys_global_symbol_pipe \
16393 lt_cv_sys_global_symbol_to_cdecl \
16394 lt_cv_sys_global_symbol_to_c_name_address \
16395 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16396 lt_prog_compiler_no_builtin_flag \
16397 lt_prog_compiler_wl \
16398 lt_prog_compiler_pic \
16399 lt_prog_compiler_static \
16400 lt_cv_prog_compiler_c_o \
16408 export_dynamic_flag_spec \
16409 whole_archive_flag_spec \
16410 compiler_needs_object \
16412 allow_undefined_flag \
16413 no_undefined_flag \
16414 hardcode_libdir_flag_spec \
16415 hardcode_libdir_flag_spec_ld \
16416 hardcode_libdir_separator \
16421 variables_saved_for_relink \
16423 library_names_spec \
16425 install_override_mode \
16432 lt_prog_compiler_no_builtin_flag_D \
16433 lt_prog_compiler_wl_D \
16434 lt_prog_compiler_pic_D \
16435 lt_prog_compiler_static_D \
16436 lt_cv_prog_compiler_c_o_D \
16437 export_dynamic_flag_spec_D \
16438 whole_archive_flag_spec_D \
16439 compiler_needs_object_D \
16441 allow_undefined_flag_D \
16442 no_undefined_flag_D \
16443 hardcode_libdir_flag_spec_D \
16444 hardcode_libdir_flag_spec_ld_D \
16445 hardcode_libdir_separator_D \
16446 fix_srcfile_path_D \
16447 exclude_expsyms_D \
16448 include_expsyms_D \
16449 file_list_spec_D; do
16450 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16451 *[\\\\\\\`\\"\\\$]*)
16452 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16455 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16460 # Double-quote double-evaled strings.
16461 for var in reload_cmds \
16462 old_postinstall_cmds \
16463 old_postuninstall_cmds \
16465 extract_expsyms_cmds \
16466 old_archive_from_new_cmds \
16467 old_archive_from_expsyms_cmds \
16469 archive_expsym_cmds \
16471 module_expsym_cmds \
16472 export_symbols_cmds \
16475 postuninstall_cmds \
16477 sys_lib_search_path_spec \
16478 sys_lib_dlsearch_path_spec \
16480 old_archive_cmds_D \
16481 old_archive_from_new_cmds_D \
16482 old_archive_from_expsyms_cmds_D \
16484 archive_expsym_cmds_D \
16486 module_expsym_cmds_D \
16487 export_symbols_cmds_D \
16489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16490 *[\\\\\\\`\\"\\\$]*)
16491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16499 ac_aux_dir='$ac_aux_dir'
16500 xsi_shell='$xsi_shell'
16501 lt_shell_append='$lt_shell_append'
16503 # See if we are running on zsh, and set the options which allow our
16504 # commands through without removal of \ escapes INIT.
16505 if test -n "\${ZSH_VERSION+set}" ; then
16506 setopt NO_GLOB_SUBST
16512 TIMESTAMP='$TIMESTAMP'
16523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16525 # Handling of arguments.
16526 for ac_config_target
in $ac_config_targets
16528 case $ac_config_target in
16529 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16530 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
16531 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16532 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16533 "libdruntime/gcc/config.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16534 "libdruntime/gcc/libbacktrace.d") CONFIG_FILES
="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16535 "src/libgphobos.spec") CONFIG_FILES
="$CONFIG_FILES src/libgphobos.spec" ;;
16536 "testsuite/testsuite_flags") CONFIG_FILES
="$CONFIG_FILES testsuite/testsuite_flags" ;;
16537 "libdruntime/Makefile") CONFIG_FILES
="$CONFIG_FILES libdruntime/Makefile" ;;
16538 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16539 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
16541 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16546 # If the user did not use the arguments to specify the items to instantiate,
16547 # then the envvar interface is used. Set only those that are not.
16548 # We use the long form for the default assignment because of an extremely
16549 # bizarre bug on SunOS 4.1.3.
16550 if $ac_need_defaults; then
16551 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16552 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16553 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16556 # Have a temporary directory for convenience. Make it in the build tree
16557 # simply because there is no reason against having it here, and in addition,
16558 # creating and moving files from /tmp can sometimes cause problems.
16559 # Hook for its removal unless debugging.
16560 # Note that there is a small window in which the directory will not be cleaned:
16561 # after its creation but before its name has been assigned to `$tmp'.
16565 trap 'exit_status=$?
16566 : "${ac_tmp:=$tmp}"
16567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16569 trap 'as_fn_exit 1' 1 2 13 15
16571 # Create a (secure) tmp directory for tmp files.
16574 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16578 tmp
=.
/conf$$
-$RANDOM
16579 (umask 077 && mkdir
"$tmp")
16580 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16583 # Set up the scripts for CONFIG_FILES section.
16584 # No need to generate them if there are no CONFIG_FILES.
16585 # This happens for instance with `./config.status config.h'.
16586 if test -n "$CONFIG_FILES"; then
16588 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16589 ac_cs_awk_getline
=:
16590 ac_cs_awk_pipe_init
=
16591 ac_cs_awk_read_file
='
16592 while ((getline aline < (F[key])) > 0)
16595 ac_cs_awk_pipe_fini
=
16597 ac_cs_awk_getline
=false
16598 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16599 ac_cs_awk_read_file
='
16601 print "cat " F[key] " &&"
16602 '$ac_cs_awk_pipe_init
16603 # The final `:' finishes the AND list.
16604 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16606 ac_cr
=`echo X | tr X '\015'`
16607 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16608 # But we know of no other shell where ac_cr would be empty at this
16609 # point, so we can use a bashism as a fallback.
16610 if test "x$ac_cr" = x
; then
16611 eval ac_cr
=\$
\'\\r
\'
16613 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16614 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16617 ac_cs_awk_cr
=$ac_cr
16620 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16623 # Create commands to substitute file output variables.
16625 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16626 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16627 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16630 } >conf$
$files.sh
&&
16631 . .
/conf$
$files.sh ||
16632 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
16633 rm -f conf$
$files.sh
16636 echo "cat >conf$$subs.awk <<_ACEOF" &&
16637 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16639 } >conf$$subs.sh ||
16640 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16641 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16643 for ac_last_try in false false false false false :; do
16644 . ./conf$$subs.sh ||
16645 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16647 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16648 if test $ac_delim_n = $ac_delim_num; then
16650 elif $ac_last_try; then
16651 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16653 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16656 rm -f conf$$subs.sh
16658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16659 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16663 s/^/S["/; s
/!.
*/"]=/
16673 s/\(.\{148\}\)..*/\1/
16675 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16680 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16687 s/\(.\{148\}\)..*/\1/
16689 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16693 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16698 ' <conf$$subs.awk | sed '
16703 ' >>$CONFIG_STATUS || ac_write_fail=1
16704 rm -f conf$$subs.awk
16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16707 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16708 for (key in S) S_is_set[key] = 1
16710 \$ac_cs_awk_pipe_init
16714 nfields = split(line, field, "@
")
16716 len = length(field[1])
16717 for (i = 2; i < nfields; i++) {
16719 keylen = length(key)
16720 if (S_is_set[key]) {
16722 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16723 len += length(value) + length(field[++i])
16728 if (nfields == 3 && !substed) {
16730 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16731 \$ac_cs_awk_read_file
16737 \$ac_cs_awk_pipe_fini
16740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16742 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16745 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16746 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16749 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16750 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16751 # trailing colons and then remove the whole line if VPATH becomes empty
16752 # (actually we leave an empty line to preserve line numbers).
16753 if test "x
$srcdir" = x.; then
16754 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16773 fi # test -n "$CONFIG_FILES"
16775 # Set up the scripts for CONFIG_HEADERS section.
16776 # No need to generate them if there are no CONFIG_HEADERS.
16777 # This happens for instance with `./config.status Makefile'.
16778 if test -n "$CONFIG_HEADERS"; then
16779 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16783 # Transform confdefs.h into an awk script `defines.awk', embedded as
16784 # here-document in config.status, that substitutes the proper values into
16785 # config.h.in to produce config.h.
16787 # Create a delimiter string that does not exist in confdefs.h, to ease
16788 # handling of long lines.
16790 for ac_last_try in false false :; do
16791 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16792 if test -z "$ac_tt"; then
16794 elif $ac_last_try; then
16795 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16797 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16801 # For the awk script, D is an array of macro values keyed by name,
16802 # likewise P contains macro parameters if any. Preserve backslash
16803 # newline sequences.
16805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16807 s/.\{148\}/&'"$ac_delim"'/g
16810 s/^[ ]*#[ ]*define[ ][ ]*/ /
16817 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16819 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16824 D["\
1"]=" \
3\\\\\\n
"\\/p
16826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16831 s/.\{148\}/&'"$ac_delim"'/g
16836 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16839 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16841 ' <confdefs.h | sed '
16842 s/'"$ac_delim"'/"\\\
16843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16846 for (key in D) D_is_set[key] = 1
16849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16851 split(line, arg, " ")
16852 if (arg[1] == "#") {
16856 defundef
= substr
(arg
[1], 2)
16859 split(mac1
, mac2
, "(") #)
16861 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16862 if (D_is_set
[macro
]) {
16863 # Preserve the white space surrounding the "#".
16864 print prefix
"define", macro P
[macro
] D
[macro
]
16867 # Replace #undef with comments. This is necessary, for example,
16868 # in the case of _POSIX_SOURCE, which is predefined and required
16869 # on some systems where configure will not decide to define it.
16870 if (defundef
== "undef") {
16871 print
"/*", prefix defundef
, macro
, "*/"
16879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16880 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16881 fi # test -n "$CONFIG_HEADERS"
16884 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16889 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16891 case $ac_mode$ac_tag in
16893 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16894 :[FH
]-) ac_tag
=-:-;;
16895 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16912 -) ac_f
="$ac_tmp/stdin";;
16913 *) # Look for the file first in the build tree, then in the source tree
16914 # (if the path is not absolute). The absolute path cannot be DOS-style,
16915 # because $ac_f cannot contain `:'.
16919 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16921 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16923 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16924 as_fn_append ac_file_inputs
" '$ac_f'"
16927 # Let's still pretend it is `configure' which instantiates (i.e., don't
16928 # use $as_me), people would be surprised to read:
16929 # /* config.h. Generated by config.status. */
16930 configure_input
='Generated from '`
16931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16933 if test x
"$ac_file" != x-
; then
16934 configure_input
="$ac_file. $configure_input"
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16936 $as_echo "$as_me: creating $ac_file" >&6;}
16938 # Neutralize special characters interpreted by sed in replacement strings.
16939 case $configure_input in #(
16940 *\
&* |
*\|
* |
*\\* )
16941 ac_sed_conf_input
=`$as_echo "$configure_input" |
16942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16943 *) ac_sed_conf_input
=$configure_input;;
16947 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16948 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16953 ac_dir
=`$as_dirname -- "$ac_file" ||
16954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16955 X"$ac_file" : 'X\(//\)[^/]' \| \
16956 X"$ac_file" : 'X\(//\)$' \| \
16957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16958 $as_echo X"$ac_file" |
16959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16963 /^X\(\/\/\)[^/].*/{
16976 as_dir
="$ac_dir"; as_fn_mkdir_p
16980 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16982 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16983 # A ".." for each directory in $ac_dir_suffix.
16984 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16985 case $ac_top_builddir_sub in
16986 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16987 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16990 ac_abs_top_builddir
=$ac_pwd
16991 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16992 # for backward compatibility:
16993 ac_top_builddir
=$ac_top_build_prefix
16996 .
) # We are building in place.
16998 ac_top_srcdir
=$ac_top_builddir_sub
16999 ac_abs_top_srcdir
=$ac_pwd ;;
17000 [\\/]* | ?
:[\\/]* ) # Absolute name.
17001 ac_srcdir
=$srcdir$ac_dir_suffix;
17002 ac_top_srcdir
=$srcdir
17003 ac_abs_top_srcdir
=$srcdir ;;
17004 *) # Relative name.
17005 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17006 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17007 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17009 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17019 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17020 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17022 ac_MKDIR_P
=$MKDIR_P
17024 [\\/$
]* | ?
:[\\/]* ) ;;
17025 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17030 # If the template does not know about datarootdir, expand it.
17031 # FIXME: This hack should be removed a few years after 2.60.
17032 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17043 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17044 *datarootdir
*) ac_datarootdir_seen
=yes;;
17045 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17047 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17050 ac_datarootdir_hack='
17051 s&@datadir@&$datadir&g
17052 s&@docdir@&$docdir&g
17053 s&@infodir@&$infodir&g
17054 s&@localedir@&$localedir&g
17055 s&@mandir@&$mandir&g
17056 s&\\\${datarootdir}&$datarootdir&g' ;;
17060 # Neutralize VPATH when `$srcdir' = `.'.
17061 # Shell code in configure.ac might set extrasub.
17062 # FIXME: do we really want to maintain this feature?
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 ac_sed_extra="$ac_vpsub
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17069 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17070 s|@configure_input@|
$ac_sed_conf_input|
;t t
17071 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17072 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17073 s
&@srcdir@
&$ac_srcdir&;t t
17074 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17075 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17076 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17077 s
&@builddir@
&$ac_builddir&;t t
17078 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17079 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17080 s
&@INSTALL@
&$ac_INSTALL&;t t
17081 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17082 $ac_datarootdir_hack
17084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17085 if $ac_cs_awk_getline; then
17086 $AWK -f "$ac_tmp/subs.
awk"
17088 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
17090 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
17094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17095 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17097 which seems to be undefined. Please make sure it is defined" >&5
17098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17099 which seems to be undefined. Please make sure it is defined" >&2;}
17101 rm -f "$ac_tmp/stdin"
17103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17112 if test x"$ac_file" != x-; then
17114 $as_echo "/* $configure_input */" \
17115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17116 } >"$ac_tmp/config.h" \
17117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17123 mv "$ac_tmp/config.h" "$ac_file" \
17124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17127 $as_echo "/* $configure_input */" \
17128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17129 || as_fn_error $? "could not create -" "$LINENO" 5
17131 # Compute "$ac_file"'s index
in $config_headers.
17134 for _am_header
in $config_headers :; do
17135 case $_am_header in
17136 $_am_arg |
$_am_arg:* )
17139 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17144 X"$_am_arg" : 'X\(//\)[^/]' \| \
17145 X"$_am_arg" : 'X\(//\)$' \| \
17146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17147 $as_echo X"$_am_arg" |
17148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17152 /^X\(\/\/\)[^/].*/{
17164 s/.*/./; q'`/stamp-h
$_am_stamp_count
17167 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17168 $as_echo "$as_me: executing $ac_file commands" >&6;}
17173 case $ac_file$ac_mode in
17175 # Only add multilib support code if we just rebuilt the top-level
17177 case " $CONFIG_FILES " in
17179 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
17184 # See if we are running on zsh, and set the options which allow our
17185 # commands through without removal of \ escapes.
17186 if test -n "${ZSH_VERSION+set}" ; then
17187 setopt NO_GLOB_SUBST
17190 cfgfile
="${ofile}T"
17191 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17194 cat <<_LT_EOF >> "$cfgfile"
17197 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17198 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17199 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17200 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17202 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17203 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17204 # Written by Gordon Matzigkeit, 1996
17206 # This file is part of GNU Libtool.
17208 # GNU Libtool is free software; you can redistribute it and/or
17209 # modify it under the terms of the GNU General Public License as
17210 # published by the Free Software Foundation; either version 2 of
17211 # the License, or (at your option) any later version.
17213 # As a special exception to the GNU General Public License,
17214 # if you distribute this file as part of a program or library that
17215 # is built using GNU Libtool, you may include this file under the
17216 # same distribution terms that you use for the rest of that program.
17218 # GNU Libtool is distributed in the hope that it will be useful,
17219 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17221 # GNU General Public License for more details.
17223 # You should have received a copy of the GNU General Public License
17224 # along with GNU Libtool; see the file COPYING. If not, a copy
17225 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17226 # obtained by writing to the Free Software Foundation, Inc.,
17227 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17230 # The names of the tagged configurations supported by this script.
17231 available_tags="D "
17233 # ### BEGIN LIBTOOL CONFIG
17235 # Which release of libtool.m4 was used?
17236 macro_version=$macro_version
17237 macro_revision=$macro_revision
17239 # Whether or not to build shared libraries.
17240 build_libtool_libs=$enable_shared
17242 # Whether or not to build static libraries.
17243 build_old_libs=$enable_static
17245 # What type of objects to build.
17248 # Whether or not to optimize for fast installation.
17249 fast_install=$enable_fast_install
17251 # Shell to use when invoking shell scripts.
17254 # An echo program that protects backslashes.
17258 host_alias=$host_alias
17262 # The build system.
17263 build_alias=$build_alias
17267 # A sed program that does not truncate output.
17270 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17271 Xsed="\$SED -e 1s/^X//"
17273 # A grep program that handles long lines.
17279 # A literal string matcher.
17282 # A BSD- or MS-compatible name lister.
17285 # Whether we need soft or hard links.
17288 # What is the maximum length of a command?
17289 max_cmd_len=$max_cmd_len
17291 # Object file suffix (normally "o").
17294 # Executable file suffix (normally "").
17297 # whether the shell understands "unset".
17300 # turn spaces into newlines.
17303 # turn newlines into spaces.
17306 # An object symbol dumper.
17307 OBJDUMP=$lt_OBJDUMP
17309 # Method to check whether dependent libraries are shared objects.
17310 deplibs_check_method=$lt_deplibs_check_method
17312 # Command to use when deplibs_check_method == "file_magic".
17313 file_magic_cmd=$lt_file_magic_cmd
17317 AR_FLAGS=$lt_AR_FLAGS
17319 # A symbol stripping program.
17322 # Commands used to install an old-style archive.
17324 old_postinstall_cmds=$lt_old_postinstall_cmds
17325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17327 # Whether to use a lock for old archive extraction.
17328 lock_old_archive_extraction=$lock_old_archive_extraction
17333 # LTCC compiler flags.
17334 LTCFLAGS=$lt_CFLAGS
17336 # Take the output of nm and produce a listing of raw symbols and C names.
17337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17339 # Transform the output of nm in a proper C declaration.
17340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17342 # Transform the output of nm in a C name address pair.
17343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17345 # Transform the output of nm in a C name address pair when lib prefix is needed.
17346 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17348 # The name of the directory that contains temporary libtool files.
17351 # Used to examine libraries when file_magic_cmd begins with "file".
17352 MAGIC_CMD=$MAGIC_CMD
17354 # Must we lock files when doing compilation?
17355 need_locks=$lt_need_locks
17357 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17358 DSYMUTIL=$lt_DSYMUTIL
17360 # Tool to change global to local symbols on Mac OS X.
17363 # Tool to manipulate fat objects and archives on Mac OS X.
17366 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17369 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17370 OTOOL64=$lt_OTOOL64
17372 # Old archive suffix (normally "a").
17375 # Shared library suffix (normally ".so").
17376 shrext_cmds=$lt_shrext_cmds
17378 # The commands to extract the exported symbol list from a shared archive.
17379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17381 # Variables whose values should be saved in libtool wrapper scripts and
17382 # restored at link time.
17383 variables_saved_for_relink=$lt_variables_saved_for_relink
17385 # Do we need the "lib" prefix for modules?
17386 need_lib_prefix=$need_lib_prefix
17388 # Do we need a version for libraries?
17389 need_version=$need_version
17391 # Library versioning type.
17392 version_type=$version_type
17394 # Shared library runtime path variable.
17395 runpath_var=$runpath_var
17397 # Shared library path variable.
17398 shlibpath_var=$shlibpath_var
17400 # Is shlibpath searched before the hard-coded library search path?
17401 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17403 # Format of library name prefix.
17404 libname_spec=$lt_libname_spec
17406 # List of archive names. First name is the real one, the rest are links.
17407 # The last name is the one that the linker finds with -lNAME
17408 library_names_spec=$lt_library_names_spec
17410 # The coded name of the library, if different from the real name.
17411 soname_spec=$lt_soname_spec
17413 # Permission mode override for installation of shared libraries.
17414 install_override_mode=$lt_install_override_mode
17416 # Command to use after installation of a shared archive.
17417 postinstall_cmds=$lt_postinstall_cmds
17419 # Command to use after uninstallation of a shared archive.
17420 postuninstall_cmds=$lt_postuninstall_cmds
17422 # Commands used to finish a libtool library installation in a directory.
17423 finish_cmds=$lt_finish_cmds
17425 # As "finish_cmds", except a single script fragment to be evaled but
17427 finish_eval=$lt_finish_eval
17429 # Whether we should hardcode library paths into libraries.
17430 hardcode_into_libs=$hardcode_into_libs
17432 # Compile-time system search path for libraries.
17433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17435 # Run-time system search path for libraries.
17436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17438 # Whether dlopen is supported.
17439 dlopen_support=$enable_dlopen
17441 # Whether dlopen of programs is supported.
17442 dlopen_self=$enable_dlopen_self
17444 # Whether dlopen of statically linked programs is supported.
17445 dlopen_self_static=$enable_dlopen_self_static
17447 # Commands to strip libraries.
17448 old_striplib=$lt_old_striplib
17449 striplib=$lt_striplib
17452 # The linker used to build libraries.
17455 # How to create reloadable object files.
17456 reload_flag=$lt_reload_flag
17457 reload_cmds=$lt_reload_cmds
17459 # Commands used to build an old-style archive.
17460 old_archive_cmds=$lt_old_archive_cmds
17462 # A language specific compiler.
17465 # Is the compiler the GNU compiler?
17468 # Compiler flag to turn off builtin functions.
17469 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17471 # How to pass a linker flag through the compiler.
17472 wl=$lt_lt_prog_compiler_wl
17474 # Additional compiler flags for building library objects.
17475 pic_flag=$lt_lt_prog_compiler_pic
17477 # Compiler flag to prevent dynamic linking.
17478 link_static_flag=$lt_lt_prog_compiler_static
17480 # Does compiler simultaneously support -c and -o options?
17481 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17483 # Whether or not to add -lc for building shared libraries.
17484 build_libtool_need_lc=$archive_cmds_need_lc
17486 # Whether or not to disallow shared libs when runtime libs are static.
17487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17489 # Compiler flag to allow reflexive dlopens.
17490 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17492 # Compiler flag to generate shared objects directly from archives.
17493 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17495 # Whether the compiler copes with passing no objects directly.
17496 compiler_needs_object=$lt_compiler_needs_object
17498 # Create an old-style archive from a shared archive.
17499 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17501 # Create a temporary old-style archive to link instead of a shared archive.
17502 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17504 # Commands used to build a shared archive.
17505 archive_cmds=$lt_archive_cmds
17506 archive_expsym_cmds=$lt_archive_expsym_cmds
17508 # Commands used to build a loadable module if different from building
17509 # a shared archive.
17510 module_cmds=$lt_module_cmds
17511 module_expsym_cmds=$lt_module_expsym_cmds
17513 # Whether we are building with GNU ld or not.
17514 with_gnu_ld=$lt_with_gnu_ld
17516 # Flag that allows shared libraries with undefined symbols to be built.
17517 allow_undefined_flag=$lt_allow_undefined_flag
17519 # Flag that enforces no undefined symbols.
17520 no_undefined_flag=$lt_no_undefined_flag
17522 # Flag to hardcode \$libdir into a binary during linking.
17523 # This must work even if \$libdir does not exist
17524 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17526 # If ld is used when linking, flag to hardcode \$libdir into a binary
17527 # during linking. This must work even if \$libdir does not exist.
17528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17530 # Whether we need a single "-rpath" flag with a separated argument.
17531 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17533 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17534 # DIR into the resulting binary.
17535 hardcode_direct=$hardcode_direct
17537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17538 # DIR into the resulting binary and the resulting library dependency is
17539 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17540 # library is relocated.
17541 hardcode_direct_absolute=$hardcode_direct_absolute
17543 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17544 # into the resulting binary.
17545 hardcode_minus_L=$hardcode_minus_L
17547 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17548 # into the resulting binary.
17549 hardcode_shlibpath_var=$hardcode_shlibpath_var
17551 # Set to "yes" if building a shared library automatically hardcodes DIR
17552 # into the library and all subsequent libraries and executables linked
17554 hardcode_automatic=$hardcode_automatic
17556 # Set to yes if linker adds runtime paths of dependent libraries
17557 # to runtime path list.
17558 inherit_rpath=$inherit_rpath
17560 # Whether libtool must link a program against all its dependency libraries.
17561 link_all_deplibs=$link_all_deplibs
17563 # Fix the shell variable \$srcfile for the compiler.
17564 fix_srcfile_path=$lt_fix_srcfile_path
17566 # Set to "yes" if exported symbols are required.
17567 always_export_symbols=$always_export_symbols
17569 # The commands to list exported symbols.
17570 export_symbols_cmds=$lt_export_symbols_cmds
17572 # Symbols that should not be listed in the preloaded symbols.
17573 exclude_expsyms=$lt_exclude_expsyms
17575 # Symbols that must always be exported.
17576 include_expsyms=$lt_include_expsyms
17578 # Commands necessary for linking programs (against libraries) with templates.
17579 prelink_cmds=$lt_prelink_cmds
17581 # Specify filename containing input files.
17582 file_list_spec=$lt_file_list_spec
17584 # How to hardcode a shared library path into an executable.
17585 hardcode_action=$hardcode_action
17587 # ### END LIBTOOL CONFIG
17593 cat <<\_LT_EOF
>> "$cfgfile"
17594 # AIX sometimes has problems with the GCC collect2 program. For some
17595 # reason, if we set the COLLECT_NAMES environment variable, the problems
17596 # vanish in a puff of smoke.
17597 if test "X${COLLECT_NAMES+set}" != Xset
; then
17599 export COLLECT_NAMES
17606 ltmain
="$ac_aux_dir/ltmain.sh"
17609 # We use sed instead of cat because bash on DJGPP gets confused if
17610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17611 # text mode, it properly converts lines to CR/LF. This bash problem
17612 # is reportedly fixed, but why not run on old versions too?
17613 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17614 ||
(rm -f "$cfgfile"; exit 1)
17618 cat << \_LT_EOF
>> "$cfgfile"
17620 # func_dirname file append nondir_replacement
17621 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17622 # otherwise set result to NONDIR_REPLACEMENT.
17626 */*) func_dirname_result
="${1%/*}${2}" ;;
17627 * ) func_dirname_result
="${3}" ;;
17631 # func_basename file
17634 func_basename_result
="${1##*/}"
17637 # func_dirname_and_basename file append nondir_replacement
17638 # perform func_basename and func_dirname in a single function
17640 # dirname: Compute the dirname of FILE. If nonempty,
17641 # add APPEND to the result, otherwise set result
17642 # to NONDIR_REPLACEMENT.
17643 # value returned in "$func_dirname_result"
17644 # basename: Compute filename of FILE.
17645 # value retuned in "$func_basename_result"
17646 # Implementation must be kept synchronized with func_dirname
17647 # and func_basename. For efficiency, we do not delegate to
17648 # those functions but instead duplicate the functionality here.
17649 func_dirname_and_basename
()
17652 */*) func_dirname_result
="${1%/*}${2}" ;;
17653 * ) func_dirname_result
="${3}" ;;
17655 func_basename_result
="${1##*/}"
17658 # func_stripname prefix suffix name
17659 # strip PREFIX and SUFFIX off of NAME.
17660 # PREFIX and SUFFIX must not contain globbing or regex special
17661 # characters, hashes, percent signs, but SUFFIX may contain a leading
17662 # dot (in which case that matches only a dot).
17665 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17666 # positional parameters, so assign one to ordinary parameter first.
17667 func_stripname_result
=${3}
17668 func_stripname_result
=${func_stripname_result#"${1}"}
17669 func_stripname_result
=${func_stripname_result%"${2}"}
17675 func_opt_split_opt
=${1%%=*}
17676 func_opt_split_arg
=${1#*=}
17683 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17684 *) func_lo2o_result
=${1} ;;
17688 # func_xform libobj-or-source
17691 func_xform_result
=${1%.*}.lo
17694 # func_arith arithmetic-term...
17697 func_arith_result
=$
(( $
* ))
17701 # STRING may not start with a hyphen.
17704 func_len_result
=${#1}
17709 *) # Bourne compatible functions.
17710 cat << \_LT_EOF
>> "$cfgfile"
17712 # func_dirname file append nondir_replacement
17713 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17714 # otherwise set result to NONDIR_REPLACEMENT.
17717 # Extract subdirectory from the argument.
17718 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17719 if test "X$func_dirname_result" = "X${1}"; then
17720 func_dirname_result
="${3}"
17722 func_dirname_result
="$func_dirname_result${2}"
17726 # func_basename file
17729 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17733 # func_stripname prefix suffix name
17734 # strip PREFIX and SUFFIX off of NAME.
17735 # PREFIX and SUFFIX must not contain globbing or regex special
17736 # characters, hashes, percent signs, but SUFFIX may contain a leading
17737 # dot (in which case that matches only a dot).
17738 # func_strip_suffix prefix name
17742 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17743 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17748 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17749 my_sed_long_arg
='1s/^-[^=]*=//'
17754 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17755 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17761 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17764 # func_xform libobj-or-source
17767 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17770 # func_arith arithmetic-term...
17773 func_arith_result
=`expr "$@"`
17777 # STRING may not start with a hyphen.
17780 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17786 case $lt_shell_append in
17788 cat << \_LT_EOF
>> "$cfgfile"
17790 # func_append var value
17791 # Append VALUE to the end of shell variable VAR.
17799 cat << \_LT_EOF
>> "$cfgfile"
17801 # func_append var value
17802 # Append VALUE to the end of shell variable VAR.
17813 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17814 ||
(rm -f "$cfgfile"; exit 1)
17816 mv -f "$cfgfile" "$ofile" ||
17817 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17821 cat <<_LT_EOF >> "$ofile"
17823 # ### BEGIN LIBTOOL TAG CONFIG: D
17825 # The linker used to build libraries.
17828 # How to create reloadable object files.
17829 reload_flag=$lt_reload_flag_D
17830 reload_cmds=$lt_reload_cmds_D
17832 # Commands used to build an old-style archive.
17833 old_archive_cmds=$lt_old_archive_cmds_D
17835 # A language specific compiler.
17838 # Is the compiler the GNU compiler?
17841 # Compiler flag to turn off builtin functions.
17842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17844 # How to pass a linker flag through the compiler.
17845 wl=$lt_lt_prog_compiler_wl_D
17847 # Additional compiler flags for building library objects.
17848 pic_flag=$lt_lt_prog_compiler_pic_D
17850 # Compiler flag to prevent dynamic linking.
17851 link_static_flag=$lt_lt_prog_compiler_static_D
17853 # Does compiler simultaneously support -c and -o options?
17854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17856 # Whether or not to add -lc for building shared libraries.
17857 build_libtool_need_lc=$archive_cmds_need_lc_D
17859 # Whether or not to disallow shared libs when runtime libs are static.
17860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17862 # Compiler flag to allow reflexive dlopens.
17863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17865 # Compiler flag to generate shared objects directly from archives.
17866 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17868 # Whether the compiler copes with passing no objects directly.
17869 compiler_needs_object=$lt_compiler_needs_object_D
17871 # Create an old-style archive from a shared archive.
17872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17874 # Create a temporary old-style archive to link instead of a shared archive.
17875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17877 # Commands used to build a shared archive.
17878 archive_cmds=$lt_archive_cmds_D
17879 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17881 # Commands used to build a loadable module if different from building
17882 # a shared archive.
17883 module_cmds=$lt_module_cmds_D
17884 module_expsym_cmds=$lt_module_expsym_cmds_D
17886 # Whether we are building with GNU ld or not.
17887 with_gnu_ld=$lt_with_gnu_ld_D
17889 # Flag that allows shared libraries with undefined symbols to be built.
17890 allow_undefined_flag=$lt_allow_undefined_flag_D
17892 # Flag that enforces no undefined symbols.
17893 no_undefined_flag=$lt_no_undefined_flag_D
17895 # Flag to hardcode \$libdir into a binary during linking.
17896 # This must work even if \$libdir does not exist
17897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17899 # If ld is used when linking, flag to hardcode \$libdir into a binary
17900 # during linking. This must work even if \$libdir does not exist.
17901 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17903 # Whether we need a single "-rpath" flag with a separated argument.
17904 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17906 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17907 # DIR into the resulting binary.
17908 hardcode_direct=$hardcode_direct_D
17910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17911 # DIR into the resulting binary and the resulting library dependency is
17912 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17913 # library is relocated.
17914 hardcode_direct_absolute=$hardcode_direct_absolute_D
17916 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17917 # into the resulting binary.
17918 hardcode_minus_L=$hardcode_minus_L_D
17920 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17921 # into the resulting binary.
17922 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17924 # Set to "yes" if building a shared library automatically hardcodes DIR
17925 # into the library and all subsequent libraries and executables linked
17927 hardcode_automatic=$hardcode_automatic_D
17929 # Set to yes if linker adds runtime paths of dependent libraries
17930 # to runtime path list.
17931 inherit_rpath=$inherit_rpath_D
17933 # Whether libtool must link a program against all its dependency libraries.
17934 link_all_deplibs=$link_all_deplibs_D
17936 # Fix the shell variable \$srcfile for the compiler.
17937 fix_srcfile_path=$lt_fix_srcfile_path_D
17939 # Set to "yes" if exported symbols are required.
17940 always_export_symbols=$always_export_symbols_D
17942 # The commands to list exported symbols.
17943 export_symbols_cmds=$lt_export_symbols_cmds_D
17945 # Symbols that should not be listed in the preloaded symbols.
17946 exclude_expsyms=$lt_exclude_expsyms_D
17948 # Symbols that must always be exported.
17949 include_expsyms=$lt_include_expsyms_D
17951 # Commands necessary for linking programs (against libraries) with templates.
17952 prelink_cmds=$lt_prelink_cmds_D
17954 # Specify filename containing input files.
17955 file_list_spec=$lt_file_list_spec_D
17957 # How to hardcode a shared library path into an executable.
17958 hardcode_action=$hardcode_action_D
17960 # ### END LIBTOOL TAG CONFIG: D
17964 "testsuite/testsuite_flags":F
) chmod +x testsuite
/testsuite_flags
;;
17965 "libdruntime/Makefile":F
) cat > vpsed$$
<< \_EOF
17966 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17968 sed -f vpsed$$
$ac_file > tmp$$
17971 echo 'MULTISUBDIR =' >> $ac_file
17973 .
${multi_basedir}/config-ml.
in
17974 { ml_norecursion
=; unset ml_norecursion
;}
17976 "src/Makefile":F
) cat > vpsed$$
<< \_EOF
17977 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17979 sed -f vpsed$$
$ac_file > tmp$$
17982 echo 'MULTISUBDIR =' >> $ac_file
17984 .
${multi_basedir}/config-ml.
in
17985 { ml_norecursion
=; unset ml_norecursion
;}
17987 "testsuite/Makefile":F
) cat > vpsed$$
<< \_EOF
17988 s
!`test -f '$<' || echo '$(srcdir)/'`!!
17990 sed -f vpsed$$
$ac_file > tmp$$
17993 echo 'MULTISUBDIR =' >> $ac_file
17995 .
${multi_basedir}/config-ml.
in
17996 { ml_norecursion
=; unset ml_norecursion
;}
18005 ac_clean_files
=$ac_clean_files_save
18007 test $ac_write_fail = 0 ||
18008 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18011 # configure is writing to config.log, and then calls config.status.
18012 # config.status does its own redirection, appending to config.log.
18013 # Unfortunately, on DOS this fails, as config.log is still kept open
18014 # by configure, so config.status won't be able to write to it; its
18015 # output is simply discarded. So we exec the FD to /dev/null,
18016 # effectively closing config.log, so it can be properly (re)opened and
18017 # appended to by config.status. When coming back to configure, we
18018 # need to make the FD available again.
18019 if test "$no_create" != yes; then
18021 ac_config_status_args
=
18022 test "$silent" = yes &&
18023 ac_config_status_args
="$ac_config_status_args --quiet"
18025 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18027 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18028 # would make configure fail if this is the last instruction.
18029 $ac_cs_success || as_fn_exit
1
18031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}